Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 75) sorted by relevance

123

/packages/modules/Virtualization/vmbase/src/
Dheap.rs17 use alloc::alloc::alloc;
18 use alloc::alloc::Layout;
19 use alloc::boxed::Box;
21 use core::alloc::GlobalAlloc as _;
69 let ptr = unsafe { alloc(layout) }; in aligned_boxed_slice()
140 HEAP_ALLOCATOR.alloc(layout) in allocate()
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Ddecoder-oina.c40 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, in OI_CODEC_SBC_DecoderConfigureRaw() argument
68 if (alloc > SBC_SNR) { in OI_CODEC_SBC_DecoderConfigureRaw()
81 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
/packages/modules/Bluetooth/system/osi/test/fuzzers/allocator/
Dfuzz_allocator.cc112 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput() local
113 if (alloc != nullptr) { in LLVMFuzzerTestOneInput()
114 osi_free(alloc); in LLVMFuzzerTestOneInput()
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.h67 std::function<void*(size_t)> alloc);
70 std::function<void*(size_t)> alloc) { in getBlob() argument
72 const ssize_t size = getBlob(key, keySize, &valueVoid, alloc); in getBlob()
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DEvsGlDisplay.cpp69 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in forceShutdown() local
70 alloc.free(mBuffer.memHandle); in forceShutdown()
187 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in getTargetBuffer() local
189 alloc.allocate(mBuffer.width, mBuffer.height, mBuffer.format, 1, mBuffer.usage, in getTargetBuffer()
DEvsV4lCamera.cpp93 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in shutdown() local
98 alloc.free(rec.handle); in shutdown()
587 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in increaseAvailableFrames_Locked() local
594 status_t result = alloc.allocate(mVideo.getWidth(), mVideo.getHeight(), mFormat, 1, mUsage, in increaseAvailableFrames_Locked()
639 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in decreaseAvailableFrames_Locked() local
647 alloc.free(rec.handle); in decreaseAvailableFrames_Locked()
/packages/services/DeviceAsWebcam/tests/
Dmac_webcam_test.py112 delegate = SampleBufferDelegate.alloc().init()
113 session = AVFoundation.AVCaptureSession.alloc().init()
120 video_output = AVFoundation.AVCaptureVideoDataOutput.alloc().init()
/packages/services/Car/cpp/evs/apps/default/src/
DStreamHandler.cpp54 android::GraphicBufferAllocator& alloc(android::GraphicBufferAllocator::get()); in StreamHandler() local
59 android::status_t result = alloc.allocate(width, height, format, 1, usage, &memHandle, in StreamHandler()
102 android::GraphicBufferAllocator& alloc(android::GraphicBufferAllocator::get()); in shutdown() local
104 alloc.free(android::makeFromAidl(b.buffer.handle)); in shutdown()
/packages/modules/Virtualization/vmbase/src/memory/
Dshared.rs30 use alloc::alloc::{alloc_zeroed, dealloc, handle_alloc_error};
31 use alloc::boxed::Box;
32 use alloc::collections::BTreeSet;
33 use alloc::vec::Vec;
35 use core::alloc::Layout;
184 pub fn alloc(&mut self, base: usize, size: NonZeroUsize) -> Result<MemoryRange> { in alloc() method
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.h130 size_t get(const void* key, size_t keySize, void** value, std::function<void*(size_t)> alloc);
132 size_t get(const void* key, size_t keySize, T** value, std::function<void*(size_t)> alloc) { in get() argument
134 const size_t size = get(key, keySize, &valueVoid, alloc); in get()
/packages/modules/Bluetooth/system/osi/src/
Dlist.cc29 list_t* list = (list_t*)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal()
96 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after()
111 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_prepend()
125 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_append()
/packages/modules/Virtualization/libs/cborutil/src/
Dlib.rs19 extern crate alloc;
21 use alloc::string::String;
22 use alloc::vec::Vec;
/packages/modules/Virtualization/service_vm/requests/src/
Drkp.rs20 use alloc::string::String;
21 use alloc::vec;
22 use alloc::vec::Vec;
Dcert.rs18 use alloc::vec;
19 use alloc::vec::Vec;
Dkeyblob.rs17 use alloc::vec;
18 use alloc::vec::Vec;
/packages/modules/Virtualization/libs/bssl/src/
Ddigest.rs18 use alloc::vec;
19 use alloc::vec::Vec;
/packages/modules/Virtualization/service_vm/comm/src/
Dcsr.rs18 use alloc::vec;
19 use alloc::vec::Vec;
/packages/services/Car/cpp/evs/manager/1.1/emul/
DEvsEmulatedCamera.cpp164 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in shutdown() local
169 alloc.free(rec.handle); in shutdown()
558 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in increaseAvailableFrames_Locked() local
565 status_t result = alloc.allocate(mCaptureDeviceDesc.width, mCaptureDeviceDesc.height, in increaseAvailableFrames_Locked()
614 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in decreaseAvailableFrames_Locked() local
622 alloc.free(rec.handle); in decreaseAvailableFrames_Locked()
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DEvsGlDisplay.cpp142 ::android::GraphicBufferAllocator& alloc(::android::GraphicBufferAllocator::get()); in initializeGlContextLocked()
146 alloc.allocate(mBuffer.description.width, mBuffer.description.height, in initializeGlContextLocked()
228 ::android::GraphicBufferAllocator& alloc(::android::GraphicBufferAllocator::get()); in renderFrames()
229 alloc.free(mBuffer.handle); in renderFrames()
/packages/modules/Bluetooth/system/osi/test/fuzzers/list/
Dfuzz_list.cc269 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput() local
270 if (alloc != nullptr) { in LLVMFuzzerTestOneInput()
271 free(alloc); in LLVMFuzzerTestOneInput()
/packages/modules/Virtualization/rialto/src/
Dmain.rs25 extern crate alloc;
30 use alloc::boxed::Box;
105 .alloc(fdt_addr, NonZeroUsize::new(crosvm::FDT_MAX_SIZE).unwrap())?; in try_main()
/packages/modules/Virtualization/service_vm/fake_chain/src/
Dclient_vm.rs20 use alloc::vec;
21 use alloc::vec::Vec;
Dservice_vm.rs20 use alloc::vec;
21 use alloc::vec::Vec;
/packages/modules/Virtualization/pvmfw/src/
Dmain.rs20 extern crate alloc;
43 use alloc::borrow::Cow;
44 use alloc::boxed::Box;
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/
Doi_codec_sbc.h180 uint8_t alloc; /**< The bit allocation method. Input parameter. */ member
336 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,

123