/aosp12/hardware/interfaces/sensors/common/default/2.X/multihal/include/ |
H A D | SubHalWrapper.h | 82 virtual Return<Result> unregisterDirectChannel(int32_t channelHandle) = 0; 84 virtual Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, 130 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 131 return mSubHal->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 134 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 136 return mSubHal->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
|
H A D | HalProxy.h | 116 Return<Result> unregisterDirectChannel(int32_t channelHandle); 118 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, 425 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 426 return HalProxy::unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 429 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 431 return HalProxy::configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
|
/aosp12/hardware/interfaces/sensors/1.0/default/ |
H A D | Sensors.cpp | 284 int32_t channelHandle = static_cast<int32_t>(err); in registerDirectChannel() local 285 _hidl_cb(Result::OK, channelHandle); in registerDirectChannel() 290 Return<Result> Sensors::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 297 mSensorDevice->register_direct_channel(mSensorDevice, nullptr, channelHandle); in unregisterDirectChannel() 303 int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 321 sensorHandle, channelHandle, &cfg); in configDirectReport()
|
H A D | Sensors.h | 59 Return<Result> unregisterDirectChannel(int32_t channelHandle) override; 62 int32_t sensorHandle, int32_t channelHandle, RateLevel rate,
|
/aosp12/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/ |
H A D | SensorsSubHal.h | 69 Return<Result> unregisterDirectChannel(int32_t channelHandle); 71 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, 146 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 147 return ISensorsSubHalBase::unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 150 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 152 return ISensorsSubHalBase::configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
|
/aosp12/hardware/interfaces/sensors/common/utils/ |
H A D | ISensorsWrapper.h | 97 virtual Return<Result> unregisterDirectChannel(int32_t channelHandle) = 0; 99 virtual Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, 159 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 160 return mSensors->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 163 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 165 return mSensors->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
|
/aosp12/hardware/interfaces/sensors/1.0/vts/functional/ |
H A D | VtsHalSensorsV1_0TargetTest.cpp | 73 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 74 return S()->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 77 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 79 return S()->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport() 108 [&] (auto result, auto channelHandle) { in registerDirectChannel() argument 110 mDirectChannelHandles.insert(channelHandle); in registerDirectChannel() 112 cb(result, channelHandle); in registerDirectChannel()
|
/aosp12/hardware/interfaces/sensors/1.0/ |
H A D | ISensors.hal | 153 * @return channelHandle a positive integer used for referencing registered 158 generates (Result result, int32_t channelHandle); 167 * @param channelHandle handle of direct channel to be unregistered. 171 unregisterDirectChannel(int32_t channelHandle) generates (Result result); 182 * @param channelHandle handle of direct channel to be configured. 186 * rate level is not supported by sensor, channelHandle does not 194 int32_t sensorHandle, int32_t channelHandle, RateLevel rate)
|
/aosp12/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/ |
H A D | SensorsHidlTestBase.h | 196 virtual Return<Result> unregisterDirectChannel(int32_t channelHandle) = 0; 197 virtual Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, 514 int32_t channelHandle; in testDirectReportOperation() local 516 [&channelHandle](auto result, auto channelHandle_) { in testDirectReportOperation() 518 channelHandle = channelHandle_; in testDirectReportOperation() 527 configDirectReport(sensor.sensorHandle, channelHandle, rate, in testDirectReportOperation() 589 configDirectReport(sensor.sensorHandle, channelHandle, RateLevel::STOP, in testDirectReportOperation() 591 EXPECT_EQ(unregisterDirectChannel(channelHandle), Result::OK); in testDirectReportOperation()
|
/aosp12/hardware/interfaces/sensors/common/vts/2_X/ |
H A D | VtsHalSensorsV2_XTargetTest.h | 208 Return<Result> unregisterDirectChannel(int32_t channelHandle) override { in unregisterDirectChannel() argument 209 return getSensors()->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 212 Return<void> configDirectReport(int32_t sensorHandle, int32_t channelHandle, RateLevel rate, in configDirectReport() argument 214 return getSensors()->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport() 270 getSensors()->registerDirectChannel(mem, [&](auto result, auto channelHandle) { in registerDirectChannel() 272 mDirectChannelHandles.insert(channelHandle); in registerDirectChannel() 274 cb(result, channelHandle); in registerDirectChannel() 865 registerDirectChannel(mem->getSharedMemInfo(), [&](Result result, int32_t channelHandle) { in verifyRegisterDirectChannel() 868 ASSERT_GT(channelHandle, 0); in verifyRegisterDirectChannel() 878 ASSERT_EQ(channelHandle, -1); in verifyRegisterDirectChannel() [all …]
|
/aosp12/hardware/interfaces/sensors/2.0/ |
H A D | ISensors.hal | 230 * @return channelHandle a positive integer used for referencing registered 236 int32_t channelHandle); 245 * @param channelHandle handle of direct channel to be unregistered. 249 unregisterDirectChannel(int32_t channelHandle) generates (Result result); 260 * @param channelHandle handle of direct channel to be configured. 263 * rate level is not supported by sensor, channelHandle does not exist, 271 int32_t channelHandle,
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_hardware_SensorManager.cpp | 261 jint channelHandle) { in nativeDestroyDirectChannel() argument 263 mgr->destroyDirectChannel(channelHandle); in nativeDestroyDirectChannel() 267 jint channelHandle, jint sensorHandle, jint rate) { in nativeConfigDirectChannel() argument 269 return mgr->configureDirectChannel(channelHandle, sensorHandle, rate); in nativeConfigDirectChannel()
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | SensorDevice.h | 103 void unregisterDirectChannel(int32_t channelHandle); 105 int32_t channelHandle, const struct sensors_direct_cfg_t *config);
|
H A D | SensorDevice.cpp | 1052 [&ret](auto result, auto channelHandle) { in registerDirectChannel() argument 1054 ret = channelHandle; in registerDirectChannel() 1062 void SensorDevice::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 1065 checkReturn(mSensors->unregisterDirectChannel(channelHandle)); in unregisterDirectChannel() 1069 int32_t channelHandle, const struct sensors_direct_cfg_t *config) { in configureDirectChannel() argument 1092 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, in configureDirectChannel()
|
H A D | SensorService.cpp | 1416 int channelHandle = dev.registerDirectChannel(&mem); in createSensorDirectConnection() local 1418 if (channelHandle <= 0) { in createSensorDirectConnection() 1419 ALOGE("SensorDevice::registerDirectChannel returns %d", channelHandle); in createSensorDirectConnection() 1422 conn = new SensorDirectConnection(this, uid, &mem, channelHandle, opPackageName); in createSensorDirectConnection()
|
/aosp12/hardware/interfaces/sensors/2.0/vts/functional/ |
H A D | VtsHalSensorsV2_0TargetTest.cpp | 245 registerDirectChannel(mem->getSharedMemInfo(), [&](Result result, int32_t channelHandle) { in TEST_P() argument 247 directChannelHandle = channelHandle; in TEST_P()
|
/aosp12/hardware/interfaces/sensors/common/default/2.X/multihal/ |
H A D | HalProxy.cpp | 313 Return<Result> HalProxy::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 318 result = mDirectChannelSubHal->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 323 Return<void> HalProxy::configDirectReport(int32_t sensorHandle, int32_t channelHandle, in configDirectReport() argument 335 mDirectChannelSubHal->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport()
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
H A D | QCameraPostProc.h | 187 QCameraChannel *getChannelByHandle(uint32_t channelHandle);
|
H A D | QCamera2HWI.h | 467 QCameraChannel *getChannelByHandle(uint32_t channelHandle);
|
H A D | QCameraPostProc.cpp | 4205 QCameraChannel *QCameraPostProcessor::getChannelByHandle(uint32_t channelHandle) in getChannelByHandle() argument 4207 QCameraChannel *pChannel = m_parent->getChannelByHandle(channelHandle); in getChannelByHandle() 4212 (validate_handle(mPPChannels[i]->getMyHandle(), channelHandle))) { in getChannelByHandle()
|
H A D | QCamera2HWI.cpp | 9040 QCameraChannel *QCamera2HardwareInterface::getChannelByHandle(uint32_t channelHandle) in getChannelByHandle() argument 9044 (validate_handle(m_channels[i]->getMyHandle(), channelHandle))) { in getChannelByHandle()
|
/aosp12/frameworks/base/core/java/android/hardware/ |
H A D | SystemSensorManager.java | 88 long nativeInstance, int channelHandle); in nativeDestroyDirectChannel() argument 90 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument
|