Home
last modified time | relevance | path

Searched refs:sensorHandle (Results 1 – 20 of 20) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorsWrapper.h64 virtual Return<Result> activate(int32_t sensorHandle, bool enabled) = 0;
66 virtual Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
69 virtual Return<Result> flush(int32_t sensorHandle) = 0;
78 virtual Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle,
116 Return<Result> activate(int32_t sensorHandle, bool enabled) override { in activate() argument
117 return mSensors->activate(sensorHandle, enabled); in activate()
120 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
122 return mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
125 Return<Result> flush(int32_t sensorHandle) override { in flush() argument
126 return mSensors->flush(sensorHandle); in flush()
[all …]
DSensorDevice.cpp135 mActivationCount.add(list[i].sensorHandle, model); in initializeSensorList()
137 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in initializeSensorList()
511 auto it = mConnectedDynamicSensors.find(info.sensorHandle); in onDynamicSensorsConnected()
874 int32_t SensorDevice::configureDirectChannel(int32_t sensorHandle, in configureDirectChannel() argument
898 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, in configureDirectChannel()
986 dst->dynamic_sensor_meta.handle = dyn.sensorHandle; in convertToSensorEvent()
988 auto it = mConnectedDynamicSensors.find(dyn.sensorHandle); in convertToSensorEvent()
DSensorDevice.h103 int32_t configureDirectChannel(int32_t sensorHandle,
/frameworks/hardware/interfaces/sensorservice/1.0/
DREADME28 int32_t sensorHandle;
30 [&sensorHandle] (const auto &info) {
31 sensorHandle = info.sensorHandle;
47 chan->configure(sensorHandle, RateLevel::FAST, [&](auto token, auto result) {
55 chan->configure(sensorHandle, RateLevel::STOP, [&](auto token, auto result) {
109 int32_t sensorHandle;
111 [&sensorHandle] (const auto &info) {
112 sensorHandle = info.sensorHandle;
124 if (q->enableSensor(sensorHandle,
131 if (q->disableSensor(sensorHandle) != Result::OK) {
DIEventQueue.hal29 * @param sensorHandle the sensor to enable. Must be a sensor acquired from
39 enableSensor(int32_t sensorHandle,
47 * @param sensorHandle the sensor to disable. Must be a sensor acquired from
52 disableSensor(int32_t sensorHandle) generates (Result result);
DIDirectReportChannel.hal37 * sensorHandle to -1 and rate to STOP.
39 * @param sensorHandle handle of the sensor to operate on. If it is -1
54 configure(int32_t sensorHandle, RateLevel rate)
/frameworks/native/services/sensorservice/hidl/
DEventQueue.cpp76 Return<Result> EventQueue::enableSensor(int32_t sensorHandle, int32_t samplingPeriodUs, in enableSensor() argument
78 return convertResult(mInternalQueue->enableSensor(sensorHandle, samplingPeriodUs, in enableSensor()
82 Return<Result> EventQueue::disableSensor(int32_t sensorHandle) { in disableSensor() argument
83 return convertResult(mInternalQueue->disableSensor(sensorHandle)); in disableSensor()
DDirectReportChannel.cpp34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, in configure() argument
37 static_cast<int>(sensorHandle), static_cast<int>(rate)); in configure()
DEventQueue.h48 …Return<Result> enableSensor(int32_t sensorHandle, int32_t samplingPeriodUs, int64_t maxBatchReport…
49 Return<Result> disableSensor(int32_t sensorHandle) override;
DDirectReportChannel.h50 Return<void> configure(int32_t sensorHandle, RateLevel rate,
Dutils.cpp38 dst.sensorHandle = src.getHandle(); in convertSensor()
/frameworks/base/core/java/com/android/internal/os/
DSensorPowerCalculator.java45 final int sensorHandle = sensorStats.keyAt(ise); in calculateApp() local
49 switch (sensorHandle) { in calculateApp()
58 if (s.getHandle() == sensorHandle) { in calculateApp()
/frameworks/base/native/android/
Dsensor.cpp192 int sensorHandle; in ASensorManager_configureDirectReport() local
199 sensorHandle = -1; in ASensorManager_configureDirectReport()
201 sensorHandle = static_cast<Sensor const *>(sensor)->getHandle(); in ASensorManager_configureDirectReport()
204 channelId, sensorHandle, rate); in ASensorManager_configureDirectReport()
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.cpp48 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle, in registerSensor()
81 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle); in disableSensor()
DASensorManager.cpp402 return reinterpret_cast<const SensorInfo*>(sensor)->sensorHandle; in ASensor_getHandle()
/frameworks/native/libs/sensor/
DSensorManager.cpp288 int SensorManager::configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel)… in configureDirectChannel() argument
301 ret = i->second->configureChannel(sensorHandle, rateLevel); in configureDirectChannel()
303 static_cast<int>(sensorHandle), static_cast<int>(rateLevel), in configureDirectChannel()
/frameworks/native/libs/sensor/include/sensor/
DSensorManager.h66 int configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel);
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp210 handle = info.sensorHandle; in TEST_F()
252 EXPECT_EQ(returnedToken, event.sensorHandle) in TEST_F()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java69 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument
543 int sensorHandle = (sensor == null) ? -1 : sensor.getHandle(); in configureDirectChannelImpl() local
546 mNativeInstance, channel.getNativeHandle(), sensorHandle, rate); in configureDirectChannelImpl()
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp267 jint channelHandle, jint sensorHandle, jint rate) { in nativeConfigDirectChannel() argument
269 return mgr->configureDirectChannel(channelHandle, sensorHandle, rate); in nativeConfigDirectChannel()