/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 explicit 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 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/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/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 24 import android.hardware.SensorManager; 47 protected final SensorManager mSensorManager; 77 AmbientSensor(String tag, @NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientSensor() 141 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() 248 AmbientBrightnessSensor(@NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientBrightnessSensor() 328 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor()
|
D | DisplayWhiteBalanceFactory.java | 21 import android.hardware.SensorManager; 58 SensorManager sensorManager, Resources resources) { in create() 108 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() 136 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/services/core/java/com/android/server/ |
D | GestureLauncherService.java | 30 import android.hardware.SensorManager; 214 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() 229 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture() 265 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLiftTrigger() 278 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLiftTrigger() 546 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/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()
|
D | DisplayFoldController.java | 24 import android.hardware.SensorManager; 162 final SensorManager sensorManager = context.getSystemService(SensorManager.class); in createWithProxSensor() 179 }, proxSensor, SensorManager.SENSOR_DELAY_NORMAL); in createWithProxSensor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 26 import android.hardware.SensorManager; 50 private final SensorManager mSensorManager; 72 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() 95 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() 205 SensorManager.SENSOR_DELAY_NORMAL, mHandler); in setLightSensorEnabled()
|
D | DozeFactory.java | 23 import android.hardware.SensorManager; 49 SensorManager sensorManager = Dependency.get(AsyncSensorManager.class); in assembleMachine() 87 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, in createDozeScreenBrightness() 95 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager, in createDozeTriggers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AsyncSensorManager.java | 25 import android.hardware.SensorManager; 52 public class AsyncSensorManager extends SensorManager 57 private final SensorManager mInner; 65 this(context.getSystemService(SensorManager.class), pluginManager); in AsyncSensorManager() 69 AsyncSensorManager(SensorManager sensorManager, PluginManager pluginManager) { in AsyncSensorManager()
|
D | ProximitySensor.java | 24 import android.hardware.SensorManager; 93 public static Sensor findCustomProxSensor(Context context, SensorManager sensorManager) { in findCustomProxSensor() 144 mSensorEventListener, mSensor, SensorManager.SENSOR_DELAY_GAME); in register()
|
/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()
|
/frameworks/native/services/sensorservice/tests/ |
D | sensorservicetest.cpp | 65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
|