/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 | 39 template<size_t N> 40 static size_t align(size_t size) { in align() 45 template<size_t N> 46 static size_t align(void const*& buffer) { in align() 50 return size_t(uintptr_t(buffer) - b); in align() 53 template<size_t N> 54 static size_t align(void*& buffer) { in align() 58 size_t delta = size_t(uintptr_t(buffer) - uintptr_t(b)); in align() 63 static void advance(void*& buffer, size_t& size, size_t offset) { in advance() 68 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance() [all …]
|
/system/libhwbinder/include/hwbinder/ |
D | Parcel.h | 58 size_t dataSize() const; 59 size_t dataAvail() const; 60 size_t dataPosition() const; 61 size_t dataCapacity() const; 63 status_t setDataSize(size_t size); 64 void setDataPosition(size_t pos) const; 65 status_t setDataCapacity(size_t size); 67 status_t setData(const uint8_t* buffer, size_t len); 82 size_t objectsCount() const; 87 status_t write(const void* data, size_t len); [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/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/memory/libmemunreachable/include/memunreachable/ |
D | memunreachable.h | 32 size_t size = 0; 34 size_t referenced_count = 0; 35 size_t referenced_size = 0; 37 size_t similar_count = 0; 38 size_t similar_size = 0; 39 size_t similar_referenced_count = 0; 40 size_t similar_referenced_size = 0; 42 size_t total_size = 0; 44 static const size_t contents_length = 32; 48 size_t num_frames = 0; [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); 53 void AddCurrentRecordSize(size_t size) { cur_read_record_size_ += size; } in AddCurrentRecordSize() 60 size_t cur_write_record_size_ = 0; 61 size_t cur_read_record_size_ = 0; 62 const size_t buffer_size_; 74 size_t GetPidPosInSampleRecord() const { return pid_pos_in_sample_records_; } in GetPidPosInSampleRecord() 76 size_t GetTimePos(const perf_event_header& header) const; [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_u8_from_p24(uint8_t *dst, const uint8_t *src, size_t count); 132 void memcpy_to_u8_from_i32(uint8_t *dst, const int32_t *src, size_t count); 145 void memcpy_to_u8_from_q8_23(uint8_t *dst, const int32_t *src, size_t count); 158 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 173 void memcpy_to_i16_from_float(int16_t *dst, const float *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 …]
|
/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/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/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/core/adb/pairing_auth/include/adb/pairing/ |
D | aes_128_gcm.h | 31 explicit Aes128Gcm(const uint8_t* key_material, size_t key_material_len); 40 std::optional<size_t> Encrypt(const uint8_t* in, size_t in_len, uint8_t* out, size_t out_len); 48 std::optional<size_t> Decrypt(const uint8_t* in, size_t in_len, uint8_t* out, size_t out_len); 51 size_t EncryptedSize(size_t size); 53 size_t DecryptedSize(size_t size);
|
D | pairing_auth.h | 56 PairingAuthCtx* pairing_auth_server_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30); 67 PairingAuthCtx* pairing_auth_client_new(const uint8_t* pswd, size_t len) __INTRODUCED_IN(30); 85 size_t pairing_auth_msg_size(PairingAuthCtx* ctx) __INTRODUCED_IN(30); 119 bool pairing_auth_init_cipher(PairingAuthCtx* ctx, const uint8_t* their_msg, size_t msg_len) 133 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) __INTRODUCED_IN(30); 149 bool pairing_auth_encrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, 150 size_t* outlen) __INTRODUCED_IN(30); 164 size_t pairing_auth_safe_decrypted_size(PairingAuthCtx* ctx, const uint8_t* buf, size_t len) 182 bool pairing_auth_decrypt(PairingAuthCtx* ctx, const uint8_t* inbuf, size_t inlen, uint8_t* outbuf, 183 size_t* outlen) __INTRODUCED_IN(30);
|
/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/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | h4_packetizer.h | 36 size_t Send(uint8_t type, const uint8_t* data, size_t length); 55 static constexpr size_t COMMAND_PREAMBLE_SIZE = 3; 56 static constexpr size_t COMMAND_LENGTH_OFFSET = 2; 59 static constexpr size_t ACL_PREAMBLE_SIZE = 4; 60 static constexpr size_t ACL_LENGTH_OFFSET = 2; 63 static constexpr size_t SCO_PREAMBLE_SIZE = 3; 64 static constexpr size_t SCO_LENGTH_OFFSET = 2; 68 static constexpr size_t EVENT_PREAMBLE_SIZE = 2; 69 static constexpr size_t EVENT_LENGTH_OFFSET = 1; 71 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/bt/vendor_libs/linux/interface/ |
D | hci_internals.h | 32 const size_t HCI_COMMAND_PREAMBLE_SIZE = 3; 33 const size_t HCI_LENGTH_OFFSET_CMD = 2; 36 const size_t HCI_ACL_PREAMBLE_SIZE = 4; 37 const size_t HCI_LENGTH_OFFSET_ACL = 2; 40 const size_t HCI_SCO_PREAMBLE_SIZE = 3; 41 const size_t HCI_LENGTH_OFFSET_SCO = 2; 44 const size_t HCI_EVENT_PREAMBLE_SIZE = 2; 45 const size_t HCI_LENGTH_OFFSET_EVT = 1; 47 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 …]
|