/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 …]
|
D | SensorDirectChannel.java | 193 SensorDirectChannel(SensorManager manager, int id, int type, long size) { in SensorDirectChannel() 236 private final SensorManager mManager;
|
/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(); 74 SensorManager(const String16& opPackageName); 79 static std::map<String16, SensorManager*> sPackageInstances;
|
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/ |
D | SensorManager.h | 44 struct SensorManager final : public ISensorManager { 46 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() 152 int ret = static_cast<SensorManager *>(manager)->createDirectChannel( in ASensorManager_createSharedMemoryDirectChannel() 177 return static_cast<SensorManager *>(manager)->createDirectChannel( in ASensorManager_createHardwareBufferDirectChannel() 184 static_cast<SensorManager *>(manager)->destroyDirectChannel(channelId); in ASensorManager_destroyDirectChannel() [all …]
|
/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() 425 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeInitSensorEventQueue()
|
/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/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 23 import android.hardware.SensorManager; 37 private final SensorManager mSensorManager; 48 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() 65 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() 161 SensorManager.SENSOR_DELAY_NORMAL, mHandler); in setLightSensorEnabled()
|
D | DozeFactory.java | 23 import android.hardware.SensorManager; 46 SensorManager sensorManager = Dependency.get(AsyncSensorManager.class); in assembleMachine() 79 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, in createDozeScreenBrightness() 87 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager, in createDozeTriggers()
|
D | DozeSensors.java | 28 import android.hardware.SensorManager; 58 private final SensorManager mSensorManager; 72 public DozeSensors(Context context, AlarmManager alarmManager, SensorManager sensorManager, in DozeSensors() 123 static Sensor findSensorWithType(SensorManager sensorManager, String type) { in findSensorWithType() 248 SensorManager.SENSOR_DELAY_NORMAL, mHandler); in setRegistered()
|
/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/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/ |
D | GestureLauncherService.java | 30 import android.hardware.SensorManager; 213 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() 228 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture() 264 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLiftTrigger() 277 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLiftTrigger() 530 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in onTrigger()
|
D | SensorNotificationService.java | 28 import android.hardware.SensorManager; 56 private SensorManager mSensorManager; 74 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); in onBootPhase() 80 SensorManager.SENSOR_DELAY_FASTEST); in onBootPhase()
|
/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/packages/SystemUI/src/com/android/systemui/util/ |
D | AsyncSensorManager.java | 24 import android.hardware.SensorManager; 43 public class AsyncSensorManager extends SensorManager { 47 private final SensorManager mInner; 52 public AsyncSensorManager(SensorManager inner) { in AsyncSensorManager()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_SystemServer.cpp | 46 using ::android::frameworks::sensorservice::V1_0::implementation::SensorManager; in android_server_SystemServer_startHidlServices() 56 sp<ISensorManager> sensorService = new SensorManager(vm); in android_server_SystemServer_startHidlServices()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 22 import android.hardware.SensorManager; 93 private static final double MIN_GRAVITY = SensorManager.GRAVITY_EARTH - 1.0f; 94 private static final double MAX_GRAVITY = SensorManager.GRAVITY_EARTH + 1.0f; 98 private final SensorManager mSensorManager; 140 public WirelessChargerDetector(SensorManager sensorManager, in WirelessChargerDetector()
|
/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | AsyncSensorManagerTest.java | 26 import android.hardware.SensorManager; 90 public TestableAsyncSensorManager(SensorManager sensorManager) { in TestableAsyncSensorManager()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 19 import android.hardware.SensorManager; 31 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager, in SensorPowerCalculator()
|