Home
last modified time | relevance | path

Searched refs:HidlMemory (Results 1 – 25 of 42) sorted by relevance

12

/aosp12/system/libhidl/base/
H A DHidlSupport.cpp289 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance()
290 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
295 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance()
296 sp<HidlMemory> instance = new HidlMemory(); in getInstance()
301 sp<HidlMemory> HidlMemory::getInstance(const hidl_string& name, int fd, uint64_t size) { in getInstance()
306 return new HidlMemory(); in getInstance()
313 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance()
317 HidlMemory::HidlMemory() : hidl_memory() {} in HidlMemory() function in android::hardware::HidlMemory
319 HidlMemory::HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size) in HidlMemory() function in android::hardware::HidlMemory
323 HidlMemory::~HidlMemory() {} in ~HidlMemory()
/aosp12/frameworks/base/core/java/android/os/
H A DHidlMemoryUtil.java57 HidlMemory byteArrayToHidlMemory(@NonNull byte[] input) { in byteArrayToHidlMemory()
72 HidlMemory byteArrayToHidlMemory(@NonNull byte[] input, @Nullable String name) { in byteArrayToHidlMemory()
76 return new HidlMemory("ashmem", 0, null); in byteArrayToHidlMemory()
99 HidlMemory byteListToHidlMemory(@NonNull List<Byte> input) { in byteListToHidlMemory()
118 return new HidlMemory("ashmem", 0, null); in byteListToHidlMemory()
141 byte[] hidlMemoryToByteArray(@NonNull HidlMemory mem) { in hidlMemoryToByteArray()
167 ArrayList<Byte> hidlMemoryToByteList(@NonNull HidlMemory mem) { in hidlMemoryToByteList()
196 return new HidlMemory("ashmem", 0, null); in sharedMemoryToHidlMemory()
213 return new HidlMemory("ashmem", 0, null); in fileDescriptorToHidlMemory()
217 return new HidlMemory("ashmem", size, handle); in fileDescriptorToHidlMemory()
[all …]
H A DHidlMemory.java43 public class HidlMemory implements Closeable { class
58 public HidlMemory(@NonNull String name, @IntRange(from = 0) long size, in HidlMemory() method in HidlMemory
70 public HidlMemory dup() throws IOException { in dup()
71 return new HidlMemory(mName, mSize, mHandle != null ? mHandle.dup() : null); in dup()
H A DHwParcel.java332 public native final void writeHidlMemory(@NonNull HidlMemory memory); in writeHidlMemory()
604 public native final HidlMemory readHidlMemory(); in readHidlMemory()
622 HidlMemory readEmbeddedHidlMemory(long fieldHandle, long parentHandle, long offset); in readEmbeddedHidlMemory()
H A DHwBlob.java328 public final void putHidlMemory(long offset, @NonNull HidlMemory mem) { in putHidlMemory()
/aosp12/frameworks/av/media/libstagefright/include/
H A DACodecBufferChannel.h33 class HidlMemory; variable
35 using hardware::HidlMemory;
88 const sp<hardware::HidlMemory> &memory,
135 int32_t getHeapSeqNum(const sp<HidlMemory> &memory);
143 std::map<wp<HidlMemory>, int32_t> mHeapSeqNumMap;
144 sp<HidlMemory> mHidlMemory;
/aosp12/system/libhidl/transport/allocator/1.0/utils/
H A DFrameworkUtils.cpp25 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap) { in fromHeap()
29 return HidlMemory::getInstance(hidl_memory()); in fromHeap()
35 return HidlMemory::getInstance("ashmem", fd, heap->getSize()); in fromHeap()
/aosp12/frameworks/av/drm/libmediadrm/include/mediadrm/
H A DCryptoHal.h37 using ::android::hardware::HidlMemory;
70 virtual int32_t setHeap(const sp<HidlMemory>& heap) { in setHeap()
99 int32_t setHeapBase(const sp<HidlMemory>& heap);
/aosp12/system/libhidl/libhidlmemory/include/hidlmemory/
H A DHidlMemoryToken.h28 HidlMemoryToken(sp<HidlMemory> memory);
31 sp<HidlMemory> mMemory;
/aosp12/hardware/interfaces/tests/memory/1.0/default/
H A DMemoryTest.cpp70 sp<HidlMemory> hidlMem = HidlMemory::getInstance(mem); in set()
/aosp12/frameworks/av/drm/libmediadrm/interface/mediadrm/
H A DICrypto.h29 class HidlMemory; variable
87 virtual int32_t setHeap(const sp<hardware::HidlMemory>& heap) = 0;
/aosp12/frameworks/base/media/jni/
H A Dandroid_media_MediaCodecLinearBlock.h35 sp<hardware::HidlMemory> mHidlMemory;
67 sp<hardware::HidlMemory> toHidlMemory() { in toHidlMemory()
H A Dandroid_media_MediaCodec.h47 class HidlMemory; variable
116 const sp<hardware::HidlMemory> &buffer,
H A Dandroid_media_MediaDescrambler.cpp41 class HidlMemory;
44 using hardware::HidlMemory;
73 sp<HidlMemory> mHidlMemory;
/aosp12/frameworks/av/media/codec2/sfplugin/
H A DCCodecBufferChannel.h79 const sp<hardware::HidlMemory> &memory,
251 int32_t getHeapSeqNum(const sp<hardware::HidlMemory> &memory);
257 std::map<wp<hardware::HidlMemory>, int32_t> mHeapSeqNumMap;
H A DCodec2Buffer.h31 class HidlMemory; variable
390 sp<hardware::HidlMemory> mHidlMemory;
/aosp12/system/libhidl/transport/allocator/1.0/utils/include/hidlmemory/
H A DFrameworkUtils.h31 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap);
/aosp12/system/libhidl/base/include/hidl/
H A DHidlSupport.h314 class HidlMemory : public virtual hidl_memory, public virtual ::android::RefBase {
316 static sp<HidlMemory> getInstance(const hidl_memory& mem);
318 static sp<HidlMemory> getInstance(hidl_memory&& mem);
320 static sp<HidlMemory> getInstance(const hidl_string& name, hidl_handle&& handle, uint64_t size);
325 static sp<HidlMemory> getInstance(const hidl_string& name, int fd, uint64_t size);
327 virtual ~HidlMemory();
330 HidlMemory();
331 HidlMemory(const hidl_string& name, hidl_handle&& handle, size_t size);
/aosp12/system/libhidl/libhidlmemory/
H A DHidlMemoryToken.cpp21 HidlMemoryToken::HidlMemoryToken(sp<HidlMemory> memory) : mMemory(memory) {} in HidlMemoryToken()
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/
H A DCodecBase.h50 class HidlMemory; variable
379 const sp<hardware::HidlMemory> &memory, in attachEncryptedBuffer()
/aosp12/frameworks/av/media/libstagefright/
H A DCodecBase.cpp36 sp<hardware::HidlMemory> hidlMemory; in IMemoryToSharedBuffer()
H A DACodecBufferChannel.cpp319 int32_t ACodecBufferChannel::getHeapSeqNum(const sp<HidlMemory> &memory) { in getHeapSeqNum()
333 const sp<hardware::HidlMemory> &memory, in attachEncryptedBuffer()
527 sp<HidlMemory> hHeap = fromHeap(dealer->getMemoryHeap()); in makeMemoryDealer()
646 for (std::pair<wp<HidlMemory>, int32_t> entry : mHeapSeqNumMap) { in setCrypto()
/aosp12/hardware/interfaces/cas/1.1/vts/functional/
H A DVtsHalCasV1_1TargetTest.cpp64 using android::hardware::HidlMemory;
379 sp<HidlMemory> hidlMemory = fromHeap(heap); in descrambleTestInputBuffer()
433 sp<HidlMemory> hidlMemory = fromHeap(heap); in descrambleTestOobInput()
/aosp12/frameworks/av/drm/libmediadrm/
H A DCryptoHal.cpp49 using ::android::hardware::HidlMemory;
225 int32_t CryptoHal::setHeapBase(const sp<HidlMemory>& heap) { in setHeapBase()
/aosp12/hardware/interfaces/cas/1.2/vts/functional/
H A DVtsHalCasV1_2TargetTest.cpp64 using android::hardware::HidlMemory;
413 sp<HidlMemory> hidlMemory = fromHeap(heap); in descrambleTestInputBuffer()
467 sp<HidlMemory> hidlMemory = fromHeap(heap); in descrambleTestOobInput()

12