/aosp_15_r20/cts/tests/tests/os/src/android/os/cts/ |
H A D | SharedMemoryTest.java | 115 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 D | ShadowSharedMemoryTest.java | 23 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 D | VoiceInteractionService.java | 612 @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 D | AbstractDetector.java | 98 @Nullable SharedMemory sharedMemory); in initialize() 147 @Nullable SharedMemory sharedMemory) { in updateState() 161 @Nullable SharedMemory sharedMemory, in initAndVerifyDetector()
|
H A D | VisualQueryDetector.java | 91 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 D | VisualQueryDetectionService.java | 193 @Nullable SharedMemory sharedMemory, in onUpdateState() 210 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal()
|
H A D | HotwordDetectionService.java | 341 @Nullable SharedMemory sharedMemory, in onUpdateState() 390 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal()
|
H A D | AlwaysOnHotwordDetector.java | 915 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/ |
D | LargeParcelableBase.cpp | 116 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 D | VirtualSensorTest.java | 580 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 D | VirtualSensorDirectChannelWriterTest.java | 93 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 D | com_android_internal_os_ApplicationSharedMemory.cpp | 134 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/ |
D | LargeParcelableBase.java | 167 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 D | MemoryDomainTests.cpp | 710 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 D | Utils.cpp | 111 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/ |
D | ParcelUtils.java | 62 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 D | VoiceInteractionManagerServiceImpl.java | 611 @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 D | DetectorSession.java | 270 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 D | VirtualSensorDirectChannelWriter.java | 120 @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 D | MemoryDomainTests.cpp | 962 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 D | EvsUltrasonicsArray.cpp | 360 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 D | ProxyVoiceInteractionService.java | 234 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 D | IVoiceInteractionManagerService.aidl | 287 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 D | WearableSensingManagerService.java | 240 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 D | SharedMemoryTestService.java | 39 SharedMemory sharedMemory = null; in readBufData() local
|