/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionFormatter.java | 42 protected void applyQueryTextStyle(Spannable text, int start, int end) { argument 43 if (start == end) return; 44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()); 47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { argument 48 if (start == end) return; 49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()); 52 private void setSpans(Spannable text, int start, int end, Object[] spans) { argument 54 text.setSpan(span, start, end, 0);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CollectionUtils.java | 29 public static <E> ArrayList<E> arrayAsList(final E[] array, final int start, final int end) { argument 33 if (start < 0 || start > end || end > array.length) { 37 final ArrayList<E> list = new ArrayList<>(end - start); 38 for (int i = start; i < end; i++) {
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
H A D | SmartDialMatchPosition.java | 25 * start and end indicate that the range start to end (exclusive) correspond to some characters 33 public int end; field in class:SmartDialMatchPosition 35 public SmartDialMatchPosition(int start, int end) { argument 37 this.end = end; 42 this.end += toAdvance; 67 Log.d(TAG, "[" + m.start + "," + m.end + "]");
|
H A D | UnicodeDialerKeyListener.java | 32 public CharSequence filter(CharSequence source, int start, int end, argument 37 // so we can assume that start and end positions should remain unchanged. 38 CharSequence result = super.filter(converted, start, end, dest, dstart, dend); 49 return converted.subSequence(start, end);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
H A D | NullWriter.java | 62 * @param end The number of characters to write 64 public void write(char[] chr, int st, int end) { argument 80 * @param end The number of characters to write 82 public void write(String str, int st, int end) { argument
|
H A D | ProxyWriter.java | 68 * @param end The number of characters to write 71 public void write(char[] chr, int st, int end) throws IOException { argument 72 out.write(chr, st, end); 88 * @param end The number of characters to write 91 public void write(String str, int st, int end) throws IOException { argument 92 out.write(str, st, end);
|
H A D | ProxyOutputStream.java | 66 * @param end The number of bytes to write 69 public void write(byte[] bts, int st, int end) throws IOException { argument 70 out.write(bts, st, end);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | TextViewCompatUtils.java | 36 final Drawable start, final Drawable top, final Drawable end, final Drawable bottom) { 38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); 42 start, top, end, bottom); 35 setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView, final Drawable start, final Drawable top, final Drawable end, final Drawable bottom) argument
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
H A D | EmailHtmlUtil.java | 40 int end = 0; 43 out.append(text.substring(end, start)); 44 end = match.end(); 48 for (int i = 1, n = end - start; i < n; ++i) { 62 out.append(text.substring(end));
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | CompositeListAdapter.java | 148 int end = start + mCounts[i]; 149 if (position >= start && position < end) { 152 start = end; 162 int end = start + mCounts[i]; 163 if (position >= start && position < end) { 166 start = end; 184 int end = start + mCounts[i]; 185 if (position >= start && position < end) { 189 start = end; 199 int end [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | UnicodeEscaper.java | 104 * @param end the index immediately after the last character to be scanned 108 protected int nextEscapeIndex(CharSequence csq, int start, int end) { argument 110 while (index < end) { 111 int cp = codePointAt(csq, index, end); 146 int end = string.length(); 147 int index = nextEscapeIndex(string, 0, end); 148 return index == end ? string : escapeSlow(string, index); 169 int end = s.length(); 176 while (index < end) { 177 int cp = codePointAt(s, index, end); 389 codePointAt(CharSequence seq, int index, int end) argument [all...] |
H A D | Preconditions.java | 355 * Ensures that {@code start} and {@code end} specify a valid <i>positions</i> 361 * @param end a user-supplied index identifying a ending position in an array, 365 * greater than {@code size}, or if {@code end} is less than {@code start} 368 public static void checkPositionIndexes(int start, int end, int size) { argument 370 if (start < 0 || end < start || end > size) { 371 throw new IndexOutOfBoundsException(badPositionIndexes(start, end, size)); 375 private static String badPositionIndexes(int start, int end, int size) { argument 379 if (end < 0 || end > siz [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/ |
H A D | SpannedTestUtils.java | 56 * @param end The ending index. 58 public static void assertPrefixSpan(CharSequence seq, int start, int end) { argument 65 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); 66 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, end + 1, 70 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { argument 71 return value.getSpans(start, end, StyleSpan.class).length;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | InterruptableOutputStream.java | 44 int end = offset + count; 45 while (offset < end) { 47 int bytesCount = Math.min(MAX_WRITE_BYTES, end - offset);
|
/packages/apps/Nfc/nci/jni/ |
H A D | SyncEvent.h | 106 ** Function: end 113 void end () function in class:SyncEvent 132 ** Description: Automatically start and end a synchronization event. 165 mEvent.end (); //automatically end operation
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | BadgeSpan.java | 63 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument 69 return measureWidth(paint, text, start, end); 72 private int measureWidth(Paint paint, CharSequence text, int start, int end) { argument 73 return (int) paint.measureText(text, start, end) + 2 * mDims.getHorizontalPadding(); 77 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument 83 final CharacterStyle[] otherSpans = mSpanned.getSpans(start, end, CharacterStyle.class); 96 final int bgWidth = measureWidth(mWorkPaint, text, start, end); 105 canvas.drawText(text, start, end, x + mDims.getHorizontalPadding(), y, mWorkPaint);
|
/packages/apps/Exchange/tests/src/com/android/exchange/eas/ |
H A D | EasProvisionTests.java | 59 expectedResult.end().end().end().done(); 90 expectedResult.end().end().end().done(); 118 expectedResult.end().end().done(); // PROVISION_REMOTE_WIPE, PROVISION_PROVISION 150 expectedResult.end().end() [all...] |
/packages/apps/Calculator/src/com/android/calculator2/ |
H A D | CalculatorExpressionBuilder.java | 37 public SpannableStringBuilder replace(int start, int end, CharSequence tb, int tbstart, argument 39 if (start != length() || end != length()) { 41 return super.replace(start, end, tb, tbstart, tbend); 91 return super.replace(start, end, appendExpr, 0, appendExpr.length());
|
/packages/apps/Settings/src/com/android/settings/net/ |
H A D | SummaryForAllUidLoader.java | 30 private static final String KEY_END = "end"; 35 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { argument 39 args.putLong(KEY_END, end); 59 final long end = mArgs.getLong(KEY_END); 62 return mSession.getSummaryForAllUid(template, start, end, false);
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
H A D | DecoderUtil.java | 186 int end = body.indexOf("?=", qm2 + 1); 187 if (end == -1) { 190 end += 2; 194 String decoded = decodeEncodedWord(body, begin, end); 197 sb.append(body.substring(begin, end)); 205 previousEnd = end; 217 public static String decodeEncodedWord(String body, int begin, int end) { argument 220 if (qm1 == -1 || qm1 == end - 2) 224 if (qm2 == -1 || qm2 == end - 2) 229 String encodedText = body.substring(qm2 + 1, end [all...] |
/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | Preloader.java | 89 final int end; 92 end = Math.min(first + mLoadAheadItems, mItemSource.getCount()); 95 end = Math.min(first, mLastStart); 99 " end=" + end); 101 mLastEnd = end; 104 if (start == 0 && end == 0) { 108 final List<T> items = mItemSource.getItemsInRange(start, end);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterFx.java | 56 int start, int end); 95 int end = i + increment; 96 if (end > max) { 97 end = max; 100 nativeApplyFilter(bitmap, w, h, mFxBitmap, fxw, fxh, start, end); 54 nativeApplyFilter(Bitmap bitmap, int w, int h, Bitmap fxBitmap, int fxw, int fxh, int start, int end) argument
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlParser.java | 79 * nameless end tags. Encodes all '<' characters that aren't part of a tag. 195 int end = html.length(); 196 int clipEnd = Math.min(clipLength, end); 198 for (int i = 0; i < end && !clipped;) { 210 pos = scanTag(i, end); 215 pos = scanComment(i, end); 221 pos = scanCDATA(i, end); 310 * We only want to find these at the end of a clipped text. 318 * @param end Position in original html. 321 int scanText(final int start, final int end) { argument 402 scanName(final int start, final int end) argument 472 scanName(final int start, final int end) argument 500 scanValue(final int start, final int end) argument 564 skipSpaces(final int start, final int end) argument 643 scanTag(final int start, final int end) argument 1059 scanComment(final int start, final int end) argument 1087 scanCDATA(final int start, final int end) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | StyleUtils.java | 52 final int end = input.getSpanEnd(span); 54 input.setSpan(new LinkStyleSpan(onClickListener), start, end,
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | ProxyInputStream.java | 49 * @return the byte read or -1 if the end of stream 59 * @return the number of bytes read or -1 if the end of stream 70 * @param end The number of bytes to read 71 * @return the number of bytes read or -1 if the end of stream 74 public int read(byte[] bts, int st, int end) throws IOException { argument 75 return in.read(bts, st, end); 81 * @return the number of bytes to skipped or -1 if the end of stream
|