/system/core/demangle/ |
H A D | Demangler.cpp | 330 size_t index; local 332 index = *name - '0' + 1; 334 index = *name - 'A' + 11; 341 if (index >= saves_.size()) { 346 AppendCurrent(saves_[index]); 363 unsigned long int index = strtoul(name, &end, 10) + 1; local 368 if (index >= template_saves_.size()) { 373 AppendCurrent(template_saves_[index]); 597 size_t index = cur_state_.suffixes.size(); local 598 cur_state_.suffixes[index [all...] |
/system/core/include/backtrace/ |
H A D | BacktraceMap.h | 73 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} argument 166 virtual uint64_t GetLoadBias(size_t /* index */) { return 0; }
|
/system/core/include/utils/ |
H A D | SortedVector.h | 85 //! finds the index of an item 96 //! read-only access to an item at a given index 97 inline const TYPE& operator [] (size_t index) const; 99 inline const TYPE& itemAt(size_t index) const; 111 TYPE& editItemAt(size_t index) { argument 112 return *( static_cast<TYPE *>(VectorImpl::editItemLocation(index)) ); 123 inline ssize_t removeItemsAt(size_t index, size_t count = 1); 125 inline ssize_t removeAt(size_t index) { return removeItemsAt(index); } argument 140 ssize_t index local 250 removeItemsAt(size_t index, size_t count) argument [all...] |
/system/core/libbacktrace/include/backtrace/ |
H A D | BacktraceMap.h | 73 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} argument 166 virtual uint64_t GetLoadBias(size_t /* index */) { return 0; }
|
/system/core/libcutils/ |
H A D | hashmap.cpp | 122 size_t index = calculateIndex(newBucketCount, entry->hash); local 123 entry->next = newBuckets[index]; 124 newBuckets[index] = entry; 199 size_t index = calculateIndex(map->bucketCount, hash); local 201 Entry** p = &(map->buckets[index]); 231 size_t index = calculateIndex(map->bucketCount, hash); local 233 Entry* entry = map->buckets[index]; 246 size_t index = calculateIndex(map->bucketCount, hash); local 248 Entry* entry = map->buckets[index]; 262 size_t index local 294 size_t index = calculateIndex(map->bucketCount, hash); local [all...] |
/system/core/libpixelflinger/ |
H A D | buffer.cpp | 117 int32_t index = x + (s->stride * y); local 118 uint8_t* const data = s->data + index * f->size; 174 int32_t index = x + (s->stride * y); local 175 uint8_t* const data = s->data + index * f->size;
|
/system/core/libutils/ |
H A D | Unicode.cpp | 156 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index) argument 158 if (index >= src_len) { 166 int32_t ret = utf32_at_internal(src + index, &num_read); 168 *next_index = index + num_read;
|
H A D | VectorImpl.cpp | 116 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument 118 return insertArrayAt(vector.arrayImpl(), index, vector.size()); 126 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) argument 128 if (index > size()) 130 void* where = _grow(index, length); 134 return where ? index : (ssize_t)NO_MEMORY; 142 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) argument 144 return insertAt(0, index, numItems); 147 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) argument 149 if (index > siz 254 replaceAt(size_t index) argument 259 replaceAt(const void* prototype, size_t index) argument 282 removeItemsAt(size_t index, size_t count) argument 306 editItemLocation(size_t index) argument [all...] |
/system/core/libutils/include/utils/ |
H A D | SortedVector.h | 85 //! finds the index of an item 96 //! read-only access to an item at a given index 97 inline const TYPE& operator [] (size_t index) const; 99 inline const TYPE& itemAt(size_t index) const; 111 TYPE& editItemAt(size_t index) { argument 112 return *( static_cast<TYPE *>(VectorImpl::editItemLocation(index)) ); 123 inline ssize_t removeItemsAt(size_t index, size_t count = 1); 125 inline ssize_t removeAt(size_t index) { return removeItemsAt(index); } argument 140 ssize_t index local 250 removeItemsAt(size_t index, size_t count) argument [all...] |
/system/core/libutils/tests/ |
H A D | LruCache_test.cpp | 230 int index = random() % kNumKeys; local 231 uint32_t key = hash_int(index); 234 EXPECT_EQ(strings[index], val); 237 cache.put(key, strings[index]);
|
/system/extras/libfec/ |
H A D | fec_private.h | 95 uint64_t index; member in struct:verity_block_info
|
/system/keymaster/key_blob_utils/ |
H A D | software_keyblobs.cpp | 46 int index = set->find(tag); local 47 if (index == -1) { 56 if (set->params[index].integer > value) 59 if (set->params[index].integer != value) { 60 set->params[index].integer = value;
|
/system/libhidl/base/include/hidl/ |
H A D | HidlInternal.h | 93 T &operator[](size_t index) { argument 94 return mPointer[index]; 96 const T &operator[](size_t index) const { 97 return mPointer[index];
|
/system/libhwbinder/ |
H A D | Debug.cpp | 220 size_t index; local 231 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) { 234 if (index == 0 && word > 0 && alignment > 0) { 239 const unsigned char val = *(pos+startIndex-index); 248 if (index == 0 && word > 0) { 252 if (index == 0) { 256 const unsigned char val = *(pos+startIndex-index); [all...] |
/system/libufdt/utils/src/ |
H A D | mkdtimg_dump.c | 120 static void output_table_entry(FILE *out_fp, int index, const struct dt_table_entry *entry) { argument 121 fprintf(out_fp, "dt_table_entry[%d]:\n", index);
|
/system/media/audio_utils/ |
H A D | fifo.cpp | 50 uint32_t audio_utils_fifo_base::sum(uint32_t index, uint32_t increment) const argument 55 ALOG_ASSERT((index & mask) < mFrameCount); 57 if ((index & mask) + increment >= mFrameCount) { 60 index += increment; 61 ALOG_ASSERT((index & mask) < mFrameCount); 62 return index; 64 return index + increment; 252 // Try to load index again, but give up if we are unable to converge. 413 // If we throttle the writer, then initialize our front index to zero so that we see all data 415 // Otherwise, ignore everything currently in the buffer by initializing our front index t [all...] |
/system/media/camera/tests/ |
H A D | camera_metadata_tests.cpp | 299 size_t index = 0; local 303 index, &entry); 305 EXPECT_EQ(index, entry.index); 310 index++; 313 index, &entry); 315 EXPECT_EQ(index, entry.index); 320 index++; 323 index, [all...] |
/system/media/radio/src/ |
H A D | radio_metadata.c | 74 /* do not grow buffer if it can accommodate the new entry plus an additional index entry */ 90 /* move index table */ 140 const unsigned index, 143 uint32_t index_offset = metadata->size_int - index - 1; 146 LOG_ALWAYS_FATAL_IF(metadata->size_int < (index + 1), 149 if (index >= metadata->count) { 267 uint32_t index; local 284 for (index = 0; index < src_metadata_buf->count; index 138 get_entry_at_index( const radio_metadata_buffer_t *metadata, const unsigned index, bool check) argument 370 radio_metadata_get_at_index(const radio_metadata_t *metadata, const uint32_t index, radio_metadata_key_t *key, radio_metadata_type_t *type, void **value, size_t *size) argument [all...] |
/system/nfc/src/nfa/ee/ |
H A D | nfa_ee_api.cc | 191 int index = NFA_EE_MAX_CBACKS; local 196 index = xx; 203 << StringPrintf("%d, status:%d", index, status); 208 p_msg->index = index;
|
H A D | nfa_ee_main.cc | 381 uint8_t index; local 383 index = (uint8_t)(p_cb - nfa_ee_cb.ecb); 384 mask = 1 << index; 464 msg.deregister.index = xx;
|
/system/nfc/src/nfa/rw/ |
H A D | nfa_rw_api.cc | 439 tNFA_STATUS NFA_RwT1tRead(uint8_t block_number, uint8_t index) { argument 448 p_msg->params.t1t_read.index = index; 472 tNFA_STATUS NFA_RwT1tWrite(uint8_t block_number, uint8_t index, uint8_t data, argument 483 p_msg->params.t1t_write.index = index;
|
/system/nvram/client/ |
H A D | nvram_client.c | 184 uint32_t index = strtoul(args[0], NULL, 0); local 186 nvram_result_t result = device->get_space_size(device, index, &space_size); 196 uint32_t index = strtoul(args[0], NULL, 0); local 199 device->get_space_controls(device, index, 0, NULL, &list_size); 209 result = device->get_space_controls(device, index, list_size, controls_list, 234 uint32_t index = strtoul(args[0], NULL, 0); local 238 device->is_space_locked(device, index, &read_locked, &write_locked); 248 uint32_t index = strtoul(args[0], NULL, 0); local 252 device->is_space_locked(device, index, &read_locked, &write_locked); 262 uint32_t index local 289 uint32_t index = strtoul(args[0], NULL, 0); local 300 uint32_t index = strtoul(args[0], NULL, 0); local 306 uint32_t index = strtoul(args[0], NULL, 0); local 332 uint32_t index = strtoul(args[0], NULL, 0); local 338 uint32_t index = strtoul(args[0], NULL, 0); local [all...] |
/system/nvram/core/ |
H A D | nvram_manager.cpp | 185 space_list[i] = spaces_[i].index; 194 const uint32_t index = request.index; local 195 NVRAM_LOG_INFO("CreateSpace Ox%" PRIx32, index); 205 if (FindSpace(index) != kMaxSpaces) { 206 NVRAM_LOG_INFO("Space 0x%" PRIx32 " already exists.", index); 245 // Mark the index as allocated. 246 spaces_[num_spaces_].index = index; 279 // for the space data corresponding to the index marke 291 const uint32_t index = request.index; local 326 const uint32_t index = request.index; local 395 const uint32_t index = request.index; local 441 const uint32_t index = request.index; local 470 const uint32_t index = request.index; local 502 const uint32_t index = request.index; local 553 const uint32_t index = spaces_[i].index; local 785 LoadSpaceRecord(uint32_t index, SpaceRecord* space_record, nvram_result_t* result) argument 844 WriteSpace(uint32_t index, const NvramSpace& space) argument [all...] |
/system/nvram/core/tests/ |
H A D | nvram_manager_test.cpp | 39 static void SetupHeader(uint32_t header_version, uint32_t index) { argument 43 header.allocated_indices[0] = index; 48 uint32_t index, 52 read_space_request.index = index; 74 get_space_info_request.index = 1; 114 get_space_info_request.index = 1; 144 get_space_info_request.index = 1; 150 get_space_info_request.index = 2; 155 get_space_info_request.index 47 ReadAndCompareSpaceData(NvramManager* nvram, uint32_t index, const void* expected_contents, size_t expected_size) argument [all...] |
/system/nvram/hal/tests/ |
H A D | scoped_nvram_device.cc | 119 nvram_result_t ScopedNvramDevice::GetSpaceSize(uint32_t index, uint64_t* size) { argument 123 return device_->get_space_size(device_, index, size); 127 uint32_t index, 136 device_, index, kMaxControls, control_list->data(), &list_size); 144 nvram_result_t ScopedNvramDevice::IsSpaceLocked(uint32_t index, argument 150 return device_->is_space_locked(device_, index, write_lock_enabled, 155 uint32_t index, 163 device_, index, size_in_bytes, control_list.data(), control_list.size(), 168 uint32_t index, 170 return device_->delete_space(device_, index, 126 GetSpaceControls( uint32_t index, std::vector<nvram_control_t>* control_list) argument 154 CreateSpace( uint32_t index, uint64_t size_in_bytes, const std::vector<nvram_control_t>& control_list, const std::string& authorization_value) argument 167 DeleteSpace( uint32_t index, const std::string& authorization_value) argument 182 WriteSpace( uint32_t index, const std::string& data, const std::string& authorization_value) argument 194 ReadSpace( uint32_t index, uint64_t num_bytes_to_read, const std::string& authorization_value, std::string* data) argument 214 EnableWriteLock( uint32_t index, const std::string& authorization_value) argument 225 EnableReadLock( uint32_t index, const std::string& authorization_value) argument [all...] |