Home
last modified time | relevance | path

Searched refs:accelerometer_sensor_ (Results 1 – 2 of 2) sorted by relevance

/development/ndk/platforms/android-17/samples/Teapot/jni/
DTeapotNativeActivity.cpp59 const ASensor* accelerometer_sensor_; member in Engine
102 accelerometer_sensor_( NULL ), in Engine()
329 accelerometer_sensor_ = ASensorManager_getDefaultSensor( sensor_manager_, in InitSensors()
340 if( accelerometer_sensor_ != NULL ) in ProcessSensors()
353 if( accelerometer_sensor_ != NULL ) in ResumeSensors()
355 ASensorEventQueue_enableSensor( sensor_event_queue_, accelerometer_sensor_ ); in ResumeSensors()
357 ASensorEventQueue_setEventRate( sensor_event_queue_, accelerometer_sensor_, in ResumeSensors()
366 if( accelerometer_sensor_ != NULL ) in SuspendSensors()
368 ASensorEventQueue_disableSensor( sensor_event_queue_, accelerometer_sensor_ ); in SuspendSensors()
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsNativeActivity.cpp69 const ASensor* accelerometer_sensor_; member in Engine
112 accelerometer_sensor_( NULL ), in Engine()
340 accelerometer_sensor_ = ASensorManager_getDefaultSensor( sensor_manager_, in InitSensors()
351 if( accelerometer_sensor_ != NULL ) in ProcessSensors()
364 if( accelerometer_sensor_ != NULL ) in ResumeSensors()
366 ASensorEventQueue_enableSensor( sensor_event_queue_, accelerometer_sensor_ ); in ResumeSensors()
368 ASensorEventQueue_setEventRate( sensor_event_queue_, accelerometer_sensor_, in ResumeSensors()
377 if( accelerometer_sensor_ != NULL ) in SuspendSensors()
379 ASensorEventQueue_disableSensor( sensor_event_queue_, accelerometer_sensor_ ); in SuspendSensors()