Home
last modified time | relevance | path

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

12

/aosp12/hardware/interfaces/automotive/evs/1.1/default/
H A DEvsUltrasonicsArray.cpp176 dataFrame.sharedMemory.clear(); in forceShutdown()
249 if (!dataFrame.sharedMemory.IsValid()) { in doneWithDataFrame()
250 dataFrame.sharedMemory = mDataFrames[dataFrameDesc.dataFrameId].sharedMemory; in doneWithDataFrame()
361 SharedMemory sharedMemory; in allocateAndMapSharedMemory() local
387 sharedMemory.pIMemory = mapMemory(sharedMemory.hidlMemory); in allocateAndMapSharedMemory()
388 if (sharedMemory.pIMemory.get() == nullptr) { in allocateAndMapSharedMemory()
394 return sharedMemory; in allocateAndMapSharedMemory()
404 if (!sharedMemory.IsValid()) { in increaseAvailableFrames_Locked()
413 dataFrame.sharedMemory = sharedMemory; in increaseAvailableFrames_Locked()
422 mDataFrames.emplace_back(sharedMemory); in increaseAvailableFrames_Locked()
[all …]
H A DEvsUltrasonicsArray.h88 SharedMemory sharedMemory; member
90 explicit DataFrameRecord(SharedMemory shMem) : sharedMemory(shMem), inUse(false){}; in DataFrameRecord()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DUtils.cpp109 static nn::SharedMemory convertSharedMemoryToReadonly(const nn::SharedMemory& sharedMemory) { in convertSharedMemoryToReadonly() argument
110 if (std::holds_alternative<nn::Memory::Ashmem>(sharedMemory->handle)) { in convertSharedMemoryToReadonly()
111 const auto& memory = std::get<nn::Memory::Ashmem>(sharedMemory->handle); in convertSharedMemoryToReadonly()
114 } else if (std::holds_alternative<nn::Memory::Fd>(sharedMemory->handle)) { in convertSharedMemoryToReadonly()
115 const auto& memory = std::get<nn::Memory::Fd>(sharedMemory->handle); in convertSharedMemoryToReadonly()
120 return sharedMemory; in convertSharedMemoryToReadonly()
126 const auto sharedMemory = nn::createSharedMemory(size).value(); in initialize() local
127 mMappedMemory = nn::map(sharedMemory).value(); in initialize()
131 mAidlMemory = utils::convert(convertSharedMemoryToReadonly(sharedMemory)).value(); in initialize()
133 mAidlMemory = utils::convert(sharedMemory).value(); in initialize()
H A DMemoryDomainTests.cpp683 const auto sharedMemory = nn::createSharedMemory(size).value(); in allocateSharedMemory() local
684 auto memory = utils::convert(sharedMemory).value(); in allocateSharedMemory()
982 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1018 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1029 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1034 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1079 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
1089 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1098 .pools = createRequestMemoryPools(sharedMemory, deviceMemory)}, in TEST_P()
1107 RequestMemoryPool sharedMemory = createSharedMemoryPool(kTestOperandDataSize); in TEST_P() local
[all …]
H A DGeneratedTestHarness.cpp138 const auto sharedMemory = nn::createSharedMemory(testBuffer.size()).value(); in allocateInternal() local
139 const auto memory = utils::convert(sharedMemory).value(); in allocateInternal()
140 const auto mapping = nn::map(sharedMemory).value(); in allocateInternal()
502 auto sharedMemory = nn::createSharedMemory(size).value(); in getBuffer() local
503 auto aidlMemory = utils::convert(sharedMemory).value(); in getBuffer()
508 const auto outputMemory = nn::map(sharedMemory).value(); in getBuffer()
/aosp12/frameworks/base/core/java/android/service/voice/
H A DAbstractHotwordDetector.java102 @Nullable SharedMemory sharedMemory) { in updateState() argument
107 updateStateLocked(options, sharedMemory, null /* callback */); in updateState()
112 @Nullable SharedMemory sharedMemory, IHotwordRecognitionStatusCallback callback) { in updateStateLocked() argument
119 mManagerService.updateState(identity, options, sharedMemory, callback); in updateStateLocked()
H A DVoiceInteractionService.java364 @Nullable SharedMemory sharedMemory, argument
368 sharedMemory, callback);
376 @Nullable SharedMemory sharedMemory, argument
387 supportHotwordDetectionService, options, sharedMemory);
429 @Nullable SharedMemory sharedMemory, in createHotwordDetector() argument
439 mSystemService, null, options, sharedMemory, callback); in createHotwordDetector()
H A DHotwordDetectionService.java151 public void updateState(PersistableBundle options, SharedMemory sharedMemory,
156 sharedMemory,
295 @Nullable SharedMemory sharedMemory, in onUpdateState() argument
342 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal() argument
360 onUpdateState(options, sharedMemory, UPDATE_TIMEOUT_MILLIS, intConsumer); in onUpdateStateInternal()
H A DSoftwareHotwordDetector.java61 SharedMemory sharedMemory, in SoftwareHotwordDetector() argument
69 updateStateLocked(options, sharedMemory, in SoftwareHotwordDetector()
H A DHotwordDetector.java98 void updateState(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory); in updateState() argument
H A DIHotwordDetectionService.aidl51 in SharedMemory sharedMemory, in updateState() argument
H A DAlwaysOnHotwordDetector.java580 @Nullable SharedMemory sharedMemory) { in AlwaysOnHotwordDetector() argument
593 updateStateLocked(options, sharedMemory, mInternalCallback); in AlwaysOnHotwordDetector()
615 @Nullable SharedMemory sharedMemory) { in updateState() argument
627 super.updateState(options, sharedMemory); in updateState()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp972 .pools = {sharedMemory, badDeviceMemory1}}, in TEST_P()
1009 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1014 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1067 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1076 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1095 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1102 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1109 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1176 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
1182 .pools = {sharedMemory, deviceMemory}}, in TEST_P()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java1236 SharedMemory sharedMemory = SharedMemory.create(
1238 ByteBuffer writableBuffer = sharedMemory.mapReadWrite().order(ByteOrder.BIG_ENDIAN);
1251 sharedMemory.setProtect(OsConstants.PROT_READ);
1252 return sharedMemory;
1313 public static void setSystemFontMap(@Nullable SharedMemory sharedMemory)
1318 if (sharedMemory == null || sharedMemory == sSystemFontMapSharedMemory) {
1324 sSystemFontMapSharedMemory = sharedMemory;
1327 if (sharedMemory == null) {
1333 sSystemFontMapBuffer = sharedMemory.mapReadOnly().order(ByteOrder.BIG_ENDIAN);
/aosp12/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DHotwordDetectionConnection.java136 @Nullable SharedMemory sharedMemory, in HotwordDetectionConnection() argument
158 updateStateAfterProcessStart(options, sharedMemory); in HotwordDetectionConnection()
202 PersistableBundle options, SharedMemory sharedMemory) { in updateStateAfterProcessStart() argument
236 service.updateState(options, sharedMemory, statusCallback); in updateStateAfterProcessStart()
283 void updateStateLocked(PersistableBundle options, SharedMemory sharedMemory) { in updateStateLocked() argument
289 updateStateAfterProcessStart(options, sharedMemory); in updateStateLocked()
292 service -> service.updateState(options, sharedMemory, null /* callback */)); in updateStateLocked()
H A DVoiceInteractionManagerServiceImpl.java458 @Nullable SharedMemory sharedMemory, in updateStateLocked() argument
491 if (sharedMemory != null && !sharedMemory.setProtect(OsConstants.PROT_READ)) { in updateStateLocked()
500 options, sharedMemory, callback); in updateStateLocked()
502 mHotwordDetectionConnection.updateStateLocked(options, sharedMemory); in updateStateLocked()
/aosp12/frameworks/native/include/android/
H A Dsharedmem_jni.h71 int ASharedMemory_dupFromJava(JNIEnv* env, jobject sharedMemory) __INTRODUCED_IN(27);
/aosp12/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
H A DConversion.h411 t->sharedMemory = hidl_memory(); in wrapAs()
443 t->sharedMemory = hidl_memory(); in wrapAs()
458 t->sharedMemory = l.mHidlMemory; in wrapAs()
499 *l = OMXBuffer(t.sharedMemory); in convertTo()
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/
H A DTypefaceTest.java203 SharedMemory sharedMemory = Typeface.serializeFontMap(systemFontMap); in testSerialize() local
205 Typeface.deserializeFontMap(sharedMemory.mapReadOnly().order(ByteOrder.BIG_ENDIAN), in testSerialize()
/aosp12/hardware/interfaces/drm/1.2/vts/functional/
H A Ddrm_hal_common.cpp412 sp<IMemory> sharedMemory = in decrypt() local
417 fillRandom(sharedMemory); in decrypt()
439 static_cast<void*>(sharedMemory->getPointer())); in decrypt()
/aosp12/hardware/interfaces/media/omx/1.0/vts/functional/common/
H A Dmedia_hidl_test_common.cpp267 buffer->omxBuffer.sharedMemory = mem; in allocateBuffer()
270 ASSERT_EQ(buffer->omxBuffer.sharedMemory.size(), nBufferSize); in allocateBuffer()
271 buffer->mMemory = mapMemory(buffer->omxBuffer.sharedMemory); in allocateBuffer()
557 t.sharedMemory = android::hardware::hidl_memory(); in dispatchOutputBuffer()
586 t.sharedMemory = android::hardware::hidl_memory(); in dispatchInputBuffer()
/aosp12/frameworks/av/media/libmedia/include/media/omx/1.0/
H A DConversion.h686 t->sharedMemory = hidl_memory(); in wrapAs()
701 t->sharedMemory = l.mHidlMemory; in wrapAs()
759 *l = OMXBuffer(t.sharedMemory); in convertTo()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DIVoiceInteractionManagerService.aidl249 in SharedMemory sharedMemory, in updateState() argument
/aosp12/hardware/interfaces/audio/2.0/
H A Dtypes.hal81 memory sharedMemory; // mmap memory buffer
/aosp12/hardware/interfaces/drm/1.0/vts/functional/
H A Ddrm_hal_clearkey_test.cpp857 sp<IMemory> sharedMemory = in decrypt() local
862 fillRandom(sharedMemory); in decrypt()
885 static_cast<void*>(sharedMemory->getPointer())); in decrypt()

12