Searched defs:size (Results 1 - 25 of 374) sorted by relevance

1234567891011>>

/system/bt/hci/src/
H A Dbuffer_allocator.cc24 static void* buffer_alloc(size_t size) { argument
25 CHECK(size <= BT_DEFAULT_BUFFER_SIZE);
26 return osi_malloc(size);
/system/chre/apps/chqts/src/shared/
H A Dnano_endian.cc21 void swapBytes(uint8_t *bytes, size_t size) { argument
22 for (size_t front = 0, end = size - 1; front < end; front++, end--) {
/system/core/base/
H A Dstringprintf_test.cpp24 size_t size = 0x00107e59; local
25 EXPECT_EQ("00107e59", android::base::StringPrintf("%08zx", size));
26 EXPECT_EQ("0x00107e59", android::base::StringPrintf("0x%08zx", size));
/system/core/demangle/
H A Ddemangle_fuzzer.cpp26 extern "C" void LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { argument
27 std::vector<char> data_str(size + 1);
28 memcpy(data_str.data(), data, size);
29 data_str[size] = '\0';
33 if (size != 0 && data_str[0] != '\0' && demangled_name.empty()) {
/system/chre/platform/linux/
H A Dmemory.cc23 void *memoryAlloc(size_t size) { argument
24 return malloc(size);
27 void *palSystemApiMemoryAlloc(size_t size) { argument
28 return malloc(size);
/system/core/include/utils/
H A DCallStack.h64 size_t size() const { return mFrameLines.size(); } function in class:android::CallStack
/system/core/libmemunreachable/
H A DBinder.cpp43 size_t size = refs.size(); local
46 refs.resize(size);
48 ssize_t ret = fn(refs.size(), refs.data());
53 size = ret;
54 } while (size > refs.size());
56 refs.resize(size);
/system/core/libsparse/
H A Dsparse_crc32.c101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument
107 while (size--)
/system/core/libutils/include/utils/
H A DCallStack.h64 size_t size() const { return mFrameLines.size(); } function in class:android::CallStack
/system/extras/ext4_utils/
H A Dcrc16.c49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument
54 while (size--)
/system/nfc/halimpl/pn54x/utils/
H A Dsparse_crc32.c100 uint32_t sparse_crc32(uint32_t crc_in, const void* buf, int size) { argument
105 while (size--) crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
/system/chre/platform/slpi/
H A Dmemory.cc29 void *memoryAlloc(size_t size) { argument
31 return SNS_OS_U_MALLOC(SNS_CHRE, size);
33 return malloc(size);
37 void *memoryAllocBigImage(size_t size) { argument
38 return malloc(size);
41 void *palSystemApiMemoryAlloc(size_t size) { argument
42 return malloc(size);
/system/chre/util/include/chre/util/
H A Dcontainer_support.h66 * @param size the size of the allocation to make.
69 inline void *memoryAlloc(size_t size) { argument
70 return chreHeapAlloc(static_cast<uint32_t>(size));
H A Dfixed_size_blocking_queue_impl.h58 size_t FixedSizeBlockingQueue<ElementType, kSize>::size() { function in class:chre::FixedSizeBlockingQueue
60 return mQueue.size();
/system/core/libcutils/arch-mips/
H A Dandroid_memset.c36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument
39 size >>= 1;
40 while (size--)
44 size >>= 1;
45 if (((uintptr_t)dst & 2) && size) {
48 size--;
53 android_memset32((uint32_t*) dst, value32, size<<1);
54 if (size & 1) {
55 dst[size-1] = value; /* fill unpaired last elem */
63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument
[all...]
/system/core/libunwindstack/tests/
H A DMemoryFake.cpp38 bool MemoryFake::Read(uint64_t addr, void* memory, size_t size) { argument
40 for (size_t i = 0; i < size; i++, addr++) {
/system/core/libutils/
H A DJenkinsHash.cpp18 * optimized for code size and portability, rather than raw speed. But speed
37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { argument
38 if (size > UINT32_MAX) {
41 hash = JenkinsHashMix(hash, (uint32_t)size);
43 for (i = 0; i < (size & -4); i += 4) {
47 if (size & 3) {
49 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0;
50 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0;
56 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) { argument
57 if (size > UINT32_MA
[all...]
/system/extras/memcpy-perf/
H A Dtest-funcs.cpp3 void __attribute__((noinline)) memcpy_noinline(void *dst, void *src, size_t size) argument
5 memcpy(dst,src,size);
8 void __attribute__((noinline)) memset_noinline(void *dst, int value, size_t size) argument
10 memset(dst, value, size);
13 uint64_t __attribute__((noinline)) sum(volatile void *src, size_t size) argument
17 size_t len = size / sizeof(uint64_t);
/system/nvram/messages/include/nvram/messages/
H A Dblob.h29 // A simple wrapper class holding binary data of fixed size.
50 size_t size() const { return size_; } function in class:nvram::Blob
52 // Reallocate the underlying buffer to hold |size| bytes and copy in |data|.
53 // Returns true on success, false if memory allocation fails. Blob size and
55 bool Assign(const void* data, size_t size) NVRAM_WARN_UNUSED_RESULT;
57 // Resize the blob to |size|. Existing data within the new |size| limit is
58 // retained. If |size| increases, new contents are unspecified. Returns true
59 // on success, false if memory allocation fails. Blob size and contents remain
65 bool Resize(size_t size) NVRAM_WARN_UNUSED_RESUL
[all...]
/system/nvram/messages/
H A Dnvram_messages.cpp47 MakeField(2, &CreateSpaceRequest::size),
63 MakeFieldList(MakeField(1, &GetSpaceInfoResponse::size),
183 bool Encode(const Message& msg, void* buffer, size_t* size) { argument
184 ArrayOutputStreamBuffer stream(buffer, *size);
188 *size = stream.bytes_written();
193 bool Decode(const uint8_t* data, size_t size, Message* msg) { argument
194 InputStreamBuffer stream(data, size);
/system/tools/hidl/
H A DHidlTypeAssertion.cpp32 HidlTypeAssertion::HidlTypeAssertion(const char *name, size_t size) argument
33 : mSize(size) {
34 registry().push_back(std::make_pair(name, size));
37 size_t HidlTypeAssertion::size() const { function in class:android::HidlTypeAssertion
54 << ", \"wrong size\");\n";
/system/bt/osi/src/
H A Dallocator.cc28 size_t size = strlen(str) + 1; // + 1 for the null terminator local
29 size_t real_size = allocation_tracker_resize_for_canary(size);
34 allocation_tracker_notify_alloc(alloc_allocator_id, ptr, size));
37 memcpy(new_string, str, size);
42 size_t size = strlen(str); local
43 if (len < size) size = len;
45 size_t real_size = allocation_tracker_resize_for_canary(size + 1);
50 allocation_tracker_notify_alloc(alloc_allocator_id, ptr, size + 1));
53 memcpy(new_string, str, size);
58 osi_malloc(size_t size) argument
65 osi_calloc(size_t size) argument
[all...]
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
H A Dflatbuffers_serialization.h45 * responsible for allocating enough buffer size to hold the serialized
48 * return the required buffer size to hold the serialized data.
52 * otherwise size of serialized data in buffer.
86 const size_t size = builder.GetSize(); local
89 LOGI("%s output buffer is null. Returning serialized size %zu.", log_tag,
90 size);
91 return size;
94 if (size > out_buffer_len) {
95 LOGE("Serialized %s size %zu too big for provided buffer %zu; dropping",
96 log_tag, size, out_buffer_le
[all...]
/system/chre/host/common/test/
H A Dchre_test_client.cc103 LOGI("Got nanoapp list response with %zu apps:", response.nanoapps.size());
165 ssize_t size = file.tellg(); local
168 std::vector<uint8_t> buffer(size);
169 if (!file.read(reinterpret_cast<char *>(buffer.data()), size)) {
174 FlatBufferBuilder builder(size + 128);
179 "payload)", builder.GetSize(), buffer.size());
191 LOGI("Sending unload request for nanoapp 0x%016" PRIx64 " (size %" PRIu32 ")",
/system/connectivity/wifilogd/
H A Dbyte_buffer.h30 // A fixed-size buffer, which provides the ability to accumulate bytes.
31 // The buffer tracks its (populated) size, and does not require dynamic
36 // .AppendOrDie(header.data(), header.size())
37 // .AppendOrDie(body.data(), body.size());
38 // write(fd, buffer.data(), buffer.size());
49 CHECK(data_len <= raw_buffer_.size() - write_pos_);
59 size_t size() const { return write_pos_; } function in class:android::wifilogd::ByteBuffer

Completed in 9118 milliseconds

1234567891011>>