Searched refs:end (Results 1 - 25 of 244) sorted by relevance

12345678910

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionFormatter.java42 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/apps/Dialer/src/com/android/dialer/dialpad/
H A DSmartDialMatchPosition.java25 * 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 DUnicodeDialerKeyListener.java32 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 DNullWriter.java62 * @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 DProxyWriter.java68 * @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 DProxyOutputStream.java66 * @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/apps/Calculator/src/com/android/calculator2/
H A DCalculatorEditable.java35 replace(int start, int end, CharSequence tb, int tbstart, int tbend) { argument
37 return super.replace(start, end, tb, tbstart, tbend);
42 return internalReplace(start, end, delta);
49 private SpannableStringBuilder internalReplace(int start, int end, String delta) { argument
53 end = length();
71 return super.replace(start, end, "");
79 return super.replace(start, end, "");
93 return super.replace(start, end, "");
96 return super.replace(start, end, delta);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DTextViewCompatUtils.java36 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 DEmailHtmlUtil.java40 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 DCompositeListAdapter.java148 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/android/mail/lib/base/
H A DUnicodeEscaper.java104 * @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 DPreconditions.java355 * 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/UnifiedEmail/src/com/google/android/mail/common/base/
H A DUnicodeEscaper.java104 * @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 DPreconditions.java355 * 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 DSpannedTestUtils.java56 * @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, ForegroundColorSpan.class).length;
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DInterruptableOutputStream.java44 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 DSyncEvent.h106 ** 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/Settings/src/com/android/settings/net/
H A DSummaryForAllUidLoader.java30 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 DDecoderUtil.java184 int end = begin == -1 ? -1 : body.indexOf("?=", endScan);
185 if (end == -1) {
192 end += 2;
196 String decoded = decodeEncodedWord(body, begin, end);
199 sb.append(body.substring(begin, end));
207 previousEnd = end;
213 private static String decodeEncodedWord(String body, int begin, int end) { argument
215 if (qm1 == end - 2)
219 if (qm2 == end - 2)
224 String encodedText = body.substring(qm2 + 1, end
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeySpecParser.java127 final int end = indexOfLabelEnd(moreKeySpec, 0);
128 if (end > 0 && end + 1 < moreKeySpec.length() && moreKeySpec.startsWith(
129 PREFIX_CODE, end + 1)) {
156 final int end = moreKeySpec.indexOf(VERTICAL_BAR, start);
157 if (end == 0) {
160 return end;
179 final int end = indexOfLabelEnd(moreKeySpec, 0);
180 final String label = (end > 0) ? parseEscape(moreKeySpec.substring(0, end))
270 arrayAsList(final T[] array, final int start, final int end) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DFolderSpan.java72 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument
82 return measureWidth(paint, text, start, end, true);
85 private int measureWidth(Paint paint, CharSequence text, int start, int end, argument
90 int w = (int) paint.measureText(text, start, end) + 2 * paddingW;
102 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument
113 final CharacterStyle[] otherSpans = mSpanned.getSpans(start, end, CharacterStyle.class);
118 final int bgWidth = measureWidth(mWorkPaint, text, start, end, false);
136 text = TextUtils.ellipsize(text.subSequence(start, end).toString(), mWorkPaint,
139 end = text.length();
141 canvas.drawText(text, start, end,
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterFx.java56 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/android/mail/lib/html/parser/
H A DHtmlParser.java79 * 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/google/android/mail/common/html/parser/
H A DHtmlParser.java79 * 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/org/apache/commons/io/input/
H A DProxyInputStream.java49 * @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

Completed in 384 milliseconds

12345678910