Home
last modified time | relevance | path

Searched refs:sharedMemory (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DSharedMemoryTest.java115 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/
DSharedMemoryTestService.java39 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/
DVirtualSensorDirectChannelWriterTest.java93 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()
DVirtualSensorTest.java555 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/
DNoOpVisualQueryDetectionService.java46 @Nullable SharedMemory sharedMemory, in onUpdateState() argument
49 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
DNoOpHotwordDetectionService.java66 @Nullable SharedMemory sharedMemory, in onUpdateState() argument
69 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
DTestPermissionHotwordDetectionService.java92 @Nullable SharedMemory sharedMemory, in onUpdateState() argument
95 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DControllableHotwordDetectionService.java72 public void onUpdateState(PersistableBundle options, SharedMemory sharedMemory, in onUpdateState() argument
75 + ", sharedMemory=" + sharedMemory in onUpdateState()
DProxyVoiceInteractionService.java100 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/
DProxyVoiceInteractionService.java100 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);
DMainVisualQueryDetectionService.java167 @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()
DMainHotwordDetectionService.java371 @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()
DMainWearableSensingService.java127 PersistableBundle data, SharedMemory sharedMemory, Consumer<Integer> statusConsumer) { in onDataProvided() argument
/cts/tests/tests/voiceinteraction/service/aidl/android/voiceinteraction/service/
DITestVoiceInteractionService.aidl43 in SharedMemory sharedMemory, IProxyDetectorCallback callback); in createAlwaysOnHotwordDetectorWithTrustedService() argument
DIProxyAlwaysOnHotwordDetector.aidl28 in @nullable SharedMemory sharedMemory); in updateState() argument
/cts/hostsidetests/voiceinteraction/app/aidl/com/android/cts/voiceinteraction/
DITestVoiceInteractionService.aidl43 in SharedMemory sharedMemory, IProxyDetectorCallback callback); in createAlwaysOnHotwordDetectorWithTrustedService() argument
DIProxyAlwaysOnHotwordDetector.aidl28 in @nullable SharedMemory sharedMemory); in updateState() argument
/cts/tests/wearable/src/android/wearable/cts/
DCtsWearableSensingService.java73 public void onDataProvided(PersistableBundle data, SharedMemory sharedMemory, in onDataProvided() argument
77 sSharedMemory = sharedMemory; in onDataProvided()
DCtsIsolatedWearableSensingService.java142 PersistableBundle data, SharedMemory sharedMemory, Consumer<Integer> statusConsumer) { in onDataProvided() argument
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DHelper.java148 SharedMemory sharedMemory = SharedMemory.create("SharedMemory", 3); in createFakeSharedMemoryData() local
149 ByteBuffer byteBuffer = sharedMemory.mapReadWrite(); in createFakeSharedMemoryData()
151 return sharedMemory; in createFakeSharedMemoryData()