/frameworks/native/services/sensorservice/ |
D | SensorsWrapper.h | 64 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 …]
|
D | SensorDevice.cpp | 135 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()
|
D | SensorDevice.h | 103 int32_t configureDirectChannel(int32_t sensorHandle,
|
/frameworks/hardware/interfaces/sensorservice/1.0/ |
D | README | 28 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) {
|
D | IEventQueue.hal | 29 * @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);
|
D | IDirectReportChannel.hal | 37 * 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/ |
D | EventQueue.cpp | 76 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()
|
D | DirectReportChannel.cpp | 34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, in configure() argument 37 static_cast<int>(sensorHandle), static_cast<int>(rate)); in configure()
|
D | EventQueue.h | 48 …Return<Result> enableSensor(int32_t sensorHandle, int32_t samplingPeriodUs, int64_t maxBatchReport… 49 Return<Result> disableSensor(int32_t sensorHandle) override;
|
D | DirectReportChannel.h | 50 Return<void> configure(int32_t sensorHandle, RateLevel rate,
|
D | utils.cpp | 38 dst.sensorHandle = src.getHandle(); in convertSensor()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 45 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/ |
D | sensor.cpp | 192 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/ |
D | ASensorEventQueue.cpp | 48 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle, in registerSensor() 81 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle); in disableSensor()
|
D | ASensorManager.cpp | 402 return reinterpret_cast<const SensorInfo*>(sensor)->sensorHandle; in ASensor_getHandle()
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 288 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/ |
D | SensorManager.h | 66 int configureDirectChannel(int channelNativeHandle, int sensorHandle, int rateLevel);
|
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/ |
D | VtsHalSensorManagerV1_0TargetTest.cpp | 210 handle = info.sensorHandle; in TEST_F() 252 EXPECT_EQ(returnedToken, event.sensorHandle) in TEST_F()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 69 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/ |
D | android_hardware_SensorManager.cpp | 267 jint channelHandle, jint sensorHandle, jint rate) { in nativeConfigDirectChannel() argument 269 return mgr->configureDirectChannel(channelHandle, sensorHandle, rate); in nativeConfigDirectChannel()
|