Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 253) sorted by relevance

1234567891011

/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DCollectionUtils.java183 return cur == null ? Collections.emptyList() : cur; in emptyIfNull()
194 return cur == null ? emptySet() : cur; in emptyIfNull()
205 return cur == null ? Collections.emptyMap() : cur; in emptyIfNull()
212 return cur != null ? cur.size() : 0; in size()
219 return cur != null ? cur.size() : 0; in size()
312 if (cur == null || cur == Collections.emptyList()) { in add()
324 if (cur == null || cur == Collections.emptyList()) { in add()
337 return cur != null ? cur : emptySet(); in addAll()
339 if (cur == null || cur == emptySet()) { in addAll()
350 if (cur == null || cur == emptySet()) { in add()
[all …]
H A DArrayUtils.java500 return cur; in removeInt()
523 return cur; in removeString()
577 return cur; in removeLong()
599 cur.add(val); in add()
600 return cur; in add()
614 return cur; in addAll()
625 return cur; in remove()
633 cur.add(val); in add()
634 return cur; in add()
642 return cur; in add()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHistoryIterator.java80 cur.numReadInts = 1; in readHistoryDelta()
94 cur.time += delta; in readHistoryDelta()
95 cur.numReadInts += 1; in readHistoryDelta()
100 cur.time += delta; in readHistoryDelta()
151 cur.states = (firstToken & BatteryStatsImpl.DELTA_STATE_MASK) | (cur.states in readHistoryDelta()
168 cur.wakelockTag = cur.localWakelockTag; in readHistoryDelta()
172 + " " + cur.wakelockTag.uid + ":" + cur.wakelockTag.string); in readHistoryDelta()
178 cur.wakeReasonTag = cur.localWakeReasonTag; in readHistoryDelta()
182 + " " + cur.wakeReasonTag.uid + ":" + cur.wakeReasonTag.string); in readHistoryDelta()
194 cur.eventTag = cur.localEventTag; in readHistoryDelta()
[all …]
/aosp12/packages/modules/adb/
H A Dadb.bash27 local where i cur serial
34 case "${cur}" in
118 case "${cur}" in
139 local serial i cur
161 cur="/"
177 cur="/"
210 case "$cur" in
238 local serial i cur
265 local serial i cur
286 local serial i cur
[all …]
/aosp12/art/libartbase/base/
H A Dleb128.h37 int cur = *(ptr++); in DecodeUnsignedLeb128() local
39 if (cur > 0x7f) { in DecodeUnsignedLeb128()
40 cur = *(ptr++); in DecodeUnsignedLeb128()
42 if (cur > 0x7f) { in DecodeUnsignedLeb128()
43 cur = *(ptr++); in DecodeUnsignedLeb128()
76 if (cur > 0x7f) { in DecodeUnsignedLeb128Checked()
80 cur = *(ptr++); in DecodeUnsignedLeb128Checked()
127 cur = *(ptr++); in DecodeSignedLeb128()
171 cur = *(ptr++); in DecodeSignedLeb128Checked()
331 for (; cur != end; ++cur) { in InsertBackUnsigned()
[all …]
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/util/
H A DContactUtilTest.java123 final Cursor cur = in deleteTestContacts() local
126 if (cur.moveToFirst()) { in deleteTestContacts()
128 final String lookupKey = cur.getString(cur.getColumnIndex(Contacts.LOOKUP_KEY)); in deleteTestContacts()
146 cur.getCount()); in ingoredTestGetPhones()
162 if (cur.getCount() != 5) { in ingoredTestFilterPhonesByName()
185 cur.getCount()); in ingoredTestFilterPhonesByPartialNumber()
207 cur.getCount()); in ingoredTestFilterPhonesByFullNumber()
227 cur.getCount()); in ingoredTestLookupPhoneWithAreaCode()
260 cur.getCount()); in ingoredTestGetFrequentPhones()
274 cur.getCount()); in ingoredTestFilterEmails()
[all …]
/aosp12/build/soong/scripts/
H A Djsonmodify.py24 cur = obj
30 cur = cur[last_key]
34 return cur, last_key
38 cur = obj
44 cur = cur[last_key]
46 return cur, last_key
52 cur[key] = val
58 if cur:
59 cur[key] = val
65 if cur:
[all …]
/aosp12/system/core/fastboot/
H A Dfastboot.bash27 local where i cur serial
33 cur="${COMP_WORDS[i]}"
34 case "${cur}" in
47 serial=${cur}
82 case "${cur}" in
104 local serial i cur
110 cur="${COMP_WORDS[COMP_CWORD]}"
120 local serial i cur
125 cur="${COMP_WORDS[COMP_CWORD]}"
127 _fastboot_util_complete_local_file "${cur}" '!*.zip'
[all …]
/aosp12/frameworks/native/libs/binder/
H A DMemoryDealer.cpp334 while (cur) { in alloc()
340 if (cur->free && (cur->size >= (size+extra))) { in alloc()
348 cur = cur->next; in alloc()
385 while (cur) { in dealloc()
404 } while (cur && cur->free); in dealloc()
417 cur = cur->next; in dealloc()
456 while (cur) { in dump_l()
459 int np = ((cur->next) && cur->next->prev != cur) ? 1 : 0; in dump_l()
460 int pn = ((cur->prev) && cur->prev->next != cur) ? 2 : 0; in dump_l()
463 i, cur, int(cur->start*kMemoryAlign), in dump_l()
[all …]
/aosp12/frameworks/av/services/audiopolicy/engine/config/src/
H A DEngineConfig.cpp172 for (xmlNode *cur = root->xmlChildrenNode; cur != NULL; cur = cur->next) { in getReference() local
176 refNode = cur; in getReference()
191 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeCollection()
196 const xmlNode *child = cur; in deserializeCollection()
219 for (; cur != NULL; cur = cur->next) { in parseAttributes()
263 for (; cur != NULL; cur = cur->next) { in deserializeAttributes()
265 const xmlNode *attrNode = cur; in deserializeAttributes()
292 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeAttributesCollection()
590 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeLegacyVolumeCollection()
666 if (cur == NULL) { in parse()
[all …]
/aosp12/system/memory/libmeminfo/tools/
H A Dwsstop.cpp79 return (cur.start == last.start && cur.end == last.end && cur.name == last.name && in same_vma()
80 cur.flags == last.flags && cur.offset == last.offset); in same_vma()
98 res.usage.rss = cur.usage.rss > last.usage.rss ? cur.usage.rss - last.usage.rss : 0; in diff_vma_params()
99 res.usage.pss = cur.usage.pss > last.usage.pss ? cur.usage.pss - last.usage.pss : 0; in diff_vma_params()
100 res.usage.uss = cur.usage.uss > last.usage.uss ? cur.usage.uss - last.usage.uss : 0; in diff_vma_params()
101 res.usage.swap = cur.usage.swap > last.usage.swap ? cur.usage.swap - last.usage.swap : 0; in diff_vma_params()
106 res.start = cur.start; in diff_vma_params()
107 res.end = cur.end; in diff_vma_params()
108 res.offset = cur.offset; in diff_vma_params()
109 res.flags = cur.flags; in diff_vma_params()
[all …]
/aosp12/frameworks/av/media/libstagefright/
H A DAHierarchicalStateMachine.cpp57 sp<AState> cur = mState; in handleMessage() local
58 while (cur != NULL && !cur->onMessageReceived(msg)) { in handleMessage()
63 cur = cur->parentState(); in handleMessage()
66 if (cur != NULL) { in handleMessage()
83 A.push(cur); in changeState()
84 if (cur == NULL) { in changeState()
87 cur = cur->parentState(); in changeState()
91 cur = state; in changeState()
93 B.push(cur); in changeState()
94 if (cur == NULL) { in changeState()
[all …]
/aosp12/packages/modules/DnsResolver/
H A DResolverStats.h67 int32_t* cur = &(*out)[ofs]; in encode() local
68 cur[STATS_SUCCESSES] = successes; in encode()
69 cur[STATS_ERRORS] = errors; in encode()
70 cur[STATS_TIMEOUTS] = timeouts; in encode()
72 cur[STATS_RTT_AVG] = rtt_avg; in encode()
74 cur[STATS_USABLE] = usable; in encode()
82 const int32_t* cur = &in[ofs]; in decode() local
84 errors = cur[STATS_ERRORS]; in decode()
85 timeouts = cur[STATS_TIMEOUTS]; in decode()
87 rtt_avg = cur[STATS_RTT_AVG]; in decode()
[all …]
H A Dgetaddrinfo.cpp380 while (cur->ai_next) cur = cur->ai_next; in android_getaddrinfofornetcontext()
448 while (cur->ai_next) cur = cur->ai_next; in resolv_getaddrinfo()
483 for (addrinfo* cur = result; cur; cur = cur->ai_next) { in explore_fqdn() local
541 cur = cur->ai_next; in explore_null()
595 while (cur->ai_next) cur = cur->ai_next; in explore_numeric()
653 for (cur = *res; cur; cur = cur->ai_next) { in explore_numeric_scope()
1005 while (cur && cur->ai_next) cur = cur->ai_next; in getanswer()
1355 cur = cur->ai_next; in _rfc6724_sort()
1367 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1453 while (cur && cur->ai_next) cur = cur->ai_next; in dns_getaddrinfo()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsBackgroundStatsTest.java49 cur = clocks.realtime * 1000; in testBgTimeBase()
50 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
56 cur = clocks.realtime * 1000; in testBgTimeBase()
71 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase()
79 bi.updateTimeBasesLocked(true, Display.STATE_OFF, cur, cur); // on battery (again) in testBgTimeBase()
93 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase()
118 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase()
123 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase()
128 bi.updateTimeBasesLocked(true, Display.STATE_OFF, cur, cur); in testScreenOffBgTimeBase()
139 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase()
[all …]
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSerializer.cpp235 status_t deserializeCollection(const xmlNode *cur,
296 for (; cur != NULL; cur = cur->next) { in getReference()
317 for (cur = cur->xmlChildrenNode; cur != NULL; cur = cur->next) { in deserializeCollection()
320 child = cur->xmlChildrenNode; in deserializeCollection()
322 child = cur; in deserializeCollection()
358 std::string mode = getXmlAttribute(cur, Attributes::mode);
529 std::string role = getXmlAttribute(cur, Attributes::role);
588 std::string type = getXmlAttribute(cur, Attributes::type);
754 for (const xmlNode *cur = root->xmlChildrenNode; cur != NULL; cur = cur->next) { variable
784 for (const xmlNode *cur = root->xmlChildrenNode; cur != NULL; cur = cur->next) { variable
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseGeneralTest.java668 cur.close(); in testTableInfoPragma()
678 Cursor cur; in testInsertHelper() local
703 cur.close(); in testInsertHelper()
716 cur.close(); in testInsertHelper()
736 cur.close(); in testInsertHelper()
749 cur.close(); in testInsertHelper()
765 cur.close(); in testSemicolonsInStatements()
768 cur.close(); in testSemicolonsInStatements()
873 assertTrue(cur.moveToFirst()); in testCollateLocalizedForJapanese()
875 assertTrue(cur.moveToNext()); in testCollateLocalizedForJapanese()
[all …]
/aosp12/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
H A DWapPushManager.java151 ret.className = cur.getString(cur.getColumnIndex("class_name")); in queryLastApp()
152 ret.appType = cur.getInt(cur.getColumnIndex("app_type")); in queryLastApp()
156 cur.close(); in queryLastApp()
457 cur.getString(cur.getColumnIndex("x_wap_application")), in migrateWapPushManDBIfNeeded()
458 cur.getString(cur.getColumnIndex("content_type")), in migrateWapPushManDBIfNeeded()
459 cur.getString(cur.getColumnIndex("package_name")), in migrateWapPushManDBIfNeeded()
460 cur.getString(cur.getColumnIndex("class_name")), in migrateWapPushManDBIfNeeded()
461 cur.getInt(cur.getColumnIndex("app_type")), in migrateWapPushManDBIfNeeded()
462 cur.getInt(cur.getColumnIndex("need_signature")) == 1, in migrateWapPushManDBIfNeeded()
463 cur.getInt(cur.getColumnIndex("further_processing")) == 1); in migrateWapPushManDBIfNeeded()
[all …]
/aosp12/art/runtime/gc/accounting/
H A Dcard_table_test.cc125 for (uint8_t* cur = start - CardTable::kCardSize; cur >= HeapBegin(); in TEST_F() local
126 cur -= CardTable::kCardSize) { in TEST_F()
127 EXPECT_EQ(card_table_->GetCard(reinterpret_cast<mirror::Object*>(cur)), in TEST_F()
128 PseudoRandomCard(cur)); in TEST_F()
130 for (uint8_t* cur = end + CardTable::kCardSize; cur < HeapLimit(); in TEST_F() local
131 cur += CardTable::kCardSize) { in TEST_F()
133 PseudoRandomCard(cur)); in TEST_F()
136 for (uint8_t* cur = start; cur < AlignUp(end, CardTable::kCardSize); in TEST_F() local
137 cur += CardTable::kCardSize) { in TEST_F()
138 uint8_t* card = card_table_->CardFromAddr(cur); in TEST_F()
[all …]
/aosp12/frameworks/compile/mclinker/lib/MC/
H A DAttributeSet.cpp26 iterator cur = m_AttrSet.begin(); in ~AttributeSet() local
29 while (cur != aEnd) { in ~AttributeSet()
30 delete (*cur); in ~AttributeSet()
31 ++cur; in ~AttributeSet()
39 const_iterator cur = m_AttrSet.begin(); in exists() local
41 while (cur != aEnd) { in exists()
42 if (*(*cur) == pAttr) { in exists()
43 return *cur; in exists()
45 ++cur; in exists()
/aosp12/bionic/libc/malloc_debug/
H A DConfig.cpp335 while (isspace(*cur)) ++cur; in GetOption()
337 if (*cur == '\0') { in GetOption()
338 *options_str = cur; in GetOption()
343 while (!isspace(*cur) && *cur != '=' && *cur != '\0') ++cur; in GetOption()
348 while (isspace(*cur)) ++cur; in GetOption()
351 if (*cur == '=') { in GetOption()
352 ++cur; in GetOption()
354 while (isspace(*cur)) ++cur; in GetOption()
356 start = cur; in GetOption()
357 while (!isspace(*cur) && *cur != '\0') ++cur; in GetOption()
[all …]
/aosp12/system/core/init/
H A Dfscrypt_init_extensions.cpp63 FTSENT* cur; in delete_dir_contents() local
64 while ((cur = fts_read(fts)) != nullptr) { in delete_dir_contents()
65 if (cur->fts_info == FTS_ERR) { in delete_dir_contents()
69 if (dir == cur->fts_path) { in delete_dir_contents()
72 switch (cur->fts_info) { in delete_dir_contents()
76 if (rmdir(cur->fts_path) == -1) { in delete_dir_contents()
77 PLOG(ERROR) << "rmdir " << cur->fts_path; in delete_dir_contents()
81 PLOG(ERROR) << "FTS unexpected type " << cur->fts_info << " at " << cur->fts_path; in delete_dir_contents()
82 if (rmdir(cur->fts_path) != -1) break; in delete_dir_contents()
88 if (unlink(cur->fts_path) == -1) { in delete_dir_contents()
[all …]
/aosp12/bionic/libc/bionic/
H A Dftw.cpp59 FTSENT* cur; in do_nftw() local
60 while (error == 0 && (cur = fts_read(fts)) != nullptr) { in do_nftw()
62 switch (cur->fts_info) { in do_nftw()
66 if (postorder || access(cur->fts_path, R_OK) == -1) continue; in do_nftw()
101 ftw.base = cur->fts_pathlen - cur->fts_namelen; in do_nftw()
102 ftw.level = cur->fts_level; in do_nftw()
103 error = nftw_fn(cur->fts_path, cur->fts_statp, fn_flag, &ftw); in do_nftw()
105 error = ftw_fn(cur->fts_path, cur->fts_statp, fn_flag); in do_nftw()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/net/
H A Dinet_ntop.c105 struct { int base, len; } best, cur; in inet_ntop6() local
119 cur.base = -1; in inet_ntop6()
122 if (cur.base == -1) in inet_ntop6()
123 cur.base = i, cur.len = 1; in inet_ntop6()
125 cur.len++; in inet_ntop6()
127 if (cur.base != -1) { in inet_ntop6()
129 best = cur; in inet_ntop6()
130 cur.base = -1; in inet_ntop6()
134 if (cur.base != -1) { in inet_ntop6()
135 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
[all …]
/aosp12/bionic/libc/dns/net/
H A Dgetaddrinfo.c716 cur = cur->ai_next; in android_getaddrinfofornetcontext()
770 cur = cur->ai_next; in android_getaddrinfofornetcontext()
839 for (cur = result; cur; cur = cur->ai_next) { in explore_fqdn()
913 cur = cur->ai_next; in explore_null()
973 cur = cur->ai_next; in explore_numeric()
994 cur = cur->ai_next; in explore_numeric()
1064 for (cur = *res; cur; cur = cur->ai_next) { in explore_numeric_scope()
1481 cur = cur->ai_next; in getanswer()
1854 cur = cur->ai_next; in _rfc6724_sort()
2000 cur = cur->ai_next; in _dns_getaddrinfo()
[all …]

1234567891011