Home
last modified time | relevance | path

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

12345

/system/authgraph/core/src/
Dlib.rs20 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()
Derror.rs19 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/
Dchunk_allocator_test.cc33 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()
Dchunk_allocator.h33 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/
DSharedBuffer_test.cpp29 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()
DSharedBuffer.cpp30 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()
DString16.cpp47 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/
Dlib.rs18 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/
DCargo.toml16 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/
DMemoryXz.cpp124 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/
Dlib.rs18 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)
Daes_cmac.rs18 use alloc::boxed::Box;
19 use alloc::vec::Vec;
/system/secretkeeper/comm/src/data_types/
Dresponse.rs21 use alloc::boxed::Box;
22 use alloc::vec::Vec;
Drequest.rs22 use alloc::boxed::Box;
23 use alloc::vec::Vec;
Derror.rs24 use alloc::boxed::Box;
25 use alloc::vec::Vec;
Drequest_response_impl.rs28 use alloc::boxed::Box;
29 use alloc::vec;
30 use alloc::vec::Vec;
/system/secretkeeper/core/src/ta/
Dbootloader.rs23 use alloc::format;
24 use alloc::string::{String, ToString};
25 use alloc::vec::Vec;
165 use alloc::vec;
/system/authgraph/wire/src/
Dfragmentation.rs17 use alloc::borrow::Cow;
18 use alloc::vec::Vec;
105 use alloc::string::{String, ToString};
106 use alloc::vec;
/system/extras/alloc-stress/
DAndroid.bp22 name: "alloc-stress",
23 srcs: ["alloc-stress.cpp"],
/system/secretkeeper/core/src/
Dlib.rs21 extern crate alloc;
Dstore.rs20 use alloc::boxed::Box;
21 use alloc::vec;
22 use alloc::vec::Vec;
/system/secretkeeper/comm/src/
Dlib.rs21 extern crate alloc;
/system/keymint/wire/src/
Dlib.rs21 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/
Dtests.rs16 use alloc::collections::BTreeSet;
17 use alloc::vec;
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp107 BufferAllocator alloc; in LLVMFuzzerTestOneInput() local
108 unique_fd dma_buf(alloc.Alloc(kDmabufSystemHeapName, shm_len)); in LLVMFuzzerTestOneInput()

12345