/frameworks/base/core/java/android/companion/virtual/sensor/ |
D | VirtualSensorDirectChannelWriter.java | 119 public void addChannel(@IntRange(from = 1) int channelHandle, in addChannel() 122 if (mChannels.contains(channelHandle)) { in addChannel() 123 Log.w(TAG, "Channel with handle " + channelHandle + " already added."); in addChannel() 125 mChannels.put(channelHandle, in addChannel() 137 public void removeChannel(@IntRange(from = 1) int channelHandle) { in removeChannel() 139 SharedMemoryWrapper sharedMemoryWrapper = mChannels.removeReturnOld(channelHandle); in removeChannel() 144 mConfiguredChannels.valueAt(i).remove(channelHandle); in removeChannel() 157 public boolean configureChannel(@IntRange(from = 1) int channelHandle, in configureChannel() 164 if (configs == null || configs.removeReturnOld(channelHandle) == null) { in configureChannel() 166 + channelHandle + " not found"); in configureChannel() [all …]
|
D | IVirtualSensorCallback.aidl | 47 void onDirectChannelCreated(int channelHandle, in SharedMemory sharedMemory); in onDirectChannelCreated() argument 54 void onDirectChannelDestroyed(int channelHandle); in onDirectChannelDestroyed() argument 65 void onDirectChannelConfigured(int channelHandle, in VirtualSensor sensor, int rateLevel, in onDirectChannelConfigured() argument
|
D | VirtualSensorDirectChannelCallback.java | 67 void onDirectChannelCreated(@IntRange(from = 1) int channelHandle, in onDirectChannelCreated() 81 void onDirectChannelDestroyed(@IntRange(from = 1) int channelHandle); in onDirectChannelDestroyed() 107 void onDirectChannelConfigured(@IntRange(from = 1) int channelHandle, in onDirectChannelConfigured()
|
/frameworks/native/services/sensorservice/ |
D | ISensorHalWrapper.h | 90 int32_t *channelHandle) = 0; 92 virtual status_t unregisterDirectChannel(int32_t channelHandle) = 0; 94 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
|
D | AidlSensorHalWrapper.h | 69 int32_t *channelHandle) override; 71 virtual status_t unregisterDirectChannel(int32_t channelHandle) override; 73 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
|
D | AidlSensorHalWrapper.cpp | 268 int32_t *channelHandle) { in registerDirectChannel() argument 296 return convertToStatus(mSensors->registerDirectChannel(mem, channelHandle)); in registerDirectChannel() 299 status_t AidlSensorHalWrapper::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 301 return convertToStatus(mSensors->unregisterDirectChannel(channelHandle)); in unregisterDirectChannel() 304 status_t AidlSensorHalWrapper::configureDirectChannel(int32_t sensorHandle, int32_t channelHandle, in configureDirectChannel() argument 328 mSensors->configDirectReport(sensorHandle, channelHandle, rate, &token)); in configureDirectChannel()
|
D | HidlSensorHalWrapper.cpp | 331 auto channelHandle) { in registerDirectChannel() argument 333 *outChannelHandle = channelHandle; in registerDirectChannel() 341 status_t HidlSensorHalWrapper::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 343 return checkReturnAndGetStatus(mSensors->unregisterDirectChannel(channelHandle)); in unregisterDirectChannel() 346 status_t HidlSensorHalWrapper::configureDirectChannel(int32_t sensorHandle, int32_t channelHandle, in configureDirectChannel() argument 369 checkReturn(mSensors->configDirectReport(sensorHandle, channelHandle, rate, in configureDirectChannel()
|
D | SensorDevice.cpp | 837 int32_t channelHandle; in registerDirectChannel() local 838 status_t status = mHalWrapper->registerDirectChannel(memory, &channelHandle); in registerDirectChannel() 840 channelHandle = -1; in registerDirectChannel() 843 return channelHandle; in registerDirectChannel() 846 void SensorDevice::unregisterDirectChannel(int32_t channelHandle) { in unregisterDirectChannel() argument 847 mHalWrapper->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 850 int32_t SensorDevice::configureDirectChannel(int32_t sensorHandle, int32_t channelHandle, in configureDirectChannel() argument 855 return mHalWrapper->configureDirectChannel(sensorHandle, channelHandle, config); in configureDirectChannel()
|
D | HidlSensorHalWrapper.h | 117 virtual status_t unregisterDirectChannel(int32_t channelHandle) override; 119 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
|
D | SensorDevice.h | 90 void unregisterDirectChannel(int32_t channelHandle); 91 int32_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
|
D | SensorService.h | 164 virtual void onDirectChannelDestroyed(int channelHandle) = 0; 165 virtual int onDirectChannelConfigured(int channelHandle, int sensorHandle,
|
D | SensorService.cpp | 1714 int channelHandle = 0; in createSensorDirectConnection() local 1717 channelHandle = dev.registerDirectChannel(&mem); in createSensorDirectConnection() 1724 channelHandle = runtimeSensorCallback->second->onDirectChannelCreated(fd); in createSensorDirectConnection() 1728 if (channelHandle <= 0) { in createSensorDirectConnection() 1729 ALOGE("SensorDevice::registerDirectChannel returns %d", channelHandle); in createSensorDirectConnection() 1732 conn = new SensorDirectConnection(this, uid, &mem, channelHandle, opPackageName, deviceId); in createSensorDirectConnection()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | SensorController.java | 257 final int channelHandle = sNextDirectChannelHandle.getAndIncrement(); in onDirectChannelCreated() local 260 mCallback.onDirectChannelCreated(channelHandle, sharedMemory); in onDirectChannelCreated() 265 return channelHandle; in onDirectChannelCreated() 269 public void onDirectChannelDestroyed(int channelHandle) { in onDirectChannelDestroyed() argument 275 mCallback.onDirectChannelDestroyed(channelHandle); in onDirectChannelDestroyed() 282 public int onDirectChannelConfigured(int channelHandle, int sensorHandle, in onDirectChannelConfigured() argument 295 mCallback.onDirectChannelConfigured(channelHandle, sensor, rateLevel, sensorHandle); in onDirectChannelConfigured()
|
/frameworks/base/services/core/java/com/android/server/sensors/ |
D | SensorManagerInternal.java | 120 void onDirectChannelDestroyed(int channelHandle); in onDirectChannelDestroyed() argument 128 int onDirectChannelConfigured(int channelHandle, int sensorHandle, in onDirectChannelConfigured() argument
|
/frameworks/base/services/core/jni/ |
D | com_android_server_sensor_SensorService.cpp | 87 void onDirectChannelDestroyed(int channelHandle) override; 88 int onDirectChannelConfigured(int channelHandle, int sensorHandle, int rateLevel) override; 279 int channelHandle) { in onDirectChannelDestroyed() argument 282 static_cast<jint>(channelHandle)); in onDirectChannelDestroyed() 285 int NativeSensorService::RuntimeSensorCallbackDelegate::onDirectChannelConfigured(int channelHandle, in onDirectChannelConfigured() argument 290 static_cast<jint>(channelHandle), static_cast<jint>(sensorHandle), in onDirectChannelConfigured()
|
/frameworks/base/core/java/android/companion/virtual/ |
D | VirtualDeviceParams.java | 731 public void onDirectChannelCreated(int channelHandle, in onDirectChannelCreated() argument 735 () -> mDirectChannelCallback.onDirectChannelCreated(channelHandle, in onDirectChannelCreated() 741 public void onDirectChannelDestroyed(int channelHandle) { in onDirectChannelDestroyed() argument 744 () -> mDirectChannelCallback.onDirectChannelDestroyed(channelHandle)); in onDirectChannelDestroyed() 749 public void onDirectChannelConfigured(int channelHandle, @NonNull VirtualSensor sensor, in onDirectChannelConfigured() argument 754 channelHandle, sensor, rateLevel, reportToken)); in onDirectChannelConfigured()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 320 jint channelHandle) { in nativeDestroyDirectChannel() argument 322 mgr->destroyDirectChannel(channelHandle); in nativeDestroyDirectChannel() 326 jint channelHandle, jint sensorHandle, jint rate) { in nativeConfigDirectChannel() argument 328 return mgr->configureDirectChannel(channelHandle, sensorHandle, rate); in nativeConfigDirectChannel()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 102 long nativeInstance, int channelHandle); in nativeDestroyDirectChannel() argument 104 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument
|