Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java240 int end; field in AgendaWindowAdapter.QuerySpec
254 result = prime * result + end; in hashCode()
275 if (end != other.end || queryStartMillis != other.queryStartMillis in equals()
303 long end; field in AgendaWindowAdapter.AgendaItem
313 int end; // end day of the cursor's coverage field in AgendaWindowAdapter.DayAdapterInfo
330 time.setJulianDay(end); in toString()
569 if (info.start <= day && day <= info.end) { in getAdapterInfoByTime()
633 agendaItem.end = cursor.getLong(AgendaWindowAdapter.INDEX_END); in buildAgendaItemFromCursor()
654 time.setJulianDay(Time.getJulianDay(agendaItem.end, 0)); in buildAgendaItemFromCursor()
655 agendaItem.end = time.toMillis(false /* use isDst */); in buildAgendaItemFromCursor()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java195 int end = html.length(); in parse() local
196 int clipEnd = Math.min(clipLength, end); in parse()
198 for (int i = 0; i < end && !clipped;) { in parse()
210 pos = scanTag(i, end); in parse()
215 pos = scanComment(i, end); in parse()
221 pos = scanCDATA(i, end); in parse()
321 int scanText(final int start, final int end) { in scanText() argument
323 for (pos = start; pos < end; pos++) { in scanText()
325 if (ch == '<' && pos + 1 < end) { in scanText()
402 public int scanName(final int start, final int end) { in scanName() argument
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DUnicodeEscaper.java108 protected int nextEscapeIndex(CharSequence csq, int start, int end) { in nextEscapeIndex() argument
110 while (index < end) { in nextEscapeIndex()
111 int cp = codePointAt(csq, index, end); in nextEscapeIndex()
146 int end = string.length(); in escape() local
147 int index = nextEscapeIndex(string, 0, end); in escape()
148 return index == end ? string : escapeSlow(string, index); in escape()
169 int end = s.length(); in escapeSlow() local
176 while (index < end) { in escapeSlow()
177 int cp = codePointAt(s, index, end); in escapeSlow()
194 int destLength = sizeNeeded + (end - index) + DEST_PAD; in escapeSlow()
[all …]
DSplitter.java217 return matcher.end();
375 int end;
379 end = toSplit.length();
382 end = separatorPosition;
386 while (start < end && trimmer.matches(toSplit.charAt(start))) {
389 while (end > start && trimmer.matches(toSplit.charAt(end - 1))) {
390 end--;
393 if (omitEmptyStrings && start == end) {
397 return toSplit.subSequence(start, end).toString();
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
379 if (end < 0 || end > size) { in badPositionIndexes()
380 return badPositionIndex(end, size, "end index"); in badPositionIndexes()
384 end, start); in badPositionIndexes()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java508 long end = createTimeInMillis(0, 0, 18, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local
509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
515 end = createTimeInMillis(0, 0, 18, 1, 0, 2013); in testGetDisplayedDatetime_differentYear()
516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear()
525 long end = createTimeInMillis(0, 0, 18, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local
526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear()
535 long end = createTimeInMillis(0, 0, 18, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local
536 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today()
545 long end = createTimeInMillis(0, 0, 0, NOW_DAY + 1, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local
546 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java186 int end = body.indexOf("?=", qm2 + 1); in decodeEncodedWords() local
187 if (end == -1) { in decodeEncodedWords()
190 end += 2; in decodeEncodedWords()
194 String decoded = decodeEncodedWord(body, begin, end); in decodeEncodedWords()
197 sb.append(body.substring(begin, end)); in decodeEncodedWords()
205 previousEnd = end; in decodeEncodedWords()
217 public static String decodeEncodedWord(String body, int begin, int end) { in decodeEncodedWord() argument
220 if (qm1 == -1 || qm1 == end - 2) in decodeEncodedWord()
224 if (qm2 == -1 || qm2 == end - 2) in decodeEncodedWord()
229 String encodedText = body.substring(qm2 + 1, end - 2); in decodeEncodedWord()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java148 int end = start + mCounts[i]; in getItem() local
149 if (position >= start && position < end) { in getItem()
152 start = end; in getItem()
162 int end = start + mCounts[i]; in getItemId() local
163 if (position >= start && position < end) { in getItemId()
166 start = end; in getItemId()
184 int end = start + mCounts[i]; in getItemViewType() local
185 if (position >= start && position < end) { in getItemViewType()
189 start = end; in getItemViewType()
199 int end = start + mCounts[i]; in getView() local
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp339 it != prevNearKeysDistances->end(); ++it) { in isPrevLocalMin()
342 const bool isPrevPrevNear = (itPP == prevPrevNearKeysDistances->end() in isPrevLocalMin()
344 const bool isCurrentNear = (itC == currentNearKeysDistances->end() in isPrevLocalMin()
509 int end = actualInputIndex; in calculateBeelineSpeedRate() local
511 while (end < (inputSize - 1) && tempBeelineDistance < lookupRadius) { in calculateBeelineSpeedRate()
512 tempTime += times[end + 1] - times[end]; in calculateBeelineSpeedRate()
513 ++end; in calculateBeelineSpeedRate()
514 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[end], in calculateBeelineSpeedRate()
515 yCoordinates[end]); in calculateBeelineSpeedRate()
518 if (end > actualInputIndex && end < (inputSize - 1)) { in calculateBeelineSpeedRate()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumDataLoader.java160 int end = mContentEnd; in setContentWindow() local
170 if (contentStart >= end || start >= contentEnd) { in setContentWindow()
171 for (int i = start, n = end; i < n; ++i) { in setContentWindow()
178 for (int i = contentEnd, n = end; i < n; ++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()
193 mActiveEnd = end; in setActiveWindow()
196 if (start == end) return; in setActiveWindow()
[all …]
DAlbumSetDataLoader.java177 int end = this.mContentEnd; in setContentWindow() local
182 if (contentStart >= end || start >= contentEnd) { in setContentWindow()
183 for (int i = start, n = end; i < n; ++i) { in setContentWindow()
190 for (int i = contentEnd, n = end; i < n; ++i) { in setContentWindow()
197 public void setActiveWindow(int start, int end) { in setActiveWindow() argument
198 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow()
200 Utils.assertTrue(start <= end in setActiveWindow()
201 && end - start <= mCoverItem.length && end <= mSize); in setActiveWindow()
204 mActiveEnd = end; in setActiveWindow()
208 if (start == end) return; in setActiveWindow()
[all …]
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java86 long end; field in CalendarAppWidgetModel.EventInfo
127 result = prime * result + (int) (end ^ (end >>> 32)); in hashCode()
153 if (end != other.end) in equals()
284 long end = cursor.getLong(CalendarAppWidgetService.INDEX_END); in buildFromCursor() local
299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz); in buildFromCursor()
304 + " end:" + end + " eventId:" + eventId); in buildFromCursor()
309 if (end < mNow) { 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()
[all …]
DCalendarAppWidgetService.java251 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) {
311 long end = eventInfo.end;
317 end = Utils.convertAlldayLocalToUTC(recycle, end, tz);
320 mContext, eventInfo.id, start, end, eventInfo.allDay);
406 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS;
408 Uri uri = Uri.withAppendedPath(Instances.CONTENT_URI, Long.toString(begin) + "/" + end);
428 final long end;
430 end = event.end;
435 } else if (now < end) {
436 minUpdateTime = Math.min(minUpdateTime, end);
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DSearchUtil.java64 int end = index + 1; in findMatchingLine() local
65 while (end < contents.length()) { in findMatchingLine()
66 if (contents.charAt(end) == '\n') { in findMatchingLine()
69 end++; in findMatchingLine()
71 matched.line = contents.substring(start + 1, end); in findMatchingLine()
188 int end = query.length() - 1; in cleanStartAndEndOfSearchQuery() local
189 while (end > -1) { in cleanStartAndEndOfSearchQuery()
190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
192 end--; in cleanStartAndEndOfSearchQuery()
194 int codePoint = query.codePointAt(end); in cleanStartAndEndOfSearchQuery()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/eas/
DEasProvisionTests.java59 expectedResult.end().end().end().done(); in testPopulateRequestEntitySerializerPhaseInitialEx2007()
90 expectedResult.end().end().end().done(); in testPopulateRequestEntitySerializerPhaseInitialEx2010()
118 expectedResult.end().end().done(); // PROVISION_REMOTE_WIPE, PROVISION_PROVISION in testPopulateRequestEntitySerializerPhaseWipe()
150 expectedResult.end().end().end().done(); in testPopulateRequestEntitySerializerPhaseAcknowledge()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DOpenWnnClauseConverterJAJP.java167 int end = input.length(); in consecutiveClauseConvert() local
168 if (end > start + 20) { in consecutiveClauseConvert()
169 end = start + 20; in consecutiveClauseConvert()
172 for ( ; end > start; end--) { in consecutiveClauseConvert()
173 int idx = end - 1; in consecutiveClauseConvert()
190 String key = input.substring(start, end); in consecutiveClauseConvert()
193 if (end == input.length()) { in consecutiveClauseConvert()
433 for (int end = input.length() - 1; end > start; end--) { in getAncillaryPattern()
434 ArrayList<WnnWord> followFzks = fzkPat.get(input.substring(end)); in getAncillaryPattern()
438 …rchWord(WnnDictionary.SEARCH_EXACT, WnnDictionary.ORDER_BY_FREQUENCY, input.substring(start, end)); in getAncillaryPattern()
/packages/experimental/procstatlog/
Dprocstatlog.c120 char *end = strstr(buf, terminator); in read_lines() local
121 if (end != NULL) *end = '\0'; in read_lines()
182 char *end = strchr(++device, '"'); in read_proc_yaffs() local
183 if (end != NULL) *end = '\0'; in read_proc_yaffs()
295 struct data *end = stats + stats_count; in read_stats() local
297 next += read_lines("/proc/net/dev", ':', NULL, 0, next, end - next); in read_stats()
298 next += read_lines("/proc/stat", ' ', NULL, 0, next, end - next); in read_stats()
299 next += read_lines("/proc/binder/stats", ':', "\nproc ", 0, next, end - next); in read_stats()
300 next += read_lines("/proc/diskstats", ' ', NULL, 2, next, end - next); in read_stats()
303 ' ', NULL, 0, next, end - next); in read_stats()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java161 int end = getSelectionEnd(); in enoughToFilter() local
164 return end == len; in enoughToFilter()
332 int end = mTokenizer.findTokenEnd(text, start); in getContextMenuInfo() local
334 if (end != start) { in getContextMenuInfo()
335 String number = getNumberAt(getText(), start, end, getContext()); in getContextMenuInfo()
344 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument
345 String number = getFieldAt("number", sp, start, end, context); in getNumberAt()
361 private static int getSpanLength(Spanned sp, int start, int end, Context context) { in getSpanLength() argument
368 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getSpanLength()
375 private static String getFieldAt(String field, Spanned sp, int start, int end, in getFieldAt() argument
[all …]
/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/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java94 for (int end = 0; end <= length; end++) { in checkSourceConcurrent()
95 final String prefix = query.substring(0, end); in checkSourceConcurrent()
143 long end = System.nanoTime(); in checkSourceInternal() local
144 long elapsed = end - start; in checkSourceInternal()
238 long end = System.nanoTime(); in run() local
239 long elapsed = (end - start); in run()
293 long end = System.nanoTime(); in onChanged() local
294 long elapsed = end - mStart; in onChanged()
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/
DRecurrencePickerDialog.java133 int end; field in RecurrencePickerDialog.RecurrenceModel
185 return "Model [freq=" + freq + ", interval=" + interval + ", end=" + end + ", endDate=" in toString()
204 dest.writeInt(end); in writeToParcel()
446 model.end = RecurrenceModel.END_BY_COUNT; in copyEventRecurrenceToModel()
462 if (model.end == RecurrenceModel.END_BY_COUNT && model.endDate != null) { in copyEventRecurrenceToModel()
466 model.end = RecurrenceModel.END_BY_DATE; in copyEventRecurrenceToModel()
535 switch (model.end) { in copyModelToEventRecurrence()
978 mEndSpinner.setSelection(mModel.end); in updateDialog()
979 if (mModel.end == RecurrenceModel.END_BY_DATE) { in updateDialog()
984 if (mModel.end == RecurrenceModel.END_BY_COUNT) { in updateDialog()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java736 private void startSpringback(int start, int end, int velocity) { in startSpringback() argument
741 mFinal = end; in startSpringback()
742 final int delta = start - end; in startSpringback()
803 private void fitOnBounceCurve(int start, int end, int velocity) { in fitOnBounceCurve() argument
807 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve()
811 mStart = end; in fitOnBounceCurve()
815 private void startBounceAfterEdge(int start, int end, int velocity) { in startBounceAfterEdge() argument
816 mDeceleration = getDeceleration(velocity == 0 ? start - end : velocity); in startBounceAfterEdge()
817 fitOnBounceCurve(start, end, velocity); in startBounceAfterEdge()
845 void notifyEdgeReached(int start, int end, int over) { in notifyEdgeReached() argument
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java737 private void startSpringback(int start, int end, int velocity) { in startSpringback() argument
742 mFinal = end; in startSpringback()
743 final int delta = start - end; in startSpringback()
804 private void fitOnBounceCurve(int start, int end, int velocity) { in fitOnBounceCurve() argument
808 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve()
812 mStart = end; in fitOnBounceCurve()
816 private void startBounceAfterEdge(int start, int end, int velocity) { in startBounceAfterEdge() argument
817 mDeceleration = getDeceleration(velocity == 0 ? start - end : velocity); in startBounceAfterEdge()
818 fitOnBounceCurve(start, end, velocity); in startBounceAfterEdge()
845 void notifyEdgeReached(int start, int end, int over) { in notifyEdgeReached() argument
[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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsBinaryDictionary.java225 int end = getWordEndPosition(name, len, i); in addNameLocked() local
226 String word = name.substring(i, end); in addNameLocked()
230 i = end - 1; in addNameLocked()
259 int end; in getWordEndPosition() local
261 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition()
262 cp = string.codePointAt(end); in getWordEndPosition()
268 return end; in getWordEndPosition()

12345678910>>...12