/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::Mutex android::SensorManager::sLock; 40 std::map<String16, SensorManager*> android::SensorManager::sPackageInstances; 42 SensorManager& SensorManager::getInstanceForPackage(const String16& packageName) { in getInstanceForPackage() 44 SensorManager* sensorManager; in getInstanceForPackage() 45 std::map<String16, SensorManager*>::iterator iterator = in getInstanceForPackage() 75 sensorManager = new SensorManager(opPackageName); in getInstanceForPackage() 91 SensorManager::SensorManager(const String16& opPackageName) in SensorManager() function in android::SensorManager 97 SensorManager::~SensorManager() { in ~SensorManager() 101 void SensorManager::sensorManagerDied() { in sensorManagerDied() 109 status_t SensorManager::assertStateLocked() { in assertStateLocked() [all …]
|
/frameworks/native/include/gui/ |
D | SensorManager.h | 50 class SensorManager : 54 static SensorManager& getInstanceForPackage(const String16& packageName); 55 ~SensorManager(); 67 SensorManager(const String16& opPackageName); 72 static std::map<String16, SensorManager*> sPackageInstances;
|
/frameworks/base/native/android/ |
D | sensor.cpp | 35 using android::SensorManager; 49 return &SensorManager::getInstanceForPackage(String16(packageName)); in ASensorManager_getInstanceForPackage() 51 return &SensorManager::getInstanceForPackage(String16()); in ASensorManager_getInstanceForPackage() 59 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); in ASensorManager_getSensorList() 68 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor() 74 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx() 88 static_cast<SensorManager*>(manager)->createEventQueue(); in ASensorManager_createEventQueue()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SensorNotificationService.java | 26 import android.hardware.SensorManager; 39 private SensorManager mSensorManager; 54 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onBootPhase() 60 SensorManager.SENSOR_DELAY_FASTEST); in onBootPhase()
|
D | GestureLauncherService.java | 30 import android.hardware.SensorManager; 173 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() 188 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture()
|
D | AnyMotionDetector.java | 22 import android.hardware.SensorManager; 85 private SensorManager mSensorManager; 108 public AnyMotionDetector(PowerManager pm, Handler handler, SensorManager sm, in AnyMotionDetector()
|
/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/services/core/java/com/android/server/policy/ |
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; 54 private SensorManager mSensorManager; 71 this(context, handler, SensorManager.SENSOR_DELAY_UI); in WindowOrientationListener() 88 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WindowOrientationListener() 424 SensorManager.STANDARD_GRAVITY - ACCELERATION_TOLERANCE; 426 SensorManager.STANDARD_GRAVITY + ACCELERATION_TOLERANCE;
|
/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/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/core/jni/ |
D | android_hardware_SensorManager.cpp | 161 return (jlong) &SensorManager::getInstanceForPackage(String16(opPackageNameUtf.c_str())); in nativeCreate() 212 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetSensorAtIndex() 226 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetDynamicSensors() 242 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeIsDataInjectionEnabled() 380 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeInitSensorEventQueue()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 19 import android.hardware.SensorManager; 29 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager) { in SensorPowerCalculator()
|
/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingManager.java | 24 import android.hardware.SensorManager; 61 private final SensorManager mSensorManager; 83 mSensorManager = mContext.getSystemService(SensorManager.class); in FalsingManager() 154 mSensorManager.registerListener(this, s, SensorManager.SENSOR_DELAY_GAME); in registerSensors()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerInternal.java | 19 import android.hardware.SensorManager; 35 Handler handler, SensorManager sensorManager); in initPowerManagement()
|
/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; 132 mSensors = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onCreate() 602 mSensors.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0, mHandler);
|