Exemplo n.º 1
0
/***********************************************************
 *	Name 		: roadmap_device_initialize
 *	Purpose 	: Loads the backlight parameter from the configuration
 * 					and updates the application. Returns the loaded value
 */
int roadmap_device_initialize( void )
{
    // Load the configuration
    roadmap_config_declare
    ("user", &RoadMapConfigBackLight, "no", NULL);

    // Update the UI object
    roadmap_device_backlight_monitor_reset();

    // Register as gps listener
    roadmap_gps_register_listener( roadmap_device_backlight_monitor );

    // Log the operation
    roadmap_log( ROADMAP_DEBUG, "roadmap_backlight_initialize() - Current setting : %s",
                 roadmap_config_get( &RoadMapConfigBackLight ) );

    return 1;
}
Exemplo n.º 2
0
/*************************************************************************************************
 * Java_com_waze_FreeMapNativeManager_BackLightMonitorResetNTV
 * JNI wrapper for the roadmap_device_backlight_monitor_reset (will be called from the Java layer)
 *
 */
JNIEXPORT void JNICALL Java_com_waze_FreeMapNativeManager_BackLightMonitorResetNTV
( JNIEnv* aJNIEnv, jobject aJObj )
{
	roadmap_device_backlight_monitor_reset();
}