Home
last modified time | relevance | path

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

123

/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 …]
DSensorDirectChannel.java193 SensorDirectChannel(SensorManager manager, int id, int type, long size) { in SensorDirectChannel()
236 private final SensorManager mManager;
/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();
74 SensorManager(const String16& opPackageName);
79 static std::map<String16, SensorManager*> sPackageInstances;
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/
DSensorManager.h44 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/
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()
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/
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()
425 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeInitSensorEventQueue()
/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/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java23 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()
DDozeFactory.java23 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()
DDozeSensors.java28 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/
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/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/
DGestureLauncherService.java30 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()
DSensorNotificationService.java28 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/
DWakeGestureListener.java22 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/
DAsyncSensorManager.java24 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/
Dcom_android_server_SystemServer.cpp46 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/
DWirelessChargerDetector.java22 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/
Dsensorservicetest.cpp65 SensorManager& mgr = SensorManager::getInstanceForPackage(String16("Sensor Service Test")); in main()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DAsyncSensorManagerTest.java26 import android.hardware.SensorManager;
90 public TestableAsyncSensorManager(SensorManager sensorManager) { in TestableAsyncSensorManager()
/frameworks/base/core/java/com/android/internal/os/
DSensorPowerCalculator.java19 import android.hardware.SensorManager;
31 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager, in SensorPowerCalculator()

123