Home
last modified time | relevance | path

Searched refs:SensorManager (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java38 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/
DSensorManager.cpp39 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/
DSensorManager.h50 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/
Dsensor.cpp35 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/
DSensorNotificationService.java26 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()
DGestureLauncherService.java30 import android.hardware.SensorManager;
173 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture()
188 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture()
DAnyMotionDetector.java22 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/
DMotionSensor.java25 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/
DBalls.java44 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/
DOrientationEventListener.java23 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/
DMotionSensorWTime.java25 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/
DWakeGestureListener.java22 import android.hardware.SensorManager;
34 private final SensorManager mSensorManager;
43 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WakeGestureListener()
DWindowOrientationListener.java23 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/
Dsensors_position.jd19 <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 …]
Dsensors_overview.jd27 <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 …]
Dsensors_motion.jd23 <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 …]
Dsensors_environment.jd101 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/
DWirelessChargerDetector.java22 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/
Dandroid_hardware_SensorManager.cpp161 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/
DSensorPowerCalculator.java19 import android.hardware.SensorManager;
29 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager) { in SensorPowerCalculator()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManager.java24 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/
DDisplayManagerInternal.java19 import android.hardware.SensorManager;
35 Handler handler, SensorManager sensorManager); in initPowerManagement()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java42 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/
DDozeService.java30 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);

12