/external/robolectric/src/main/java/android/hardware/ |
TestSensorManager.java | 4 public class TestSensorManager extends SensorManager {
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorEventOrderingTests.java | 23 import android.hardware.SensorManager; 60 { Sensor.TYPE_ACCELEROMETER, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 61 { Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 62 { Sensor.TYPE_MAGNETIC_FIELD, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 63 { Sensor.TYPE_PRESSURE, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 64 { Sensor.TYPE_GRAVITY, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 65 { Sensor.TYPE_LINEAR_ACCELERATION, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 66 { Sensor.TYPE_ROTATION_VECTOR, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 67 { Sensor.TYPE_RELATIVE_HUMIDITY, SensorManager.SENSOR_DELAY_FASTEST, 0 }, 68 { Sensor.TYPE_AMBIENT_TEMPERATURE, SensorManager.SENSOR_DELAY_FASTEST, 0 } [all...] |
SensorMeasurementTests.java | 23 import android.hardware.SensorManager; 69 SensorManager.SENSOR_DELAY_FASTEST, 70 SensorManager.STANDARD_GRAVITY, 72 { Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0.0f, 2.5f /* dps */ }, 125 { Sensor.TYPE_ACCELEROMETER, SensorManager.SENSOR_DELAY_FASTEST, 0, 1f /* m/s^2 */ }, 126 { Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0, 0.5f /* dps */ },
|
SensorIntegrationTests.java | 24 import android.hardware.SensorManager; 103 SensorManager.SENSOR_DELAY_NORMAL, 218 SensorManager.SENSOR_DELAY_NORMAL, 225 SensorManager.SENSOR_DELAY_UI, 244 rate = SensorManager.SENSOR_DELAY_FASTEST; 247 rate = SensorManager.SENSOR_DELAY_GAME; 250 rate = SensorManager.SENSOR_DELAY_NORMAL; 253 rate = SensorManager.SENSOR_DELAY_UI;
|
SensorTest.java | 31 import android.hardware.SensorManager; 39 private SensorManager mSensorManager; 47 mSensorManager = (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE); 160 SensorManager.SENSOR_DELAY_NORMAL); 170 SensorManager.SENSOR_DELAY_NORMAL); 173 SensorManager.SENSOR_DELAY_NORMAL); 200 SensorManager.SENSOR_DELAY_NORMAL, 10000000); 236 SensorManager.SENSOR_DELAY_NORMAL, 15000000, 274 SensorManager.SENSOR_DELAY_FASTEST); 297 final SensorManager mSensorManager [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
OrientationListenerTest.java | 21 import android.hardware.SensorManager; 40 new MockOrientationListener(mContext, SensorManager.SENSOR_DELAY_UI); 52 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ACCELEROMETER, 53 SensorManager.SENSOR_STATUS_ACCURACY_HIGH); 55 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ORIENTATION, 56 SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM); 62 float[] mockData = new float[SensorManager.RAW_DATA_Z + 1]; 63 mockData[SensorManager.RAW_DATA_X] = 3.0f; 64 mockData[SensorManager.RAW_DATA_Y] = 4.0f; 65 mockData[SensorManager.RAW_DATA_Z] = 5.0f * 2.0f + 0.1f [all...] |
OrientationEventListenerTest.java | 22 import android.hardware.SensorManager; 33 new MockOrientationEventListener(mContext, SensorManager.SENSOR_DELAY_UI); 43 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerMeasurementTestActivity.java | 20 import android.hardware.SensorManager; 33 0, 0, SensorManager.STANDARD_GRAVITY); 37 0, 0, -SensorManager.STANDARD_GRAVITY); 41 -SensorManager.STANDARD_GRAVITY, 0, 0); 45 SensorManager.STANDARD_GRAVITY, 0, 0); 49 0, -SensorManager.STANDARD_GRAVITY, 0); 53 0, SensorManager.STANDARD_GRAVITY, 0); 80 SensorManager.SENSOR_DELAY_FASTEST,
|
MagneticFieldMeasurementTestActivity.java | 22 import android.hardware.SensorManager; 49 SensorManager.SENSOR_DELAY_NORMAL, 91 (SensorManager.MAGNETIC_FIELD_EARTH_MAX + SensorManager.MAGNETIC_FIELD_EARTH_MIN) / 2; 93 expectedMagneticFieldEarth - SensorManager.MAGNETIC_FIELD_EARTH_MIN; 97 SensorManager.SENSOR_DELAY_FASTEST, 131 SensorManager.SENSOR_DELAY_FASTEST,
|
AccelerometerTestActivity.java | 25 import android.hardware.SensorManager; 37 private SensorManager mSensorManager; 45 mSensorManager = (SensorManager) getApplicationContext().getSystemService( 69 Sensor.TYPE_ACCELEROMETER).get(0), SensorManager.SENSOR_DELAY_UI);
|
GyroscopeMeasurementTestActivity.java | 20 import android.hardware.SensorManager; 102 SensorManager.SENSOR_DELAY_FASTEST,
|
/frameworks/native/libs/gui/ |
SensorManager.cpp | 32 #include <gui/SensorManager.h> 39 ANDROID_SINGLETON_STATIC_INSTANCE(SensorManager) 41 SensorManager::SensorManager() 48 SensorManager::~SensorManager() 53 void SensorManager::sensorManagerDied() 62 status_t SensorManager::assertStateLocked() const { 79 SensorManager& mSensorManger; 85 DeathObserver(SensorManager& mgr) : mSensorManger(mgr) { [all...] |
/frameworks/base/core/java/android/hardware/ |
LegacySensorManager.java | 38 private final SensorManager mSensorManager; 44 public LegacySensorManager(SensorManager sensorManager) { 45 mSensorManager = 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 [all...] |
/frameworks/native/include/gui/ |
SensorManager.h | 46 class SensorManager : 48 public Singleton<SensorManager> 51 SensorManager(); 52 ~SensorManager();
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SensorManagerTest.java | 7 import android.hardware.SensorManager; 21 private SensorManager sensorManager; 26 sensorManager = (SensorManager) Robolectric.application.getSystemService(Context.SENSOR_SERVICE); 27 shadow = shadowOf(sensorManager); 32 sensorManager = null; 45 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); 46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL) [all...] |
/packages/apps/Dialer/src/com/android/dialer/ |
ProximitySensorManager.java | 23 import android.hardware.SensorManager; 72 private final SensorManager mSensorManager; 89 public ProximitySensorEventListener(SensorManager sensorManager, Sensor proximitySensor, 91 mSensorManager = sensorManager; 158 mSensorManager.registerListener(this, mProximitySensor, SensorManager.SENSOR_DELAY_UI); 186 SensorManager sensorManager = 187 (SensorManager) context.getSystemService(Context.SENSOR_SERVICE); 188 Sensor proximitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY) [all...] |
/sdk/testapps/testSensors/src/com/android/tests/testsensors/ |
TestSensorsActivity.java | 26 import android.hardware.SensorManager; 157 SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE); 158 sm.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); 166 SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE); 211 SensorManager sm = (SensorManager) getSystemService(SENSOR_SERVICE);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
MotionSensor.java | 25 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/ |
Balls.java | 44 import android.hardware.SensorManager; 54 private SensorManager mSensorManager; 77 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 89 SensorManager.SENSOR_DELAY_FASTEST);
|
/frameworks/base/native/android/ |
sensor.cpp | 28 #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); 66 static_cast<SensorManager*>(manager)->createEventQueue();
|
/hardware/ti/omap4xxx/camera/ |
SensorListener.cpp | 135 SensorManager& mgr(SensorManager::getInstance()); 198 SensorManager& mgr(SensorManager::getInstance()); 217 SensorManager& mgr(SensorManager::getInstance());
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
TriggerSensors.java | 25 import android.hardware.SensorManager; 33 <p>This demonstrates the {@link android.hardware.SensorManager android.hardware.SensorManager 69 private SensorManager mSensorManager; 99 mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
|
Sensors.java | 26 import android.hardware.SensorManager; 37 <p>This demonstrates the {@link android.hardware.SensorManager android.hardware.SensorManager} class. 51 private SensorManager mSensorManager; 92 mScale[0] = - (h * 0.5f * (1.0f / (SensorManager.STANDARD_GRAVITY * 2))); 93 mScale[1] = - (h * 0.5f * (1.0f / (SensorManager.MAGNETIC_FIELD_EARTH_MAX))); 119 final float oneG = SensorManager.STANDARD_GRAVITY * mScale[0]; 217 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 227 SensorManager.SENSOR_DELAY_FASTEST); 230 SensorManager.SENSOR_DELAY_FASTEST) [all...] |
/frameworks/native/services/sensorservice/tests/ |
sensorservicetest.cpp | 19 #include <gui/SensorManager.h> 64 SensorManager& mgr(SensorManager::getInstance());
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Compass.java | 24 import android.hardware.SensorManager; 33 private SensorManager mSensorManager; 55 mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); 68 SensorManager.SENSOR_DELAY_GAME);
|