Searched refs:SensorManager (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/native/libs/gui/
H A DSensorManager.cpp32 #include <gui/SensorManager.h>
39 ANDROID_SINGLETON_STATIC_INSTANCE(SensorManager)
41 SensorManager::SensorManager() function in class:android::SensorManager
48 SensorManager::~SensorManager()
53 void SensorManager::sensorManagerDied()
62 status_t SensorManager::assertStateLocked() const {
79 SensorManager& mSensorManger;
85 DeathObserver(SensorManager
[all...]
H A DAndroid.mk32 SensorManager.cpp \
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java38 private final SensorManager mSensorManager;
44 public LegacySensorManager(SensorManager sensorManager) {
47 synchronized (SensorManager.class) {
75 result |= SensorManager.SENSOR_ACCELEROMETER;
78 result |= SensorManager.SENSOR_MAGNETIC_FIELD;
81 result |= SensorManager.SENSOR_ORIENTATION
82 | SensorManager.SENSOR_ORIENTATION_RAW;
94 result = registerLegacyListener(SensorManager.SENSOR_ACCELEROMETER,
96 result = registerLegacyListener(SensorManager.SENSOR_MAGNETIC_FIELD,
98 result = registerLegacyListener(SensorManager
[all...]
H A DSensorManager.java29 * SensorManager lets you access the device's {@link android.hardware.Sensor
48 * private final SensorManager mSensorManager;
52 * mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
58 * mSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);
79 public abstract class SensorManager { class
81 protected static final String TAG = "SensorManager";
368 public SensorManager() { method in class:SensorManager
380 * {@link SensorManager#getSensorList(int)} instead
434 * {@link SensorManager#getSensorList(int) getSensorList}.
503 * {@link SensorManager#registerListene
[all...]
/frameworks/native/include/gui/
H A DSensorManager.h46 class SensorManager : class in namespace:android
48 public Singleton<SensorManager>
51 SensorManager();
52 ~SensorManager();
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DMotionSensor.java25 import android.hardware.SensorManager;
36 private SensorManager mSensorManager = null;
54 mSensorManager = (SensorManager)getContext().getApplicationContext()
59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
H A DBalls.java44 import android.hardware.SensorManager;
54 private SensorManager mSensorManager;
77 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
89 SensorManager.SENSOR_DELAY_FASTEST);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWakeGestureListener.java22 import android.hardware.SensorManager;
34 private final SensorManager mSensorManager;
43 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
H A DWindowOrientationListener.java23 import android.hardware.SensorManager;
35 * for receiving notifications from the SensorManager when
55 private SensorManager mSensorManager;
71 this(context, handler, SensorManager.SENSOR_DELAY_UI);
80 * {@link android.hardware.SensorManager SensorManager}). Use the default
81 * value of {@link android.hardware.SensorManager#SENSOR_DELAY_NORMAL
88 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
337 SensorManager.STANDARD_GRAVITY - ACCELERATION_TOLERANCE;
339 SensorManager
[all...]
/frameworks/base/native/android/
H A Dsensor.cpp28 #include <gui/SensorManager.h>
35 using android::SensorManager;
43 return &SensorManager::getInstance();
50 int c = static_cast<SensorManager*>(manager)->getSensorList(&l);
59 return static_cast<SensorManager*>(manager)->getDefaultSensor(type);
65 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList);
79 static_cast<SensorManager*>(manager)->createEventQueue();
/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp19 #include <gui/SensorManager.h>
64 SensorManager& mgr(SensorManager::getInstance());
/frameworks/base/core/java/android/view/
H A DOrientationEventListener.java23 import android.hardware.SensorManager;
27 * Helper class for receiving notifications from the SensorManager when
35 private SensorManager mSensorManager;
56 this(context, SensorManager.SENSOR_DELAY_NORMAL);
64 * {@link android.hardware.SensorManager SensorManager}). Use the default
65 * value of {@link android.hardware.SensorManager#SENSOR_DELAY_NORMAL
69 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DMotionSensorWTime.java25 import android.hardware.SensorManager;
38 private SensorManager mSensorManager = null;
60 mSensorManager = (SensorManager)getContext().getApplicationContext()
65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSimpleModelView.java27 import android.hardware.SensorManager;
40 private SensorManager mSensorManager;
53 // Get an instance of the SensorManager
54 mSensorManager = (SensorManager)getContext().getSystemService(Context.SENSOR_SERVICE);
178 SensorManager.getRotationMatrixFromVector(
/frameworks/base/services/core/java/com/android/server/power/
H A 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,
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerInternal.java19 import android.hardware.SensorManager;
35 Handler handler, SensorManager sensorManager);
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp17 #define LOG_TAG "SensorManager"
23 #include <gui/SensorManager.h>
90 SensorManager& mgr(SensorManager::getInstance());
222 SensorManager& mgr(SensorManager::getInstance());
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java42 import android.hardware.SensorManager;
78 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
112 mSensorManager.registerListener(this, mAcceleration, SensorManager.SENSOR_DELAY_GAME);
133 SensorManager mSensorManager;
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeService.java30 import android.hardware.SensorManager;
76 private SensorManager mSensors;
131 mSensors = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);
588 mSensors.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL, 0, mHandler);
/frameworks/base/services/core/java/com/android/server/display/
H A DAutomaticBrightnessController.java27 import android.hardware.SensorManager;
107 private final SensorManager mSensorManager;
178 SensorManager sensorManager, Spline autoBrightnessSpline, int lightSensorWarmUpTime,
H A DDisplayPowerController.java31 import android.hardware.SensorManager;
129 private final SensorManager mSensorManager;
258 SensorManager sensorManager, DisplayBlanker blanker) {
914 SensorManager.SENSOR_DELAY_NORMAL, mHandler);
/frameworks/base/core/java/android/widget/
H A DScroller.java20 import android.hardware.SensorManager;
197 return SensorManager.GRAVITY_EARTH // g (m/s^2)
H A DOverScroller.java20 import android.hardware.SensorManager;
645 mPhysicalCoeff = SensorManager.GRAVITY_EARTH // g (m/s^2)
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java36 import android.hardware.SensorManager;
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java28 import android.hardware.SensorManager;
392 SensorManager sensorManager = (SensorManager) mContext.getSystemService(

Completed in 701 milliseconds

12