Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 2472) sorted by relevance

12345678910>>...99

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java63 protected int[] getRange(int start, int end) { in getRange() argument
64 if (start < 0 || end < 0 || start == end) { in getRange()
67 mSegment[0] = start; in getRange()
109 int start = offset; in following() local
110 if (start < 0) { in following()
111 start = 0; in following()
113 while (!mImpl.isBoundary(start)) { in following()
114 start = mImpl.following(start); in following()
115 if (start == BreakIterator.DONE) { in following()
119 final int end = mImpl.following(start); in following()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DUiResultsFragment.java72 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/
DSpannableStringBuilder.java60 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
61 int srclen = end - start; in SpannableStringBuilder()
69 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
82 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
89 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
90 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder()
95 if (st > end - start) in SpannableStringBuilder()
96 st = end - start; in SpannableStringBuilder()
100 if (en > end - start) in SpannableStringBuilder()
101 en = end - start; in SpannableStringBuilder()
[all …]
DInputFilter.java50 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 …]
DSpannableStringInternal.java33 int start, int end, boolean ignoreNoCopySpan) { in SpannableStringInternal() argument
34 if (start == 0 && end == source.length()) in SpannableStringInternal()
37 mText = source.toString().substring(start, end); in SpannableStringInternal()
46 (SpannableStringInternal) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local
48 copySpansFromSpanned((Spanned) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local
59 /* package */ SpannableStringInternal(CharSequence source, int start, int end) { in SpannableStringInternal() argument
60 this(source, start, end, false /* ignoreNoCopySpan */); in SpannableStringInternal()
71 private void copySpansFromSpanned(Spanned src, int start, int end, boolean ignoreNoCopySpan) { in copySpansFromSpanned() argument
72 Object[] spans = src.getSpans(start, end, Object.class); in copySpansFromSpanned()
82 if (st < start) in copySpansFromSpanned()
[all …]
DMeasuredParagraph.java189 public Directions getDirections(@IntRange(from = 0) int start, // inclusive in getDirections()
195 final int length = end - start; in getDirections()
196 return AndroidBidi.directions(mParaDir, mLevels.getRawArray(), start, mCopiedBuffer, start, in getDirections()
263 public float getWidth(int start, int end) { in getWidth() argument
268 for (int i = start; i < end; ++i) { in getWidth()
274 return mMeasuredText.getWidth(start, end); in getWidth()
284 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getBounds()
286 mMeasuredText.getBounds(start, end, bounds); in getBounds()
294 public void getFontMetricsInt(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getFontMetricsInt()
296 mMeasuredText.getFontMetricsInt(start, end, fmi); in getFontMetricsInt()
[all …]
DAlteredCharSequence.java68 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/
DMeasurement.cpp55 size_t start, size_t count, size_t offset) { in getRunAdvance() argument
57 size_t lastCluster = start; in getRunAdvance()
59 for (size_t i = start; i < offset; i++) { in getRunAdvance()
67 if (offset < start + count && !isAsciiOrBidiControlCharacter(buf[offset]) && in getRunAdvance()
73 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) { in getRunAdvance()
83 if (GraphemeBreak::isGraphemeBreak(advances + (start - layoutStart), buf, start, count, in getRunAdvance()
111 void distributeAdvances(float* advances, const uint16_t* buf, size_t start, size_t count) { in distributeAdvances() argument
112 size_t clusterStart = start; in distributeAdvances()
113 while (clusterStart < start + count) { in distributeAdvances()
114 float clusterAdvance = advances[clusterStart - start]; in distributeAdvances()
[all …]
DGraphemeBreak.cpp62 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/
DPathParser.cpp53 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/packages/SystemUI/compose/core/src/com/android/compose/ui/util/
DMathHelpers.kt25 fun lerp(start: Float, stop: Float, fraction: Float): Float { in lerp()
26 return (1 - fraction) * start + fraction * stop in lerp()
30 fun lerp(start: Int, stop: Int, fraction: Float): Int { in lerp()
31 return start + ((stop - start) * fraction.toDouble()).roundToInt() in lerp()
35 fun lerp(start: Long, stop: Long, fraction: Float): Long { in lerp()
36 return start + ((stop - start) * fraction.toDouble()).roundToLong() in lerp()
40 fun lerp(start: IntSize, stop: IntSize, fraction: Float): IntSize { in lerp()
42 lerp(start.width, stop.width, fraction), in lerp()
43 lerp(start.height, stop.height, fraction) in lerp()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/transformation/
DTransformation.kt97 val start: Float, constant in com.android.compose.animation.scene.transformation.TransformationRange
101 start: Float? = null,
103 ) : this(start ?: BoundUnspecified, end ?: BoundUnspecified)
106 require(!start.isSpecified() || (start in 0f..1f))
108 require(!start.isSpecified() || !end.isSpecified() || start <= end)
112 fun reverse() = TransformationRange(start = reverseBound(end), end = reverseBound(start)) in reverse()
117 start.isSpecified() && end.isSpecified() -> in reverse()
118 ((transitionProgress - start) / (end - start)).coerceIn(0f, 1f) in reverse()
119 !start.isSpecified() && !end.isSpecified() -> transitionProgress in reverse()
121 else -> ((transitionProgress - start) / (1f - start)).coerceAtLeast(0f) in reverse()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierUtilsTest.java36 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/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java244 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/tools/aapt2/util/
DUtil.cpp49 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform() local
52 current = std::find(start, end, sep); in SplitAndTransform()
53 parts.emplace_back(start, current); in SplitAndTransform()
58 start = current + 1; in SplitAndTransform()
90 const char* start = str.data(); in TrimLeadingWhitespace() local
91 const char* end = start + str.length(); in TrimLeadingWhitespace()
93 while (start != end && isspace(*start)) { in TrimLeadingWhitespace()
94 start++; in TrimLeadingWhitespace()
96 return StringPiece(start, end - start); in TrimLeadingWhitespace()
104 const char* start = str.data(); in TrimTrailingWhitespace() local
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java91 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/minikin/tests/unittest/
DFontCollectionItemizeTest.cpp61 int start; member
83 EXPECT_EQ(result[i].start, resultWithRunMax[i].start); in itemize()
91 {collection->getBestFont(U16StringPiece(buf, len), r, style), r.start, r.end}); in itemize()
134 EXPECT_EQ(0, runs[0].start); in TEST()
142 EXPECT_EQ(0, runs[0].start); in TEST()
150 EXPECT_EQ(0, runs[0].start); in TEST()
158 EXPECT_EQ(0, runs[0].start); in TEST()
168 EXPECT_EQ(0, runs[0].start); in TEST()
176 EXPECT_EQ(0, runs[0].start); in TEST()
186 EXPECT_EQ(0, runs[0].start); in TEST()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java42 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 …]
DQuickSelect.java192 public static <T> T select(@NonNull List<T> list, int start, int length, int k, in select() argument
194 if (list == null || start < 0 || length <= 0 || list.size() < start + length in select()
198 return list.get(selectImpl(list, start, start + length - 1, k + start, comparator)); in select()
211 public static int select(@NonNull int[] array, int start, int length, int k) { in select() argument
212 if (array == null || start < 0 || length <= 0 || array.length < start + length in select()
216 return array[selectImpl(array, start, start + length - 1, k + start)]; in select()
229 public static long select(@NonNull long[] array, int start, int length, int k) { in select() argument
230 if (array == null || start < 0 || length <= 0 || array.length < start + length in select()
234 return array[selectImpl(array, start, start + length - 1, k + start)]; in select()
248 public static <T> T select(@NonNull T[] array, int start, int length, int k, in select() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java2160 @IntRange(from = 0) int start, @IntRange(from = 0) int count, in getFontMetricsInt()
2168 if (start < 0 || start >= text.length()) { in getFontMetricsInt()
2171 if (count < 0 || start + count > text.length()) { in getFontMetricsInt()
2190 nGetFontMetricsIntForText(mNativePaint, (String) text, start, count, contextStart, in getFontMetricsInt()
2196 nGetFontMetricsIntForText(mNativePaint, buf, start - contextStart, count, 0, in getFontMetricsInt()
2223 @IntRange(from = 0) int start, @IntRange(from = 0) int count, in getFontMetricsInt()
2230 if (start < 0 || start >= text.length) { in getFontMetricsInt()
2233 if (count < 0 || start + count > text.length) { in getFontMetricsInt()
2251 nGetFontMetricsIntForText(mNativePaint, text, start, count, contextStart, contextCount, in getFontMetricsInt()
2384 public float measureText(String text, int start, int end) { in measureText() argument
[all …]
/frameworks/av/media/audioserver/
Daudioserver.rc18 start audioserver
29 start vendor.audio-hal
30 start vendor.audio-hal-aidl
31 start vendor.audio-effect-hal-aidl
32 start vendor.audio-hal-4-0-msd
33 start audio_proxy_service
36 start vendor.audio-hal
37 start vendor.audio-hal-aidl
38 start vendor.audio-effect-hal-aidl
39 start vendor.audio-hal-4-0-msd
[all …]
/frameworks/base/core/java/android/text/method/
DInsertModeTransformationMethod.java88 private InsertModeTransformationMethod(int start, int end, boolean singleLine, in InsertModeTransformationMethod() argument
90 mStart = start; in InsertModeTransformationMethod()
159 public void beforeTextChanged(CharSequence s, int start, int count, int after) { } in beforeTextChanged() argument
162 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
164 if (start > mEnd) return; in onTextChanged()
169 if (start < mStart) { in onTextChanged()
170 if (start + before <= mStart) { in onTextChanged()
176 mStart = start; in onTextChanged()
180 if (start + before <= mEnd) { in onTextChanged()
183 } else if (start < mEnd) { in onTextChanged()
[all …]
/frameworks/base/startop/view_compiler/
Dutil.cc26 size_t start = filename.rfind('/'); in FindLayoutNameFromFilename() local
27 if (start == string::npos) { in FindLayoutNameFromFilename()
28 start = 0; in FindLayoutNameFromFilename()
30 start++; // advance past '/' character in FindLayoutNameFromFilename()
32 size_t end = filename.find('.', start); in FindLayoutNameFromFilename()
34 return filename.substr(start, end - start); in FindLayoutNameFromFilename()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java93 @IntRange(from = 0) int start, @IntRange(from = 0) int end) { in getWidth()
94 Preconditions.checkArgument(0 <= start && start <= mChars.length, in getWidth()
95 "start(%d) must be 0 <= start <= %d", start, mChars.length); in getWidth()
98 Preconditions.checkArgument(start <= end, in getWidth()
99 "start(%d) is larger than end(%d)", start, end); in getWidth()
100 return nGetWidth(mNativePtr, start, end); in getWidth()
119 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getBounds()
121 Preconditions.checkArgument(0 <= start && start <= mChars.length, in getBounds()
122 "start(%d) must be 0 <= start <= %d", start, mChars.length); in getBounds()
125 Preconditions.checkArgument(start <= end, in getBounds()
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DFontInterpolator.kt98 fun lerp(start: Font, end: Font, progress: Float): Font { in <lambda>()
100 return start in <lambda>()
105 val startAxes = start.axes ?: EMPTY_AXES in <lambda>()
109 return start in <lambda>()
114 tmpInterpKey.set(start, end, progress) in <lambda>()
155 tmpVarFontKey.set(start, newAxes) in <lambda>()
158 interpCache.put(InterpKey(start, end, progress), axesCachedFont) in <lambda>()
168 val newFont = Font.Builder(start).setFontVariationSettings(newAxes.toTypedArray()).build() in <lambda>()
169 interpCache.put(InterpKey(start, end, progress), newFont) in <lambda>()
170 verFontCache.put(VarFontKey(start, newAxes), newFont) in <lambda>()
[all …]

12345678910>>...99