/aosp14/frameworks/base/core/java/android/companion/virtual/sensor/ |
H A 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() 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 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
|
H A 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()
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
H A D | SensorController.java | 209 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 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensors/ |
H A D | SensorManagerInternal.java | 120 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 D | VirtualDeviceParams.java | 576 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 D | android_hardware_SensorManager.cpp | 295 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 D | SystemSensorManager.java | 98 long nativeInstance, int channelHandle); in nativeDestroyDirectChannel() argument 100 long nativeInstance, int channelHandle, int sensorHandle, int rate); in nativeConfigDirectChannel() argument
|