Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/companion/virtual/sensor/
DVirtualSensorDirectChannelWriter.java119 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 …]
DIVirtualSensorCallback.aidl47 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
DVirtualSensorDirectChannelCallback.java67 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/
DISensorHalWrapper.h90 int32_t *channelHandle) = 0;
92 virtual status_t unregisterDirectChannel(int32_t channelHandle) = 0;
94 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
DAidlSensorHalWrapper.h69 int32_t *channelHandle) override;
71 virtual status_t unregisterDirectChannel(int32_t channelHandle) override;
73 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
DAidlSensorHalWrapper.cpp268 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()
DHidlSensorHalWrapper.cpp331 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()
DSensorDevice.cpp837 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()
DHidlSensorHalWrapper.h117 virtual status_t unregisterDirectChannel(int32_t channelHandle) override;
119 virtual status_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
DSensorDevice.h90 void unregisterDirectChannel(int32_t channelHandle);
91 int32_t configureDirectChannel(int32_t sensorHandle, int32_t channelHandle,
DSensorService.h164 virtual void onDirectChannelDestroyed(int channelHandle) = 0;
165 virtual int onDirectChannelConfigured(int channelHandle, int sensorHandle,
DSensorService.cpp1714 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/
DSensorController.java257 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/
DSensorManagerInternal.java120 void onDirectChannelDestroyed(int channelHandle); in onDirectChannelDestroyed() argument
128 int onDirectChannelConfigured(int channelHandle, int sensorHandle, in onDirectChannelConfigured() argument
/frameworks/base/services/core/jni/
Dcom_android_server_sensor_SensorService.cpp87 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/
DVirtualDeviceParams.java731 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/
Dandroid_hardware_SensorManager.cpp320 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/
DSystemSensorManager.java102 long nativeInstance, int channelHandle); in nativeDestroyDirectChannel() argument
104 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument