Home
last modified time | relevance | path

Searched refs:SensorManager (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java40 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/
DSensorManager.cpp42 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/
DSensorManager.cpp48 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 …]
DDirectReportChannel.h46 DirectReportChannel(::android::SensorManager& manager, int channelId);
54 ::android::SensorManager& mManager;
/frameworks/native/libs/sensor/include/sensor/
DSensorManager.h53 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/
DSensorManager.h44 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/
Dsensor.cpp36 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/
DMotionSensor.java25 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/
Dandroid_hardware_SensorManager.cpp150 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/
DAmbientSensor.java24 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()
DDisplayWhiteBalanceFactory.java21 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/
DBalls.java44 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/
DOrientationEventListener.java23 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/
DSensorModule.java20 import android.hardware.SensorManager;
34 static ThresholdSensor providePrimaryProxSensor(SensorManager sensorManager, in providePrimaryProxSensor()
38 .setSensorDelay(SensorManager.SENSOR_DELAY_NORMAL) in providePrimaryProxSensor()
DAsyncSensorManager.java25 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/
DMotionSensorWTime.java25 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/
DWakeGestureListener.java22 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/
DSensorNotificationService.java26 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()
DGestureLauncherService.java30 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/
DInputDeviceSensorManagerTest.java37 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/
DSensorPowerCalculatorTest.java25 import android.hardware.SensorManager;
58 SensorManager sensorManager = mock(SensorManager.class); in testTimerBasedModel()
/frameworks/base/services/core/java/com/android/server/display/utils/
DSensorUtils.java20 import android.hardware.SensorManager;
34 public static Sensor findSensor(SensorManager sensorManager, String sensorType, in findSensor()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp63 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/
DLoggableMonitor.java25 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/
DWirelessChargerDetector.java22 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()

1234