/packages/modules/StatsD/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 127 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() local 130 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 1, 100).get()); in TEST() 131 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 2, 100).get()); in TEST() 133 ConfigMetricsReport report = GetReports(service->mProcessor, start + 3); in TEST() 142 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() local 146 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 1, 100).get()); in TEST() 149 service->mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2, String16("v2"), in TEST() 152 service->mProcessor->OnLogEvent(CreateAppCrashEvent(start + 3, 100).get()); in TEST() 154 ConfigMetricsReport report = GetReports(service->mProcessor, start + 4); in TEST() 162 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() 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/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 | 229 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 231 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 236 start = createTimeInMillis(0, 0, 17, 31, 11, 2012); in testGetDisplayedDatetime_differentYear() 238 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 246 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 248 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 256 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 258 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 266 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 268 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument 107 if (start >= end) { in matchesSimple() 116 for (int i = start; i < end; i++) { in matchesSimple() 129 start = newStart; in matchesSimple() 132 if (start == -1) { in matchesSimple() 146 for (int i = start; i < end; i++) { in matchesSimple() 155 ranges.push_back(std::make_pair(start, end)); in matchesSimple() 160 for (int i = start; i < end; i++) { in matchesSimple() 162 start = i; in matchesSimple() 166 ranges.push_back(std::make_pair(start, end)); in matchesSimple() [all …]
|
/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/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/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/modules/DnsResolver/ |
D | OperationLimiterTest.cpp | 27 EXPECT_TRUE(limiter.start(42)); in TEST() 28 EXPECT_TRUE(limiter.start(42)); in TEST() 29 EXPECT_TRUE(limiter.start(42)); in TEST() 32 EXPECT_FALSE(limiter.start(42)); in TEST() 33 EXPECT_FALSE(limiter.start(42)); in TEST() 34 EXPECT_FALSE(limiter.start(42)); in TEST() 38 EXPECT_TRUE(limiter.start(42)); in TEST() 41 EXPECT_FALSE(limiter.start(42)); in TEST() 44 EXPECT_TRUE(limiter.start(666)); in TEST() 60 EXPECT_TRUE(limiter.start(42)); in TEST() [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/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/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/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 202 for (int start = 1; start < count; start++) { in binarySort() 203 final int pivotPosition = positions[start]; in binarySort() 204 final String pivotValue = sortKey[start]; in binarySort() 205 final boolean pivotIsDir = isDirs[start]; in binarySort() 206 final String pivotId = ids[start]; in binarySort() 209 int right = start; in binarySort() 249 int n = start - left; in binarySort() 283 for (int start = 1; start < count; start++) { in binarySort() 284 final int pivotPosition = positions[start]; in binarySort() 285 final long pivotValue = sortKey[start]; in binarySort() [all …]
|
/packages/modules/Bluetooth/system/osi/src/ |
D | thread.cc | 81 struct start_arg start; in thread_new_sized() local 82 start.start_sem = semaphore_new(0); in thread_new_sized() 83 if (!start.start_sem) goto error; in thread_new_sized() 86 start.thread = ret; in thread_new_sized() 87 start.error = 0; in thread_new_sized() 88 pthread_create(&ret->pthread, NULL, run_thread, &start); in thread_new_sized() 89 semaphore_wait(start.start_sem); in thread_new_sized() 90 semaphore_free(start.start_sem); in thread_new_sized() 92 if (start.error) goto error; in thread_new_sized() 196 struct start_arg* start = static_cast<struct start_arg*>(start_arg); in run_thread() local [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsHistory.java | 530 public void recordData(long start, long end, long rxBytes, long txBytes) { in recordData() argument 531 recordData(start, end, new NetworkStats.Entry( in recordData() 540 public void recordData(long start, long end, NetworkStats.Entry entry) { in recordData() argument 555 ensureBuckets(start, end); in recordData() 561 long duration = end - start; in recordData() 568 if (curEnd < start) break; in recordData() 572 final long overlap = Math.min(curEnd, end) - Math.max(curStart, start); in recordData() 612 public void recordHistory(NetworkStatsHistory input, long start, long end) { in recordHistory() argument 620 if (bucketStart < start || bucketEnd > end) continue; in recordHistory() 635 private void ensureBuckets(long start, long end) { in ensureBuckets() argument [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.java | 42 protected void applyQueryTextStyle(Spannable text, int start, int end) { in applyQueryTextStyle() argument 43 if (start == end) return; in applyQueryTextStyle() 44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()); in applyQueryTextStyle() 47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { in applySuggestedTextStyle() argument 48 if (start == end) return; in applySuggestedTextStyle() 49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()); in applySuggestedTextStyle() 52 private void setSpans(Spannable text, int start, int end, Object[] spans) { in setSpans() argument 54 text.setSpan(span, start, end, 0); in setSpans()
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | hfp.py | 64 th.start() 104 threading.Thread(target=enable_slc).start() 128 threading.Thread(target=connect).start() 158 threading.Thread(target=disable_slc).start() 195 threading.Thread(target=enable_call).start() 220 threading.Thread(target=disable_call_external).start() 250 threading.Thread(target=disable_audio).start() 278 threading.Thread(target=enable_audio).start() 296 threading.Thread(target=disable_slc).start() 326 threading.Thread(target=enable_second_call).start() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | IntHistogram.java | 53 public int start; field in IntHistogram.Bucket 57 public Bucket(int start, int end, int count) { in Bucket() argument 58 this.start = start; in Bucket() 121 int start = bucketKey == 0 in getBucketByIndex() local 126 return new Bucket(start, end, count); in getBucketByIndex() 179 double value = Math.max(hitBucket.start, minimum); in quantileFunction() 267 T convert(int start, int end, int count); in convert() argument 282 output[i] = converter.convert(bucket.start, bucket.end, bucket.count); in toProto() 292 return toProto(HistogramBucketInt32.class, (start, end, count) -> { in toProto() 294 hb.start = start; in toProto()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | RedactingFileDescriptor.java | 113 public static long[] removeRange(long[] ranges, long start, long end) { in removeRange() argument 114 if (start == end) { in removeRange() 116 } else if (start > end) { in removeRange() 122 if (start <= ranges[i] && end >= ranges[i + 1]) { in removeRange() 124 } else if (start >= ranges[i] && end <= ranges[i + 1]) { in removeRange() 128 res[res.length - 3] = start; in removeRange() 139 if (start >= ranges[i] && start <= ranges[i + 1]) { in removeRange() 140 res[res.length - 1] = Math.min(ranges[i + 1], start); in removeRange() 174 final long start = Math.max(offset, ranges[i]); 176 for (long j = start; j < end; j++) { [all …]
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PerformanceTest.java | 109 timers.actionInsert.start(); in doSingle() 113 timers.notifyInsert.start(); in doSingle() 125 timers.actionUpdate.start(); in doSingle() 129 timers.notifyUpdate.start(); in doSingle() 138 timers.actionDelete.start(); in doSingle() 142 timers.notifyDelete.start(); in doSingle() 182 timers.actionInsert.start(); in doBulk() 186 timers.notifyInsert.start(); in doBulk() 202 timers.actionUpdate.start(); in doBulk() 206 timers.notifyUpdate.start(); in doBulk() [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/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumDataLoader.java | 112 mReloadTask.start(); in resume() 161 int start = mContentStart; in setContentWindow() local 170 if (contentStart >= end || start >= contentEnd) { in setContentWindow() 171 for (int i = start, n = end; i < n; ++i) { in setContentWindow() 175 for (int i = start; i < contentStart; ++i) { in setContentWindow() 185 public void setActiveWindow(int start, int end) { in setActiveWindow() argument 186 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow() 188 Utils.assertTrue(start <= end in setActiveWindow() 189 && end - start <= mData.length && end <= mSize); in setActiveWindow() 192 mActiveStart = start; in setActiveWindow() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | BufferDebug.java | 87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument 91 f.format("%10d 0x%08x ", start, start); in writeRow() 94 int end = start + len; in writeRow() 97 if (start + WIDTH > max) { in writeRow() 103 for (int i = start; i < end; i++) { in writeRow() 105 if (i == start + HALF_WIDTH - 1) { in writeRow() 117 for (int i = start; i < end; i++) { in writeRow() 124 if (i == start + HALF_WIDTH - 1) { in writeRow()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | CycleAdapter.java | 93 public long start; field in CycleAdapter.CycleItem 96 public CycleItem(Context context, long start, long end) { in CycleItem() argument 97 this.label = Utils.formatDateRange(context, start, end); in CycleItem() 98 this.start = start; in CycleItem() 111 return start == another.start && end == another.end; in equals() 118 return Long.compare(start, another.start); in compareTo()
|