Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 2329) sorted by relevance

12345678910>>...94

/system/core/libutils/binder/include/utils/
DVectorImpl.h49 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 …]
DUnicode.h27 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);
39 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
45 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len);
84 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len);
93 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index);
99 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len);
106 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len);
114 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen, bool overreadIsFatal = false);
[all …]
DVector.h84 inline size_t size() const { return VectorImpl::size(); } in size()
88 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity()
90 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } in setCapacity()
96 inline ssize_t resize(size_t size) { return VectorImpl::resize(size); } in resize()
112 inline const TYPE& operator [] (size_t index) const;
114 inline const TYPE& itemAt(size_t index) const;
123 TYPE& editItemAt(size_t index);
132 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
139 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length);
142 ssize_t appendArray(const TYPE* array, size_t length);
[all …]
/system/core/libutils/include/utils/
DVectorImpl.h49 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 …]
DUnicode.h27 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);
39 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
45 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len);
84 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len);
93 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index);
99 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len);
106 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len);
114 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen, bool overreadIsFatal = false);
[all …]
DFlattenable.h37 template<size_t N>
38 static size_t align(size_t size) { in align()
43 template<size_t N>
44 static size_t align(void const*& buffer) { in align()
48 return size_t(uintptr_t(buffer) - b); in align()
51 template<size_t N>
52 static size_t align(void*& buffer) { in align()
56 size_t delta = size_t(uintptr_t(buffer) - uintptr_t(b)); in align()
61 static void advance(void*& buffer, size_t& size, size_t offset) { in advance()
66 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance()
[all …]
DVector.h84 inline size_t size() const { return VectorImpl::size(); } in size()
88 inline size_t capacity() const { return VectorImpl::capacity(); } in capacity()
90 inline ssize_t setCapacity(size_t size) { return VectorImpl::setCapacity(size); } in setCapacity()
96 inline ssize_t resize(size_t size) { return VectorImpl::resize(size); } in resize()
112 inline const TYPE& operator [] (size_t index) const;
114 inline const TYPE& itemAt(size_t index) const;
123 TYPE& editItemAt(size_t index);
132 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index);
139 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length);
142 ssize_t appendArray(const TYPE* array, size_t length);
[all …]
/system/chre/util/include/chre/util/
Dsegmented_queue.h41 template <typename ElementType, size_t kBlockSize>
56 SegmentedQueue(size_t maxBlockCount, size_t staticBlockCount = 1);
63 size_t size() { in size()
70 size_t block_count() { in block_count()
78 size_t capacity() { in capacity()
133 ElementType &operator[](size_t index);
134 const ElementType &operator[](size_t index) const;
172 bool remove(size_t index);
220 size_t removeMatchedFromBack(MatchingFunction *matchFunction, void *data,
221 void *extraData, size_t maxNumOfElementsRemoved,
[all …]
Dsegmented_queue_impl.h30 template <typename ElementType, size_t kBlockSize>
31 SegmentedQueue<ElementType, kBlockSize>::SegmentedQueue(size_t maxBlockCount, in SegmentedQueue()
32 size_t staticBlockCount) in SegmentedQueue()
38 for (size_t i = 0; i < kStaticBlockCount; i++) { in SegmentedQueue()
43 template <typename ElementType, size_t kBlockSize>
48 template <typename ElementType, size_t kBlockSize>
60 template <typename ElementType, size_t kBlockSize>
71 template <typename ElementType, size_t kBlockSize>
76 template <typename ElementType, size_t kBlockSize>
81 template <typename ElementType, size_t kBlockSize>
[all …]
Dfixed_size_vector_impl.h29 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 …]
Darray_queue.h91 size_t size() const;
122 ElementType &operator[](size_t index);
133 const ElementType &operator[](size_t index) const;
180 bool remove(size_t index);
224 size_t mHead = 0;
227 size_t mTail = StorageType::capacity() - 1;
230 size_t mSize = 0;
239 size_t relativeIndexToAbsolute(size_t index) const;
248 size_t absoluteIndexToRelative(size_t index) const;
256 void removeAndPullTail(size_t index);
[all …]
/system/libhwbinder/include/hwbinder/
DParcel.h62 size_t dataSize() const;
63 size_t dataAvail() const;
64 size_t dataPosition() const;
65 size_t dataCapacity() const;
67 status_t setDataSize(size_t size);
68 void setDataPosition(size_t pos) const;
69 status_t setDataCapacity(size_t size);
91 size_t objectsCount() const;
96 status_t write(const void* data, size_t len);
97 void* writeInplace(size_t len);
[all …]
/system/nfc/utils/test/
Dringbuffer_test.cc8 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/chre/platform/shared/include/chre/platform/shared/
Dlog_buffer.h86 static constexpr size_t kLogMaxSize = UINT8_MAX;
91 static constexpr size_t kLogDataOffset = 5;
95 static constexpr size_t kStringLogOverhead = 1;
100 static constexpr size_t kTokenizedLogOffset = 1;
106 static constexpr size_t kBtSnoopLogOffset = 2;
112 static constexpr size_t kNanoappTokenizedLogOffset = 3;
123 size_t bufferSize);
159 const uint8_t *log, size_t logSize);
172 const uint8_t *log, size_t logSize);
186 const uint8_t *buffer, size_t size);
[all …]
/system/memory/libmemunreachable/include/memunreachable/
Dmemunreachable.h32 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/security/keystore2/src/crypto/
Dcrypto.hpp25 bool hmacSha256(const uint8_t* key, size_t key_size, const uint8_t* msg, size_t msg_size,
26 uint8_t* out, size_t out_size);
27 bool randomBytes(uint8_t* out, size_t len);
28 bool AES_gcm_encrypt(const uint8_t* in, uint8_t* out, size_t len,
29 const uint8_t* key, size_t key_size, const uint8_t* iv, uint8_t* tag);
30 bool AES_gcm_decrypt(const uint8_t* in, uint8_t* out, size_t len,
31 const uint8_t* key, size_t key_size, const uint8_t* iv,
37 bool CreateKeyId(const uint8_t* key_blob, size_t len, km_id_t* out_id);
40 void PBKDF2(uint8_t* key, size_t key_len, const char* pw, size_t pw_len, const uint8_t* salt);
45 bool HKDFExtract(uint8_t *out_key, size_t *out_len,
[all …]
/system/extras/simpleperf/
DRecordReadThread.h42 RecordBuffer(size_t buffer_size);
43 size_t size() const { return buffer_size_; } in size()
47 size_t GetFreeSize() const;
49 char* AllocWriteSpace(size_t record_size);
55 void AddCurrentRecordSize(size_t size) { cur_read_record_size_ += size; } in AddCurrentRecordSize()
62 size_t cur_write_record_size_ = 0;
63 size_t cur_read_record_size_ = 0;
64 const size_t buffer_size_;
76 size_t GetPidPosInSampleRecord() const { return pid_pos_in_sample_records_; } in GetPidPosInSampleRecord()
78 size_t GetTimePos(const perf_event_header& header) const;
[all …]
/system/extras/memtrack/
Dmemtrack.h33 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/
Dprimitives.h56 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 …]
DPowerLog.h44 size_t entries,
45 size_t framesPerEntry);
47 size_t framesToProcess(size_t frames) const { in framesToProcess()
48 const size_t required = mFramesPerEntry - mCurrentFrames; in framesToProcess()
52 void processEnergy(size_t frames, float energy, int64_t nowNs);
54 std::string dumpToString(const char* prefix = "", size_t lines = 0, int64_t limitNs = 0,
63 const size_t mFramesPerEntry; // number of audio frames per entry
70 size_t mCurrentFrames = 0; // number of frames in the energy
71 size_t mIdx = 0; // next usable index in mEntries
72 size_t mConsecutiveZeroes = 1; // current run of consecutive zero entries
[all …]
/system/media/camera/include/system/
Dcamera_metadata.h81 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/
Dchannels.cpp78 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 …]
Dprimitives.c21 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_p24(uint8_t *dst, const uint8_t *src, size_t count) in memcpy_to_u8_from_p24()
65 void memcpy_to_u8_from_i32(uint8_t *dst, const int32_t *src, size_t count) in memcpy_to_u8_from_i32()
72 void memcpy_to_u8_from_q8_23(uint8_t *dst, const int32_t *src, size_t count) in memcpy_to_u8_from_q8_23()
79 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_u8_from_float()
86 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32()
93 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float()
[all …]
/system/core/libutils/
DLruCache_fuzz.cpp23 typedef android::LruCache<size_t, size_t> FuzzCache;
27 class NoopRemovedCallback : public android::OnEntryRemoved<size_t, size_t> {
29 void operator()(size_t&, size_t&) { in operator ()() argument
42 android::LruCache<size_t, size_t>::Iterator iter(*cache); in __anon7ffccd7c0502()
49 size_t key = dataProvider->ConsumeIntegral<size_t>(); in __anon7ffccd7c0602()
50 size_t val = dataProvider->ConsumeIntegral<size_t>(); in __anon7ffccd7c0602()
54 size_t key = dataProvider->ConsumeIntegral<size_t>(); in __anon7ffccd7c0702()
58 size_t key = dataProvider->ConsumeIntegral<size_t>(); in __anon7ffccd7c0802()
65 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput()
/system/nfc/utils/include/
Dringbuffer.h34 ringbuffer_t* ringbuffer_init(const size_t size);
41 size_t ringbuffer_available(const ringbuffer_t* rb);
44 size_t ringbuffer_size(const ringbuffer_t* rb);
49 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
55 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
56 size_t length);
59 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
63 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);

12345678910>>...94