/packages/modules/DnsResolver/ |
D | OperationLimiterTest.cpp | 30 EXPECT_TRUE(limiter.start(42)); in TEST_F() 31 EXPECT_TRUE(limiter.start(42)); in TEST_F() 32 EXPECT_TRUE(limiter.start(42)); in TEST_F() 35 EXPECT_FALSE(limiter.start(42)); in TEST_F() 36 EXPECT_FALSE(limiter.start(42)); in TEST_F() 37 EXPECT_FALSE(limiter.start(42)); in TEST_F() 41 EXPECT_TRUE(limiter.start(42)); in TEST_F() 44 EXPECT_FALSE(limiter.start(42)); in TEST_F() 47 EXPECT_TRUE(limiter.start(666)); in TEST_F() 63 EXPECT_TRUE(limiter.start(42)); in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 106 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST_F() local 109 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 1, 100).get()); in TEST_F() 110 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 2, 100).get()); in TEST_F() 112 ConfigMetricsReport report = getReports(service->mProcessor, start + 3); in TEST_F() 120 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST_F() local 124 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 1, 100).get()); in TEST_F() 127 service->mUidMap->updateApp(start + 2, kApp1, 1, 2, "v2", "", /* certificateHash */ {}); in TEST_F() 129 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 3, 100).get()); in TEST_F() 131 ConfigMetricsReport report = getReports(service->mProcessor, start + 4); in TEST_F() 138 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST_F() local [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | UidRangeUtils.java | 51 if (!uids.contains(range.start) || !uids.contains(range.stop)) { in isRangeSetInUidRange() 81 int start = uids.start; in removeRangeSetFromUidRange() local 85 if (previousRange.stop > uidRange.start) { in removeRangeSetFromUidRange() 89 if (uidRange.start > start) { in removeRangeSetFromUidRange() 90 filteredRangeSet.add(new UidRange(start, uidRange.start - 1)); in removeRangeSetFromUidRange() 91 start = uidRange.stop + 1; in removeRangeSetFromUidRange() 92 } else if (uidRange.start == start) { in removeRangeSetFromUidRange() 93 start = uidRange.stop + 1; in removeRangeSetFromUidRange() 97 if (start < uids.stop) { in removeRangeSetFromUidRange() 98 filteredRangeSet.add(new UidRange(start, uids.stop)); in removeRangeSetFromUidRange() [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/safeparcel/ |
D | SafeParcelWriter.java | 71 private static void finishVariableData(Parcel p, int start) { in finishVariableData() argument 73 int size = end - start; in finishVariableData() 75 p.setDataPosition(start - 4); in finishVariableData() 86 public static void finishObjectHeader(@NonNull Parcel p, int start) { in finishObjectHeader() argument 87 finishVariableData(p, start); in finishObjectHeader() 175 int start = beginVariableData(p, id); in writeBigInteger() local 177 finishVariableData(p, start); in writeBigInteger() 227 int start = beginVariableData(p, id); in writeBigDecimal() local 230 finishVariableData(p, start); in writeBigDecimal() 242 int start = beginVariableData(p, id); in writeString() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 141 int start = 0; in getItem() local 143 int end = start + mCounts[i]; in getItem() 144 if (position >= start && position < end) { in getItem() 145 return mAdapters[i].getItem(position - start); in getItem() 147 start = end; in getItem() 155 int start = 0; in getItemId() local 157 int end = start + mCounts[i]; in getItemId() 158 if (position >= start && position < end) { in getItemId() 159 return mAdapters[i].getItemId(position - start); in getItemId() 161 start = end; in getItemId() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 145 int start = 0; in getPartitionAtPosition() local 147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition() 148 if (position >= start && position < end) { in getPartitionAtPosition() 149 int offset = position - start; in getPartitionAtPosition() 159 start = end; in getPartitionAtPosition() 196 int start = 0; in getItem() local 198 final int end = start + mPartitions[i].getCount(); in getItem() 199 if (position >= start && position < end) { in getItem() 200 final int offset = position - start; in getItem() 209 start = end; in getItem() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 211 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 213 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 218 start = createTimeInMillis(0, 0, 17, 31, 11, 2012); in testGetDisplayedDatetime_differentYear() 220 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 228 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 230 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 238 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 240 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 248 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 250 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 132 const LogEvent& event, int start, int end) { in getTransformedEvent() argument 145 for (int i = start; i < end; i++) { in getTransformedEvent() 165 static pair<int, int> getStartEndAtDepth(int targetField, int start, int end, int depth, in getStartEndAtDepth() argument 172 for (int i = start; i < end; i++) { in getStartEndAtDepth() 197 const vector<FieldValue>& values, int start, int end, in computeRanges() argument 200 std::tie(start, end) = getStartEndAtDepth(matcher.field(), start, end, depth, values); in computeRanges() 202 if (start == -1) { in computeRanges() 216 for (int i = start; i < end; i++) { in computeRanges() 225 ranges.push_back(std::make_pair(start, end)); in computeRanges() 230 for (int i = start; i < end; i++) { in computeRanges() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | UidRange.java | 35 public final int start; field in UidRange 42 start = startUid; in UidRange() 49 final int start = user.getUid(0 /* appId */); in createForUser() local 51 return new UidRange(start, end); in createForUser() 56 return UserHandle.getUserHandleForUid(start).getIdentifier(); in getStartUser() 66 return start <= uid && uid <= stop; in contains() 73 return 1 + stop - start; in count() 80 return start <= other.start && other.stop <= stop; in containsRange() 86 result = 31 * result + start; in hashCode() 98 return start == other.start && stop == other.stop; in equals() [all …]
|
/packages/modules/Virtualization/vmbase/example/src/ |
D | layout.rs | 33 info!("dtb: {}..{} ({} bytes)", dtb.start, dtb.end, dtb.end - dtb.start); in print_addresses() 35 info!("text: {}..{} ({} bytes)", text.start, text.end, text.end - text.start); in print_addresses() 37 info!("rodata: {}..{} ({} bytes)", rodata.start, rodata.end, rodata.end - rodata.start); in print_addresses() 42 data.start, in print_addresses() 44 data.end - data.start, in print_addresses() 48 info!("bss: {}..{} ({} bytes)", bss.start, bss.end, bss.end - bss.start); in print_addresses() 52 boot_stack.start, in print_addresses() 54 boot_stack.end - boot_stack.start in print_addresses()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 667 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument 668 final int oldDistance = oldFinal - start; in adjustDuration() 669 final int newDistance = newFinal - start; in adjustDuration() 682 void startScroll(int start, int distance, int duration) { in startScroll() argument 685 mStart = start; in startScroll() 686 mFinal = start + distance; in startScroll() 716 boolean springback(int start, int min, int max) { in springback() argument 719 mStart = mFinal = start; in springback() 725 if (start < min) { in springback() 726 startSpringback(start, min, 0); in springback() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 72 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument 122 int start = Math.max(0, in getIndexOfItem() local 125 start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 127 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem() 130 start = start == 0 ? MEDIAITEM_BATCH_FETCH_COUNT : 0; in getIndexOfItem() 131 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 134 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem() 136 start += MEDIAITEM_BATCH_FETCH_COUNT; in getIndexOfItem() 137 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 204 int start = 0; in enumerateMediaItems() local [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 91 int start = 0; in appendEscapedSourceId() local 93 int index = sourceId.indexOf('.', start); in appendEscapedSourceId() 95 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId() 100 sb.append(sourceId, start, index); in appendEscapedSourceId() 102 start = index + 1; in appendEscapedSourceId() 187 int start = offset; in parse() local 195 key = string.substring(start); in parse() 197 key = string.substring(start, offset - 1); in parse() 203 int start = offset; in parse() local 211 key = string.substring(start); in parse() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SearchUtil.java | 57 int start = index - 1; in findMatchingLine() local 58 while (start > -1) { in findMatchingLine() 59 if (contents.charAt(start) == '\n') { in findMatchingLine() 62 start--; in findMatchingLine() 71 matched.line = contents.substring(start + 1, end); in findMatchingLine() 72 matched.startIndex = index - (start + 1); in findMatchingLine() 174 int start = 0; in cleanStartAndEndOfSearchQuery() local 175 while (start < query.length()) { in cleanStartAndEndOfSearchQuery() 176 int codePoint = query.codePointAt(start); in cleanStartAndEndOfSearchQuery() 180 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 40 int start = index - 1; in findMatchingLine() local 41 while (start > -1) { in findMatchingLine() 42 if (contents.charAt(start) == '\n') { in findMatchingLine() 45 start--; in findMatchingLine() 54 matched.line = contents.substring(start + 1, end); in findMatchingLine() 55 matched.startIndex = index - (start + 1); in findMatchingLine() 157 int start = 0; in cleanStartAndEndOfSearchQuery() local 158 while (start < query.length()) { in cleanStartAndEndOfSearchQuery() 159 int codePoint = query.codePointAt(start); in cleanStartAndEndOfSearchQuery() 163 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.kt | 34 protected fun applyQueryTextStyle(text: Spannable, start: Int, end: Int) { in formatSuggestion() 35 if (start == end) return in formatSuggestion() 36 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()) in formatSuggestion() 39 protected fun applySuggestedTextStyle(text: Spannable, start: Int, end: Int) { in applySuggestedTextStyle() 40 if (start == end) return in applySuggestedTextStyle() 41 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()) in applySuggestedTextStyle() 44 private fun setSpans(text: Spannable, start: Int, end: Int, spans: Array<Any>) { in setSpans() 46 text.setSpan(span, start, end, 0) in setSpans()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 190 for (int start = 1; start < count; start++) { in binarySort() 191 final int pivotPosition = positions[start]; in binarySort() 192 final String pivotValue = sortKey[start]; in binarySort() 193 final boolean pivotIsDir = isDirs[start]; in binarySort() 194 final String pivotId = ids[start]; in binarySort() 197 int right = start; in binarySort() 237 int n = start - left; in binarySort() 271 for (int start = 1; start < count; start++) { in binarySort() 272 final int pivotPosition = positions[start]; in binarySort() 273 final long pivotValue = sortKey[start]; in binarySort() [all …]
|
/packages/modules/Bluetooth/system/osi/src/ |
D | thread.cc | 83 struct start_arg start; in thread_new_sized() local 84 start.start_sem = semaphore_new(0); in thread_new_sized() 85 if (!start.start_sem) goto error; in thread_new_sized() 88 start.thread = ret; in thread_new_sized() 89 start.error = 0; in thread_new_sized() 90 pthread_create(&ret->pthread, NULL, run_thread, &start); in thread_new_sized() 91 semaphore_wait(start.start_sem); in thread_new_sized() 92 semaphore_free(start.start_sem); in thread_new_sized() 94 if (start.error) goto error; in thread_new_sized() 198 struct start_arg* start = static_cast<struct start_arg*>(start_arg); in run_thread() local [all …]
|
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | unchecked.h | 76 octet_iterator utf16to8(u16bit_iterator start, u16bit_iterator end, octet_iterator result) { in utf16to8() argument 77 while (start != end) { in utf16to8() 78 uint32_t cp = utf8::mask16(*start++); in utf16to8() 81 uint32_t trail_surrogate = utf8::mask16(*start++); in utf16to8() 90 u16bit_iterator utf8to16(octet_iterator start, octet_iterator end, u16bit_iterator result) { in utf8to16() argument 91 while (start < end) { in utf8to16() 92 uint32_t cp = next(start); in utf8to16() 103 u32bit_iterator utf8to32(octet_iterator start, octet_iterator end, u32bit_iterator result) { in utf8to32() argument 104 while (start < end) (*result++) = next(start); in utf8to32()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/ |
D | DiscoveryProviderManagerTest.java | 188 Boolean start = mDiscoveryProviderManager.startProviders(); in testStartProviders_chreOnlyChreAvailable_bleProviderNotStarted() local 189 verify(mBluetoothController, never()).start(); in testStartProviders_chreOnlyChreAvailable_bleProviderNotStarted() 190 assertThat(start).isTrue(); in testStartProviders_chreOnlyChreAvailable_bleProviderNotStarted() 203 Boolean start = mDiscoveryProviderManager.startProviders(); in testStartProviders_chreOnlyChreAvailable_multipleFilters_bleProviderNotStarted() local 204 verify(mBluetoothController, never()).start(); in testStartProviders_chreOnlyChreAvailable_multipleFilters_bleProviderNotStarted() 205 assertThat(start).isTrue(); in testStartProviders_chreOnlyChreAvailable_multipleFilters_bleProviderNotStarted() 218 Boolean start = mDiscoveryProviderManager.startProviders(); in testStartProviders_chreOnlyChreUnavailable_bleProviderNotStarted() local 219 verify(mBluetoothController, never()).start(); in testStartProviders_chreOnlyChreUnavailable_bleProviderNotStarted() 220 assertThat(start).isFalse(); in testStartProviders_chreOnlyChreUnavailable_bleProviderNotStarted() 233 Boolean start = mDiscoveryProviderManager.startProviders(); in testStartProviders_notChreOnlyChreAvailable_bleProviderNotStarted() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/format/ |
D | SpannedTestUtils.java | 56 public static void assertPrefixSpan(CharSequence seq, int start, int end) { in assertPrefixSpan() argument 60 if (start > 0) { in assertPrefixSpan() 61 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan() 63 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan() 68 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { in getNumForegroundColorSpansBetween() argument 69 return value.getSpans(start, end, StyleSpan.class).length; in getNumForegroundColorSpansBetween() 83 public static int getNextTransition(SpannableString seq, int start) { in getNextTransition() argument 84 return seq.nextSpanTransition(start, seq.length(), StyleSpan.class); in getNextTransition()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | CycleAdapter.java | 88 public long start; field in CycleAdapter.CycleItem 91 public CycleItem(Context context, long start, long end) { in CycleItem() argument 92 this.label = Utils.formatDateRange(context, start, end); in CycleItem() 93 this.start = start; in CycleItem() 106 return start == another.start && end == another.end; in equals() 113 return Long.compare(start, another.start); in compareTo()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | entry.rs | 62 main!(start); 66 pub fn start(fdt_address: u64, payload_start: u64, payload_size: u64, _arg3: u64) { in start() function 103 let fdt = unsafe { slice::from_raw_parts_mut(range.start as *mut u8, range.len()) }; in new() 162 let kernel = kernel_range.start as *const u8; in new() 175 Some(unsafe { slice::from_raw_parts(r.start as *const u8, r.len()) }) in new() 285 assert_ne!(scratch.end - scratch.start, 0, "scratch memory is empty."); in jump_to_payload() 286 assert_eq!(scratch.start.0 % ASM_STP_ALIGN, 0, "scratch memory is misaligned."); in jump_to_payload() 289 assert!(bcc.is_within(&(scratch.start.0..scratch.end.0))); in jump_to_payload() 290 assert_eq!(bcc.start % ASM_STP_ALIGN, 0, "Misaligned guest BCC."); in jump_to_payload() 295 assert_ne!(stack.end - stack.start, 0, "stack region is empty."); in jump_to_payload() [all …]
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | hfp.py | 61 th.start() 97 threading.Thread(target=enable_slc).start() 121 threading.Thread(target=connect).start() 152 threading.Thread(target=disable_slc).start() 189 threading.Thread(target=enable_call).start() 214 threading.Thread(target=disable_call_external).start() 242 threading.Thread(target=disable_audio).start() 268 threading.Thread(target=enable_audio).start() 284 threading.Thread(target=disable_slc).start() 314 threading.Thread(target=enable_second_call).start() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsHistory.java | 533 public void recordData(long start, long end, long rxBytes, long txBytes) { in recordData() argument 534 recordData(start, end, new NetworkStats.Entry( in recordData() 544 public void recordData(long start, long end, NetworkStats.Entry entry) { in recordData() argument 559 ensureBuckets(start, end); in recordData() 565 long duration = end - start; in recordData() 572 if (curEnd < start) break; in recordData() 576 final long overlap = Math.min(curEnd, end) - Math.max(curStart, start); in recordData() 616 public void recordHistory(NetworkStatsHistory input, long start, long end) { in recordHistory() argument 625 if (bucketStart < start || bucketEnd > end) continue; in recordHistory() 640 private void ensureBuckets(long start, long end) { in ensureBuckets() argument [all …]
|