Home
last modified time | relevance | path

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

123

/packages/modules/adb/
Dadb.bash27 local where i cur serial state transport
33 cur="${COMP_WORDS[i]}"
34 case "${cur}" in
50 serial=${cur}
69 if [[ -n "${cur}" && $WAIT_COMMAND == "${cur}"* ]] ; then
77 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") )
84 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") )
87 case "${cur}" in
125 COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) )
130 local serial i cur where
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DContactUtilTest.java124 final Cursor cur = in deleteTestContacts() local
127 if (cur.moveToFirst()) { in deleteTestContacts()
129 final String lookupKey = cur.getString(cur.getColumnIndex(Contacts.LOOKUP_KEY)); in deleteTestContacts()
132 } while (cur.moveToNext()); in deleteTestContacts()
143 final Cursor cur = ContactUtil.getPhones(getContext()) in ingoredTestGetPhones() local
147 cur.getCount()); in ingoredTestGetPhones()
149 verifyCursorContains(cur, TEST_NAME_PREFIX + "John"); in ingoredTestGetPhones()
150 verifyCursorContains(cur, TEST_NAME_PREFIX + "Joe"); in ingoredTestGetPhones()
151 verifyCursorContains(cur, TEST_NAME_PREFIX + "Jim"); in ingoredTestGetPhones()
152 verifyCursorContains(cur, TEST_NAME_PREFIX + "Samantha"); in ingoredTestGetPhones()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DArrayUtils.java434 public static int[] appendInt(@Nullable int[] cur, int val, in appendInt() argument
436 if (cur == null) { in appendInt()
439 final int n = cur.length; in appendInt()
442 if (cur[i] == val) { in appendInt()
443 return cur; in appendInt()
448 System.arraycopy(cur, 0, ret, 0, n); in appendInt()
458 public static int[] appendInt(@Nullable int[] cur, int val) { in appendInt() argument
459 return appendInt(cur, val, false); in appendInt()
466 public static int[] removeInt(@Nullable int[] cur, int val) { in removeInt() argument
467 if (cur == null) { in removeInt()
[all …]
/packages/modules/DnsResolver/
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()
71 cur[STATS_INTERNAL_ERRORS] = internal_errors; in encode()
72 cur[STATS_RTT_AVG] = rtt_avg; in encode()
73 cur[STATS_LAST_SAMPLE_TIME] = last_sample_time; in encode()
74 cur[STATS_USABLE] = usable; in encode()
82 const int32_t* cur = &in[ofs]; in decode() local
83 successes = cur[STATS_SUCCESSES]; in decode()
[all …]
Dgetaddrinfo.cpp318 addrinfo* cur = &sentinel; in android_getaddrinfofornetcontext() local
359 error = explore_null(&tmp, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
361 error = explore_numeric_scope(&tmp, hostname, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
365 while (cur->ai_next) cur = cur->ai_next; in android_getaddrinfofornetcontext()
414 addrinfo* cur = &sentinel; in resolv_getaddrinfo() local
431 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext, event); in resolv_getaddrinfo()
433 while (cur->ai_next) cur = cur->ai_next; in resolv_getaddrinfo()
468 for (addrinfo* cur = result; cur; cur = cur->ai_next) { in explore_fqdn() local
470 if ((error = get_port(cur, servname, 0))) { in explore_fqdn()
487 struct addrinfo* cur; in explore_null() local
[all …]
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/
DArrayUtilsTest.kt38 val cur = arrayOf("a", "b", TEST_STRING) in appendString_duplicatedString_returnsArray() constant
39 assertThat(ArrayUtils.appendString(cur, TEST_STRING)).isEqualTo(cur) in appendString_duplicatedString_returnsArray()
44 val cur = arrayOf("a", "b", null) in appendString_appendNull_returnsArray() constant
45 assertThat(ArrayUtils.appendString(cur, null)).isEqualTo(cur) in appendString_appendNull_returnsArray()
50 val cur = arrayOf<String>() in appendString_appendToEmptyArray_returnsArrayWithNewString() constant
52 assertThat(ArrayUtils.appendString(cur, TEST_STRING)).isEqualTo(new) in appendString_appendToEmptyArray_returnsArrayWithNewString()
57 val cur = arrayOf<String>() in appendString_appendNullToEmptyArray_returnsArrayWithNewString() constant
58 val result = ArrayUtils.appendString(cur, null) in appendString_appendNullToEmptyArray_returnsArrayWithNewString()
65 val cur = arrayOf("old test") in appendString_appendNewString() constant
67 assertThat(ArrayUtils.appendString(cur, TEST_STRING)).isEqualTo(new) in appendString_appendNewString()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp182 const char* cur = buffer; in read() local
185 cur = parseField(cur, buffer_end, &last); in read()
186 if (cur == nullptr) { in read()
191 return cur; in read()
230 const char* cur = buffer + sizeof(uint8_t); in parseField() local
235 return cur; in parseField()
237 if (cur + ofs > buffer_end) { in parseField()
241 name.append(cur, ofs); in parseField()
243 return cur + ofs; in parseField()
253 const char* cur = qname.read(buffer, buffer_end); in read() local
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DArrayUtils.java61 public static String[] appendString(String[] cur, String val) { in appendString() argument
62 if (cur == null) { in appendString()
65 final int N = cur.length; in appendString()
67 if (TextUtils.equals(cur[i], val)) { in appendString()
68 return cur; in appendString()
72 System.arraycopy(cur, 0, ret, 0, N); in appendString()
/packages/modules/Virtualization/libs/apkverify/src/
Dhashtree.rs79 for (n, cur) in levels.iter().enumerate() { in generate_hash_tree()
84 let mut level0 = Cursor::new(&mut hash_tree[cur.start..cur.end]); in generate_hash_tree()
100 let cur_and_prev = &mut hash_tree[cur.start..prev.end]; in generate_hash_tree()
101 let (cur, prev) = cur_and_prev.split_at_mut(prev.start - cur.start); in generate_hash_tree()
102 let mut cur = Cursor::new(cur); in generate_hash_tree() localVariable
105 cur.write_all(h.as_ref()).unwrap(); in generate_hash_tree()
/packages/apps/Gallery2/src/com/android/photos/data/
DSparseArrayBitmapPool.java144 Node cur = mStore.get(width); in get() local
149 while (cur != null) { in get()
150 if (cur.bitmap.getHeight() == height) { in get()
151 Bitmap b = cur.bitmap; in get()
152 unlinkAndRecycleNode(cur, false); in get()
155 cur = cur.nextInBucket; in get()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java38 double[] cur = null; in calculatetCurve() local
47 cur = points[pivot]; in calculatetCurve()
50 double x1 = cur[0]; in calculatetCurve()
52 double y1 = cur[1]; in calculatetCurve()
78 double[] cur = null; in getValue() local
89 cur = mPoints[pivot]; in getValue()
91 double x1 = cur[0]; in getValue()
93 double y1 = cur[1]; in getValue()
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DKvmHypTracer.java153 double cur = Double.parseDouble(matcher.group(2)); in getDurationStats() local
154 if (cur < last) in getDurationStats()
155 throw new ParseException("Time must not go backward: " + cur, 0); in getDurationStats()
156 last = cur; in getDurationStats()
167 stats.add(cur - hyp_enter); in getDurationStats()
170 hyp_enter = cur; in getDurationStats()
/packages/modules/Bluetooth/system/device/src/
Dinterop.cc689 interop_addr_entry_t* cur = &db_entry->entry_type.addr_entry; in interop_database_match() local
690 if ((src->feature == cur->feature) && in interop_database_match()
691 (!memcmp(&src->addr, &cur->addr, cur->length))) { in interop_database_match()
694 src->length = cur->length; in interop_database_match()
701 interop_name_entry_t* cur = &db_entry->entry_type.name_entry; in interop_database_match() local
703 if ((src->feature == cur->feature) && in interop_database_match()
704 (strcasestr(src->name, cur->name) == src->name)) { in interop_database_match()
711 interop_manufacturer_t* cur = &db_entry->entry_type.mnfr_entry; in interop_database_match() local
713 if (src->feature == cur->feature && in interop_database_match()
714 src->manufacturer == cur->manufacturer) { in interop_database_match()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggest.java358 final SuggestedWordInfo cur = suggestions.get(i + 1); in getSuggestionsInfoListWithDebugInfo() local
360 typedWord, cur.toString(), cur.mScore); in getSuggestionsInfoListWithDebugInfo()
364 Locale.ROOT, "%d (%4.2f), %s", cur.mScore, normalizedScore, in getSuggestionsInfoListWithDebugInfo()
365 cur.mSourceDict.mDictType); in getSuggestionsInfoListWithDebugInfo()
367 scoreInfoString = Integer.toString(cur.mScore); in getSuggestionsInfoListWithDebugInfo()
369 cur.setDebugString(scoreInfoString); in getSuggestionsInfoListWithDebugInfo()
370 suggestionsList.add(cur); in getSuggestionsInfoListWithDebugInfo()
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Dadv_parser.rs22 cur: usize, // to keep current position field
31 let mut i = self.cur; in next()
38 self.cur = i + len + 1; in next()
39 return Some(&self.data[i + 2..self.cur]); in next()
48 AdvDataIterator { data, data_type, cur: 0 } in iterate_adv_data()
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils.cpp43 auto cur = cd.data(); in GetDeviceAPKMetaData() local
46 cur, size, &md5Hash, &localFileHeaderOffset, &dataSize)) { in GetDeviceAPKMetaData()
47 cur += consumed; in GetDeviceAPKMetaData()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java184 final SuggestionsInfo cur = results[j];
185 if (cur != null && cur.getSequence() == item.mTextInfo.getSequence()) {
186 result = cur;
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DTouchDriverAwarenessSupplier.java217 int curPermits = mCurrentPermits.updateAndGet(cur -> Math.max(0, cur - 1)); in consumePermitLocked()
237 cur -> Math.min(cur + 1, mConfig.getMaxPermits())); in handlePermitRefreshLocked()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDeviceConfigFacade.java436 for (String cur : list) { in getDisabledAutoBugreports()
437 if (cur.length() == 0) { in getDisabledAutoBugreports()
440 result.add(cur); in getDisabledAutoBugreports()
449 for (String cur : list) { in getUnmodifiableSetQuoted()
450 if (cur.length() == 0) { in getUnmodifiableSetQuoted()
453 result.add("\"" + cur + "\""); in getUnmodifiableSetQuoted()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java325 int cur = sliderController.getSliderPosition(); in buildSliderSlice() local
326 if (cur < sliderController.getMin()) { in buildSliderSlice()
327 cur = sliderController.getMin(); in buildSliderSlice()
329 if (cur > sliderController.getMax()) { in buildSliderSlice()
330 cur = sliderController.getMax(); in buildSliderSlice()
337 .setValue(cur) in buildSliderSlice()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java80 int cur = bucketBoundaries[i]; in IntHistogram() local
82 if (cur >= next) { in IntHistogram()
87 cur, i, next, i + 1)); in IntHistogram()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java79 long cur = count; in skipTo() local
80 long diff = target - cur; in skipTo()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java76 long cur = mCount; in skipTo() local
77 long diff = target - cur; in skipTo()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DCountedDataInputStream.java78 long cur = mCount; in skipTo() local
79 long diff = target - cur; in skipTo()
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java76 long cur = mCount; in skipTo() local
77 long diff = target - cur; in skipTo()

123