Home
last modified time | relevance | path

Searched defs:sharedMemory (Results 1 – 25 of 179) sorted by relevance

12345678

/aosp_15_r20/cts/tests/tests/os/src/android/os/cts/
H A DSharedMemoryTest.java115 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testReadWrite()
136 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testReadOnly()
164 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testUseAfterClose()
184 SharedMemory sharedMemory = SharedMemory.create(null, 1); in testUseAfterUnmap() local
202 SharedMemory sharedMemory = SharedMemory.create("hello", 1024); in testNdkInterop() local
220 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testInvalidMapProt()
227 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testInvalidSetProt()
234 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testSetProtAddProt()
245 SharedMemory sharedMemory = SharedMemory.create(null, 1); in testMapAfterClose() local
252 try (SharedMemory sharedMemory = SharedMemory.create(null, 1)) { in testWriteToReadOnly()
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowSharedMemoryTest.java23 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in getSize_shouldReturnSizeAtCreation()
31 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in mapReadWrite_shouldReflectWrites()
42 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in mapReadWrite_shouldReflectWritesAcrossMappings()
54 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in mapReadWrite_shouldPersistWritesAcrossUnmap()
67 SharedMemory sharedMemory = SharedMemory.create("foo", 4); in mapReadWrite_shouldThrowAfterClose() local
123 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in unmap_shouldTolerateDoubleUnmap()
134 try (SharedMemory sharedMemory = SharedMemory.create("foo", 4)) { in writeToParcel_shouldNotCrash()
150 try (SharedMemory sharedMemory = SharedMemory.create(/* name= */ "foo", /* size= */ 4)) { in readFromParcel_shouldSupport()
/aosp_15_r20/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java612 @Nullable SharedMemory sharedMemory,
662 @Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory, in createAlwaysOnHotwordDetector()
688 @Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory, in createAlwaysOnHotwordDetectorForTest()
710 @Nullable SharedMemory sharedMemory,
812 @Nullable SharedMemory sharedMemory, in createHotwordDetector()
863 @Nullable SharedMemory sharedMemory, in createHotwordDetector()
875 @Nullable SharedMemory sharedMemory, in createHotwordDetectorInternal()
950 @Nullable SharedMemory sharedMemory, in createVisualQueryDetector()
H A DAbstractDetector.java98 @Nullable SharedMemory sharedMemory); in initialize()
147 @Nullable SharedMemory sharedMemory) { in updateState()
161 @Nullable SharedMemory sharedMemory, in initAndVerifyDetector()
H A DVisualQueryDetector.java91 void initialize(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory) { in initialize()
101 @Nullable SharedMemory sharedMemory) { in updateState()
392 void initialize(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory) { in initialize()
H A DVisualQueryDetectionService.java193 @Nullable SharedMemory sharedMemory, in onUpdateState()
210 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal()
H A DHotwordDetectionService.java341 @Nullable SharedMemory sharedMemory, in onUpdateState()
390 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal()
H A DAlwaysOnHotwordDetector.java915 void initialize(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory) {} in initialize()
917 void initialize(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory, in initialize()
960 @Nullable SharedMemory sharedMemory) { in updateState()
/aosp_15_r20/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DLargeParcelableBase.cpp116 std::unique_ptr<SharedMemory> sharedMemory = in prepareSharedMemory() local
139 const SharedMemory* sharedMemory = mSharedMemory.get(); in writeToParcel() local
159 SharedMemory sharedMemory(std::move(memoryFd)); in deserializeSharedMemoryAndClose() local
184 binder_status_t LargeParcelableBase::copyFromSharedMemory(const SharedMemory& sharedMemory, in copyFromSharedMemory()
233 const SharedMemory* sharedMemory, AParcel* dest) { in writeSharedMemoryCompatibleToParcel()
310 SharedMemory sharedMemory(memoryFd); in getParcelFromMemoryFile() local
326 std::unique_ptr<SharedMemory> sharedMemory = in parcelToMemoryFile() local
/aosp_15_r20/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
H A DVirtualSensorTest.java580 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_triggersVirtualSensorCallback() local
619 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_stopAll_triggersVirtualSensorCallback() local
652 ArgumentCaptor<SharedMemory> sharedMemory = ArgumentCaptor.forClass(SharedMemory.class); in directConnection_memoryFile_injectEvents() local
681 SharedMemory sharedMemory = (SharedMemory) i.getArguments()[1]; in directConnection_memoryFile_injectEvents_withHelperWriter() local
777 private void writeDirectChannelEvents(int reportToken, SharedMemory sharedMemory) { in writeDirectChannelEvents()
H A DVirtualSensorDirectChannelWriterTest.java93 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in removeChannel_closesSharedMemory() local
127 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in writeEvent_channelStopped_returnsError() local
144 SharedMemory sharedMemory = SharedMemory.create(SHARED_MEMORY_NAME, SHARED_MEMORY_SIZE); in writeEvent_channelRemoved_returnsError() local
/aosp_15_r20/frameworks/base/core/jni/
H A Dcom_android_internal_os_ApplicationSharedMemory.cpp134 SharedMemory* sharedMemory = reinterpret_cast<SharedMemory*>(ptr); in nativeSetLatestNetworkTimeUnixEpochMillisAtZeroElapsedRealtimeMillis() local
139 SharedMemory* sharedMemory = reinterpret_cast<SharedMemory*>(ptr); in nativeGetLatestNetworkTimeUnixEpochMillisAtZeroElapsedRealtimeMillis() local
145 SharedMemory* sharedMemory = reinterpret_cast<SharedMemory*>(ptr); in nativeGetSystemNonceBlock() local
/aosp_15_r20/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelableBase.java167 try (SharedMemory sharedMemory = serializeParcelToSharedMemory(dataParcel)) { in writeToParcel()
249 SharedMemory sharedMemory = null; in close() local
377 Parcel dest, int flags, @Nullable SharedMemory sharedMemory) { in serializeMemoryFdOrPayloadToParcel()
/aosp_15_r20/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DMemoryDomainTests.cpp710 const auto sharedMemory = nn::createSharedMemory(size).value(); in allocateSharedMemory() local
1009 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1045 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1106 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1134 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1216 RequestMemoryPool sharedMemory = createSharedMemoryPool(badTestOperandDataSize); in TEST_P() local
H A DUtils.cpp111 static nn::SharedMemory convertSharedMemoryToReadonly(const nn::SharedMemory& sharedMemory) { in convertSharedMemoryToReadonly()
128 const auto sharedMemory = nn::createSharedMemory(size).value(); in initialize() local
/aosp_15_r20/packages/modules/HealthFitness/framework/java/android/health/connect/internal/
DParcelUtils.java62 SharedMemory sharedMemory = in getSharedMemoryForParcel() local
84 try (SharedMemory sharedMemory = in putToRequiredMemory()
/aosp_15_r20/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerServiceImpl.java611 @Nullable SharedMemory sharedMemory, in updateStateLocked()
629 private void verifyDetectorForHotwordDetectionLocked( in verifyDetectorForHotwordDetectionLocked()
686 private void verifyDetectorForVisualQueryDetectionLocked(@Nullable SharedMemory sharedMemory) { in verifyDetectorForVisualQueryDetectionLocked()
727 @Nullable SharedMemory sharedMemory, in initAndVerifyDetectorLocked()
H A DDetectorSession.java270 SharedMemory sharedMemory) { in updateStateAfterProcessStartLocked()
381 void updateStateLocked(PersistableBundle options, SharedMemory sharedMemory, in updateStateLocked()
734 void initialize(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory) { in initialize()
/aosp_15_r20/frameworks/base/core/java/android/companion/virtual/sensor/
H A DVirtualSensorDirectChannelWriter.java120 @NonNull SharedMemory sharedMemory) throws ErrnoException { in addChannel()
232 SharedMemoryWrapper(SharedMemory sharedMemory) throws ErrnoException { in SharedMemoryWrapper()
/aosp_15_r20/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp962 Request::MemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
998 Request::MemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1057 Request::MemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1085 Request::MemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1166 Request::MemoryPool sharedMemory = createSharedMemoryPool(badTestOperandDataSize); in TEST_P() local
/aosp_15_r20/hardware/interfaces/automotive/evs/1.1/default/
H A DEvsUltrasonicsArray.cpp360 SharedMemory sharedMemory; in allocateAndMapSharedMemory() local
400 SharedMemory sharedMemory = allocateAndMapSharedMemory(); in increaseAvailableFrames_Locked() local
/aosp_15_r20/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
H A DProxyVoiceInteractionService.java234 PersistableBundle options, SharedMemory sharedMemory, in createWithTrustedProcess()
316 @Nullable SharedMemory sharedMemory) { in updateState()
/aosp_15_r20/frameworks/base/core/java/com/android/internal/app/
H A DIVoiceInteractionManagerService.aidl287 in SharedMemory sharedMemory, in updateState()
312 in SharedMemory sharedMemory, in initAndVerifyDetector()
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/wearable/
H A DWearableSensingManagerService.java240 SharedMemory sharedMemory, in provideData()
528 PersistableBundle data, SharedMemory sharedMemory, RemoteCallback callback) { in provideData()
/aosp_15_r20/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
H A DSharedMemoryTestService.java39 SharedMemory sharedMemory = null; in readBufData() local

12345678