Home
last modified time | relevance | path

Searched refs:getDefaultSensor (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/av/media/libheadtracking/
DSensorPoseProvider-example.cpp63 const Sensor* headSensor = sensorManager.getDefaultSensor(SENSOR_TYPE_GAME_ROTATION_VECTOR); in main()
64 const Sensor* screenSensor = sensorManager.getDefaultSensor(SENSOR_TYPE_ROTATION_VECTOR); in main()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java64 .getDefaultSensor(Sensor.TYPE_PROXIMITY, true); in FakeSensorManager()
96 public Sensor getDefaultSensor(int type) { in getDefaultSensor() method in FakeSensorManager
97 Sensor s = super.getDefaultSensor(type); in getDefaultSensor()
103 return getDefaultSensor(type, false /* wakeup */); in getDefaultSensor()
/frameworks/hardware/interfaces/sensorservice/aidl/aidl_api/android.frameworks.sensorservice/1/android/frameworks/sensorservice/
DISensorManager.aidl25 android.hardware.sensors.SensorInfo getDefaultSensor(in android.hardware.sensors.SensorType type); in getDefaultSensor() method
/frameworks/hardware/interfaces/sensorservice/aidl/aidl_api/android.frameworks.sensorservice/current/android/frameworks/sensorservice/
DISensorManager.aidl25 android.hardware.sensors.SensorInfo getDefaultSensor(in android.hardware.sensors.SensorType type); in getDefaultSensor() method
/frameworks/hardware/interfaces/sensorservice/aidl/android/frameworks/sensorservice/
DISensorManager.aidl101 SensorInfo getDefaultSensor(in SensorType type); in getDefaultSensor() method
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorManager.h38 ASensorRef getDefaultSensor(int type);
DASensorManager.cpp123 ASensorRef ASensorManager::getDefaultSensor(int type) { in getDefaultSensor() function in ASensorManager
130 ndk::ScopedAStatus ret = mManager->getDefaultSensor(static_cast<SensorType>(type), &sensor); in getDefaultSensor()
238 return manager->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
/frameworks/native/services/sensorservice/hidl/
DSensorManager.cpp86 Return<void> SensorManager::getDefaultSensor(SensorType type, getDefaultSensor_cb _hidl_cb) { in getDefaultSensor() function in android::frameworks::sensorservice::V1_0::implementation::SensorManager
87 ::android::Sensor const* sensor = getInternalManager().getDefaultSensor(static_cast<int>(type)); in getDefaultSensor()
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/
DSensorManager.h51 Return<void> getDefaultSensor(SensorType type, getDefaultSensor_cb _hidl_cb) override;
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java81 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_NoCallbacks()
101 when(mSensorManagerMock.getDefaultSensor(Sensor.TYPE_LIGHT)).thenReturn(mLightSensor); in testAmbientBrightnessSensorCallback_CallbacksCalled()
/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerProximityStateControllerTest.java180 when(mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY)).thenReturn( in isProximitySensorAvailableReturnsTrueWhenNotAvailableAndHasDefault()
193 when(mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY)).thenReturn( in isProximitySensorAvailableReturnsFalseWhenNotAvailableHasDefaultNonDefaultDisplay()
205 when(mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY)).thenReturn( in isProximitySensorAvailableReturnsTrueWhenNoSensorConfigured()
/frameworks/native/services/sensorservice/aidl/include/sensorserviceaidl/
DSensorManagerAidl.h49 ::ndk::ScopedAStatus getDefaultSensor(
/frameworks/base/services/core/java/com/android/server/display/utils/
DSensorUtils.java69 return sensorManager.getDefaultSensor(fallbackType); in findSensor()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/hinge/
DHingeSensorAngleProvider.kt47 val sensor = sensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE) in start()
/frameworks/native/libs/sensor/include/sensor/
DSensorManager.h65 Sensor const* getDefaultSensor(int type);
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
DBalls.java88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in onResume()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/interaction/
DHingeController.kt71 private var hingeAngleSensor: Sensor? = sensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE)
/frameworks/base/core/java/android/view/
DOrientationEventListener.java71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
/frameworks/native/services/sensorservice/aidl/
DSensorManager.cpp163 ndk::ScopedAStatus SensorManagerAidl::getDefaultSensor(SensorType in_type, in getDefaultSensor() function in android::frameworks::sensorservice::implementation::SensorManagerAidl
166 getInternalManager().getDefaultSensor(static_cast<int>(in_type)); in getDefaultSensor()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp117 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/hardware/interfaces/sensorservice/1.0/
DREADME29 manager->getDefaultSensor(SensorType::GYROSCOPE,
110 manager->getDefaultSensor(SensorType::GYROSCOPE,
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java114 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener()
166 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener()

123