/system/authgraph/core/src/ |
D | lib.rs | 20 extern crate alloc; 21 use alloc::vec::Vec; 33 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError>; in try_push() 38 ) -> Result<(), alloc::collections::TryReserveError> in try_extend_from_slice() 44 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError> { in try_push() 52 ) -> Result<(), alloc::collections::TryReserveError> in try_extend_from_slice() 67 ) -> Result<Vec<T>, alloc::collections::TryReserveError> { in vec_try_fill_with_alloc_err() 68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() 79 let mut v = alloc::vec::Vec::new(); 95 pub fn try_to_vec<T: Clone>(s: &[T]) -> Result<Vec<T>, alloc::collections::TryReserveError> { in try_to_vec()
|
D | error.rs | 19 use alloc::string::String; 33 impl From<alloc::collections::TryReserveError> for Error { 34 fn from(e: alloc::collections::TryReserveError) -> Self { in from() 45 alloc::format!("{}:{}: {}", file!(), line!(), format_args!($($arg)+))) }; 54 alloc::format!("{}:{}: {}", file!(), line!(), format_args!($($arg)+))) };
|
/system/chre/apps/test/chqts/src/shared/ |
D | chunk_allocator_test.cc | 33 void *ptr = da.alloc(kAllocSize); in TEST() 42 ptrs[i] = da.alloc(kAllocSize); in TEST() 50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST() 57 void *newPtr = da.alloc(kAllocSize); in TEST() 66 uint8_t *ptr = static_cast<uint8_t *>(da.alloc(kAllocSize)); in TEST() 75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1)); in TEST() 76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2)); in TEST() 81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1)); in TEST() 82 ExpectGoodAlloc(da, da.alloc(1)); in TEST() 83 ExpectGoodAlloc(da, da.alloc(0)); in TEST()
|
D | chunk_allocator.h | 33 void *alloc(size_t bytes); 75 void *alloc(size_t bytes) { in alloc() function 76 return ChunkAllocatorBase::alloc(bytes); in alloc()
|
/system/core/libutils/binder/ |
D | SharedBuffer_test.cpp | 29 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); in TEST() 30 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); in TEST() 37 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); in TEST() 47 android::SharedBuffer* buf = android::SharedBuffer::alloc(SIZE_MAX / 2); in TEST() 55 android::SharedBuffer* buf = android::SharedBuffer::alloc(0); in TEST() 62 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() 64 buf = android::SharedBuffer::alloc(10); in TEST() 71 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() 82 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST()
|
D | SharedBuffer.cpp | 30 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc() function in android::SharedBuffer 60 SharedBuffer* sb = alloc(mSize); in edit() 84 SharedBuffer* sb = alloc(newSize); in editResize() 104 SharedBuffer* sb = alloc(new_size); in reset()
|
D | String16.cpp | 47 void* String16::alloc(size_t size) in alloc() function in android::String16 49 SharedBuffer* buf = SharedBuffer::alloc(size); in alloc() 65 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t) * (u16len + 1))); in allocFromUTF8() 88 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc((u16len + 1) * sizeof(char16_t))); in allocFromUTF16() 317 buf = static_cast<SharedBuffer*>(alloc((size() + 1) * sizeof(char16_t))); in edit() 335 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize()
|
/system/keymint/common/src/ |
D | lib.rs | 18 extern crate alloc; 20 use alloc::{ 65 alloc::format!("{}:{}: {}", file!(), line!(), format_args!($($arg)+))) }; 74 alloc::format!("{}:{}: {}", file!(), line!(), format_args!($($arg)+))) }; 106 alloc::format!("{}:{}: {}", file!(), line!(), format_args!($($arg)+))) }; 114 let mut v = alloc::vec::Vec::new(); 154 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError>; in try_push() 159 ) -> Result<(), alloc::collections::TryReserveError> in try_extend_from_slice() 165 fn try_push(&mut self, value: T) -> Result<(), alloc::collections::TryReserveError> { in try_push() 173 ) -> Result<(), alloc::collections::TryReserveError> in try_extend_from_slice() [all …]
|
/system/keymint/common/ |
D | Cargo.toml | 16 der = { version = "^0.7.2", features = ["alloc", "derive"] } 21 pkcs1 = { version = "^0.7.5", features = ["alloc"] } 23 sec1 = { version = "0.7.3", features = ["alloc", "der", "pkcs8"] } 25 zeroize = { version = "^1.5.6", features = ["alloc", "zeroize_derive"] }
|
/system/unwinding/libunwindstack/ |
D | MemoryXz.cpp | 124 static ISzAlloc alloc; in ReadBlocks() local 125 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in ReadBlocks() 126 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in ReadBlocks() 192 if (Xzs_ReadBackward(&xzs, &callbacks, &end_offset, &callbacks, &alloc) == SZ_OK) { in ReadBlocks() 214 Xzs_Free(&xzs, &alloc); in ReadBlocks() 219 static ISzAlloc alloc; in Decompress() local 220 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in Decompress() 221 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in Decompress() 241 XzUnpacker_Construct(&state, &alloc); in Decompress()
|
/system/keymint/boringssl/src/ |
D | lib.rs | 18 extern crate alloc; 20 use alloc::string::ToString; 94 alloc::format!("{}:{}: {}: {:?}", file!(), line!(), format_args!($($arg)+), e) 114 alloc::format!("{}:{}: {}: {:?}", file!(), line!(), format_args!($($arg)+), e)
|
D | aes_cmac.rs | 18 use alloc::boxed::Box; 19 use alloc::vec::Vec;
|
/system/secretkeeper/comm/src/data_types/ |
D | response.rs | 21 use alloc::boxed::Box; 22 use alloc::vec::Vec;
|
D | request.rs | 22 use alloc::boxed::Box; 23 use alloc::vec::Vec;
|
D | error.rs | 24 use alloc::boxed::Box; 25 use alloc::vec::Vec;
|
D | request_response_impl.rs | 28 use alloc::boxed::Box; 29 use alloc::vec; 30 use alloc::vec::Vec;
|
/system/secretkeeper/core/src/ta/ |
D | bootloader.rs | 23 use alloc::format; 24 use alloc::string::{String, ToString}; 25 use alloc::vec::Vec; 165 use alloc::vec;
|
/system/authgraph/wire/src/ |
D | fragmentation.rs | 17 use alloc::borrow::Cow; 18 use alloc::vec::Vec; 105 use alloc::string::{String, ToString}; 106 use alloc::vec;
|
/system/extras/alloc-stress/ |
D | Android.bp | 22 name: "alloc-stress", 23 srcs: ["alloc-stress.cpp"],
|
/system/secretkeeper/core/src/ |
D | lib.rs | 21 extern crate alloc;
|
D | store.rs | 20 use alloc::boxed::Box; 21 use alloc::vec; 22 use alloc::vec::Vec;
|
/system/secretkeeper/comm/src/ |
D | lib.rs | 21 extern crate alloc;
|
/system/keymint/wire/src/ |
D | lib.rs | 21 extern crate alloc; 23 use alloc::{ 68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() 83 let mut v = alloc::vec::Vec::new(); in vec_try4_with_alloc_err() 104 let mut v = alloc::vec::Vec::new(); in vec_try3_with_alloc_err() 122 let mut v = alloc::vec::Vec::new(); in vec_try2_with_alloc_err() 135 let mut v = alloc::vec::Vec::new(); in vec_try1_with_alloc_err() 371 alloc::boxed::Box::new(coset::AsCborValue::to_cbor_value(self)?), in to_cbor_value() 454 let mut v = alloc::vec::Vec::new(); in to_cbor_value()
|
/system/keymint/common/src/tag/info/ |
D | tests.rs | 16 use alloc::collections::BTreeSet; 17 use alloc::vec;
|
/system/core/trusty/apploader/fuzz/ |
D | app_fuzzer.cpp | 107 BufferAllocator alloc; in LLVMFuzzerTestOneInput() local 108 unique_fd dma_buf(alloc.Alloc(kDmabufSystemHeapName, shm_len)); in LLVMFuzzerTestOneInput()
|