Searched refs:start (Results 26 - 50 of 720) sorted by relevance

1234567891011>>

/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DUtf8ByteLengthFilter.java47 public CharSequence filter(CharSequence source, int start, int end, argument
51 for (int i = start; i < end; i++) {
71 for (int i = start; i < end; i++) {
75 return source.subSequence(start, i);
/packages/apps/Settings/src/com/android/settings/net/
H A DSummaryForAllUidLoader.java29 private static final String KEY_START = "start";
35 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { argument
38 args.putLong(KEY_START, start);
58 final long start = mArgs.getLong(KEY_START);
62 return mSession.getSummaryForAllUid(template, start, end, false);
/packages/apps/Camera2/src/com/android/camera/widget/
H A DPreloader.java76 // Add an additional item so we don't cancel a preload before we start a real load.
88 final int start;
91 start = Math.max(first, mLastEnd);
94 start = Math.max(0, first - mLoadAheadItems);
98 Log.v(TAG, "preload first=" + first + " increasing=" + increasing + " start=" + start +
102 mLastStart = start;
104 if (start == 0 && end == 0) {
108 final List<T> items = mItemSource.getItemsInRange(start, end);
118 // strictly true because we may batch preload multiple items at once when we first start
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
H A DHtmlParser.java317 * @param start Position in original html.
321 int scanText(final int start, final int end) { argument
323 for (pos = start; pos < end; pos++) {
341 if (pos > start) {
343 String htmlTail = this.html.substring(start, finalPos);
354 int matchStart = matcher.start();
356 // htmlTail starts at html[start]
357 finalPos = start + matchStart;
362 if (finalPos > start) {
367 // the only way htmlTail can start wit
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.java317 * @param start Position in original html.
321 int scanText(final int start, final int end) { argument
323 for (pos = start; pos < end; pos++) {
341 if (pos > start) {
343 String htmlTail = this.html.substring(start, finalPos);
354 int matchStart = matcher.start();
356 // htmlTail starts at html[start]
357 finalPos = start + matchStart;
362 if (finalPos > start) {
367 // the only way htmlTail can start wit
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/DeskClock/src/com/android/deskclock/widget/sgv/
H A DOverScrollerSGV.java186 * Returns the start X offset in the scroll.
188 * @return The start X offset as an absolute distance from the origin.
195 * Returns the start Y offset in the scroll.
197 * @return The start Y offset as an absolute distance from the origin.
497 * the fact that the started scroll will start from an overscrolled position.
666 * Modifies mDuration to the duration it takes to get from start to newFinal using the
669 private void adjustDuration(int start, int oldFinal, int newFinal) { argument
670 final int oldDistance = oldFinal - start;
671 final int newDistance = newFinal - start;
684 void startScroll(int start, in argument
718 springback(int start, int min, int max) argument
736 startSpringback(int start, int end, int velocity) argument
750 fling(int start, int velocity, int min, int max, int over) argument
803 fitOnBounceCurve(int start, int end, int velocity) argument
815 startBounceAfterEdge(int start, int end, int velocity) argument
821 startAfterEdge(int start, int min, int max, int velocity) argument
845 notifyEdgeReached(int start, int end, int over) argument
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java184 * Returns the start X offset in the scroll.
186 * @return The start X offset as an absolute distance from the origin.
193 * Returns the start Y offset in the scroll.
195 * @return The start Y offset as an absolute distance from the origin.
495 * the fact that the started scroll will start from an overscrolled position.
667 * Modifies mDuration to the duration it takes to get from start to newFinal using the
670 private void adjustDuration(int start, int oldFinal, int newFinal) { argument
671 final int oldDistance = oldFinal - start;
672 final int newDistance = newFinal - start;
685 void startScroll(int start, in argument
719 springback(int start, int min, int max) argument
737 startSpringback(int start, int end, int velocity) argument
751 fling(int start, int velocity, int min, int max, int over) argument
804 fitOnBounceCurve(int start, int end, int velocity) argument
816 startBounceAfterEdge(int start, int end, int velocity) argument
822 startAfterEdge(int start, int min, int max, int velocity) argument
845 notifyEdgeReached(int start, int end, int over) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/
H A DPreconditions.java22 * Simple static methods to be called at the start of your own methods to verify
355 * Ensures that {@code start} and {@code end} specify a valid <i>positions</i>
359 * @param start a user-supplied index identifying a starting position in an
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
376 if (start <
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DPreconditions.java22 * Simple static methods to be called at the start of your own methods to verify
355 * Ensures that {@code start} and {@code end} specify a valid <i>positions</i>
359 * @param start a user-supplied index identifying a starting position in an
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
376 if (start <
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSpannableStringUtils.java29 * Copies the spans from the region <code>start...end</code> in
31 * <code>destoff...destoff+end-start</code> in <code>dest</code>.
32 * Spans in <code>source</code> that begin before <code>start</code>
34 * as if they began at <code>start</code> or ended at <code>end</code>.
43 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end, argument
45 Object[] spans = source.getSpans(start, end, SuggestionSpan.class);
59 if (st < start)
60 st = start;
64 dest.setSpan(spans[i], st - start + destoff, en - start
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DUtilsTests.java263 // Illegal start and end times
291 // Test event that spans over 2 days but start and end time do not
387 * @param matches Pairs of start/end positions.
507 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000);
509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE,
514 start = createTimeInMillis(0, 0, 17, 31, 11, 2012);
516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE,
524 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012);
526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE,
534 long start
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DFolderSpan.java99 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument
100 setupFontMetrics(start, end, fm, paint);
109 return measureWidth(mWorkPaint, text, start, end, true);
112 private int measureWidth(Paint paint, CharSequence text, int start, int end, argument
117 int w = (int) paint.measureText(text, start, end) + 2 * paddingW;
128 private void setupFontMetrics(int start, int end, FontMetricsInt fm, Paint p) { argument
131 final CharacterStyle[] otherSpans = mSpanned.getSpans(start, end, CharacterStyle.class);
142 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument
149 setupFontMetrics(start, end, mFontMetrics, paint);
150 final int bgWidth = measureWidth(mWorkPaint, text, start, en
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DRecapitalizeStatusTests.java32 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE);
38 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE);
44 status.start(30, 40, "abcdefgh ", Locale.ENGLISH, SPACE);
50 status.start(30, 45, " abcdefghij ", Locale.ENGLISH, SPACE);
59 status.start(29, 40, "abcd efghij", Locale.ENGLISH, SPACE);
71 status.start(29, 40, "Abcd Efghij", Locale.ENGLISH, SPACE);
83 status.start(29, 40, "ABCD EFGHIJ", Locale.ENGLISH, SPACE);
95 status.start(29, 39, "AbCDefghij", Locale.ENGLISH, SPACE);
109 status.start(29, 40, "Abcd efghij", Locale.ENGLISH, SPACE);
123 status.start(3
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStyleUtils.java42 final int start = spannable.getSpanStart(span);
45 spannable.setSpan(new LinkStyleSpan(onClickListener), start, end,
/packages/apps/Browser/src/com/android/browser/view/
H A DPieItem.java34 private float start; field in class:PieItem
114 start = st;
121 return start;
125 return start + animate;
/packages/apps/Camera/tests/src/com/android/camera/
H A DCameraLaunchPerformance.java35 start();
/packages/apps/Camera2/src_pd/com/android/camera/app/
H A DMotionManager.java44 public void start() { method in class:MotionManager
/packages/apps/Camera2/tests_camera/src/com/android/camera/
H A DCameraLaunchPerformance.java35 start();
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DStopWatch.java26 * A {@link StopWatch} records start, laps and stop, and print them to logcat.
41 * Create a new instance and start it.
43 public static StopWatch start(String label) { method in class:StopWatch
62 final long start = mTimes.get(0);
65 final long total = stop - start;
74 long last = start;
/packages/apps/Gallery/tests/src/com/android/camera/
H A DCameraLaunchPerformance.java34 start();
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPageIndicatorMarker.java71 .setDuration(MARKER_FADE_DURATION).start();
74 .setDuration(MARKER_FADE_DURATION).start();
89 .setDuration(MARKER_FADE_DURATION).start();
94 .setDuration(MARKER_FADE_DURATION).start();
/packages/apps/LegacyCamera/tests/src/com/android/camera/
H A DCameraLaunchPerformance.java34 start();
/packages/apps/Mms/tests/src/com/android/mms/
H A DMmsLaunchPerformance.java16 start();
/packages/apps/Music/tests/src/com/android/music/
H A DMusicPlayerLaunchPerformance.java41 start();
/packages/apps/Settings/tests/src/com/android/settings/tests/
H A DSettingsLaunchPerformance.java41 start();

Completed in 715 milliseconds

1234567891011>>