/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...] |
/device/google/wahoo/folio_daemon/ |
main.cpp | 42 ASensorManager *sensorManager = nullptr; 87 sensorManager = ASensorManager_getInstanceForPackage(nullptr); 96 hallSensor = ASensorManager_getDefaultSensor(sensorManager, 118 eventQueue = ASensorManager_createEventQueue(sensorManager, looper, 0, NULL, 170 if (sensorManager != nullptr && eventQueue != nullptr) { 171 ASensorManager_destroyEventQueue(sensorManager, eventQueue);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/ |
StartActivity.java | 27 import android.hardware.SensorManager; 61 SensorManager sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeFactory.java | 23 import android.hardware.SensorManager; 44 SensorManager sensorManager = Dependency.get(AsyncSensorManager.class); 64 createDozeTriggers(context, sensorManager, host, alarmManager, config, params, 68 createDozeScreenBrightness(context, wrappedService, sensorManager, host, handler), 75 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, 77 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, 79 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler, 83 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager [all...] |
/cts/tests/sensor/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 | 21 import android.hardware.SensorManager; 67 SensorManager sensorManager = (SensorManager) 69 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
|
/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/sensor/ |
SensorManager.cpp | 19 #include <sensor/SensorManager.h> 41 Mutex SensorManager::sLock; 42 std::map<String16, SensorManager*> SensorManager::sPackageInstances; 44 SensorManager& SensorManager::getInstanceForPackage(const String16& packageName) { 48 SensorManager* sensorManager; 52 sensorManager = iterator->second; 78 sensorManager = new SensorManager(opPackageName) [all...] |
/packages/apps/Settings/src/com/android/settings/gestures/ |
DoubleTwistPreferenceController.java | 23 import android.hardware.SensorManager; 60 final SensorManager sensorManager = 61 (SensorManager) context.getSystemService(Context.SENSOR_SERVICE); 62 for (Sensor s : sensorManager.getSensorList(Sensor.TYPE_ALL)) {
|
/frameworks/base/services/core/java/com/android/server/ |
GestureLauncherService.java | 30 import android.hardware.SensorManager; 213 SensorManager sensorManager = (SensorManager) mContext.getSystemService( 215 sensorManager.unregisterListener(mGestureListener); 228 SensorManager sensorManager = (SensorManager) mContext.getSystemService( 236 mCameraLaunchSensor = sensorManager.getDefaultSensor( 245 mCameraLaunchRegistered = sensorManager.registerListener(mGestureListener [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; 139 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 140 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); 327 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 328 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; 139 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 140 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); 327 SensorManager sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 328 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);
|
/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...] |
/cts/tests/sensor/src/android/hardware/cts/ |
SensorTest.java | 27 import android.hardware.SensorManager; 61 private SensorManager mSensorManager; 75 mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE); 100 // SensorManager will check listener and status, so just unregister listener 291 SensorManager.SENSOR_DELAY_NORMAL); 302 SensorManager.SENSOR_DELAY_NORMAL); 306 SensorManager.SENSOR_DELAY_NORMAL); 352 SensorManager.SENSOR_DELAY_FASTEST, 369 * Explicit testing the SensorManager.registerListener(SensorEventListener, Sensor, int, int). 388 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_ACCELEROMETER_UNCALIBRATED, SensorManager.SENSOR_DELAY_FASTEST); 214 runSensorTest(Sensor.TYPE_MAGNETIC_FIELD, 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; 734 SensorManager sensorManager = new SystemSensorManager(mContext, mHandler.getLooper()); 743 mWirelessChargerDetector = new WirelessChargerDetector(sensorManager, 753 mDisplayPowerCallbacks, mHandler, sensorManager); [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.4_r1-robolectric-1.jar | |