/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 40 private final SensorManager mSensorManager; 46 public LegacySensorManager(SensorManager sensorManager) { in LegacySensorManager() 49 synchronized (SensorManager.class) { in LegacySensorManager() 76 result |= SensorManager.SENSOR_ACCELEROMETER; in getSensors() 79 result |= SensorManager.SENSOR_MAGNETIC_FIELD; in getSensors() 82 result |= SensorManager.SENSOR_ORIENTATION in getSensors() 83 | SensorManager.SENSOR_ORIENTATION_RAW; in getSensors() 95 result = registerLegacyListener(SensorManager.SENSOR_ACCELEROMETER, in registerListener() 97 result = registerLegacyListener(SensorManager.SENSOR_MAGNETIC_FIELD, in registerListener() 99 result = registerLegacyListener(SensorManager.SENSOR_ORIENTATION_RAW, in registerListener() [all …]
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 42 Mutex SensorManager::sLock; 43 std::map<String16, SensorManager*> SensorManager::sPackageInstances; 45 SensorManager& SensorManager::getInstanceForPackage(const String16& packageName) { in getInstanceForPackage() 49 SensorManager* sensorManager; in getInstanceForPackage() 79 sensorManager = new SensorManager(opPackageName); in getInstanceForPackage() 95 SensorManager::SensorManager(const String16& opPackageName) in SensorManager() function in android::SensorManager 101 SensorManager::~SensorManager() { in ~SensorManager() 105 status_t SensorManager::waitForSensorService(sp<ISensorServer> *server) { in waitForSensorService() 127 void SensorManager::sensorManagerDied() { in sensorManagerDied() 135 status_t SensorManager::assertStateLocked() { in assertStateLocked() [all …]
|
/frameworks/native/services/sensorservice/hidl/ |
D | SensorManager.cpp | 48 SensorManager::SensorManager(JavaVM* vm) in SensorManager() function in android::frameworks::sensorservice::V1_0::implementation::SensorManager 52 SensorManager::~SensorManager() { in ~SensorManager() 66 Return<void> SensorManager::getSensorList(getSensorList_cb _hidl_cb) { in getSensorList() 83 Return<void> SensorManager::getDefaultSensor(SensorType type, getDefaultSensor_cb _hidl_cb) { in getDefaultSensor() 94 void createDirectChannel(::android::SensorManager& manager, size_t size, int type, in createDirectChannel() 112 Return<void> SensorManager::createAshmemDirectChannel( in createAshmemDirectChannel() 126 Return<void> SensorManager::createGrallocDirectChannel( in createGrallocDirectChannel() 137 sp<Looper> SensorManager::getLooper() { in getLooper() 195 ::android::SensorManager& SensorManager::getInternalManager() { in getInternalManager() 198 mInternalManager = &::android::SensorManager::getInstanceForPackage( in getInternalManager() [all …]
|
D | DirectReportChannel.h | 46 DirectReportChannel(::android::SensorManager& manager, int channelId); 54 ::android::SensorManager& mManager;
|
/frameworks/native/libs/sensor/include/sensor/ |
D | SensorManager.h | 53 class SensorManager : public ASensorManager 56 static SensorManager& getInstanceForPackage(const String16& packageName); 57 ~SensorManager(); 75 explicit SensorManager(const String16& opPackageName); 80 static std::map<String16, SensorManager*> sPackageInstances;
|
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/ |
D | SensorManager.h | 44 struct SensorManager final : public ISensorManager { 46 explicit SensorManager(JavaVM* vm); 47 ~SensorManager(); 58 ::android::SensorManager& getInternalManager(); 62 ::android::SensorManager* mInternalManager = nullptr; // does not own
|
/frameworks/base/native/android/ |
D | sensor.cpp | 36 using android::SensorManager; 70 return &SensorManager::getInstanceForPackage(String16(packageName)); in ASensorManager_getInstanceForPackage() 72 return &SensorManager::getInstanceForPackage(String16()); in ASensorManager_getInstanceForPackage() 79 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); in ASensorManager_getSensorList() 88 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor() 94 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx() 114 static_cast<SensorManager*>(manager)->createEventQueue(); in ASensorManager_createEventQueue() 153 int ret = static_cast<SensorManager *>(manager)->createDirectChannel( in ASensorManager_createSharedMemoryDirectChannel() 178 return static_cast<SensorManager *>(manager)->createDirectChannel( in ASensorManager_createHardwareBufferDirectChannel() 185 static_cast<SensorManager *>(manager)->destroyDirectChannel(channelId); in ASensorManager_destroyDirectChannel() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 25 import android.hardware.SensorManager; 36 private SensorManager mSensorManager = null; 54 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 150 return (jlong) &SensorManager::getInstanceForPackage(String16(opPackageNameUtf.c_str())); in nativeCreate() 201 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetSensorAtIndex() 215 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetDynamicSensors() 231 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeIsDataInjectionEnabled() 256 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeCreateDirectChannel() 262 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeDestroyDirectChannel() 268 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeConfigDirectChannel() 274 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeSetOperationParameter() 426 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeInitSensorEventQueue()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 24 import android.hardware.SensorManager; 48 protected final SensorManager mSensorManager; 78 AmbientSensor(String tag, @NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientSensor() 142 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() 249 AmbientBrightnessSensor(@NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientBrightnessSensor() 329 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor()
|
D | DisplayWhiteBalanceFactory.java | 21 import android.hardware.SensorManager; 60 SensorManager sensorManager, Resources resources) { in create() 112 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() 123 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor()
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | Balls.java | 44 import android.hardware.SensorManager; 54 private SensorManager mSensorManager; 77 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); in onCreate() 89 SensorManager.SENSOR_DELAY_FASTEST); in onResume()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 23 import android.hardware.SensorManager; 35 private SensorManager mSensorManager; 56 this(context, SensorManager.SENSOR_DELAY_NORMAL); in OrientationEventListener() 69 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in OrientationEventListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | SensorModule.java | 20 import android.hardware.SensorManager; 34 static ThresholdSensor providePrimaryProxSensor(SensorManager sensorManager, in providePrimaryProxSensor() 38 .setSensorDelay(SensorManager.SENSOR_DELAY_NORMAL) in providePrimaryProxSensor()
|
D | AsyncSensorManager.java | 25 import android.hardware.SensorManager; 52 public class AsyncSensorManager extends SensorManager 57 private final SensorManager mInner; 63 public AsyncSensorManager(SensorManager sensorManager, ThreadFactory threadFactory, in AsyncSensorManager()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 25 import android.hardware.SensorManager; 38 private SensorManager mSensorManager = null; 60 mSensorManager = (SensorManager)getContext().getApplicationContext() in onPrepare() 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WakeGestureListener.java | 22 import android.hardware.SensorManager; 34 private final SensorManager mSensorManager; 43 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in WakeGestureListener()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SensorNotificationService.java | 26 import android.hardware.SensorManager; 54 private SensorManager mSensorManager; 72 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onBootPhase() 78 SensorManager.SENSOR_DELAY_FASTEST); in onBootPhase()
|
D | GestureLauncherService.java | 30 import android.hardware.SensorManager; 275 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() 290 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture() 326 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLiftTrigger() 339 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLiftTrigger() 703 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in onTrigger()
|
/frameworks/base/core/tests/coretests/src/android/hardware/input/ |
D | InputDeviceSensorManagerTest.java | 37 import android.hardware.SensorManager; 181 SensorManager sensorManager = device.getSensorManager(); in getInputDeviceSensors_withExpectedType() 201 SensorManager sensorManager = device.getSensorManager(); in getInputDeviceSensors_withUnexpectedType() 218 SensorManager sensorManager = device.getSensorManager(); in testInputDeviceSensorListener() 230 SensorManager.SENSOR_DELAY_NORMAL)); in testInputDeviceSensorListener() 237 SensorManager.SENSOR_STATUS_ACCURACY_HIGH, /* timestamp */ 0x1234abcd, values); in testInputDeviceSensorListener()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | SensorPowerCalculatorTest.java | 25 import android.hardware.SensorManager; 58 SensorManager sensorManager = mock(SensorManager.class); in testTimerBasedModel()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | SensorUtils.java | 20 import android.hardware.SensorManager; 34 public static Sensor findSensor(SensorManager sensorManager, String sensorType, in findSensor()
|
/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 63 void testInvalidSharedMem_NoCrash(SensorManager &mgr) { in testInvalidSharedMem_NoCrash() 95 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | LoggableMonitor.java | 25 import android.hardware.SensorManager; 46 @NonNull private final SensorManager mSensorManager; 136 mSensorManager = context.getSystemService(SensorManager.class); in LoggableMonitor() 361 protected Sensor getAmbientLightSensor(@NonNull SensorManager sensorManager) { in getAmbientLightSensor() 376 SensorManager.SENSOR_DELAY_NORMAL); in setLightSensorLoggingEnabled()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | 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, in WirelessChargerDetector()
|