Home
last modified time | relevance | path

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

12345678910>>...33

/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java146 int start = 0; in getItem() local
148 int end = start + mCounts[i]; in getItem()
149 if (position >= start && position < end) { in getItem()
150 return mAdapters[i].getItem(position - start); in getItem()
152 start = end; in getItem()
160 int start = 0; in getItemId() local
162 int end = start + mCounts[i]; in getItemId()
163 if (position >= start && position < end) { in getItemId()
164 return mAdapters[i].getItemId(position - start); in getItemId()
166 start = end; in getItemId()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java145 int start = 0; in getPartitionAtPosition() local
147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition()
148 if (position >= start && position < end) { in getPartitionAtPosition()
149 int offset = position - start; in getPartitionAtPosition()
159 start = end; in getPartitionAtPosition()
196 int start = 0; in getItem() local
198 final int end = start + mPartitions[i].getCount(); in getItem()
199 if (position >= start && position < end) { in getItem()
200 final int offset = position - start; in getItem()
209 start = end; in getItem()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java667 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument
668 final int oldDistance = oldFinal - start; in adjustDuration()
669 final int newDistance = newFinal - start; in adjustDuration()
682 void startScroll(int start, int distance, int duration) { in startScroll() argument
685 mStart = start; in startScroll()
686 mFinal = start + distance; in startScroll()
716 boolean springback(int start, int min, int max) { in springback() argument
719 mStart = mFinal = start; in springback()
725 if (start < min) { in springback()
726 startSpringback(start, min, 0); in springback()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorExpressionBuilder.java37 public SpannableStringBuilder replace(int start, int end, CharSequence tb, int tbstart, in replace() argument
39 if (start != length() || end != length()) { in replace()
41 return super.replace(start, end, tb, tbstart, tbend); in replace()
52 if (index != -1 && TextUtils.isDigitsOnly(expr.substring(index + 1, start))) { in replace()
60 if (start == 0) { in replace()
66 while (start > 0 && "+-*/".indexOf(expr.charAt(start - 1)) != -1) { in replace()
67 --start; in replace()
72 if (start > 0 && "+-".indexOf(expr.charAt(start - 1)) != -1) { in replace()
73 --start; in replace()
86 start = 0; in replace()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java72 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
122 int start = Math.max(0, in getIndexOfItem() local
125 start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem()
127 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem()
130 start = start == 0 ? MEDIAITEM_BATCH_FETCH_COUNT : 0; in getIndexOfItem()
131 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem()
134 if (index != INDEX_NOT_FOUND) return start + index; in getIndexOfItem()
136 start += MEDIAITEM_BATCH_FETCH_COUNT; in getIndexOfItem()
137 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem()
204 int start = 0; in enumerateMediaItems() local
[all …]
DClusterAlbum.java70 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
71 return getMediaItemFromPath(mPaths, start, count, mDataManager); in getMediaItem()
75 ArrayList<Path> paths, int start, int count, in getMediaItemFromPath() argument
77 if (start >= paths.size()) { in getMediaItemFromPath()
80 int end = Math.min(start + count, paths.size()); in getMediaItemFromPath()
81 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end)); in getMediaItemFromPath()
82 final MediaItem[] buf = new MediaItem[end - start]; in getMediaItemFromPath()
90 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start); in getMediaItemFromPath()
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
47 if (start < size) { in getMediaItem()
48 int fetchCount = (start + count <= size) ? count : size - start; in getMediaItem()
49 ArrayList<MediaItem> fetchItems = set.getMediaItem(start, fetchCount); in getMediaItem()
52 start = 0; in getMediaItem()
54 start -= size; in getMediaItem()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java507 long start = createTimeInMillis(0, 0, 17, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local
509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
514 start = createTimeInMillis(0, 0, 17, 31, 11, 2012); in testGetDisplayedDatetime_differentYear()
516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
524 long start = createTimeInMillis(0, 0, 17, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local
526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear()
534 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local
536 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today()
544 long start = createTimeInMillis(0, 0, 17, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local
546 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java91 int start = 0; in appendEscapedSourceId() local
93 int index = sourceId.indexOf('.', start); in appendEscapedSourceId()
95 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId()
100 sb.append(sourceId, start, index); in appendEscapedSourceId()
102 start = index + 1; in appendEscapedSourceId()
187 int start = offset; in parse() local
195 key = string.substring(start); in parse()
197 key = string.substring(start, offset - 1); in parse()
203 int start = offset; in parse() local
211 key = string.substring(start); in parse()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DSplitter.java138 @Override int separatorStart(int start) { in on()
139 return separatorMatcher.indexIn(toSplit, start); in on()
166 @Override public int separatorStart(int start) {
170 for (int p = start, last = toSplit.length() - delimeterLength;
212 @Override public int separatorStart(int start) {
213 return matcher.find(start) ? matcher.start() : -1;
260 @Override public int separatorStart(int start) {
261 int nextChunkStart = start + length;
355 abstract int separatorStart(int start);
374 int start = offset;
[all …]
DPreconditions.java368 public static void checkPositionIndexes(int start, int end, int size) { in checkPositionIndexes() argument
370 if (start < 0 || end < start || end > size) { in checkPositionIndexes()
371 throw new IndexOutOfBoundsException(badPositionIndexes(start, end, size)); in checkPositionIndexes()
375 private static String badPositionIndexes(int start, int end, int size) { in badPositionIndexes() argument
376 if (start < 0 || start > size) { in badPositionIndexes()
377 return badPositionIndex(start, size, "start index"); in badPositionIndexes()
384 end, start); in badPositionIndexes()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java321 int scanText(final int start, final int end) { in scanText() argument
323 for (pos = start; pos < end; pos++) { in scanText()
341 if (pos > start) { in scanText()
343 String htmlTail = this.html.substring(start, finalPos); in scanText()
354 int matchStart = matcher.start(); in scanText()
357 finalPos = start + matchStart; in scanText()
362 if (finalPos > start) { in scanText()
402 public int scanName(final int start, final int end) { in scanName() argument
404 for (pos = start; pos < end; pos++) { in scanName()
412 if (pos > start) { in scanName()
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java239 int start; field in AgendaWindowAdapter.QuerySpec
257 result = prime * result + start; in hashCode()
276 || queryType != other.queryType || start != other.start in equals()
312 int start; // start day of the cursor's coverage field in AgendaWindowAdapter.DayAdapterInfo
327 time.setJulianDay(start); in toString()
569 if (info.start <= day && day <= info.end) { in getAdapterInfoByTime()
820 private Uri buildQueryUri(int start, int end, String searchQuery) { in buildQueryUri() argument
825 ContentUris.appendId(builder, start); in buildQueryUri()
833 private boolean isInRange(int start, int end) { in isInRange() argument
838 return mAdapterInfos.getFirst().start <= start && end <= mAdapterInfos.getLast().end; in isInRange()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DSearchUtil.java57 int start = index - 1; in findMatchingLine() local
58 while (start > -1) { in findMatchingLine()
59 if (contents.charAt(start) == '\n') { in findMatchingLine()
62 start--; in findMatchingLine()
71 matched.line = contents.substring(start + 1, end); in findMatchingLine()
72 matched.startIndex = index - (start + 1); in findMatchingLine()
174 int start = 0; in cleanStartAndEndOfSearchQuery() local
175 while (start < query.length()) { in cleanStartAndEndOfSearchQuery()
176 int codePoint = query.codePointAt(start); in cleanStartAndEndOfSearchQuery()
180 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery()
[all …]
/packages/experimental/procstatlog/
Ddiskload.sh22 dd if=/dev/zero bs=65536 of=$1.0 & pid0=$!; echo start $pid0; sleep 2
23 dd if=/dev/zero bs=65536 of=$1.1 & pid1=$!; echo start $pid1; sleep 2
24 dd if=/dev/zero bs=65536 of=$1.2 & pid2=$!; echo start $pid2; sleep 2
25 dd if=/dev/zero bs=65536 of=$1.3 & pid3=$!; echo start $pid3; sleep 2
26 dd if=/dev/zero bs=65536 of=$1.4 & pid4=$!; echo start $pid4; sleep 2
27 dd if=/dev/zero bs=65536 of=$1.5 & pid5=$!; echo start $pid5; sleep 2
28 dd if=/dev/zero bs=65536 of=$1.6 & pid6=$!; echo start $pid6; sleep 2
29 dd if=/dev/zero bs=65536 of=$1.7 & pid7=$!; echo start $pid7; sleep 2
30 dd if=/dev/zero bs=65536 of=$1.8 & pid8=$!; echo start $pid8; sleep 2
31 dd if=/dev/zero bs=65536 of=$1.9 & pid9=$!; echo start $pid9; sleep 2
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIconNormalizer.java200 int start; in convertToConvexArray() local
203 start = first; in convertToConvexArray()
206 start = last; in convertToConvexArray()
210 while (start > first) { in convertToConvexArray()
211 start --; in convertToConvexArray()
212 currentAngle = (xCordinates[i] - xCordinates[start]) / (i - start); in convertToConvexArray()
213 if ((currentAngle - angles[start]) * direction >= 0) { in convertToConvexArray()
221 lastAngle = (xCordinates[i] - xCordinates[start]) / (i - start); in convertToConvexArray()
223 for (int j = start; j < i; j++) { in convertToConvexArray()
225 xCordinates[j] = xCordinates[start] + lastAngle * (j - start); in convertToConvexArray()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionFormatter.java42 protected void applyQueryTextStyle(Spannable text, int start, int end) { in applyQueryTextStyle() argument
43 if (start == end) return; in applyQueryTextStyle()
44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()); in applyQueryTextStyle()
47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { in applySuggestedTextStyle() argument
48 if (start == end) return; in applySuggestedTextStyle()
49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()); in applySuggestedTextStyle()
52 private void setSpans(Spannable text, int start, int end, Object[] spans) { in setSpans() argument
54 text.setSpan(span, start, end, 0); in setSpans()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnClauseConverterJAJP.java161 for (int start = 0; start < input.length(); start++) { in consecutiveClauseConvert()
162 if (start != 0 && sentence[start-1] == null) { in consecutiveClauseConvert()
168 if (end > start + 20) { in consecutiveClauseConvert()
169 end = start + 20; in consecutiveClauseConvert()
172 for ( ; end > start; end--) { in consecutiveClauseConvert()
177 if (start != 0) { in consecutiveClauseConvert()
178 … if (sentence[idx].frequency > sentence[start-1].frequency + CLAUSE_COST + FREQ_LEARN) { in consecutiveClauseConvert()
190 String key = input.substring(start, end); in consecutiveClauseConvert()
208 if (start == 0) { in consecutiveClauseConvert()
211 ws = new WnnSentence(sentence[start-1], bestClause); in consecutiveClauseConvert()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DSpannedTestUtils.java58 public static void assertPrefixSpan(CharSequence seq, int start, int end) { in assertPrefixSpan() argument
62 if (start > 0) { in assertPrefixSpan()
63 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1)); in assertPrefixSpan()
65 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end)); in assertPrefixSpan()
70 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { in getNumForegroundColorSpansBetween() argument
71 return value.getSpans(start, end, StyleSpan.class).length; in getNumForegroundColorSpansBetween()
85 public static int getNextTransition(SpannableString seq, int start) { in getNextTransition() argument
86 return seq.nextSpanTransition(start, seq.length(), StyleSpan.class); in getNextTransition()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java112 mReloadTask.start(); in resume()
161 int start = mContentStart; in setContentWindow() local
170 if (contentStart >= end || start >= contentEnd) { in setContentWindow()
171 for (int i = start, n = end; i < n; ++i) { in setContentWindow()
175 for (int i = start; i < contentStart; ++i) { in setContentWindow()
185 public void setActiveWindow(int start, int end) { in setActiveWindow() argument
186 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow()
188 Utils.assertTrue(start <= end in setActiveWindow()
189 && end - start <= mData.length && end <= mSize); in setActiveWindow()
192 mActiveStart = start; in setActiveWindow()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatusTests.java32 status.start(30, 40, "abcdefghij", Locale.ENGLISH, SPACE); in testTrim()
38 status.start(30, 44, " abcdefghij", Locale.ENGLISH, SPACE); in testTrim()
44 status.start(30, 40, "abcdefgh ", Locale.ENGLISH, SPACE); in testTrim()
50 status.start(30, 45, " abcdefghij ", Locale.ENGLISH, SPACE); in testTrim()
59 status.start(29, 40, "abcd efghij", Locale.ENGLISH, SPACE); in testRotate()
71 status.start(29, 40, "Abcd Efghij", Locale.ENGLISH, SPACE); in testRotate()
83 status.start(29, 40, "ABCD EFGHIJ", Locale.ENGLISH, SPACE); in testRotate()
95 status.start(29, 39, "AbCDefghij", Locale.ENGLISH, SPACE); in testRotate()
109 status.start(29, 40, "Abcd efghij", Locale.ENGLISH, SPACE); in testRotate()
123 status.start(30, 34, "grüß", Locale.GERMAN, SPACE); in testRotate()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DBadgeSpan.java63 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() argument
69 return measureWidth(paint, text, start, end); in getSize()
72 private int measureWidth(Paint paint, CharSequence text, int start, int end) { in measureWidth() argument
73 return (int) paint.measureText(text, start, end) + 2 * mDims.getHorizontalPadding(); in measureWidth()
77 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, in draw() argument
83 final CharacterStyle[] otherSpans = mSpanned.getSpans(start, end, CharacterStyle.class); in draw()
96 final int bgWidth = measureWidth(mWorkPaint, text, start, end); in draw()
105 canvas.drawText(text, start, end, x + mDims.getHorizontalPadding(), y, mWorkPaint); in draw()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialMatchPosition.java32 public int start; field in SmartDialMatchPosition
35 public SmartDialMatchPosition(int start, int end) { in SmartDialMatchPosition() argument
36 this.start = start; in SmartDialMatchPosition()
41 this.start += toAdvance; in advance()
67 Log.d(TAG, "[" + m.start + "," + m.end + "]"); in print()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java155 public long start; field in CycleAdapter.CycleItem
162 public CycleItem(Context context, long start, long end) { in CycleItem() argument
163 this.label = Utils.formatDateRange(context, start, end); in CycleItem()
164 this.start = start; in CycleItem()
177 return start == another.start && end == another.end; in equals()
184 return Long.compare(start, another.start); in compareTo()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java85 long start; field in CalendarAppWidgetModel.EventInfo
128 result = prime * result + (int) (start ^ (start >>> 32)); in hashCode()
155 if (start != other.start) in equals()
283 long start = cursor.getLong(CalendarAppWidgetService.INDEX_BEGIN); in buildFromCursor() local
298 start = Utils.convertAlldayUtcToLocal(recycle, start, tz); in buildFromCursor()
303 Log.d(TAG, "Row #" + rowId + " allDay:" + allDay + " start:" + start in buildFromCursor()
314 mEventInfos.add(populateEventInfo(eventId, allDay, start, end, startDay, endDay, title, in buildFromCursor()
354 private EventInfo populateEventInfo(long eventId, boolean allDay, long start, long end, in populateEventInfo() argument
365 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); in populateEventInfo()
374 whenString.append(Utils.formatDateRange(mContext, start, end, flags)); in populateEventInfo()
[all …]

12345678910>>...33