/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 62 protected int[] getRange(int start, int end) { in getRange() argument 63 if (start < 0 || end < 0 || start == end) { in getRange() 66 mSegment[0] = start; in getRange() 108 int start = offset; in following() local 109 if (start < 0) { in following() 110 start = 0; in following() 112 while (!mImpl.isBoundary(start)) { in following() 113 start = mImpl.following(start); in following() 114 if (start == BreakIterator.DONE) { in following() 118 final int end = mImpl.following(start); in following() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | UiResultsFragment.java | 72 int start = (i * NUM_FIELDS) + + NUM_FIELDS; 73 data[(start++)] = "Iteration"; 74 data[(start++)] = "" + i; 75 data[(start++)] = "Total Frames"; 78 data[(start++)] = Integer.toString(currentFrameCount); 79 data[(start++)] = "Average frame duration:"; 82 data[(start++)] = String.format("%.2f", currentAvgFrameDuration); 83 data[(start++)] = "Frame duration 99th:"; 86 data[(start++)] = String.format("%.2f", current99FrameDuration); 87 data[(start++)] = "Frame duration 95th:"; [all …]
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringBuilder.java | 59 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument 60 int srclen = end - start; in SpannableStringBuilder() 68 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder() 81 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder() 88 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder() 89 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder() 94 if (st > end - start) in SpannableStringBuilder() 95 st = end - start; in SpannableStringBuilder() 99 if (en > end - start) in SpannableStringBuilder() 100 en = end - start; in SpannableStringBuilder() [all …]
|
D | SpannableStringInternal.java | 31 int start, int end, boolean ignoreNoCopySpan) { in SpannableStringInternal() argument 32 if (start == 0 && end == source.length()) in SpannableStringInternal() 35 mText = source.toString().substring(start, end); in SpannableStringInternal() 43 copySpans((SpannableStringInternal) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local 45 copySpans((Spanned) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local 56 /* package */ SpannableStringInternal(CharSequence source, int start, int end) { in SpannableStringInternal() argument 57 this(source, start, end, false /* ignoreNoCopySpan */); in SpannableStringInternal() 68 private void copySpans(Spanned src, int start, int end, boolean ignoreNoCopySpan) { in copySpans() argument 69 Object[] spans = src.getSpans(start, end, Object.class); in copySpans() 79 if (st < start) in copySpans() [all …]
|
D | InputFilter.java | 50 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 75 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 77 final CharSequence wrapper = new CharSequenceWrapper(source, start, end); in filter() 80 final int length = end - start; in filter() 111 CharSequenceWrapper(CharSequence source, int start, int end) { in CharSequenceWrapper() argument 113 mStart = start; in CharSequenceWrapper() 115 mLength = end - start; in CharSequenceWrapper() 129 public CharSequence subSequence(int start, int end) { in subSequence() argument 130 if (start < 0 || end < 0 || end > mLength || start > end) { in subSequence() 133 return new CharSequenceWrapper(mSource, mStart + start, mStart + end); in subSequence() [all …]
|
D | MeasuredParagraph.java | 188 public Directions getDirections(@IntRange(from = 0) int start, // inclusive in getDirections() 194 final int length = end - start; in getDirections() 195 return AndroidBidi.directions(mParaDir, mLevels.getRawArray(), start, mCopiedBuffer, start, in getDirections() 262 public float getWidth(int start, int end) { in getWidth() argument 267 for (int i = start; i < end; ++i) { in getWidth() 273 return mMeasuredText.getWidth(start, end); in getWidth() 283 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getBounds() 285 mMeasuredText.getBounds(start, end, bounds); in getBounds() 312 @IntRange(from = 0) int start, in buildForBidi() 317 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForBidi() [all …]
|
D | AlteredCharSequence.java | 68 public <T> T[] getSpans(int start, int end, Class<T> kind) { in getSpans() argument 69 return mSpanned.getSpans(start, end, kind); in getSpans() 84 public int nextSpanTransition(int start, int end, Class kind) { in nextSpanTransition() argument 85 return mSpanned.nextSpanTransition(start, end, kind); in nextSpanTransition() 102 public CharSequence subSequence(int start, int end) { in subSequence() argument 103 return AlteredCharSequence.make(mSource.subSequence(start, end), in subSequence() 104 mChars, mStart - start, mEnd - start); in subSequence() 107 public void getChars(int start, int end, char[] dest, int off) { in getChars() argument 108 TextUtils.getChars(mSource, start, end, dest, off); in getChars() 110 start = Math.max(mStart, start); in getChars() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | Measurement.cpp | 30 size_t start, size_t count, size_t offset) { in getRunAdvance() argument 32 size_t lastCluster = start; in getRunAdvance() 34 for (size_t i = start; i < offset; i++) { in getRunAdvance() 42 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance() 47 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) { in getRunAdvance() 54 if (GraphemeBreak::isGraphemeBreak(advances + (start - layoutStart), buf, start, count, in getRunAdvance() 69 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getRunAdvance() argument 71 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance() 82 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance() argument 85 size_t lastClusterStart = start, searchStart = start; in getOffsetForAdvance() [all …]
|
D | GraphemeBreak.cpp | 62 bool GraphemeBreak::isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start, in isGraphemeBreak() argument 70 if (offset <= start || offset >= start + count) { in isGraphemeBreak() 81 U16_PREV(buf, start, offset_back, c1); in isGraphemeBreak() 82 U16_NEXT(buf, offset_forward, start + count, c2); in isGraphemeBreak() 112 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak() 128 if (offset_back > start && p1 == U_GCB_ZWJ && in isGraphemeBreak() 134 U16_PREV(buf, start, offset_backback, c0); in isGraphemeBreak() 137 while (p0 == U_GCB_EXTEND && offset_backback > start) { in isGraphemeBreak() 138 U16_PREV(buf, start, offset_backback, c0); in isGraphemeBreak() 161 const size_t lookback_barrier = std::max((ssize_t)start, (ssize_t)offset_back - 1000); in isGraphemeBreak() [all …]
|
/frameworks/base/libs/hwui/ |
D | PathParser.cpp | 53 static void extract(int* outEndPosition, bool* outEndWithNegOrDot, const char* s, int start, in extract() argument 56 int currentIndex = start; in extract() 72 if (currentIndex != start && !isPrevExponential) { in extract() 125 const char* pathStr, int start, int end) { in getFloats() argument 126 if (pathStr[start] == 'z' || pathStr[start] == 'Z') { in getFloats() 129 int startPosition = start + 1; in getFloats() 130 int endPosition = start; in getFloats() 223 size_t start = 0; in getPathDataFromAsciiString() local 225 while (isspace(pathStr[start]) && start < strLen) { in getPathDataFromAsciiString() 226 start++; in getPathDataFromAsciiString() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 116 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() local 119 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); in TEST() 120 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 2).get()); in TEST() 122 ConfigMetricsReport report = GetReports(service.mProcessor, start + 3); in TEST() 131 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() local 135 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); in TEST() 138 service.mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2, String16("v2"), in TEST() 141 service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 3).get()); in TEST() 143 ConfigMetricsReport report = GetReports(service.mProcessor, start + 4); in TEST() 151 int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are in TEST() local [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 196 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument 199 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan() 218 public void spellCheck(int start, int end) { in spellCheck() argument 220 Log.d(TAG, "Start spell-checking: " + start + ", " + end); in spellCheck() 227 start = 0; in spellCheck() 245 spellParser.parse(start, end); in spellCheck() 260 spellParser.parse(start, end); in spellCheck() 277 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck() local 293 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck() 295 isEditing = selectionEnd < start || selectionStart > end; in spellCheck() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 52 private final int start; field in BidiRenderer.ScriptRun 56 private ScriptRun(int start, int limit, @NonNull Font font) { in ScriptRun() argument 57 this.start = start; in ScriptRun() 104 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument 106 mBidi.setPara(Arrays.copyOfRange(mText, start, limit), (byte)getIcuFlags(bidiFlags), null); in renderText() 132 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument 136 for (ScriptRun run : getScriptRuns(mText, start, limit, mPaint.getFonts())) { in renderText() 139 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText() 140 advancesIndex += run.limit - run.start; in renderText() 150 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument [all …]
|
/frameworks/base/core/java/android/net/ |
D | UidRange.java | 32 public final int start; field in UidRange 39 start = startUid; in UidRange() 49 return start / PER_USER_RANGE; in getStartUser() 58 return start <= uid && uid <= stop; in contains() 65 return 1 + stop - start; in count() 72 return start <= other.start && other.stop <= stop; in containsRange() 78 result = 31 * result + start; in hashCode() 90 return start == other.start && stop == other.stop; in equals() 97 return start + "-" + stop; in toString() 110 dest.writeInt(start); in writeToParcel() [all …]
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | CompositeCursorAdapter.java | 244 int start = 0; in getPartitionForPosition() local 246 int end = start + mPartitions.get(i).count; in getPartitionForPosition() 247 if (position >= start && position < end) { in getPartitionForPosition() 250 start = end; in getPartitionForPosition() 261 int start = 0; in getOffsetInPartition() local 263 int end = start + partition.count; in getOffsetInPartition() 264 if (position >= start && position < end) { in getOffsetInPartition() 265 int offset = position - start; in getOffsetInPartition() 271 start = end; in getOffsetInPartition() 313 int start = 0; in getItemViewType() local [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LoggingPrintStream.java | 91 int start = 0; in flush() local 95 while (start < length in flush() 96 && (nextBreak = builder.indexOf("\n", start)) != -1) { in flush() 97 log(builder.substring(start, nextBreak)); in flush() 98 start = nextBreak + 1; in flush() 103 if (start < length) { in flush() 104 log(builder.substring(start)); in flush() 109 builder.delete(0, start); in flush() 123 public synchronized void write(byte bytes[], int start, int count) { in write() argument 132 int end = start + count; in write() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassifierUtilsTest.java | 36 int start; in testGetSubString() local 41 start = text.indexOf("任侠団体"); in testGetSubString() 44 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString() 48 start = 0; in testGetSubString() 51 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString() 55 start = text.indexOf("all"); in testGetSubString() 56 end = start + 1; in testGetSubString() 58 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString() 62 start = text.indexOf("themselves"); in testGetSubString() 63 end = start + "themselves".length(); in testGetSubString() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | FontCollectionItemizeTest.cpp | 77 EXPECT_EQ(result[i].start, resultWithRunMax[i].start); in itemize() 125 EXPECT_EQ(0, runs[0].start); in TEST() 133 EXPECT_EQ(0, runs[0].start); in TEST() 141 EXPECT_EQ(0, runs[0].start); in TEST() 149 EXPECT_EQ(0, runs[0].start); in TEST() 159 EXPECT_EQ(0, runs[0].start); in TEST() 167 EXPECT_EQ(0, runs[0].start); in TEST() 177 EXPECT_EQ(0, runs[0].start); in TEST() 191 EXPECT_EQ(0, runs[0].start); in TEST() 198 EXPECT_EQ(0, runs[0].start); in TEST() [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | serialization.h | 1090 const void*& start, 1092 while (AdvancePointer(start, size) > end) { 1093 auto remaining_size = PointerDistance(end, start); 1095 memcpy(dest, start, remaining_size); 1099 reader->ConsumeReadBufferSectionData(AdvancePointer(start, remaining_size)); 1100 std::tie(start, end) = reader->GetNextReadBufferSection(); 1101 if (start == end) 1104 memcpy(dest, start, size); 1105 start = AdvancePointer(start, size); 1110 const void*& start, const void*& end, [all …]
|
/frameworks/base/core/java/android/util/ |
D | RecurrenceRule.java | 54 public final ZonedDateTime start; field in RecurrenceRule 58 public RecurrenceRule(ZonedDateTime start, ZonedDateTime end, Period period) { in RecurrenceRule() argument 59 this.start = start; in RecurrenceRule() 74 final ZonedDateTime start = ZonedDateTime.of( in buildRecurringMonthly() local 77 return new RecurrenceRule(start, null, Period.ofMonths(1)); in buildRecurringMonthly() 81 start = convertZonedDateTime(source.readString()); in RecurrenceRule() 93 dest.writeString(convertZonedDateTime(start)); in writeToParcel() 102 start = convertZonedDateTime(BackupUtils.readString(in)); in RecurrenceRule() 113 BackupUtils.writeString(out, convertZonedDateTime(start)); in writeToStream() 121 .append("start=").append(start) in toString() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CharSequences.java | 42 public CharSequence subSequence(int start, int end) { in forAsciiBytes() argument 43 return forAsciiBytes(bytes, start, end); in forAsciiBytes() 64 final int start, final int end) { 65 validate(start, end, bytes.length); 68 return (char) bytes[index + start]; 72 return end - start; 76 newStart -= start; 77 newEnd -= start; 83 return new String(bytes, start, length()); 88 static void validate(int start, int end, int length) { [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 270 new UidRange(user.start + PKG_UIDS[0], user.start + PKG_UIDS[0]), in testUidWhiteAndBlacklist() 271 new UidRange(user.start + PKG_UIDS[1], user.start + PKG_UIDS[2]) in testUidWhiteAndBlacklist() 278 new UidRange(user.start, user.start + PKG_UIDS[0] - 1), in testUidWhiteAndBlacklist() 279 new UidRange(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[1] - 1), in testUidWhiteAndBlacklist() 281 new UidRange(user.start + PKG_UIDS[2] + 1, user.stop) in testUidWhiteAndBlacklist() 315 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage() 319 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage() 324 new UidRange(user.start, user.start + PKG_UIDS[1] - 1), in testLockdownChangingPackage() 325 new UidRange(user.start + PKG_UIDS[1] + 1, user.stop) in testLockdownChangingPackage() 327 … assertBlocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[2], user.start + PKG_UIDS[3]); in testLockdownChangingPackage() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 45 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform() local 48 current = std::find(start, end, sep); in SplitAndTransform() 49 parts.emplace_back(str.substr(start, current).to_string()); in SplitAndTransform() 54 start = current + 1; in SplitAndTransform() 86 const char* start = str.data(); in TrimLeadingWhitespace() local 87 const char* end = start + str.length(); in TrimLeadingWhitespace() 89 while (start != end && isspace(*start)) { in TrimLeadingWhitespace() 90 start++; in TrimLeadingWhitespace() 92 return StringPiece(start, end - start); in TrimLeadingWhitespace() 100 const char* start = str.data(); in TrimTrailingWhitespace() local [all …]
|
/frameworks/base/cmds/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 …]
|
/frameworks/base/libs/androidfw/ |
D | ResourceUtils.cpp | 27 const char* start = str.data(); in ExtractResourceName() local 28 const char* end = start + str.size(); in ExtractResourceName() 29 if (start[0] == '@') { in ExtractResourceName() 30 start++; in ExtractResourceName() 32 const char* current = start; in ExtractResourceName() 36 out_type->assign(start, current - start); in ExtractResourceName() 37 start = current + 1; in ExtractResourceName() 40 out_package->assign(start, current - start); in ExtractResourceName() 41 start = current + 1; in ExtractResourceName() 45 out_entry->assign(start, end - start); in ExtractResourceName()
|