/cts/tests/tests/os/src/android/os/cts/ |
D | SharedMemoryTest.java | 115 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testReadWrite() argument 116 ByteBuffer buffer = sharedMemory.mapReadWrite(); in testReadWrite() 117 mRemote.setup(sharedMemory, PROT_READ | PROT_WRITE); in testReadWrite() 123 synchronized (sharedMemory) {} in testReadWrite() 128 synchronized (sharedMemory) {} in testReadWrite() 136 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testReadOnly() argument 137 ByteBuffer buffer = sharedMemory.mapReadWrite(); in testReadOnly() 138 sharedMemory.setProtect(PROT_READ); in testReadOnly() 139 mRemote.setup(sharedMemory, PROT_READ); in testReadOnly() 145 synchronized (sharedMemory) {} in testReadOnly() [all …]
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/ |
D | SharedMemoryTestService.java | 39 SharedMemory sharedMemory = null; in readBufData() local 43 sharedMemory = SharedMemory.fromFileDescriptor(pfd); in readBufData() 44 mappedBuffer = sharedMemory.mapReadOnly(); in readBufData() 45 for (int i = 0; i < sharedMemory.getSize(); i++) { in readBufData()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorDirectChannelWriterTest.java | 93 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in removeChannel_closesSharedMemory() local 94 assertThat(sharedMemory.getSize()).isGreaterThan(0); in removeChannel_closesSharedMemory() 96 mWriter.addChannel(CHANNEL_HANDLE, sharedMemory); in removeChannel_closesSharedMemory() 100 assertThrows(IllegalStateException.class, sharedMemory::getSize); in removeChannel_closesSharedMemory() 127 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in writeEvent_channelStopped_returnsError() local 128 mWriter.addChannel(CHANNEL_HANDLE, sharedMemory); in writeEvent_channelStopped_returnsError() 144 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in writeEvent_channelRemoved_returnsError() local 145 mWriter.addChannel(CHANNEL_HANDLE, sharedMemory); in writeEvent_channelRemoved_returnsError()
|
D | VirtualSensorTest.java | 555 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_triggersVirtualSensorCallback() local 557 .onDirectChannelCreated(channelHandle.capture(), sharedMemory.capture()); in directConnection_memoryFile_triggersVirtualSensorCallback() 560 sharedMemory.getValue().close(); in directConnection_memoryFile_triggersVirtualSensorCallback() 594 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_stopAll_triggersVirtualSensorCallback() local 596 .onDirectChannelCreated(channelHandle.capture(), sharedMemory.capture()); in directConnection_memoryFile_stopAll_triggersVirtualSensorCallback() 599 sharedMemory.getValue().close(); in directConnection_memoryFile_stopAll_triggersVirtualSensorCallback() 627 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_injectEvents() local 629 .onDirectChannelCreated(channelHandle.capture(), sharedMemory.capture()); in directConnection_memoryFile_injectEvents() 633 writeDirectChannelEvents(reportToken, sharedMemory.getValue()); in directConnection_memoryFile_injectEvents() 644 sharedMemory.getValue().close(); in directConnection_memoryFile_injectEvents() [all …]
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/ |
D | NoOpVisualQueryDetectionService.java | 46 @Nullable SharedMemory sharedMemory, in onUpdateState() argument 49 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
|
D | NoOpHotwordDetectionService.java | 66 @Nullable SharedMemory sharedMemory, in onUpdateState() argument 69 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
|
D | TestPermissionHotwordDetectionService.java | 92 @Nullable SharedMemory sharedMemory, in onUpdateState() argument 95 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
|
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/ |
D | ControllableHotwordDetectionService.java | 72 public void onUpdateState(PersistableBundle options, SharedMemory sharedMemory, in onUpdateState() argument 75 + ", sharedMemory=" + sharedMemory in onUpdateState()
|
D | ProxyVoiceInteractionService.java | 100 SharedMemory sharedMemory, IProxyDetectorCallback callback) { 108 + ", sharedMemory=" + sharedMemory 112 options, sharedMemory, callback, ProxyVoiceInteractionService.this, mHandler); 234 PersistableBundle options, SharedMemory sharedMemory, in createWithTrustedProcess() argument 242 options, sharedMemory, frameworkCallback); in createWithTrustedProcess() 316 @Nullable SharedMemory sharedMemory) { in updateState() argument 317 mAlwaysOnHotwordDetector.updateState(options, sharedMemory); in updateState()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | ProxyVoiceInteractionService.java | 100 SharedMemory sharedMemory, IProxyDetectorCallback callback) { 107 options, sharedMemory, callback, ProxyVoiceInteractionService.this, mHandler); 216 PersistableBundle options, SharedMemory sharedMemory, in create() argument 221 sharedMemory, in create() 316 @Nullable SharedMemory sharedMemory) { 317 mAlwaysOnHotwordDetector.updateState(options, sharedMemory);
|
D | MainVisualQueryDetectionService.java | 167 @Nullable SharedMemory sharedMemory, in onUpdateState() argument 170 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState() 200 if (sharedMemory != null) { in onUpdateState() 202 sharedMemory.mapReadWrite(); in onUpdateState() 208 sharedMemory.close(); in onUpdateState()
|
D | MainHotwordDetectionService.java | 371 @Nullable SharedMemory sharedMemory, in onUpdateState() argument 374 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState() 528 if (sharedMemory != null) { in onUpdateState() 530 sharedMemory.mapReadWrite(); in onUpdateState() 536 sharedMemory.close(); in onUpdateState()
|
D | MainWearableSensingService.java | 127 PersistableBundle data, SharedMemory sharedMemory, Consumer<Integer> statusConsumer) { in onDataProvided() argument
|
/cts/tests/tests/voiceinteraction/service/aidl/android/voiceinteraction/service/ |
D | ITestVoiceInteractionService.aidl | 43 in SharedMemory sharedMemory, IProxyDetectorCallback callback); in createAlwaysOnHotwordDetectorWithTrustedService() argument
|
D | IProxyAlwaysOnHotwordDetector.aidl | 28 in @nullable SharedMemory sharedMemory); in updateState() argument
|
/cts/hostsidetests/voiceinteraction/app/aidl/com/android/cts/voiceinteraction/ |
D | ITestVoiceInteractionService.aidl | 43 in SharedMemory sharedMemory, IProxyDetectorCallback callback); in createAlwaysOnHotwordDetectorWithTrustedService() argument
|
D | IProxyAlwaysOnHotwordDetector.aidl | 28 in @nullable SharedMemory sharedMemory); in updateState() argument
|
/cts/tests/wearable/src/android/wearable/cts/ |
D | CtsWearableSensingService.java | 73 public void onDataProvided(PersistableBundle data, SharedMemory sharedMemory, in onDataProvided() argument 77 sSharedMemory = sharedMemory; in onDataProvided()
|
D | CtsIsolatedWearableSensingService.java | 142 PersistableBundle data, SharedMemory sharedMemory, Consumer<Integer> statusConsumer) { in onDataProvided() argument
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/ |
D | Helper.java | 148 SharedMemory sharedMemory = SharedMemory.create("SharedMemory", 3); in createFakeSharedMemoryData() local 149 ByteBuffer byteBuffer = sharedMemory.mapReadWrite(); in createFakeSharedMemoryData() 151 return sharedMemory; in createFakeSharedMemoryData()
|