/system/core/libunwindstack/tests/ |
D | RegsStepIfSignalHandlerTest.cpp | 62 for (uint64_t index = 0; index <= 30; index++) { in ArmStepIfSignalHandlerNonRt() local 63 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerNonRt() 92 for (uint64_t index = 0; index <= 100; index++) { in ArmStepIfSignalHandlerRt() local 93 process_memory_.SetData32(addr + index * 4, index * 0x10); in ArmStepIfSignalHandlerRt() 122 for (uint64_t index = 0; index <= 100; index++) { in TEST_F() local 123 process_memory_.SetData64(addr + index * 8, index * 0x10); in TEST_F() 140 for (uint64_t index = 0; index <= 25; index++) { in TEST_F() local 141 process_memory_.SetData32(addr + index * 4, index * 0x10); in TEST_F() 168 for (uint64_t index = 0; index <= 30; index++) { in TEST_F() local 169 process_memory_.SetData32(addr + index * 4, index * 0x10); in TEST_F() [all …]
|
/system/nvram/hal/tests/ |
D | nvram_hal_test.cc | 63 nvram_result_t CreateSpace(uint32_t index, in CreateSpace() argument 75 index, size_in_bytes, control_list, authorization_value); in CreateSpace() 86 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size) in ScopedNvramSpace() argument 88 index, in ScopedNvramSpace() 96 uint32_t index, in ScopedNvramSpace() argument 100 index, in ScopedNvramSpace() 106 uint32_t index, in ScopedNvramSpace() argument 111 index_(index), in ScopedNvramSpace() 150 for (uint32_t index : space_index_list) { in CleanBurnSpaces() local 151 if (index >= kTestIndexBurnBase && index <= kTestIndexBurnMax) { in CleanBurnSpaces() [all …]
|
D | scoped_nvram_device.cc | 119 nvram_result_t ScopedNvramDevice::GetSpaceSize(uint32_t index, uint64_t* size) { in GetSpaceSize() argument 123 return device_->get_space_size(device_, index, size); in GetSpaceSize() 127 uint32_t index, in GetSpaceControls() argument 136 device_, index, kMaxControls, control_list->data(), &list_size); in GetSpaceControls() 144 nvram_result_t ScopedNvramDevice::IsSpaceLocked(uint32_t index, in IsSpaceLocked() argument 150 return device_->is_space_locked(device_, index, write_lock_enabled, in IsSpaceLocked() 155 uint32_t index, in CreateSpace() argument 163 device_, index, size_in_bytes, control_list.data(), control_list.size(), in CreateSpace() 168 uint32_t index, in DeleteSpace() argument 170 return device_->delete_space(device_, index, in DeleteSpace() [all …]
|
/system/chre/core/tests/ |
D | request_multiplexer_test.cc | 56 size_t index; in TEST() local 58 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged)); in TEST() 66 size_t index; in TEST() local 68 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged)); in TEST() 75 size_t index; in TEST() local 80 ASSERT_TRUE(multiplexer.addRequest(request, &index, in TEST() 89 ASSERT_TRUE(multiplexer.addRequest(request, &index, in TEST() 99 size_t index; in TEST() local 101 ASSERT_TRUE(multiplexer.addRequest(request, &index, &maximalRequestChanged)); in TEST() 103 EXPECT_EQ(multiplexer.getRequests()[index].getPriority(), 10); in TEST() [all …]
|
/system/chre/platform/slpi/see/ |
D | see_cal_helper.cc | 30 size_t index = getCalIndexFromSensorType(sensorType); in applyCalibration() local 31 if (index < ARRAY_SIZE(mCalInfo)) { in applyCalibration() 35 if (mCalInfo[index].cal.hasBias) { in applyCalibration() 37 output[i] = input[i] - mCalInfo[index].cal.bias[i]; in applyCalibration() 56 size_t index = getCalIndexFromSensorType(sensorType); in getBias() local 57 if (index < ARRAY_SIZE(mCalInfo)) { in getBias() 60 if (mCalInfo[index].cal.hasBias) { in getBias() 61 biasData->header.baseTimestamp = mCalInfo[index].cal.timestamp; in getBias() 65 biasData->header.accuracy = mCalInfo[index].cal.accuracy; in getBias() 69 biasData->readings[0].bias[i] = mCalInfo[index].cal.bias[i]; in getBias() [all …]
|
/system/chre/util/include/chre/util/ |
D | heap_impl.h | 31 void siftUp(ContainerType& container, size_t index, in siftUp() argument 33 CHRE_ASSERT(index < container.size()); in siftUp() 34 size_t current = index; in siftUp() 47 void siftDown(ContainerType& container, size_t index, in siftDown() argument 49 CHRE_ASSERT(index < container.size()); in siftDown() 50 size_t current = index; in siftDown() 54 while (index < container.size() - 1) { in siftDown() 95 void remove_heap(ContainerType& container, size_t index, in remove_heap() argument 97 CHRE_ASSERT(index < container.size()); in remove_heap() 98 container.swap(index, container.size() - 1); in remove_heap() [all …]
|
D | dynamic_vector_impl.h | 145 ElementType& DynamicVector<ElementType>::operator[](size_type index) { 146 CHRE_ASSERT(index < mSize); 147 return data()[index]; 151 const ElementType& DynamicVector<ElementType>::operator[](size_type index) 153 CHRE_ASSERT(index < mSize); 154 return data()[index]; 220 bool DynamicVector<ElementType>::insert(size_type index, in insert() argument 222 bool inserted = prepareInsert(index); in insert() 224 new (&data()[index]) ElementType(element); in insert() 230 bool DynamicVector<ElementType>::insert(size_type index, ElementType&& element) { in insert() argument [all …]
|
/system/nvram/core/tests/ |
D | fake_storage.cpp | 88 uint32_t index; member 96 StorageSlot* FindSlotForIndex(uint32_t index) { in FindSlotForIndex() argument 98 if (g_spaces[i].slot.present() && g_spaces[i].index == index) { in FindSlotForIndex() 108 StorageSlot* FindOrCreateSlotForIndex(uint32_t index) { in FindOrCreateSlotForIndex() argument 109 StorageSlot* slot = FindSlotForIndex(index); in FindOrCreateSlotForIndex() 117 g_spaces[i].index = index; in FindOrCreateSlotForIndex() 143 Status LoadSpace(uint32_t index, Blob* blob) { in LoadSpace() argument 144 StorageSlot* slot = FindSlotForIndex(index); in LoadSpace() 148 Status StoreSpace(uint32_t index, const Blob& blob) { in StoreSpace() argument 149 StorageSlot* slot = FindOrCreateSlotForIndex(index); in StoreSpace() [all …]
|
/system/chre/apps/chqts/src/general_test/ |
D | heap_alloc_stress_test.cc | 83 size_t index; in setUp() local 85 for (index = 0; (index < kNumPtrs); index++) { in setUp() 99 ptrs[index] = ptr; in setUp() 101 if (index == 0) { in setUp() 107 index--; in setUp() 108 chreHeapFree(ptrs[index]); in setUp() 109 ptrs[index] = chreHeapAlloc(last_alloc_size); in setUp() 110 if (ptrs[index] == NULL) { in setUp() 117 for (size_t i = 0; i <= index; i++) { in setUp()
|
/system/nvram/core/ |
D | nvram_manager.cpp | 185 space_list[i] = spaces_[i].index; in GetInfo() 194 const uint32_t index = request.index; in CreateSpace() local 195 NVRAM_LOG_INFO("CreateSpace Ox%" PRIx32, index); in CreateSpace() 205 if (FindSpace(index) != kMaxSpaces) { in CreateSpace() 206 NVRAM_LOG_INFO("Space 0x%" PRIx32 " already exists.", index); in CreateSpace() 246 spaces_[num_spaces_].index = index; in CreateSpace() 282 if ((result = WriteHeader(Optional<uint32_t>(index))) != NV_RESULT_SUCCESS || in CreateSpace() 283 (result = WriteSpace(index, space)) != NV_RESULT_SUCCESS) { in CreateSpace() 291 const uint32_t index = request.index; in GetSpaceInfo() local 292 NVRAM_LOG_INFO("GetSpaceInfo Ox%" PRIx32, index); in GetSpaceInfo() [all …]
|
/system/nvram/hal/ |
D | memory_storage.cpp | 63 uint32_t index; member 69 StorageSlot* FindSpaceSlot(uint32_t index) { in FindSpaceSlot() argument 71 if (g_spaces[i].slot.present() && g_spaces[i].index == index) { in FindSpaceSlot() 89 Status LoadSpace(uint32_t index, Blob* blob) { in LoadSpace() argument 90 StorageSlot* slot = FindSpaceSlot(index); in LoadSpace() 94 Status StoreSpace(uint32_t index, const Blob& blob) { in StoreSpace() argument 95 StorageSlot* slot = FindSpaceSlot(index); in StoreSpace() 103 g_spaces[i].index = index; in StoreSpace() 111 Status DeleteSpace(uint32_t index) { in DeleteSpace() argument 112 StorageSlot* slot = FindSpaceSlot(index); in DeleteSpace()
|
D | nvram_device_adapter.cpp | 124 uint32_t index, in device_get_space_size() argument 127 get_space_info_request.index = index; in device_get_space_size() 136 uint32_t index, in device_get_space_controls() argument 141 get_space_info_request.index = index; in device_get_space_controls() 160 uint32_t index, in device_is_space_locked() argument 164 get_space_info_request.index = index; in device_is_space_locked() 174 uint32_t index, in device_create_space() argument 181 create_space_request.index = index; in device_create_space() 199 uint32_t index, in device_delete_space() argument 203 delete_space_request.index = index; in device_delete_space() [all …]
|
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 161 size_t index; in profile_is_sample_rate_valid() local 162 for (index = 0; profile->sample_rates[index] != 0; index++) { in profile_is_sample_rate_valid() 163 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid() 188 size_t index; in profile_is_format_valid() local 189 for (index = 0; profile->formats[index] != PCM_FORMAT_INVALID; index++) { in profile_is_format_valid() 190 if (profile->formats[index] == fmt) { in profile_is_format_valid() 253 unsigned index; in profile_enum_sample_rates() local 255 for (index = 0; index < ARRAY_SIZE(std_sample_rates) && in profile_enum_sample_rates() 257 index++) { in profile_enum_sample_rates() 258 if (std_sample_rates[index] >= min && std_sample_rates[index] <= max in profile_enum_sample_rates() [all …]
|
/system/chre/core/include/chre/core/ |
D | request_multiplexer_impl.h | 27 size_t *index, in addRequest() argument 29 CHRE_ASSERT(index); in addRequest() 34 *index = (mRequests.size() - 1); in addRequest() 43 size_t index, const RequestType& request, bool *maximalRequestChanged) { in updateRequest() argument 45 CHRE_ASSERT(index < mRequests.size()); in updateRequest() 47 if (index < mRequests.size()) { in updateRequest() 48 mRequests[index] = request; in updateRequest() 55 size_t index, bool *maximalRequestChanged) { in removeRequest() argument 57 CHRE_ASSERT(index < mRequests.size()); in removeRequest() 59 if (index < mRequests.size()) { in removeRequest() [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | types.cpp | 33 uint32_t index = static_cast<uint32_t>(result); in VBMetaVerifyResultToString() local 35 if (index >= unknown_index) { in VBMetaVerifyResultToString() 36 index = unknown_index; in VBMetaVerifyResultToString() 39 return name[index]; in VBMetaVerifyResultToString() 60 uint32_t index = static_cast<uint32_t>(status); in AvbHandleStatusToString() local 62 if (index >= unknown_index) { in AvbHandleStatusToString() 63 index = unknown_index; in AvbHandleStatusToString() 66 return name[index]; in AvbHandleStatusToString()
|
/system/core/libutils/include/utils/ |
D | Vector.h | 115 inline const TYPE& operator [] (size_t index) const; 117 inline const TYPE& itemAt(size_t index) const; 126 TYPE& editItemAt(size_t index); 135 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_t index); 142 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length); 152 inline ssize_t insertAt(size_t index, size_t numItems = 1); 154 ssize_t insertAt(const TYPE& prototype_item, size_t index, size_t numItems = 1); 166 inline ssize_t replaceAt(size_t index); 168 ssize_t replaceAt(const TYPE& item, size_t index); 175 inline ssize_t removeItemsAt(size_t index, size_t count = 1); [all …]
|
D | KeyedVector.h | 70 const VALUE& valueAt(size_t index) const; 71 const KEY& keyAt(size_t index) const; 73 const VALUE& operator[] (size_t index) const; 80 VALUE& editValueAt(size_t index); 88 ssize_t replaceValueAt(size_t index, const VALUE& item); 95 ssize_t removeItemsAt(size_t index, size_t count = 1); 143 const VALUE& KeyedVector<KEY,VALUE>::valueAt(size_t index) const { in valueAt() argument 144 return mVector.itemAt(index).value; in valueAt() 148 const VALUE& KeyedVector<KEY,VALUE>::operator[] (size_t index) const { 149 return valueAt(index); [all …]
|
/system/core/libutils/ |
D | VectorImpl.cpp | 114 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) in insertVectorAt() argument 116 return insertArrayAt(vector.arrayImpl(), index, vector.size()); in insertVectorAt() 124 ssize_t VectorImpl::insertArrayAt(const void* array, size_t index, size_t length) in insertArrayAt() argument 126 if (index > size()) in insertArrayAt() 128 void* where = _grow(index, length); in insertArrayAt() 132 return where ? index : (ssize_t)NO_MEMORY; in insertArrayAt() 140 ssize_t VectorImpl::insertAt(size_t index, size_t numItems) in insertAt() argument 142 return insertAt(nullptr, index, numItems); in insertAt() 145 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument 147 if (index > size()) in insertAt() [all …]
|
D | Vector_fuzz.cpp | 40 size_t index = dataProvider.ConsumeIntegralInRange<size_t>(0, vec.size()); in runVectorFuzz() local 43 vec.insertArrayAt(remainingVec.data(), index, remainingVec.size()); in runVectorFuzz() 45 vec.insertVectorAt(vecCopy, index); in runVectorFuzz() 48 vec32.insertArrayAt(vec32Copy.array(), index, vec32.size()); in runVectorFuzz() 49 vec32.insertVectorAt(vec32Copy, index); in runVectorFuzz() 52 vec.replaceAt(remainingVec[0], index); in runVectorFuzz() 53 vec32.replaceAt(static_cast<uint32_t>(remainingVec[0]), index); in runVectorFuzz() 55 vec.replaceAt(0, index); in runVectorFuzz() 56 vec32.replaceAt(0, index); in runVectorFuzz()
|
/system/extras/memory_replay/ |
D | Pointers.cpp | 78 size_t index = GetHash(key_pointer); in Find() local 80 if (atomic_load(&pointers_[index].key_pointer) == key_pointer) { in Find() 81 return pointers_ + index; in Find() 83 if (++index == max_pointers_) { in Find() 84 index = 0; in Find() 91 size_t index = GetHash(key_pointer); in FindEmpty() local 94 if (atomic_compare_exchange_strong(&pointers_[index].key_pointer, &empty, in FindEmpty() 96 return pointers_ + index; in FindEmpty() 98 if (++index == max_pointers_) { in FindEmpty() 99 index = 0; in FindEmpty()
|
/system/core/adb/daemon/ |
D | mdns.cpp | 65 static void register_mdns_service(int index, int port, const std::string service_name) { in register_mdns_service() argument 85 if (kADBDNSServiceTxtRecords[index]) { in register_mdns_service() 86 size_t txtRecordStringLength = strlen(kADBDNSServiceTxtRecords[index]); in register_mdns_service() 93 memcpy(txtRecord.data() + 1, kADBDNSServiceTxtRecords[index], txtRecordStringLength); in register_mdns_service() 97 &mdns_refs[index], 0, 0, service_name.c_str(), kADBDNSServices[index], nullptr, nullptr, in register_mdns_service() 102 LOG(ERROR) << "Could not register mDNS service " << kADBDNSServices[index] << ", error (" in register_mdns_service() 104 mdns_registered[index] = false; in register_mdns_service() 107 mdns_registered[index] = true; in register_mdns_service() 109 LOG(INFO) << "adbd mDNS service " << kADBDNSServices[index] in register_mdns_service() 110 << " registered: " << mdns_registered[index]; in register_mdns_service() [all …]
|
/system/update_engine/scripts/update_payload/ |
D | update_metadata_pb2.py | 35 name='REPLACE', index=0, number=0, 39 name='REPLACE_BZ', index=1, number=1, 43 name='MOVE', index=2, number=2, 47 name='BSDIFF', index=3, number=3, 51 name='SOURCE_COPY', index=4, number=4, 55 name='SOURCE_BSDIFF', index=5, number=5, 59 name='REPLACE_XZ', index=6, number=8, 63 name='ZERO', index=7, number=6, 67 name='DISCARD', index=8, number=7, 71 name='BROTLI_BSDIFF', index=9, number=10, [all …]
|
/system/nvram/hal/include/nvram/hal/tests/ |
D | scoped_nvram_device.h | 48 virtual nvram_result_t GetSpaceSize(uint32_t index, uint64_t* size); 50 uint32_t index, 52 virtual nvram_result_t IsSpaceLocked(uint32_t index, 56 uint32_t index, 60 virtual nvram_result_t DeleteSpace(uint32_t index, 63 virtual nvram_result_t WriteSpace(uint32_t index, 66 virtual nvram_result_t ReadSpace(uint32_t index, 71 uint32_t index, 73 virtual nvram_result_t EnableReadLock(uint32_t index,
|
/system/chre/apps/wifi_offload/ |
D | channel_histogram.cc | 86 size_t index = GetChannelIndex(channel_number); in GetChannelScanCount() local 87 if (index == kNumChannels) { in GetChannelScanCount() 91 if (scan_count_internal_high_res_[index] == 0) { in GetChannelScanCount() 104 uint64_t scaled_value = scan_count_internal_high_res_[index]; in GetChannelScanCount() 110 size_t index = GetChannelIndex(GetChannelNumber(frequency)); in IncrementScanCountForFrequency() local 111 if (index == kNumChannels) { in IncrementScanCountForFrequency() 115 scan_count_internal_high_res_[index]++; in IncrementScanCountForFrequency() 127 size_t index = GetChannelIndex(channel); in IncrementScanCountForChannelForTest() local 128 if (index == kNumChannels) { in IncrementScanCountForChannelForTest() 132 scan_count_internal_high_res_[index] += increase_count; in IncrementScanCountForChannelForTest()
|
/system/extras/simpleperf/scripts/ |
D | profile_pb2.py | 37 name='sample_type', full_name='perftools.profiles.Profile.sample_type', index=0, 44 name='sample', full_name='perftools.profiles.Profile.sample', index=1, 51 name='mapping', full_name='perftools.profiles.Profile.mapping', index=2, 58 name='location', full_name='perftools.profiles.Profile.location', index=3, 65 name='function', full_name='perftools.profiles.Profile.function', index=4, 72 name='string_table', full_name='perftools.profiles.Profile.string_table', index=5, 79 name='drop_frames', full_name='perftools.profiles.Profile.drop_frames', index=6, 86 name='keep_frames', full_name='perftools.profiles.Profile.keep_frames', index=7, 93 name='time_nanos', full_name='perftools.profiles.Profile.time_nanos', index=8, 100 name='duration_nanos', full_name='perftools.profiles.Profile.duration_nanos', index=9, [all …]
|