HomeSort by relevance Sort by last modified time
    Searched defs:sensorManager (Results 1 - 25 of 25) sorted by null

  /external/robolectric/v1/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...]
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
AppRTCProximitySensor.java 20 import android.hardware.SensorManager;
42 private final SensorManager sensorManager;
55 sensorManager = ((SensorManager) context.getSystemService(
70 sensorManager.registerListener(
71 this, proximitySensor, SensorManager.SENSOR_DELAY_NORMAL);
82 sensorManager.unregisterListener(this, proximitySensor);
95 if (accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE) {
135 proximitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY)
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
TestSensorEnvironment.java 21 import android.hardware.SensorManager;
285 if (mSamplingPeriodUs == SensorManager.SENSOR_DELAY_FASTEST) {
304 && mSamplingPeriodUs != SensorManager.SENSOR_DELAY_FASTEST;
310 * The flags SensorManager.SENSOR_DELAY_[GAME|UI|NORMAL] are not supported since the CDD does
383 SensorManager sensorManager =
384 (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
385 if (sensorManager == null) {
389 Sensor sensor = sensorManager.getDefaultSensor(sensorType);
445 * {@link SensorManager#SENSOR_DELAY_GAME}, {@link SensorManager#SENSOR_DELAY_UI}, o
    [all...]
  /cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
SensorDeviceInfo.java 20 import android.hardware.SensorManager;
58 SensorManager sensorManager = (SensorManager)
60 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_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/webrtc/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/native/libs/gui/
SensorManager.cpp 32 #include <gui/SensorManager.h>
39 android::Mutex android::SensorManager::sLock;
40 std::map<String16, SensorManager*> android::SensorManager::sPackageInstances;
42 SensorManager& SensorManager::getInstanceForPackage(const String16& packageName) {
44 SensorManager* sensorManager;
45 std::map<String16, SensorManager*>::iterator iterator =
49 sensorManager = iterator->second
    [all...]
  /developers/build/prebuilts/gradle/RuntimePermissionsWear/Wearable/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestWearService.java 23 import android.hardware.SensorManager;
119 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 23 import android.hardware.SensorManager;
148 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
149 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
336 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
337 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /developers/samples/android/wearable/wear/RuntimePermissionsWear/Wearable/src/main/java/com/example/android/wearable/runtimepermissions/
IncomingRequestWearService.java 23 import android.hardware.SensorManager;
119 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 23 import android.hardware.SensorManager;
148 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
149 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
336 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
337 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/
IncomingRequestWearService.java 23 import android.hardware.SensorManager;
119 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
120 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
MainWearActivity.java 23 import android.hardware.SensorManager;
148 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
149 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
336 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
337 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL);
  /packages/apps/Settings/src/com/android/settings/gestures/
GestureSettings.java 22 import android.hardware.SensorManager;
176 SensorManager sensorManager =
177 (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
178 for (Sensor s : sensorManager.getSensorList(Sensor.TYPE_ALL)) {
  /developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java 24 import android.hardware.SensorManager;
254 SensorManager sensorManager =
255 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE);
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType);
261 final boolean batchMode = sensorManager.registerListener(
262 mListener, sensor, SensorManager.SENSOR_DELAY_NORMAL, maxdelay);
290 SensorManager sensorManager =
291 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE)
    [all...]
  /developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java 24 import android.hardware.SensorManager;
254 SensorManager sensorManager =
255 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE);
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType);
261 final boolean batchMode = sensorManager.registerListener(
262 mListener, sensor, SensorManager.SENSOR_DELAY_NORMAL, maxdelay);
290 SensorManager sensorManager =
291 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE)
    [all...]
  /development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
BatchStepSensorFragment.java 24 import android.hardware.SensorManager;
254 SensorManager sensorManager =
255 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE);
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType);
261 final boolean batchMode = sensorManager.registerListener(
262 mListener, sensor, SensorManager.SENSOR_DELAY_NORMAL, maxdelay);
290 SensorManager sensorManager =
291 (SensorManager) getActivity().getSystemService(Activity.SENSOR_SERVICE)
    [all...]
  /frameworks/base/services/core/java/com/android/server/
GestureLauncherService.java 30 import android.hardware.SensorManager;
174 SensorManager sensorManager = (SensorManager) mContext.getSystemService(
176 sensorManager.unregisterListener(mGestureListener);
189 SensorManager sensorManager = (SensorManager) mContext.getSystemService(
197 mCameraLaunchSensor = sensorManager.getDefaultSensor(
206 mRegistered = sensorManager.registerListener(mGestureListener
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java 27 import android.hardware.SensorManager;
61 private SensorManager mSensorManager;
74 mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
92 // SensorManager will check listener and status, so just unregister listener
283 SensorManager.SENSOR_DELAY_NORMAL);
294 SensorManager.SENSOR_DELAY_NORMAL);
298 SensorManager.SENSOR_DELAY_NORMAL);
348 SensorManager.SENSOR_DELAY_FASTEST,
365 * Explicit testing the SensorManager.registerListener(SensorEventListener, Sensor, int, int).
384 SensorManager.SENSOR_DELAY_FASTEST
    [all...]
SingleSensorTests.java 21 import android.hardware.SensorManager;
120 SensorManager sensorManager =
121 (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE);
122 assertNotNull("SensorManager not present in the system.", sensorManager);
124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey());
142 runSensorTest(Sensor.TYPE_ACCELEROMETER, SensorManager.SENSOR_DELAY_FASTEST);
178 runSensorTest(Sensor.TYPE_MAGNETIC_FIELD, SensorManager.SENSOR_DELAY_FASTEST);
215 runSensorTest(Sensor.TYPE_ORIENTATION, SensorManager.SENSOR_DELAY_FASTEST)
    [all...]
  /packages/apps/DevCamera/src/com/android/devcamera/
DevCameraActivity.java 24 import android.hardware.SensorManager;
549 SensorManager sensorManager = (SensorManager) getSystemService(this.SENSOR_SERVICE);
550 mGyroOperations = new GyroOperations(sensorManager);
  /frameworks/base/services/core/java/com/android/server/power/
PowerManagerService.java 30 import android.hardware.SensorManager;
586 SensorManager sensorManager = new SystemSensorManager(mContext, mHandler.getLooper());
595 mWirelessChargerDetector = new WirelessChargerDetector(sensorManager,
605 mDisplayPowerCallbacks, mHandler, sensorManager);
    [all...]
  /external/robolectric/v3/runtime/
android-all-4.4_r1-robolectric-1.jar 
android-all-5.0.0_r2-robolectric-1.jar 
android-all-5.1.1_r9-robolectric-1.jar 

Completed in 878 milliseconds