/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...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DeviceMotionAndOrientation.java | 11 import android.hardware.SensorManager; 195 // On some Samsung devices SensorManager.getRotationMatrixFromVector 220 * to the world's coordinate system, as e.g. computed by {@see SensorManager.getRotationMatrix}. 245 * a 3x3 rotation matrix {@see SensorManager.getRotationMatrix}. 300 SensorManager.getRotationMatrixFromVector(deviceRotationMatrix, rotationVector); 314 SensorManager sensorManager = (SensorManager) WeakContext.getSystemService( 316 if (sensorManager != null) { 317 mSensorManagerProxy = new SensorManagerProxyImpl(sensorManager); [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelper.java | 20 import android.hardware.SensorManager; 247 SensorManager sensorManager = getSensorManager(context); 248 Sensor sensor = sensorManager.getDefaultSensor(sensorType); 259 SensorManager sensorManager = getSensorManager(context); 260 List<Sensor> sensors = sensorManager.getSensorList(sensorType); 354 * Get the SensorManager. 356 * @throws IllegalStateException if the SensorManager is not present in the system. 358 private static SensorManager getSensorManager(Context context) [all...] |
/development/ndk/platforms/android-9/samples/native-activity/jni/ |
main.c | 47 ASensorManager* sensorManager; 244 engine.sensorManager = ASensorManager_getInstance(); 245 engine.accelerometerSensor = ASensorManager_getDefaultSensor(engine.sensorManager, 247 engine.sensorEventQueue = ASensorManager_createEventQueue(engine.sensorManager,
|
/external/webrtc/src/modules/audio_processing/test/android/apmtest/jni/ |
main.c | 47 ASensorManager* sensorManager; 244 engine.sensorManager = ASensorManager_getInstance(); 245 engine.accelerometerSensor = ASensorManager_getDefaultSensor(engine.sensorManager, 247 engine.sensorEventQueue = ASensorManager_createEventQueue(engine.sensorManager,
|
/frameworks/base/services/java/com/android/server/power/ |
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, 145 mSensorManager = sensorManager; 149 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
|
DisplayPowerController.java | 31 import android.hardware.SensorManager; 191 private final SensorManager mSensorManager; 354 LightsService lights, TwilightService twilight, SensorManager sensorManager, 367 mSensorManager = sensorManager; [all...] |
PowerManagerService.java | 39 import android.hardware.SensorManager; 440 SensorManager sensorManager = new SystemSensorManager(mContext, mHandler.getLooper()); 451 mContext, mNotifier, mLightsService, twilight, sensorManager, 455 mWirelessChargerDetector = new WirelessChargerDetector(sensorManager, [all...] |
/developers/build/prebuilts/gradle/BatchStepSensor/BatchStepSensorSample/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 24 import android.hardware.SensorManager; 250 SensorManager sensorManager = 251 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE); 253 Sensor sensor = sensorManager.getDefaultSensor(sensorType); 257 final boolean batchMode = sensorManager.registerListener( 258 mListener, sensor, SensorManager.SENSOR_DELAY_NORMAL, maxdelay); 286 SensorManager sensorManager = 287 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE) [all...] |
/developers/samples/android/sensors/BatchStepSensor/BatchStepSensorSample/src/main/java/com/example/android/batchstepsensor/ |
BatchStepSensorFragment.java | 24 import android.hardware.SensorManager; 250 SensorManager sensorManager = 251 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE); 253 Sensor sensor = sensorManager.getDefaultSensor(sensorType); 257 final boolean batchMode = sensorManager.registerListener( 258 mListener, sensor, SensorManager.SENSOR_DELAY_NORMAL, maxdelay); 286 SensorManager sensorManager = 287 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE) [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...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryStatsHelper.java | 29 import android.hardware.SensorManager; 365 SensorManager sensorManager = (SensorManager) mActivity.getSystemService( 518 List<Sensor> sensorList = sensorManager.getSensorList( [all...] |