Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 233) sorted by relevance

12345678910

/system/core/libnetutils/
Dchecksum.c34 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/chre/util/include/chre/util/
Dheap_impl.h34 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/core/libsysutils/src/
DSocketClient.cpp136 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()
206 int current = 0; in sendDataLockedv() local
215 writev(mSocket, iov + current, iovcnt - current)); in sendDataLockedv()
219 while ((current < iovcnt) && (written >= iov[current].iov_len)) { in sendDataLockedv()
[all …]
/system/memory/libmeminfo/tools/
Dshowmap.cpp92 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/
Dhashmap.cpp198 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 = &current->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/
DApiChecker.cpp27 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()
DApiCheckerMain.cpp44 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/tools/hidl/hidl2aidl/
Dmain.cpp70 for (const FQName& current : list) { in getLatestMinorVersionFQNameFromList() local
71 if (current.package() == currentCandidate.package() && in getLatestMinorVersionFQNameFromList()
72 current.name() == currentCandidate.name() && in getLatestMinorVersionFQNameFromList()
73 current.getPackageMajorVersion() == currentCandidate.getPackageMajorVersion()) { in getLatestMinorVersionFQNameFromList()
75 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionFQNameFromList()
88 const FQName& current = currentNamedType->fqName(); in getLatestMinorVersionNamedTypeFromList() local
89 if (current.package() == currentCandidate.package() && in getLatestMinorVersionNamedTypeFromList()
90 current.name() == currentCandidate.name() && in getLatestMinorVersionNamedTypeFromList()
91 current.getPackageMajorVersion() == currentCandidate.getPackageMajorVersion()) { in getLatestMinorVersionNamedTypeFromList()
93 currentCandidate = found ? getNewerFQName(current, currentCandidate) : current; in getLatestMinorVersionNamedTypeFromList()
/system/core/libunwindstack/
DElfInterfaceArm.cpp46 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()
DSymbols.cpp73 size_t current = first + (last - first) / 2; in BinarySearch() local
74 size_t symbol_index = RemapIndices ? remap_.value()[current] : current; in BinarySearch()
80 last = current; in BinarySearch()
84 first = current + 1; in BinarySearch()
/system/core/init/
Dfirst_stage_mount.cpp384 Fstab::iterator current = begin + 1; in MountPartition() local
385 for (; current != fstab_.end() && current->mount_point == begin->mount_point; current++) { in MountPartition()
389 current->blk_device = begin->blk_device; in MountPartition()
390 mounted = (fs_mgr_do_mount_one(*current) == 0); in MountPartition()
394 current = fstab_.erase(begin, current); in MountPartition()
397 *end = current; in MountPartition()
495 for (auto current = fstab_.begin(); current != fstab_.end();) { in MountPartitions() local
497 if (current->mount_point == "/system") { in MountPartitions()
498 ++current; in MountPartitions()
505 if (current->fs_type == "emmc") { in MountPartitions()
[all …]
Dsecurity.cpp98 int current = max; in SetHighestAvailableOptionValue() local
99 while (current >= min) { in SetHighestAvailableOptionValue()
101 std::string str_val = std::to_string(current); in SetHighestAvailableOptionValue()
117 current--; in SetHighestAvailableOptionValue()
121 if (current < min) { in SetHighestAvailableOptionValue()
/system/update_engine/common/
Dproxy_resolver.cc38 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()
Dmock_http_fetcher.cc64 timeout_id_ = MessageLoop::current()->PostDelayedTask( in SendData()
94 MessageLoop::current()->CancelTask(timeout_id_); in TerminateTransfer()
114 MessageLoop::current()->CancelTask(timeout_id_); in Pause()
Dcpu_limiter.cc48 manage_shares_id_ = brillo::MessageLoop::current()->PostDelayedTask( in StartLimiter()
59 brillo::MessageLoop::current()->CancelTask(manage_shares_id_); in StopLimiter()
/system/update_engine/update_manager/
Dgeneric_variables_unittest.cc167 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()
Devaluation_context_unittest.cc225 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
232 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
247 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
259 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
261 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
276 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
278 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
303 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
322 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
353 MessageLoopRunUntil(MessageLoop::current(), in TEST_F()
Dupdate_manager_unittest.cc264 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
281 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
288 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
310 MessageLoopRunMaxIterations(MessageLoop::current(), 100); in TEST_F()
319 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
327 MessageLoopRunMaxIterations(MessageLoop::current(), 10); in TEST_F()
/system/tools/hidl/scripts/
Dhal-queries.sh53 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/teeui/libteeui/src/
Devdev.cpp62 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/
DtestUtil.c263 struct timespec start, current, delta; in testDelay() local
271 clock_gettime(CLOCK_MONOTONIC, &current); in testDelay()
274 delta = tsDelta(&start, &current); in testDelay()
289 struct timespec start, current, delta; in testDelaySpin() local
296 clock_gettime(CLOCK_MONOTONIC, &current); in testDelaySpin()
299 delta = tsDelta(&start, &current); in testDelaySpin()
/system/tools/hidl/host_utils/
DStringHelper.cpp73 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/
Dtokenizer_test.cpp27 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)
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py103 current = self
105 current = current.get_child(callsite)
106 current.num_events += num_events
/system/extras/simpleperf/demo/CppApi/
Dgradle.properties6 # http://www.gradle.org/docs/current/userguide/build_environment.html
12 # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

12345678910