/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 38 private final SensorManager mSensorManager; 44 public LegacySensorManager(SensorManager sensorManager) { in LegacySensorManager() 47 synchronized (SensorManager.class) { in LegacySensorManager() 75 result |= SensorManager.SENSOR_ACCELEROMETER; in getSensors() 78 result |= SensorManager.SENSOR_MAGNETIC_FIELD; in getSensors() 81 result |= SensorManager.SENSOR_ORIENTATION in getSensors() 82 | SensorManager.SENSOR_ORIENTATION_RAW; in getSensors() 94 result = registerLegacyListener(SensorManager.SENSOR_ACCELEROMETER, in registerListener() 96 result = registerLegacyListener(SensorManager.SENSOR_MAGNETIC_FIELD, in registerListener() 98 result = registerLegacyListener(SensorManager.SENSOR_ORIENTATION_RAW, in registerListener() [all …]
|
/frameworks/native/libs/gui/ |
D | SensorManager.cpp | 39 ANDROID_SINGLETON_STATIC_INSTANCE(SensorManager) in ANDROID_SINGLETON_STATIC_INSTANCE() argument 41 SensorManager::SensorManager() in ANDROID_SINGLETON_STATIC_INSTANCE() 48 SensorManager::~SensorManager() in ~SensorManager() 53 void SensorManager::sensorManagerDied() in sensorManagerDied() 62 status_t SensorManager::assertStateLocked() const { in assertStateLocked() 79 SensorManager& mSensorManger; in assertStateLocked() 85 DeathObserver(SensorManager& mgr) : mSensorManger(mgr) { } in assertStateLocked() 88 mDeathObserver = new DeathObserver(*const_cast<SensorManager *>(this)); in assertStateLocked() 104 ssize_t SensorManager::getSensorList(Sensor const* const** list) const in getSensorList() 115 Sensor const* SensorManager::getDefaultSensor(int type) in getDefaultSensor() [all …]
|
D | Android.mk | 32 SensorManager.cpp \
|
/frameworks/native/include/gui/ |
D | SensorManager.h | 46 class SensorManager : 48 public Singleton<SensorManager> 51 SensorManager(); 52 ~SensorManager();
|
/frameworks/base/native/android/ |
D | sensor.cpp | 35 using android::SensorManager; 43 return &SensorManager::getInstance(); in ASensorManager_getInstance() 50 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); in ASensorManager_getSensorList() 59 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor() 65 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx() 79 static_cast<SensorManager*>(manager)->createEventQueue(); in ASensorManager_createEventQueue()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 25 import android.hardware.SensorManager; 36 private SensorManager mSensorManager = null; 54 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | Balls.java | 44 import android.hardware.SensorManager; 54 private SensorManager mSensorManager; 77 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); in onCreate() 89 SensorManager.SENSOR_DELAY_FASTEST); in onResume()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 23 import android.hardware.SensorManager; 35 private SensorManager mSensorManager; 56 this(context, SensorManager.SENSOR_DELAY_NORMAL); in OrientationEventListener() 69 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in OrientationEventListener()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 25 import android.hardware.SensorManager; 38 private SensorManager mSensorManager = null; 60 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | WakeGestureListener.java | 22 import android.hardware.SensorManager; 34 private final SensorManager mSensorManager; 43 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WakeGestureListener()
|
D | WindowOrientationListener.java | 23 import android.hardware.SensorManager; 55 private SensorManager mSensorManager; 71 this(context, handler, SensorManager.SENSOR_DELAY_UI); in WindowOrientationListener() 88 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WindowOrientationListener() 337 SensorManager.STANDARD_GRAVITY - ACCELERATION_TOLERANCE; 339 SensorManager.STANDARD_GRAVITY + ACCELERATION_TOLERANCE;
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelView.java | 27 import android.hardware.SensorManager; 40 private SensorManager mSensorManager; 54 mSensorManager = (SensorManager)getContext().getSystemService(Context.SENSOR_SERVICE); in SimpleModelView() 178 SensorManager.getRotationMatrixFromVector( in onSensorChanged()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 22 import android.hardware.SensorManager; 96 private static final double MIN_GRAVITY = SensorManager.GRAVITY_EARTH - 1.0f; 97 private static final double MAX_GRAVITY = SensorManager.GRAVITY_EARTH + 1.0f; 101 private final SensorManager mSensorManager; 143 public WirelessChargerDetector(SensorManager sensorManager, in WirelessChargerDetector()
|
/frameworks/base/docs/html/guide/topics/sensors/ |
D | sensors_position.jd | 19 <li>{@link android.hardware.SensorManager}</li> 202 private SensorManager mSensorManager; 205 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 223 private SensorManager mSensorManager; 226 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 238 private SensorManager mSensorManager; 241 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 274 {@link android.hardware.SensorManager#getRotationMatrix getRotationMatrix()} method in conjunction 276 values. You can also use the {@link android.hardware.SensorManager#remapCoordinateSystem 286 private SensorManager mSensorManager; [all …]
|
D | sensors_overview.jd | 27 <li>{@link android.hardware.SensorManager}</li> 178 the {@link android.hardware.SensorManager#getRotationMatrix getRotationMatrix()} 227 <dt>{@link android.hardware.SensorManager}</dt> 397 service. To do this, you create an instance of the {@link android.hardware.SensorManager} class by 402 private SensorManager mSensorManager; 404 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 408 {@link android.hardware.SensorManager#getSensorList getSensorList()} method and using the {@link 421 android.hardware.SensorManager#getDefaultSensor getDefaultSensor()} method and passing in the type 427 private SensorManager mSensorManager; 429 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); [all …]
|
D | sensors_motion.jd | 23 <li>{@link android.hardware.SensorManager}</li> 236 private SensorManager mSensorManager; 239 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 326 private SensorManager mSensorManager; 329 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 345 private SensorManager mSensorManager; 348 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 405 SensorManager.getRotationMatrixFromVector(deltaRotationMatrix, deltaRotationVector); 441 private SensorManager mSensorManager; 444 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); [all …]
|
D | sensors_environment.jd | 101 android.hardware.SensorManager} class, which you can use to get an instance of a physical sensor. 109 private SensorManager mSensorManager; 119 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 138 mSensorManager.registerListener(this, mPressure, SensorManager.SENSOR_DELAY_NORMAL);
|
/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 64 SensorManager& mgr(SensorManager::getInstance()); in main()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerInternal.java | 19 import android.hardware.SensorManager; 35 Handler handler, SensorManager sensorManager); in initPowerManagement()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 90 SensorManager& mgr(SensorManager::getInstance()); in nativeGetNextSensor() 222 SensorManager& mgr(SensorManager::getInstance()); in nativeInitSensorEventQueue()
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
D | GL2CameraEye.java | 42 import android.hardware.SensorManager; 78 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in CamGLSurfaceView() 112 mSensorManager.registerListener(this, mAcceleration, SensorManager.SENSOR_DELAY_GAME); in onResume() 133 SensorManager mSensorManager;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeService.java | 30 import android.hardware.SensorManager; 76 private SensorManager mSensors; 131 mSensors = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onCreate() 588 mSensors.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0, mHandler);
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 27 import android.hardware.SensorManager; 107 private final SensorManager mSensorManager; 178 SensorManager sensorManager, Spline autoBrightnessSpline, int lightSensorWarmUpTime, in AutomaticBrightnessController()
|
D | DisplayPowerController.java | 31 import android.hardware.SensorManager; 129 private final SensorManager mSensorManager; 258 SensorManager sensorManager, DisplayBlanker blanker) { in DisplayPowerController() 914 SensorManager.SENSOR_DELAY_NORMAL, mHandler);
|
/frameworks/base/core/java/android/widget/ |
D | Scroller.java | 20 import android.hardware.SensorManager; 197 return SensorManager.GRAVITY_EARTH // g (m/s^2) in computeDeceleration()
|