Home
last modified time | relevance | path

Searched refs:sharedMemoryFd (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelable.java186 ParcelFileDescriptor sharedMemoryFd; in toLargeParcelable() local
189 sharedMemoryFd = (ParcelFileDescriptor) field.get(p); in toLargeParcelable()
194 if (sharedMemoryFd != null) { in toLargeParcelable()
211 sharedMemoryFd = SharedMemoryHelper.createParcelFileDescriptor(memory); in toLargeParcelable()
232 field.set(emptyPayload, sharedMemoryFd); in toLargeParcelable()
263 ParcelFileDescriptor sharedMemoryFd = null; in reconstructStableAIDLParcelable() local
267 sharedMemoryFd = (ParcelFileDescriptor) fieldSharedMemory.get(p); in reconstructStableAIDLParcelable()
272 if (sharedMemoryFd == null) { in reconstructStableAIDLParcelable()
283 SharedMemory memory = SharedMemory.fromFileDescriptor(sharedMemoryFd.dup()); in reconstructStableAIDLParcelable()
291 fieldSharedMemory.set(retParcelable, sharedMemoryFd); in reconstructStableAIDLParcelable()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DLargeParcelableBase.h99 std::unique_ptr<::ndk::ScopedFileDescriptor> sharedMemoryFd = in parcelableToStableLargeParcelable() local
111 if (binder_status_t status = parcelToMemoryFile(*parcel.get(), sharedMemoryFd.get()); in parcelableToStableLargeParcelable()
115 return sharedMemoryFd; in parcelableToStableLargeParcelable()
128 const ::ndk::ScopedFileDescriptor& sharedMemoryFd = in.sharedMemoryFd; in stableLargeParcelableToParcelable() local
129 if (sharedMemoryFd.get() == INVALID_MEMORY_FD) { in stableLargeParcelableToParcelable()
134 if (binder_status_t status = getParcelFromMemoryFile(sharedMemoryFd, parcel.get()); in stableLargeParcelableToParcelable()
180 ::ndk::ScopedFileDescriptor* sharedMemoryFd);
/packages/services/Car/tests/android_car_api_test/src/com/android/car/internal/test/
DLargeParcelableJavaStableAIDLTest.java183 assertThat(orig.sharedMemoryFd).isNotNull(); in doTestLEcho()
185 assertThat(r.sharedMemoryFd).isNotNull(); in doTestLEcho()
187 assertThat(orig.sharedMemoryFd).isNull(); in doTestLEcho()
189 assertThat(r.sharedMemoryFd).isNull(); in doTestLEcho()
205 assertThat(orig.sharedMemoryFd).isNotNull(); in doTestMultipleArgs()
208 assertThat(orig.sharedMemoryFd).isNull(); in doTestMultipleArgs()
230 assertThat(orig.sharedMemoryFd).isNotNull(); in doTestEchoWithCallback()
232 assertThat(r.sharedMemoryFd).isNotNull(); in doTestEchoWithCallback()
234 assertThat(orig.sharedMemoryFd).isNull(); in doTestEchoWithCallback()
236 assertThat(r.sharedMemoryFd).isNull(); in doTestEchoWithCallback()
DLargeParcelableJavaStableAIDLCompTest.java83 assertThat(stableP.sharedMemoryFd).isNotNull(); in doTestTestLargeParcelableToStableAIDLTestLargeParcelable()
86 assertThat(stableP.sharedMemoryFd).isNull(); in doTestTestLargeParcelableToStableAIDLTestLargeParcelable()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/
DLargeParcelableTest.cpp153 out.sharedMemoryFd = std::move(*result.value()); in testParcelableToStableLargeParcelable()
236 intermediate.sharedMemoryFd = std::move(*result1.value()); in testParcelableToStableLargeParcelableBackToParcelable()
301 out.sharedMemoryFd = std::move(*result.value()); in testParcelableVectorToStableLargeParcelable()
383 intermediate.sharedMemoryFd = std::move(*result1.value()); in testParcelableVectorToStableLargeParcelableBackToParcelableVector()
/packages/services/Car/tests/android_car_api_test/test_aidl/android/car/apitest/
DStableAIDLTestLargeParcelable.aidl24 @nullable ParcelFileDescriptor sharedMemoryFd;
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/aidl/
DTestStableLargeParcelableVector.aidl27 @nullable ParcelFileDescriptor sharedMemoryFd;
DTestStableLargeParcelable.aidl27 @nullable ParcelFileDescriptor sharedMemoryFd;
/packages/services/Car/service/src/com/android/car/telemetry/scriptexecutorinterface/
DBundleList.aidl26 @nullable ParcelFileDescriptor sharedMemoryFd;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAidlVehicleStubUnitTest.java199 aidlConfigs.sharedMemoryFd = null; in testGetAllProdConfigsAidlSmallData()
229 assertThat(aidlConfigs.sharedMemoryFd).isNotNull(); in testGetAllPropConfigsAidlLargeData()
300 assertThat(requests.sharedMemoryFd).isNotNull(); in testGetAidlLargeData()
315 assertThat(results.sharedMemoryFd).isNotNull(); in testGetAidlLargeData()
918 assertThat(requests.sharedMemoryFd).isNotNull(); in testSetSyncAidlLargeData()
1291 assertThat(propValues.sharedMemoryFd).isNotNull(); in testAidlVehicleCallbackOnPropertyEventLargeData()
1338 assertThat(errors.sharedMemoryFd).isNotNull(); in testAidlVehicleCallbackOnPropertySetErrorLargeData()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DLargeParcelableBase.cpp323 ScopedFileDescriptor* sharedMemoryFd) { in parcelToMemoryFile() argument
334 sharedMemoryFd->set(fd.release()); in parcelToMemoryFile()
/packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/
DAidlMockedVehicleHal.java239 requests.sharedMemoryFd).isNull(); in getValues()
280 requests.sharedMemoryFd).isNull(); in setValues()