/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 113 const uint16_t* chars, size_t start, size_t count, size_t nchars, bool dir) 115 mStart(start), mCount(count), mId(collection->getId()), mStyle(style), 447 Iter(UBiDi* bidi, size_t start, size_t end, size_t runIndex, size_t runCount, bool isRtl); 475 BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags); 502 BidiText::Iter::Iter(UBiDi* bidi, size_t start, size_t end, size_t runIndex, size_t runCount, argument 505 mStart(start), mEnd(end), mRunInfo() { 507 mRunInfo.mRunStart = start; 508 mRunInfo.mRunLength = end - start; 543 BidiText::BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags) argument 544 : mStart(start), mEn 112 LayoutCacheKey(const FontCollection* collection, const MinikinPaint& paint, FontStyle style, const uint16_t* chars, size_t start, size_t count, size_t nchars, bool dir) argument 579 doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint) argument 597 measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const FontCollection* collection, float* advances) argument 617 doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, const FontCollection* collection, Layout* layout, float* advances) argument 656 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection, Layout* layout, float* advances) argument 688 const char* start = str.c_str(); local 705 doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx) argument 863 appendLayout(Layout* src, size_t start) argument [all...] |
/frameworks/minikin/include/minikin/ |
H A D | Layout.h | 93 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 120 // The i parameter is an offset within the buf relative to start, it is < count, where 121 // start and count are the parameters to doLayout 143 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 148 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 152 void appendLayout(Layout* src, size_t start);
|
/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 70 public void beforeTextChanged(CharSequence s, int start, argument 75 public void onTextChanged(CharSequence s, int start, argument 107 sp.setSpan(new Visible(sp, this), start, start + count, 177 public CharSequence subSequence(int start, int end) { argument 178 char[] buf = new char[end - start]; 180 getChars(start, end, buf, 0); 188 public void getChars(int start, int end, char[] dest, int off) { argument 189 TextUtils.getChars(mSource, start, end, dest, off); 214 for (int i = start; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AlphabetIndexer.java | 165 int start = 0; 181 // Not approximate, this is the confirmed start of section, return it 192 start = Math.abs(prevLetterPos); 196 // Now that we have a possibly optimized start and end, let's binary search 198 pos = (end + start) / 2; 226 start = pos + 1; 227 if (start >= count) { 235 // They're the same, but that doesn't mean it's the start 236 if (start == pos) { 244 pos = (start [all...] |
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 196 void GradientCache::mixBytes(GradientColor& start, GradientColor& end, float amount, argument 199 const float alpha = start.a * oppAmount + end.a * amount; 202 *dst++ = uint8_t(a * (start.r * oppAmount + end.r * amount)); 203 *dst++ = uint8_t(a * (start.g * oppAmount + end.g * amount)); 204 *dst++ = uint8_t(a * (start.b * oppAmount + end.b * amount)); 208 void GradientCache::mixFloats(GradientColor& start, GradientColor& end, float amount, argument 211 const float a = start.a * oppAmount + end.a * amount; 214 *d++ = a * (start.r * oppAmount + end.r * amount); 215 *d++ = a * (start.g * oppAmount + end.g * amount); 216 *d++ = a * (start 239 GradientColor start; local [all...] |
H A D | UvMapper.h | 115 static float lerp(float start, float stop, float amount) { argument 116 return start + (stop - start) * amount;
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 95 void operator()(size_t start, size_t end) { argument 97 for (size_t i = start; i < end; i++) { 103 for (size_t i = start; i < end; i++) { 110 size_t glyphCount = end - start; 122 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, outlinePaint, x, y, 129 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, innerPaint, x, y, 133 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCoun 149 drawText(const uint16_t* text, int start, int count, int contextCount, float x, float y, int bidiFlags, const Paint& origPaint, Typeface* typeface) argument 191 operator ()(size_t start, size_t end) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Html.java | 326 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, argument 329 for (int i = start; i < end; i = next) { 345 private static String getTextDirection(Spanned text, int start, int end) { argument 346 final int len = end - start; 349 TextUtils.getChars(text, start, end, buffer, 0); 362 private static String getTextStyles(Spanned text, int start, int end, argument 371 final AlignmentSpan[] alignmentSpans = text.getSpans(start, end, AlignmentSpan.class); 379 textAlign = "text-align:start;"; 406 private static void withinBlockquote(StringBuilder out, Spanned text, int start, int end, argument 409 withinBlockquoteConsecutive(out, text, start, en 415 withinBlockquoteIndividual(StringBuilder out, Spanned text, int start, int end) argument 480 withinBlockquoteConsecutive(StringBuilder out, Spanned text, int start, int end) argument 517 withinParagraph(StringBuilder out, Spanned text, int start, int end) argument 643 withinStyle(StringBuilder out, CharSequence text, int start, int end) argument 1070 private static void start(Editable text, Object mark) { method in class:HtmlToSpannedConverter 1228 characters(char ch[], int start, int length) argument 1266 ignorableWhitespace(char ch[], int start, int length) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 51 /** Timeout to start or stop a SCO channel in ms. */ 428 long start = -1; 443 start = System.currentTimeMillis(); 447 start = System.currentTimeMillis(); 462 if (start != -1 && finish != -1) { 463 writeOutput(String.format("enable() completed in %d ms", (finish - start))); 488 long start = -1; 499 start = System.currentTimeMillis(); 503 start = System.currentTimeMillis(); 522 if (start ! [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 92 // the style array is a flat array of <type, start, end> hence 175 + ", start=" + style[i+1] + ", end=" + style[i+2]); 360 int start, int end) { 363 if (start != 0 && start != len && buffer.charAt(start - 1) != '\n') { 364 for (start--; start > 0; start--) { 365 if (buffer.charAt(start 359 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument 411 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) argument 418 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | Model.java | 216 for (int start = 1; start < count; start++) { 217 final int pivotPosition = positions[start]; 218 final String pivotValue = sortKey[start]; 219 final boolean pivotIsDir = isDirs[start]; 220 final String pivotId = ids[start]; 223 int right = start; 248 int n = start - left; 289 for (int start [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 287 public void recordData(long start, long end, long rxBytes, long txBytes) { argument 288 recordData(start, end, new NetworkStats.Entry( 296 public void recordData(long start, long end, NetworkStats.Entry entry) { argument 311 ensureBuckets(start, end); 314 long duration = end - start; 321 if (curEnd < start) break; 325 final long overlap = Math.min(curEnd, end) - Math.max(curStart, start); 361 public void recordHistory(NetworkStatsHistory input, long start, long end) { argument 369 if (bucketStart < start || bucketEnd > end) continue; 384 private void ensureBuckets(long start, lon argument 402 insertBucket(int index, long start) argument 473 getValues(long start, long end, Entry recycle) argument 481 getValues(long start, long end, long now, Entry recycle) argument 529 generateRandom(long start, long end, long bytes) argument 547 generateRandom(long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations, Random r) argument 574 randomLong(Random r, long start, long end) argument 581 intersects(long start, long end) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 92 int start, int end, boolean isRtl) { 97 measureText(nativePaint, builder.mText, start, end - start, builder.mWidths, 102 /*package*/ static void nAddMeasuredRun(long nativeBuilder, int start, int end, float[] widths) { argument 105 System.arraycopy(widths, start, builder.mWidths, start, end - start); 110 /*package*/ static void nAddReplacementRun(long nativeBuilder, int start, int end, float width) { argument 115 builder.mWidths[start] = width; 116 Arrays.fill(builder.mWidths, start 91 nAddStyleRun(long nativeBuilder, long nativePaint, long nativeTypeface, int start, int end, boolean isRtl) argument [all...] |
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 58 public void start(Attributes attributes) { method in class:SafeSaxTest.ElementCounter 71 public void start(Attributes attributes) { method in class:SafeSaxTest.TextElementCounter 173 long start = System.currentTimeMillis(); 176 long elapsed = System.currentTimeMillis() - start; 181 long start = System.currentTimeMillis(); 184 long elapsed = System.currentTimeMillis() - start; 190 long start = System.currentTimeMillis(); 192 long elapsed = System.currentTimeMillis() - start; 245 public void start(Attributes attributes) { 255 public void start(Attribute 339 public void start(Attributes attributes) { method in class:SafeSaxTest.HandlerFactory.VideoListener 450 characters(char text[], int start, int length) argument [all...] |
/frameworks/base/services/net/java/android/net/util/ |
H A D | IpUtils.java | 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { argument 52 buf.position(start); 58 final int numShorts = (end - start) / 2; 62 start += numShorts * 2; 65 if (end != start) { 66 short b = buf.get(start);
|
/frameworks/support/v4/tests/java/android/support/v4/testutils/ |
H A D | TextViewActions.java | 145 public static ViewAction setCompoundDrawablesRelative(final @Nullable Drawable start, argument 164 TextViewCompat.setCompoundDrawablesRelative(textView, start, top, end, bottom); 175 final @Nullable Drawable start, final @Nullable Drawable top, 194 textView, start, top, end, bottom); 205 final @DrawableRes int start, final @DrawableRes int top, final @DrawableRes int end, 224 textView, start, top, end, bottom); 174 setCompoundDrawablesRelativeWithIntrinsicBounds( final @Nullable Drawable start, final @Nullable Drawable top, final @Nullable Drawable end, final @Nullable Drawable bottom) argument 204 setCompoundDrawablesRelativeWithIntrinsicBounds( final @DrawableRes int start, final @DrawableRes int top, final @DrawableRes int end, final @DrawableRes int bottom) argument
|
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator.cpp | 42 // The ranges are all represented with a single value. This is the start of one range and 45 size_t start; member in struct:aapt::Range 48 // Since this struct represents the start of one range and end of another, we have 55 return r.start < index; 68 // Insert or update the Range marker for the start of this span. 70 if (iter != ranges.end() && iter->start == span.firstChar) { 79 if (iter != ranges.end() && iter->start == span.lastChar) { 87 localized.str += localizer.start(); 91 const size_t start = ranges[i].start; local [all...] |
/frameworks/av/include/media/ |
H A D | IAudioRecord.h | 38 /* After it's created the track is not active. Call start() to 41 virtual status_t start(int /*AudioSystem::sync_event_t*/ event,
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | UDPPusher.h | 31 void start();
|
/frameworks/av/media/libstagefright/tests/ |
H A D | DummyRecorder.h | 37 status_t start();
|
/frameworks/base/core/java/android/database/ |
H A D | MatrixCursor.java | 108 int start = rowCount++ * columnCount; 109 ensureCapacity(start + columnCount); 110 System.arraycopy(columnValues, 0, data, start, columnCount); 123 int start = rowCount * columnCount; 124 int end = start + columnCount; 128 addRow((ArrayList<?>) columnValues, start); 132 int current = start; 154 private void addRow(ArrayList<?> columnValues, int start) { argument 164 localData[start + i] = columnValues.get(i);
|
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 155 public static float lerp(float start, float stop, float amount) { argument 156 return start + (stop - start) * amount; 160 * Returns an interpolated angle in degrees between a set of start and end 164 * travel is determined by the shortest angle between the start and end 169 * @param start the starting angle in degrees 171 * @param amount the position between start and end in the range [0,1] 175 public static float lerpDeg(float start, float end, float amount) { argument 176 final float minAngle = (((end - start) + 180) % 360) - 180; 177 return minAngle * amount + start; 180 norm(float start, float stop, float value) argument [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputConnectionWrapper.java | 141 public boolean setComposingRegion(int start, int end) { argument 142 return mTarget.setComposingRegion(start, end); 181 public boolean setSelection(int start, int end) { argument 182 return mTarget.setSelection(start, end);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BackgroundThread.java | 37 sInstance.start();
|
H A D | TransferPipe.java | 139 mThread.start(); 213 int start = 0; 216 if (i > start) { 217 fos.write(buffer, start, i-start); 219 start = i; 232 if (size > start) { 233 fos.write(buffer, start, size-start);
|