Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/companion/virtual/sensor/
H A 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()
144 mConfiguredChannels.valueAt(i).remove(channelHandle); in removeChannel()
157 public boolean configureChannel(@IntRange(from = 1) int channelHandle, in configureChannel()
166 + channelHandle + " not found"); in configureChannel()
177 SharedMemoryWrapper sharedMemoryWrapper = mChannels.get(channelHandle); in configureChannel()
180 + channelHandle + " not found"); in configureChannel()
[all …]
H A 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
H A 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()
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/virtual/
H A DSensorController.java209 final int channelHandle = sNextDirectChannelHandle.getAndIncrement(); in onDirectChannelCreated() local
212 mCallback.onDirectChannelCreated(channelHandle, sharedMemory); in onDirectChannelCreated()
217 return channelHandle; in onDirectChannelCreated()
221 public void onDirectChannelDestroyed(int channelHandle) { in onDirectChannelDestroyed() argument
227 mCallback.onDirectChannelDestroyed(channelHandle); in onDirectChannelDestroyed()
234 public int onDirectChannelConfigured(int channelHandle, int sensorHandle, in onDirectChannelConfigured() argument
247 mCallback.onDirectChannelConfigured(channelHandle, sensor, rateLevel, sensorHandle); in onDirectChannelConfigured()
/aosp14/frameworks/base/services/core/jni/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/sensors/
H A DSensorManagerInternal.java120 void onDirectChannelDestroyed(int channelHandle); in onDirectChannelDestroyed() argument
128 int onDirectChannelConfigured(int channelHandle, int sensorHandle, in onDirectChannelConfigured() argument
/aosp14/frameworks/base/core/java/android/companion/virtual/
H A DVirtualDeviceParams.java576 public void onDirectChannelCreated(int channelHandle, in onDirectChannelCreated() argument
580 () -> mDirectChannelCallback.onDirectChannelCreated(channelHandle, in onDirectChannelCreated()
586 public void onDirectChannelDestroyed(int channelHandle) { in onDirectChannelDestroyed() argument
589 () -> mDirectChannelCallback.onDirectChannelDestroyed(channelHandle)); in onDirectChannelDestroyed()
594 public void onDirectChannelConfigured(int channelHandle, @NonNull VirtualSensor sensor, in onDirectChannelConfigured() argument
599 channelHandle, sensor, rateLevel, reportToken)); in onDirectChannelConfigured()
/aosp14/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp295 jint channelHandle) { in nativeDestroyDirectChannel() argument
297 mgr->destroyDirectChannel(channelHandle); in nativeDestroyDirectChannel()
301 jint channelHandle, jint sensorHandle, jint rate) { in nativeConfigDirectChannel() argument
303 return mgr->configureDirectChannel(channelHandle, sensorHandle, rate); in nativeConfigDirectChannel()
/aosp14/frameworks/base/core/java/android/hardware/
H A DSystemSensorManager.java98 long nativeInstance, int channelHandle); in nativeDestroyDirectChannel() argument
100 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument