/hardware/interfaces/soundtrigger/2.1/default/ |
D | SoundTriggerHw.cpp | 29 using android::hidl::memory::V1_0::IMemory; 45 sp<IMemory> memory; in memoryAsVector() local 47 return std::make_pair(true, memory); in memoryAsVector() 49 memory = mapMemory(m); in memoryAsVector() 50 if (memory != nullptr) { in memoryAsVector() 51 memory->read(); in memoryAsVector() 52 vec->setToExternal(static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())), in memoryAsVector() 53 memory->getSize()); in memoryAsVector() 54 return std::make_pair(true, memory); in memoryAsVector() 57 return std::make_pair(false, memory); in memoryAsVector() [all …]
|
/hardware/interfaces/tests/memory/1.0/default/ |
D | MemoryTest.cpp | 28 using android::hidl::memory::V1_0::IMemory; 33 namespace memory { namespace 44 sp<IMemory> memory = mapMemory(memory_in); in fillMemory() local 46 if (memory == nullptr) { in fillMemory() 51 uint8_t* data = static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())); in fillMemory() 53 memory->update(); in fillMemory() 55 for (size_t i = 0; i < memory->getSize(); i++) { in fillMemory() 59 memory->commit(); in fillMemory()
|
D | MemoryTest.h | 28 namespace memory { 40 using ::android::hardware::tests::memory::V1_0::IMemoryTest; 41 using ::android::hidl::memory::block::V1_0::MemoryBlock; 42 using ::android::hidl::memory::token::V1_0::IMemoryToken;
|
D | Android.bp | 16 name: "android.hardware.tests.memory@1.0-impl", 28 "android.hidl.memory@1.0", 29 "android.hidl.memory.token@1.0", 34 static_libs: ["android.hardware.tests.memory@1.0"],
|
/hardware/interfaces/memtrack/1.0/ |
D | IMemtrack.hal | 21 * device-specific memory usage. 22 * The primary goal is to be able to track memory that is not 23 * trackable in any other way, for example texture memory that is allocated by 25 * A secondary goal is to be able to categorize memory used by a process into 26 * GL, graphics, etc. All memory sizes must be in real memory usage, 34 * getMemory() populates MemtrackRecord vector with the sizes of memory 35 * plus associated flags for that memory. 40 * A process collecting memory statistics will call getMemory for each 41 * combination of pid and memory type. For each memory type that it 43 * structures breaking down the statistics of that memory type as much as [all …]
|
D | types.hal | 21 * Flags to differentiate memory that can already be accounted for in 24 * In general, memory mapped in to a userspace process is accounted unless 29 * Flags to differentiate memory shared across multiple processes vs. memory 31 * If SHARED_PSS flags is used, the memory must be divided by the number of 34 * If none are set, record is assumed to count shared + private memory. 37 * Flags to differentiate memory taken from the kernel's allocation pool vs. 38 * memory that is dedicated to non-kernel allocations, for example a carveout 39 * or separate video memory. Only zero or one of these may be set in a record. 40 * If none are set, record is assumed to count system + dedicated memory. 43 * Flags to differentiate memory accessible by the CPU in non-secure mode vs. [all …]
|
/hardware/interfaces/tests/memory/2.0/ |
D | IMemoryInterface.hal | 1 package android.hardware.tests.memory@2.0; 4 // Flips all the bits in the given memory buffer. 5 bitwiseNot(memory mem); 7 getTestMem() generates(memory mem); 8 // Given two memory regions of the same size, returns two memory fields of
|
D | types.hal | 1 package android.hardware.tests.memory@2.0; 4 memory mem1; 5 memory mem2;
|
D | Android.bp | 4 name: "android.hardware.tests.memory@2.0",
|
/hardware/interfaces/tests/memory/1.0/ |
D | IMemoryTest.hal | 17 package android.hardware.tests.memory@1.0; 19 import android.hidl.memory.token@1.0::IMemoryToken; 20 import android.hidl.memory.block@1.0::MemoryBlock; 23 haveSomeMemory(memory mem) generates(memory mem); 24 fillMemory(memory memory_in, uint8_t filler); 26 set(memory mem);
|
D | Android.bp | 4 name: "android.hardware.tests.memory@1.0", 11 "android.hidl.memory.block@1.0", 12 "android.hidl.memory.token@1.0",
|
/hardware/interfaces/neuralnetworks/1.3/ |
D | IBuffer.hal | 22 * This interface represents a device memory buffer. 26 * Retrieves the content of this buffer to a shared memory region. 31 * @param dst The destination shared memory region. 37 * - INVALID_ARGUMENT if provided memory is invalid 39 copyTo(memory dst) generates (ErrorStatus status); 42 * Sets the content of this buffer from a shared memory region. 44 * @param src The source shared memory region. 54 * - INVALID_ARGUMENT if provided memory is invalid, or if the dimensions is invalid 56 copyFrom(memory src, vec<uint32_t> dimensions) generates (ErrorStatus status);
|
/hardware/interfaces/cas/native/1.0/ |
D | types.hal | 40 * offset and a size. The offset is relative to the shared memory base for the 41 * memory region identified by heapBase. 45 * The shared memory base handle 47 memory heapBase; 50 * The offset from the shared memory base 62 * memory for the non-secure descrambling case, or it can be a secure buffer 79 * to user-space non-secure shared memory. 85 * to secure memory referenced by the vendor's buffer allocator.
|
/hardware/google/apf/ |
D | apf_interpreter.c | 27 const uint32_t* memory, uint32_t ram_len); 29 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument 70 uint32_t memory[MEMORY_ITEMS] = {}; in accept_packet() local 72 memory[MEMORY_OFFSET_PROGRAM_SIZE] = program_len; in accept_packet() 73 memory[MEMORY_OFFSET_DATA_SIZE] = ram_len; in accept_packet() 74 memory[MEMORY_OFFSET_PACKET_SIZE] = packet_len; in accept_packet() 75 memory[MEMORY_OFFSET_FILTER_AGE] = filter_age; in accept_packet() 79 memory[MEMORY_OFFSET_IPV4_HEADER_SIZE] = (packet[APF_FRAME_HEADER_SIZE] & 15) * 4; in accept_packet() 90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet() 257 REG = memory[imm - LDM_EXT_OPCODE]; in accept_packet() [all …]
|
/hardware/interfaces/camera/device/1.0/ |
D | ICameraDeviceCallback.hal | 33 * Define a memory buffer from the provided handle and size, and return a 37 * descriptor in it; the file descriptor must be memory mappable to 43 * @return memId A positive integer identifier for this memory buffer, for 44 * use with data callbacks and unregistering memory. 0 must be returned 52 * Unregister a previously registered memory buffer 60 * @param data A memory handle to the buffer containing the data. 61 * @param bufferIndex The offset into the memory handle where the buffer 72 * @param data A memory handle to the buffer containing the data. 73 * @param bufferIndex The offset into the memory handle where the buffer 87 * @param data A memory handle to the buffer containing the data. [all …]
|
/hardware/interfaces/neuralnetworks/1.2/ |
D | IBurstCallback.hal | 22 * Callback object used by a service to retreive memory objects based on unique 27 * Get the memory regions that correspond to slot ids. The slot ids are 30 * @param slots Values uniquely identifying memory regions within a Burst. 33 * - NONE if the memory region was successfully retrieved 40 getMemories(vec<int32_t> slots) generates (ErrorStatus status, vec<memory> buffers);
|
D | IBurstContext.hal | 24 * freeMemory is used by the client to signal to the service that a memory 29 * @param slot Value uniquely identifying a memory region.
|
/hardware/interfaces/soundtrigger/2.2/default/ |
D | SoundTriggerHw.cpp | 28 using android::hidl::memory::V1_0::IMemory; 548 sp<IMemory> memory; in memoryAsVector() local 550 return std::make_pair(true, memory); in memoryAsVector() 552 memory = mapMemory(m); in memoryAsVector() 553 if (memory != nullptr) { in memoryAsVector() 554 memory->read(); in memoryAsVector() 555 vec->setToExternal(static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())), in memoryAsVector() 556 memory->getSize()); in memoryAsVector() 557 return std::make_pair(true, memory); in memoryAsVector() 560 return std::make_pair(false, memory); in memoryAsVector() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | MemoryDomainTests.cpp | 662 hidl_memory memory = nn::allocateSharedMemory(size); in allocateSharedMemory() local 663 EXPECT_EQ(memory.size(), size); in allocateSharedMemory() 664 return memory; in allocateSharedMemory() 667 void testCopyFrom(const sp<IBuffer>& buffer, const hidl_memory& memory, in testCopyFrom() argument 669 const auto ret = buffer->copyFrom(memory, dimensions); in testCopyFrom() 674 void testCopyTo(const sp<IBuffer>& buffer, const hidl_memory& memory, in testCopyTo() argument 676 const auto ret = buffer->copyTo(memory); in testCopyTo() 682 hidl_memory memory = nn::allocateSharedMemory(kTestOperandDataSize); in initializeDeviceMemory() local 683 ASSERT_EQ(memory.size(), kTestOperandDataSize); in initializeDeviceMemory() 684 testCopyFrom(buffer, memory, kTestOperand.dimensions, ErrorStatus::NONE); in initializeDeviceMemory() [all …]
|
/hardware/interfaces/drm/1.0/vts/functional/ |
D | Android.bp | 45 "android.hidl.memory@1.0", 57 "android.hidl.memory@1.0", 78 "android.hidl.memory@1.0",
|
/hardware/interfaces/soundtrigger/2.1/ |
D | ISoundTriggerHw.hal | 40 memory data; 64 memory data; 76 * ISoundTriggerHw@2.0 except that the SoundModel uses shared memory 90 * -ENOMEM in case of memory allocation failure, 110 * ISoundTriggerHw@2.0 except that the PhraseSoundModel uses shared memory 124 * -ENOMEM in case of memory allocation failure, 141 * ISoundTriggerHw@2.0 except that the RecognitionConfig uses shared memory 155 * -ENOMEM in case of memory allocation failure,
|
/hardware/interfaces/drm/1.0/ |
D | ICryptoPlugin.hal | 60 * Set a shared memory base for subsequent decrypt operations. The buffer 61 * base is a hidl_memory which maps shared memory in the HAL module. 69 * @param base the base IMemory of the memory buffer identified by 74 setSharedBufferBase(memory base, uint32_t bufferId); 77 * Decrypt an array of subsamples from the source memory buffer to the 78 * destination memory buffer.
|
/hardware/interfaces/soundtrigger/2.1/vts/functional/ |
D | VtsHalSoundtriggerV2_1TargetTest.cpp | 57 using ::android::hidl::memory::V1_0::IMemory; 354 sp<IMemory> memory = ::android::hardware::mapMemory(hmemory); in TEST_P() local 355 ASSERT_NE(nullptr, memory.get()); in TEST_P() 356 memory->update(); in TEST_P() 357 for (uint8_t *p = static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())); size >= 0; in TEST_P()
|
/hardware/interfaces/drm/1.1/vts/functional/ |
D | Android.bp | 33 "android.hidl.memory@1.0", 44 "android.hidl.memory@1.0",
|
/hardware/interfaces/camera/provider/2.4/default/ |
D | Android.bp | 17 "android.hidl.memory@1.0", 55 "android.hidl.memory@1.0", 97 "android.hidl.memory@1.0", 141 "android.hidl.memory@1.0",
|