/system/core/libnetutils/ |
D | checksum.c | 34 uint32_t ip_checksum_add(uint32_t current, const void* data, int len) { in ip_checksum_add() argument 35 uint32_t checksum = current; in ip_checksum_add() 96 uint32_t current = 0; in ipv6_pseudo_header_checksum() local 98 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum() 99 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum() 100 current = ip_checksum_add(current, &checksum_len, sizeof(checksum_len)); in ipv6_pseudo_header_checksum() 101 current = ip_checksum_add(current, &checksum_next, sizeof(checksum_next)); in ipv6_pseudo_header_checksum() 103 return current; in ipv6_pseudo_header_checksum() 117 uint32_t current = 0; in ipv4_pseudo_header_checksum() local 119 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum() [all …]
|
/system/core/libsysutils/src/ |
D | SocketClient.cpp | 136 char *current = result; in quoteArg() local 145 *(current++) = '"'; in quoteArg() 150 *(current++) = '\\'; in quoteArg() 153 *(current++) = *(arg++); in quoteArg() 156 *(current++) = '"'; in quoteArg() 157 *(current++) = '\0'; in quoteArg() 159 result = (char *)realloc(result, current-result); in quoteArg() 204 int current = 0; in sendDataLockedv() local 207 ssize_t rc = TEMP_FAILURE_RETRY(writev(mSocket, iov + current, iovcnt - current)); in sendDataLockedv() 219 while (current < iovcnt && written >= iov[current].iov_len) { in sendDataLockedv() [all …]
|
/system/chre/util/include/chre/util/ |
D | heap_impl.h | 34 size_t current = index; in siftUp() local 35 while (current > 0) { in siftUp() 36 size_t parent = (current - 1) / 2; in siftUp() 37 if (compare(container[parent], container[current])) { in siftUp() 38 container.swap(parent, current); in siftUp() 39 current = parent; in siftUp() 50 size_t current = index; in siftDown() local 55 size_t child = 2 * current + 1; // left child in siftDown() 66 compare(container[current], container[child])) { in siftDown() 67 container.swap(current, child); in siftDown() [all …]
|
/system/memory/libmeminfo/tools/ |
D | showmap.cpp | 92 VmaInfo current(vma); in collect_vma() local 96 if (last.vma.end == current.vma.start && is_library(last.vma.name)) { in collect_vma() 97 current.vma.name = last.vma.name; in collect_vma() 98 current.is_bss = true; in collect_vma() 100 current.vma.name = "[anon]"; in collect_vma() 106 if (g_merge_by_names && (it->vma.name == current.vma.name)) { in collect_vma() 107 it->vma.usage.vss += current.vma.usage.vss; in collect_vma() 108 it->vma.usage.rss += current.vma.usage.rss; in collect_vma() 109 it->vma.usage.pss += current.vma.usage.pss; in collect_vma() 111 it->vma.usage.shared_clean += current.vma.usage.shared_clean; in collect_vma() [all …]
|
/system/core/libcutils/ |
D | hashmap.cpp | 198 Entry* current = *p; in hashmapPut() local 201 if (current == NULL) { in hashmapPut() 213 if (equalKeys(current->key, current->hash, key, hash, map->equals)) { in hashmapPut() 214 void* oldValue = current->value; in hashmapPut() 215 current->value = value; in hashmapPut() 220 p = ¤t->next; in hashmapPut() 245 Entry* current; in hashmapRemove() local 246 while ((current = *p) != NULL) { in hashmapRemove() 247 if (equalKeys(current->key, current->hash, key, hash, map->equals)) { in hashmapRemove() 248 void* value = current->value; in hashmapRemove() [all …]
|
/system/tools/sysprop/ |
D | ApiChecker.cpp | 27 const sysprop::Properties& current) { in CompareProps() argument 31 for (int i = 0; i < current.prop_size(); ++i) { in CompareProps() 32 const auto& prop = current.prop(i); in CompareProps() 105 if (latest.owner() != current.owner()) { in CompareProps() 119 const sysprop::SyspropLibraryApis& current) { in CompareApis() argument 122 for (int i = 0; i < current.props_size(); ++i) { in CompareApis() 123 propsMap[current.props(i).module()] = current.props(i); in CompareApis()
|
D | ApiCheckerMain.cpp | 44 sysprop::SyspropLibraryApis latest, current; in main() local 54 current = std::move(*res); in main() 60 if (auto res = CompareApis(latest, current); !res.ok()) { in main()
|
/system/unwinding/libunwindstack/ |
D | ElfInterfaceArm.cpp | 46 size_t current = (first + last) / 2; in FindEntry() local 47 uint32_t addr = addrs_[current]; in FindEntry() 49 if (!GetPrel31Addr(start_offset_ + current * 8, &addr)) { in FindEntry() 52 addrs_[current] = addr; in FindEntry() 55 *entry_offset = start_offset_ + current * 8; in FindEntry() 59 last = current; in FindEntry() 61 first = current + 1; in FindEntry()
|
D | Symbols.cpp | 67 uint32_t current = first + (last - first) / 2; in BinarySearch() local 68 uint32_t symbol_index = RemapIndices ? remap_.value()[current] : current; in BinarySearch() 76 info = {.size = static_cast<uint32_t>(sym.st_size), .index = current}; in BinarySearch() 78 last = current; in BinarySearch() 83 first = current + 1; in BinarySearch()
|
/system/update_engine/update_manager/ |
D | update_time_restrictions_monitor_unittest.cc | 134 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in BuildMonitorAndVerify() 174 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 198 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 207 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 222 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 233 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 249 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 258 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 275 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
|
D | generic_variables_unittest.cc | 167 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 175 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 193 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 198 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 203 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 208 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
|
D | evaluation_context_unittest.cc | 228 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 235 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 250 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 262 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 264 MessageLoopRunUntil(MessageLoop::current(), in TEST_F() 279 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F() 281 MessageLoopRunUntil(MessageLoop::current(), in TEST_F() 306 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F() 325 MessageLoopRunUntil(MessageLoop::current(), in TEST_F() 356 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
|
/system/media/audio_utils/include/audio_utils/ |
D | LinearMap.h | 312 size_t current = previousPosition(i); in findU() local 316 diff = v - vArray[current]; in findU() 324 return uArray[current] + diff * extrapolation; in findU() 331 int32_t uStep = uArray[previous] - uArray[current]; // non-negative in findU() 332 int32_t vStep = vArray[previous] - vArray[current]; // positive in findU() 334 uArray[current] in findU() 335 : ((int64_t)diff * uStep + (vStep >> 1)) / vStep + uArray[current]; in findU() 344 previous = current; in findU()
|
/system/core/init/ |
D | first_stage_mount.cpp | 443 Fstab::iterator current = begin + 1; in MountPartition() local 444 for (; current != fstab_.end() && current->mount_point == begin->mount_point; current++) { in MountPartition() 448 current->blk_device = begin->blk_device; in MountPartition() 449 mounted = (fs_mgr_do_mount_one(*current) == 0); in MountPartition() 453 current = fstab_.erase(begin, current); in MountPartition() 456 *end = current; in MountPartition() 542 for (auto current = fstab_.begin(); current != fstab_.end();) { in MountPartitions() local 544 if (current->mount_point == "/system") { in MountPartitions() 545 ++current; in MountPartitions() 550 if (current->fs_type == "overlay") { in MountPartitions() [all …]
|
D | security.cpp | 46 int current = max; in SetHighestAvailableOptionValue() local 47 while (current >= min) { in SetHighestAvailableOptionValue() 49 std::string str_val = std::to_string(current); in SetHighestAvailableOptionValue() 65 current--; in SetHighestAvailableOptionValue() 69 if (current < min) { in SetHighestAvailableOptionValue()
|
/system/update_engine/common/ |
D | proxy_resolver.cc | 38 MessageLoop::current()->CancelTask(idle_callback_id_); in ~DirectProxyResolver() 45 idle_callback_id_ = MessageLoop::current()->PostTask( in GetProxiesForUrl() 54 return MessageLoop::current()->CancelTask(request); in CancelProxyRequest()
|
D | mock_http_fetcher.cc | 65 CHECK(MessageLoop::current()); in SendData() 66 timeout_id_ = MessageLoop::current()->PostDelayedTask( in SendData() 100 MessageLoop::current()->CancelTask(timeout_id_); in TerminateTransfer() 123 MessageLoop::current()->CancelTask(timeout_id_); in Pause()
|
/system/tools/hidl/scripts/ |
D | hal-queries.sh | 53 function current-interfaces() { 77 comm -3 <(all-interfaces "$package_root" "$package") <(current-interfaces "$package_root") 115 current-interfaces "$ANDROID_BUILD_TOP/$root" 155 diff <(git show "$parent":current.txt | grep -oP "^[^ ]+ [^ ]+" | sort) \ 156 <(git show "$child":current.txt | grep -oP "^[^ ]+ [^ ]+" | sort) |
|
/system/security/keystore2/src/ |
D | boot_level_keys.rs | 128 current: usize, field 145 Self { current: 0, cache } in new() 153 boot_level >= self.current && !self.cache.is_empty() in level_accessible() 164 let first_not_cached = self.current + self.cache.len(); in get_hkdf_key() 177 Ok(Some(self.cache.get(boot_level - self.current).unwrap())) in get_hkdf_key() 190 self.current, in advance_boot_level() 203 self.cache = self.cache.split_off(new_boot_level - self.current); in advance_boot_level() 207 self.current = new_boot_level; in advance_boot_level()
|
/system/tools/hidl/hidl2aidl/ |
D | main.cpp | 75 for (const FQName& current : list) { in getLatestMinorVersionFQNameFromList() local 76 if (current.package() == currentCandidate.package() && in getLatestMinorVersionFQNameFromList() 77 current.name() == currentCandidate.name() && in getLatestMinorVersionFQNameFromList() 78 current.getPackageMajorVersion() == currentCandidate.getPackageMajorVersion()) { in getLatestMinorVersionFQNameFromList() 80 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionFQNameFromList() 93 const FQName& current = currentNamedType->fqName(); in getLatestMinorVersionNamedTypeFromList() local 94 if (current.package() == currentCandidate.package() && in getLatestMinorVersionNamedTypeFromList() 95 current.name() == currentCandidate.name() && in getLatestMinorVersionNamedTypeFromList() 96 current.getPackageMajorVersion() == currentCandidate.getPackageMajorVersion()) { in getLatestMinorVersionNamedTypeFromList() 98 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionNamedTypeFromList()
|
/system/timezone/input_tools/android/tzids/src/main/java/com/android/timezone/tzids/ |
D | TimeZoneIds.java | 204 TzIdsProto.TimeZoneReplacement current = start; in traverseReplacementList() local 205 while(current.getFromMillis() <= replacementThreshold.toEpochMilli()) { in traverseReplacementList() 207 replacementLookupMap.get(current.getReplacementId()); in traverseReplacementList() 210 return current.getReplacementId(); in traverseReplacementList() 212 current = next; in traverseReplacementList() 216 return current.getReplacedId(); in traverseReplacementList()
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 62 auto& current = *timers_.rbegin(); in runTimers() local 63 current.handleTimer(); in runTimers() 64 if (!current.oneShot) { in runTimers() 65 auto diff = now - current.next; in runTimers() 66 current.next += ((diff / current.duration) + 1) * current.duration; in runTimers()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 264 struct timespec start, current, delta; in testDelay() local 272 clock_gettime(CLOCK_MONOTONIC, ¤t); in testDelay() 275 delta = tsDelta(&start, ¤t); in testDelay() 290 struct timespec start, current, delta; in testDelaySpin() local 297 clock_gettime(CLOCK_MONOTONIC, ¤t); in testDelaySpin() 300 delta = tsDelta(&start, ¤t); in testDelaySpin()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 73 std::string current; in combineSingleCharTokens() local 76 current += str; in combineSingleCharTokens() 78 if (!current.empty()) { in combineSingleCharTokens() 79 to->push_back(current); in combineSingleCharTokens() 80 current = ""; in combineSingleCharTokens() 87 if (!current.empty()) to->push_back(current); in combineSingleCharTokens()
|
/system/core/init/parser/ |
D | tokenizer_test.cpp | 27 ASSERT_EQ(Tokenizer::TOK_START, tokenizer.current().type) 31 ASSERT_EQ(test_text, tokenizer.current().text); \ 32 ASSERT_EQ(Tokenizer::TOK_TEXT, tokenizer.current().type) 36 ASSERT_EQ(Tokenizer::TOK_NEWLINE, tokenizer.current().type)
|