/system/core/libutils/include/utils/ |
D | VectorImpl.h | 49 VectorImpl(size_t itemSize, uint32_t flags); 63 inline size_t size() const { return mCount; } in size() 65 size_t capacity() const; 66 ssize_t setCapacity(size_t size); 67 ssize_t resize(size_t size); 70 ssize_t insertVectorAt(const VectorImpl& vector, size_t index); 72 ssize_t insertArrayAt(const void* array, size_t index, size_t length); 73 ssize_t appendArray(const void* array, size_t length); 76 ssize_t insertAt(size_t where, size_t numItems = 1); 77 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1); [all …]
|
D | Unicode.h | 27 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n); 28 size_t strlen16(const char16_t *); 29 size_t strnlen16(const char16_t *, size_t); 40 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2); 43 size_t strlen32(const char32_t *); 44 size_t strnlen32(const char32_t *, size_t); 50 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len); 89 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len); 98 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index); 104 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len); [all …]
|
D | Flattenable.h | 34 template<size_t N> 35 static size_t align(size_t size) { in align() 40 template<size_t N> 41 static size_t align(void const*& buffer) { in align() 45 return size_t(uintptr_t(buffer) - b); in align() 48 template<size_t N> 49 static size_t align(void*& buffer) { in align() 53 size_t delta = size_t(uintptr_t(buffer) - uintptr_t(b)); in align() 58 static void advance(void*& buffer, size_t& size, size_t offset) { in advance() 63 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance() [all …]
|
/system/libhwbinder/include/hwbinder/ |
D | Parcel.h | 51 size_t dataSize() const; 52 size_t dataAvail() const; 53 size_t dataPosition() const; 54 size_t dataCapacity() const; 56 status_t setDataSize(size_t size); 57 void setDataPosition(size_t pos) const; 58 status_t setDataCapacity(size_t size); 60 status_t setData(const uint8_t* buffer, size_t len); 76 size_t objectsCount() const; 81 status_t write(const void* data, size_t len); [all …]
|
/system/nfc/utils/test/ |
D | ringbuffer_test.cc | 8 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST() 9 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 19 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 20 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 23 size_t peeked = ringbuffer_peek(rb, 0, peek, 10); in TEST() 24 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 25 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 26 EXPECT_EQ((size_t)10, peeked); in TEST() 39 size_t added = ringbuffer_insert(rb, aa, 7); in TEST() 40 EXPECT_EQ((size_t)5, added); in TEST() [all …]
|
/system/bt/osi/test/ |
D | ringbuffer_test.cc | 9 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST() 10 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 20 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 21 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 24 size_t peeked = ringbuffer_peek(rb, 0, peek, 10); in TEST() 25 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 26 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST() 27 EXPECT_EQ((size_t)10, peeked); in TEST() 40 size_t added = ringbuffer_insert(rb, aa, 7); in TEST() 41 EXPECT_EQ((size_t)5, added); in TEST() [all …]
|
/system/extras/simpleperf/ |
D | RecordReadThread.h | 41 RecordBuffer(size_t buffer_size); 42 size_t size() const { return buffer_size_; } in size() 45 size_t GetFreeSize() const; 47 char* AllocWriteSpace(size_t record_size); 59 size_t cur_write_record_size_ = 0; 60 size_t cur_read_record_size_ = 0; 61 const size_t buffer_size_; 73 size_t GetTimePos(const perf_event_header& header) const; 75 size_t GetStackSizePos(const std::function<void(size_t,size_t,void*)>& read_record_fn) const; 80 size_t time_pos_in_sample_records_ = 0; [all …]
|
/system/core/libmemunreachable/include/memunreachable/ |
D | memunreachable.h | 32 size_t size; 34 size_t referenced_count; 35 size_t referenced_size; 37 size_t similar_count; 38 size_t similar_size; 39 size_t similar_referenced_count; 40 size_t similar_referenced_size; 42 size_t total_size; 44 static const size_t contents_length = 32; 48 size_t num_frames; [all …]
|
/system/extras/memtrack/ |
D | memtrack.h | 33 FileData(char *filename, char *buffer, size_t buffer_len); 38 bool getPss(size_t *pss); 41 bool isAvail(size_t bytes); 46 size_t max_; 47 size_t cur_idx_; 48 size_t len_; 55 size_t max_num_pids; 57 size_t num_samples; 59 size_t min_pss_kb; 60 size_t max_pss_kb; [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | channels.h | 44 size_t adjust_channels(const void* in_buff, size_t in_buff_chans, 45 void* out_buff, size_t out_buff_chans, 46 unsigned sample_size_in_bytes, size_t num_in_bytes); 68 size_t adjust_selected_channels(const void* in_buff, size_t in_buff_chans, 69 void* out_buff, size_t out_buff_chans, 70 unsigned sample_size_in_bytes, size_t num_in_bytes); 93 size_t adjust_channels_non_destructive(const void* in_buff, size_t in_buff_chans, 94 void* out_buff, size_t out_buff_chans, 95 unsigned sample_size_in_bytes, size_t num_in_bytes);
|
D | primitives.h | 56 void ditherAndClamp(int32_t *out, const int32_t *sums, size_t pairs); 68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count); 80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 106 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count); 119 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 134 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count); 149 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count); 163 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count); 177 void memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count); [all …]
|
D | PowerLog.h | 57 size_t entries, 58 size_t framesPerEntry); 67 void log(const void *buffer, size_t frames, int64_t nowNs); 77 const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const; 88 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const; 94 size_t mCurrentFrames; // number of frames in the energy 95 size_t mIdx; // next usable index in mEntries 96 size_t mConsecutiveZeroes; // current run of consecutive zero entries 100 const size_t mFramesPerEntry; // number of audio frames per entry 129 uint32_t channel_count, audio_format_t format, size_t entries, size_t frames_per_entry); [all …]
|
/system/media/camera/include/system/ |
D | camera_metadata.h | 81 size_t index; 84 size_t count; 100 size_t index; 103 size_t count; 118 extern const size_t camera_metadata_type_size[NUM_TYPES]; 167 camera_metadata_t *allocate_camera_metadata(size_t entry_capacity, 168 size_t data_capacity); 176 size_t get_camera_metadata_alignment(); 188 size_t src_size); 201 camera_metadata_t *place_camera_metadata(void *dst, size_t dst_size, [all …]
|
/system/media/audio_utils/ |
D | channels.c | 78 size_t num_in_samples = (num_in_bytes) / sizeof(*(in_buff)); \ 79 size_t num_out_samples = (num_in_samples * (out_buff_chans)) / (in_buff_chans); \ 81 size_t src_index; \ 83 size_t num_zero_chans = (out_buff_chans) - (in_buff_chans); \ 85 size_t dst_offset; \ 111 size_t num_in_samples = (num_in_bytes) / sizeof(*(in_buff)); \ 112 size_t num_out_samples = (num_in_samples * (out_buff_chans)) / (in_buff_chans); \ 114 size_t src_index; \ 116 size_t num_extra_chans = (out_buff_chans) - (in_buff_chans); \ 119 for (size_t dst_offset = num_extra_chans; dst_offset < (out_buff_chans); dst_offset++) { \ [all …]
|
D | primitives.c | 21 void ditherAndClamp(int32_t *out, const int32_t *sums, size_t pairs) in ditherAndClamp() 30 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_q4_27() 37 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() 46 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() 53 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_u8_from_float() 60 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() 67 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float() 74 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count) in memcpy_to_float_from_q4_27() 81 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count) in memcpy_to_float_from_i16() 90 void memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count) in memcpy_to_float_from_u8() [all …]
|
/system/nfc/utils/include/ |
D | ringbuffer.h | 33 ringbuffer_t* ringbuffer_init(const size_t size); 40 size_t ringbuffer_available(const ringbuffer_t* rb); 43 size_t ringbuffer_size(const ringbuffer_t* rb); 48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length); 54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, 55 size_t length); 58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length); 62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
|
/system/bt/osi/include/ |
D | ringbuffer.h | 33 ringbuffer_t* ringbuffer_init(const size_t size); 40 size_t ringbuffer_available(const ringbuffer_t* rb); 43 size_t ringbuffer_size(const ringbuffer_t* rb); 48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length); 54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p, 55 size_t length); 58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length); 62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | h4_packetizer.h | 35 size_t Send(uint8_t type, const uint8_t* data, size_t length); 52 static constexpr size_t COMMAND_PREAMBLE_SIZE = 3; 53 static constexpr size_t COMMAND_LENGTH_OFFSET = 2; 56 static constexpr size_t ACL_PREAMBLE_SIZE = 4; 57 static constexpr size_t ACL_LENGTH_OFFSET = 2; 60 static constexpr size_t SCO_PREAMBLE_SIZE = 3; 61 static constexpr size_t SCO_LENGTH_OFFSET = 2; 65 static constexpr size_t EVENT_PREAMBLE_SIZE = 2; 66 static constexpr size_t EVENT_LENGTH_OFFSET = 1; 68 static constexpr size_t PREAMBLE_SIZE_MAX = ACL_PREAMBLE_SIZE; [all …]
|
D | hci_packetizer.h | 37 static constexpr size_t COMMAND_PREAMBLE_SIZE = 3; 38 static constexpr size_t COMMAND_LENGTH_OFFSET = 2; 41 static constexpr size_t ACL_PREAMBLE_SIZE = 4; 42 static constexpr size_t ACL_LENGTH_OFFSET = 2; 45 static constexpr size_t SCO_PREAMBLE_SIZE = 3; 46 static constexpr size_t SCO_LENGTH_OFFSET = 2; 50 static constexpr size_t EVENT_PREAMBLE_SIZE = 2; 51 static constexpr size_t EVENT_LENGTH_OFFSET = 1; 53 static constexpr size_t PREAMBLE_SIZE_MAX = ACL_PREAMBLE_SIZE; 55 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble); [all …]
|
/system/chre/util/include/chre/util/ |
D | array_queue_impl.h | 28 template<typename ElementType, size_t kCapacity> 33 template<typename ElementType, size_t kCapacity> 38 template<typename ElementType, size_t kCapacity> 43 template<typename ElementType, size_t kCapacity> 44 size_t ArrayQueue<ElementType, kCapacity>::size() const { in size() 48 template<typename ElementType, size_t kCapacity> 54 template<typename ElementType, size_t kCapacity> 60 template<typename ElementType, size_t kCapacity> 66 template<typename ElementType, size_t kCapacity> 72 template<typename ElementType, size_t kCapacity> [all …]
|
D | fixed_size_vector_impl.h | 29 template<typename ElementType, size_t kCapacity> 34 template<typename ElementType, size_t kCapacity> 40 template<typename ElementType, size_t kCapacity> 46 template<typename ElementType, size_t kCapacity> 52 template<typename ElementType, size_t kCapacity> 58 template<typename ElementType, size_t kCapacity> 63 template<typename ElementType, size_t kCapacity> 68 template<typename ElementType, size_t kCapacity> 69 size_t FixedSizeVector<ElementType, kCapacity>::size() const { in size() 73 template<typename ElementType, size_t kCapacity> [all …]
|
/system/chre/platform/include/chre/platform/ |
D | memory_manager.h | 61 size_t getTotalAllocatedBytes() const { in getTotalAllocatedBytes() 68 size_t getPeakAllocatedBytes() const { in getPeakAllocatedBytes() 75 size_t getAllocationCount() const { in getAllocationCount() 82 size_t getMaxAllocationBytes() const { in getMaxAllocationBytes() 89 size_t getMaxAllocationCount() const { in getMaxAllocationCount() 101 void logStateToBuffer(char *buffer, size_t *bufferPos, 102 size_t bufferSize) const; 123 size_t mTotalAllocatedBytes = 0; 126 size_t mPeakAllocatedBytes = 0; 129 size_t mAllocationCount = 0; [all …]
|
/system/core/libunwindstack/include/unwindstack/ |
D | Memory.h | 45 virtual size_t Read(uint64_t addr, void* dst, size_t size) = 0; 47 bool ReadFully(uint64_t addr, void* dst, size_t size); 63 size_t Read(uint64_t addr, void* dst, size_t size) override; 68 constexpr static size_t kCacheBits = 12; 69 constexpr static size_t kCacheMask = (1 << kCacheBits) - 1; 70 constexpr static size_t kCacheSize = 1 << kCacheBits; 81 size_t Read(uint64_t addr, void* dst, size_t size) override; 83 uint8_t* GetPtr(size_t offset); 85 void Resize(size_t size) { raw_.resize(size); } in Resize() 100 size_t Read(uint64_t addr, void* dst, size_t size) override; [all …]
|
/system/bt/vendor_libs/linux/interface/ |
D | hci_internals.h | 31 const size_t HCI_COMMAND_PREAMBLE_SIZE = 3; 32 const size_t HCI_LENGTH_OFFSET_CMD = 2; 35 const size_t HCI_ACL_PREAMBLE_SIZE = 4; 36 const size_t HCI_LENGTH_OFFSET_ACL = 2; 39 const size_t HCI_SCO_PREAMBLE_SIZE = 3; 40 const size_t HCI_LENGTH_OFFSET_SCO = 2; 43 const size_t HCI_EVENT_PREAMBLE_SIZE = 2; 44 const size_t HCI_LENGTH_OFFSET_EVT = 1; 46 const size_t HCI_PREAMBLE_SIZE_MAX = HCI_ACL_PREAMBLE_SIZE;
|
/system/testing/gtest_extras/ |
D | Isolate.h | 57 size_t CheckTestsFinished(); 73 void PrintResults(size_t total, const ResultsType& results, std::string* footer); 84 size_t total_suites_ = 0; 85 size_t total_tests_ = 0; 86 size_t total_disable_tests_ = 0; 87 size_t total_pass_tests_; 88 size_t total_xpass_tests_; 89 size_t total_fail_tests_; 90 size_t total_xfail_tests_; 91 size_t total_timeout_tests_; [all …]
|