Home
last modified time | relevance | path

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

/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.java42 final int sensorHandle = sensorStats.keyAt(ise); in calculateApp() local
45 switch (sensorHandle) { in calculateApp()
54 if (s.getHandle() == sensorHandle) { in calculateApp()
/frameworks/base/native/android/
Dsensor.cpp191 int sensorHandle; in ASensorManager_configureDirectReport() local
198 sensorHandle = -1; in ASensorManager_configureDirectReport()
200 sensorHandle = static_cast<Sensor const *>(sensor)->getHandle(); in ASensorManager_configureDirectReport()
203 channelId, sensorHandle, rate); in ASensorManager_configureDirectReport()
/frameworks/native/services/sensorservice/
DSensorDevice.cpp79 mActivationCount.add(list[i].sensorHandle, model); in SensorDevice()
81 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in SensorDevice()
515 int32_t SensorDevice::configureDirectChannel(int32_t sensorHandle, in configureDirectChannel() argument
539 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, in configureDirectChannel()
627 dst->dynamic_sensor_meta.handle = dyn.sensorHandle; in convertToSensorEvent()
629 auto it = mConnectedDynamicSensors.find(dyn.sensorHandle); in convertToSensorEvent()
650 auto it = mConnectedDynamicSensors.find(info.sensorHandle); in convertToSensorEvents()
DSensorDevice.h93 int32_t configureDirectChannel(int32_t sensorHandle,
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.cpp49 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle, in registerSensor()
77 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle); in disableSensor()
/frameworks/native/libs/sensor/
DSensorManager.cpp287 int SensorManager::configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel)… in configureDirectChannel() argument
300 ret = i->second->configureChannel(sensorHandle, rateLevel); in configureDirectChannel()
302 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.java68 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument
540 int sensorHandle = (sensor == null) ? -1 : sensor.getHandle(); in configureDirectChannelImpl() local
543 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()