Home
last modified time | relevance | path

Searched defs:memory (Results 1 – 25 of 209) sorted by relevance

123456789

/aosp12/system/unwinding/libunwindstack/tests/
H A DDexFileTest.cpp62 MemoryFake memory; in TEST() local
70 MemoryFake memory; in TEST() local
90 MemoryFake memory; in TEST() local
103 MemoryFake memory; in TEST() local
116 MemoryFake memory; in TEST() local
122 MemoryFake memory; in TEST() local
129 MemoryFake memory; in TEST() local
142 MemoryFake memory; in TEST() local
155 MemoryFake memory; in TEST() local
162 MemoryFake memory; in TEST() local
[all …]
H A DMemoryTest.cpp32 MemoryFakeAlwaysReadZero memory; in TEST() local
40 MemoryFakeAlwaysReadZero memory; in TEST() local
57 MemoryFake memory; in TEST() local
78 MemoryFake memory; in TEST() local
111 MemoryFake memory; in TEST() local
H A DMapInfoCreateMemoryTest.cpp94 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
113 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
183 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
208 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
226 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
249 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
268 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
417 std::unique_ptr<Memory> memory(map_info->CreateMemory(process_memory_)); in TEST_F() local
H A DGlobalDebugImplTest.cpp35 std::shared_ptr<Memory> memory; in TEST() local
44 std::shared_ptr<Memory> memory; in TEST() local
H A DMemoryFake.cpp37 void MemoryFake::SetMemory(uint64_t addr, const void* memory, size_t length) { in SetMemory()
49 size_t MemoryFake::Read(uint64_t addr, void* memory, size_t size) { in Read()
H A DElfFake.h52 ElfFake(Memory* memory) : Elf(memory) { valid_ = true; } in ElfFake()
69 ElfInterfaceFake(Memory* memory) : ElfInterface(memory) {} in ElfInterfaceFake()
125 ElfInterface32Fake(Memory* memory) : ElfInterface32(memory) {} in ElfInterface32Fake()
136 ElfInterface64Fake(Memory* memory) : ElfInterface64(memory) {} in ElfInterface64Fake()
147 ElfInterfaceArmFake(Memory* memory) : ElfInterfaceArm(memory) {} in ElfInterfaceArmFake()
/aosp12/packages/modules/NeuralNetworks/common/
H A DSharedMemoryAndroid.cpp116 GeneralResult<Mapping> map(const Memory::Ashmem& memory) { in map()
169 size_t getSize(const Memory::Ashmem& memory) { in getSize()
173 size_t getSize(const Memory::Fd& memory) { in getSize()
177 size_t getSize(const Memory::HardwareBuffer& memory) { in getSize()
183 size_t getSize(const Memory::Unknown& memory) { in getSize()
192 GeneralResult<Mapping> map(const Memory::Fd& memory) { in map()
212 GeneralResult<Mapping> map(const Memory::HardwareBuffer& memory) { in map()
279 size_t getSize(const SharedMemory& memory) { in getSize()
284 bool isAhwbBlob(const Memory::HardwareBuffer& memory) { in isAhwbBlob()
291 bool isAhwbBlob(const SharedMemory& memory) { in isAhwbBlob()
[all …]
/aosp12/system/unwinding/libunwindstack/
H A DMapInfo.cpp37 bool MapInfo::InitFileMemoryFromPreviousReadOnlyMap(MemoryFileAtOffset* memory) { in InitFileMemoryFromPreviousReadOnlyMap()
64 std::unique_ptr<MemoryFileAtOffset> memory(new MemoryFileAtOffset); in GetFileMemory() local
150 Memory* memory = GetFileMemory(); in CreateMemory() local
167 std::unique_ptr<MemoryRange> memory(new MemoryRange(process_memory, start(), end() - start(), 0)); in CreateMemory() local
234 Memory* memory = CreateMemory(process_memory); in GetElf() local
312 std::unique_ptr<Memory> memory(CreateMemory(process_memory)); in GetLoadBias() local
348 std::unique_ptr<Memory> memory(GetFileMemory()); in GetBuildID() local
H A DDexFiles.cpp30 bool GlobalDebugInterface<DexFile>::Load(Maps* maps, std::shared_ptr<Memory>& memory, uint64_t addr, in Load()
36 std::unique_ptr<DexFiles> CreateDexFiles(ArchEnum arch, std::shared_ptr<Memory>& memory, in CreateDexFiles()
H A DJitDebug.cpp27 bool GlobalDebugInterface<Elf>::Load(Maps*, std::shared_ptr<Memory>& memory, uint64_t addr, in Load()
37 std::unique_ptr<JitDebug> CreateJitDebug(ArchEnum arch, std::shared_ptr<Memory>& memory, in CreateJitDebug()
H A DElf.cpp205 bool Elf::IsValidElf(Memory* memory) { in IsValidElf()
222 bool Elf::GetInfo(Memory* memory, uint64_t* size) { in GetInfo()
278 ElfInterface* Elf::CreateInterfaceFromMemory(Memory* memory) { in CreateInterfaceFromMemory()
333 int64_t Elf::GetLoadBias(Memory* memory) { in GetLoadBias()
426 std::string Elf::GetBuildID(Memory* memory) { in GetBuildID()
H A DMemoryCache.h34 MemoryCacheBase(Memory* memory) : impl_(memory) {} in MemoryCacheBase()
67 MemoryCache(Memory* memory) : MemoryCacheBase(memory) {} in MemoryCache()
H A DGlobal.cpp31 Global::Global(std::shared_ptr<Memory>& memory) : memory_(memory) {} in Global()
32 Global::Global(std::shared_ptr<Memory>& memory, std::vector<std::string>& search_libs) in Global()
/aosp12/system/extras/memory_replay/
H A DAlloc.cpp102 void* memory = malloc(entry.size); in MallocExecute() local
114 void* memory = calloc(entry.u.n_elements, entry.size); in CallocExecute() local
131 void* memory = realloc(old_memory, entry.size); in ReallocExecute() local
143 void* memory = memalign(entry.u.align, entry.size); in MemalignExecute() local
157 void* memory = pointers->Remove(entry.ptr); in FreeExecute() local
/aosp12/hardware/interfaces/neuralnetworks/utils/common/test/
H A DResilientBufferTest.cpp118 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
132 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
147 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
164 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
178 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
192 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
207 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
224 const nn::SharedMemory memory = std::make_shared<const nn::Memory>(); in TEST() local
/aosp12/hardware/interfaces/neuralnetworks/utils/common/src/
H A DCommonUtils.cpp109 nn::GeneralResult<hidl_memory> createHidlMemoryFrom(const nn::Memory::Ashmem& memory) { in createHidlMemoryFrom()
115 nn::GeneralResult<hidl_memory> createHidlMemoryFrom(const nn::Memory::Fd& memory) { in createHidlMemoryFrom()
125 nn::GeneralResult<hidl_memory> createHidlMemoryFrom(const nn::Memory::HardwareBuffer& memory) { in createHidlMemoryFrom()
141 nn::GeneralResult<hidl_memory> createHidlMemoryFrom(const nn::Memory::Unknown& memory) { in createHidlMemoryFrom()
195 auto memory = NN_TRY(memoryBuilder.finish()); in flushDataFromPointerToShared() local
258 auto memory = NN_TRY(inputBuilder.finish()); in convertRequestFromPointerToShared() local
282 auto memory = NN_TRY(outputBuilder.finish()); in convertRequestFromPointerToShared() local
298 nn::GeneralResult<hidl_memory> createHidlMemoryFromSharedMemory(const nn::SharedMemory& memory) { in createHidlMemoryFromSharedMemory()
309 nn::GeneralResult<nn::SharedMemory> createSharedMemoryFromHidlMemory(const hidl_memory& memory) { in createSharedMemoryFromHidlMemory()
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DMemory.cpp183 RuntimeMemory::RuntimeMemory(SharedMemory memory) : kMemory(std::move(memory)) { in RuntimeMemory()
188 RuntimeMemory::RuntimeMemory(SharedMemory memory, std::unique_ptr<MemoryValidatorBase> validator) in RuntimeMemory()
258 const SharedMemory& memory = memoryAHWB->getMemory(); in copyIBuffers() local
479 std::unique_ptr<RuntimeMemory> memory; in allocate() local
509 auto memory = createSharedMemory(size); in create() local
527 MemoryAshmem::MemoryAshmem(SharedMemory memory, Mapping mapping) in MemoryAshmem()
532 auto memory = createSharedMemoryFromFd(size, prot, fd, offset); in create() local
540 MemoryFd::MemoryFd(SharedMemory memory) : RuntimeMemory(std::move(memory)) {} in MemoryFd()
543 auto memory = createSharedMemoryFromAHWB(const_cast<AHardwareBuffer*>(&ahwb), in create() local
578 auto memory = createSharedMemoryFromAHWB(ahwb, /*takeOWnership=*/true); in create() local
[all …]
/aosp12/system/unwinding/libunwindstack/tests/fuzz/
H A DUnwinderComponentCreator.cpp185 void WriteDescriptor32(MemoryFake* memory, uint64_t addr, uint32_t entry) { in WriteDescriptor32()
197 void WriteDescriptor64(MemoryFake* memory, uint64_t addr, uint64_t entry) { in WriteDescriptor64()
209 void WriteEntry32Pack(MemoryFake* memory, uint64_t addr, uint32_t prev, uint32_t next, in WriteEntry32Pack()
222 void WriteEntry32Pad(MemoryFake* memory, uint64_t addr, uint32_t prev, uint32_t next, in WriteEntry32Pad()
237 void WriteEntry64(MemoryFake* memory, uint64_t addr, uint64_t prev, uint64_t next, in WriteEntry64()
251 void PutElfInMemory(MemoryFake* memory, uint64_t offset, uint8_t class_type, uint8_t machine_type, in PutElfInMemory()
325 void PutElfFilesInMemory(MemoryFake* memory, FuzzedDataProvider* data_provider) { in PutElfFilesInMemory()
390 std::shared_ptr<Memory> memory, uint max_library_length, in GetDexFiles()
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DTypefaceSerializationPerfTest.java55 SharedMemory memory = Typeface.serializeFontMap(Typeface.getSystemFontMap()); in testDeserializeFontMap() local
68 SharedMemory memory = null; in testSetSystemFontMap() local
/aosp12/system/libhidl/transport/allocator/1.0/vts/functional/
H A DVtsHidlAllocatorV1_0TargetTest.cpp44 sp<IMemory> memory; in expectAllocateSuccess() local
71 for (const sp<IMemory>& memory : memories) { in expectBatchAllocateSuccess() local
99 sp<IMemory> memory = expectAllocateSuccess(kSize); in TEST_P() local
/aosp12/system/libhidl/transport/memory/1.0/default/
H A DAshmemMemory.cpp23 namespace memory { namespace
27 AshmemMemory::AshmemMemory(const hidl_memory& memory, void* data) in AshmemMemory()
/aosp12/art/compiler/optimizing/
H A Dstack_map_test.cc65 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
151 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
321 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
376 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
435 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
483 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
582 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
718 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
742 ScopedArenaVector<uint8_t> memory = stream.Encode(); in TEST() local
/aosp12/art/test/004-UnsafeTest/
H A Dunsafe_test.cc42 void* memory = malloc(dchecked_integral_cast<size_t>(size)); in Java_Main_unsafeTestMalloc() local
47 extern "C" JNIEXPORT void JNICALL Java_Main_unsafeTestFree(JNIEnv*, jclass, jlong memory) { in Java_Main_unsafeTestFree()
/aosp12/system/libhidl/transport/allocator/1.0/default/
H A DAshmemAllocator.cpp44 static void cleanup(hidl_memory&& memory) { in cleanup()
54 hidl_memory memory = allocateOne(size); in allocate() local
/aosp12/hardware/interfaces/tests/memory/1.0/default/
H A DMemoryTest.cpp33 namespace memory { namespace
44 sp<IMemory> memory = mapMemory(memory_in); in fillMemory() local

123456789