/aosp12/hardware/interfaces/automotive/evs/1.1/default/ |
H A D | EvsUltrasonicsArray.cpp | 176 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 D | EvsUltrasonicsArray.h | 88 SharedMemory sharedMemory; member 90 explicit DataFrameRecord(SharedMemory shMem) : sharedMemory(shMem), inUse(false){}; in DataFrameRecord()
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
H A D | Utils.cpp | 109 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 D | MemoryDomainTests.cpp | 683 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 D | GeneratedTestHarness.cpp | 138 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 D | AbstractHotwordDetector.java | 102 @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 D | VoiceInteractionService.java | 364 @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 D | HotwordDetectionService.java | 151 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 D | SoftwareHotwordDetector.java | 61 SharedMemory sharedMemory, in SoftwareHotwordDetector() argument 69 updateStateLocked(options, sharedMemory, in SoftwareHotwordDetector()
|
H A D | HotwordDetector.java | 98 void updateState(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory); in updateState() argument
|
H A D | IHotwordDetectionService.aidl | 51 in SharedMemory sharedMemory, in updateState() argument
|
H A D | AlwaysOnHotwordDetector.java | 580 @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 D | MemoryDomainTests.cpp | 972 .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 D | Typeface.java | 1236 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 D | HotwordDetectionConnection.java | 136 @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 D | VoiceInteractionManagerServiceImpl.java | 458 @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 D | sharedmem_jni.h | 71 int ASharedMemory_dupFromJava(JNIEnv* env, jobject sharedMemory) __INTRODUCED_IN(27);
|
/aosp12/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
H A D | Conversion.h | 411 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 D | TypefaceTest.java | 203 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 D | drm_hal_common.cpp | 412 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 D | media_hidl_test_common.cpp | 267 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 D | Conversion.h | 686 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 D | IVoiceInteractionManagerService.aidl | 249 in SharedMemory sharedMemory, in updateState() argument
|
/aosp12/hardware/interfaces/audio/2.0/ |
H A D | types.hal | 81 memory sharedMemory; // mmap memory buffer
|
/aosp12/hardware/interfaces/drm/1.0/vts/functional/ |
H A D | drm_hal_clearkey_test.cpp | 857 sp<IMemory> sharedMemory = in decrypt() local 862 fillRandom(sharedMemory); in decrypt() 885 static_cast<void*>(sharedMemory->getPointer())); in decrypt()
|