/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.java | 42 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/Email/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 184 int end = begin == -1 ? -1 : body.indexOf("?=", endScan); in decodeEncodedWords() local 185 if (end == -1) { in decodeEncodedWords() 192 end += 2; in decodeEncodedWords() 196 String decoded = decodeEncodedWord(body, begin, end); in decodeEncodedWords() 199 sb.append(body.substring(begin, end)); in decodeEncodedWords() 207 previousEnd = end; in decodeEncodedWords() 213 private static String decodeEncodedWord(String body, int begin, int end) { in decodeEncodedWord() argument 215 if (qm1 == end - 2) in decodeEncodedWord() 219 if (qm2 == end - 2) in decodeEncodedWord() 224 String encodedText = body.substring(qm2 + 1, end - 2); in decodeEncodedWord() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 148 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/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 90 final int end = indexOfLabelEnd(moreKeySpec, 0); in hasCode() local 91 if (end > 0 && end + 1 < moreKeySpec.length() && moreKeySpec.startsWith( in hasCode() 92 PREFIX_CODE, end + 1)) { in hasCode() 119 final int end = moreKeySpec.indexOf(LABEL_END, start); in indexOfLabelEnd() local 120 if (end == 0) { in indexOfLabelEnd() 123 return end; in indexOfLabelEnd() 142 final int end = indexOfLabelEnd(moreKeySpec, 0); in getLabel() local 143 final String label = (end > 0) ? parseEscape(moreKeySpec.substring(0, end)) in getLabel() 152 final int end = indexOfLabelEnd(moreKeySpec, 0); in getOutputTextInternal() local 153 if (end <= 0) { in getOutputTextInternal() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 385 long end = createTimeInMillis(0, 0, 18, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 386 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 392 end = createTimeInMillis(0, 0, 18, 1, 0, 2013); in testGetDisplayedDatetime_differentYear() 393 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 402 long end = createTimeInMillis(0, 0, 18, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 403 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 412 long end = createTimeInMillis(0, 0, 18, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 413 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 422 long end = createTimeInMillis(0, 0, 0, NOW_DAY + 1, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 423 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaWindowAdapter.java | 224 int end; field in AgendaWindowAdapter.QuerySpec 238 result = prime * result + end; in hashCode() 259 if (end != other.end || queryStartMillis != other.queryStartMillis in equals() 280 long end; field in AgendaWindowAdapter.EventInfo 290 int end; // end day of the cursor's coverage field in AgendaWindowAdapter.DayAdapterInfo 307 time.setJulianDay(end); in toString() 546 if (info.start <= day && day <= info.end) { in getAdapterInfoByTime() 610 event.end = cursor.getLong(AgendaWindowAdapter.INDEX_END); in buildEventInfoFromCursor() 630 time.setJulianDay(Time.getJulianDay(event.end, 0)); in buildEventInfoFromCursor() 631 event.end = time.toMillis(false /* use isDst */); in buildEventInfoFromCursor() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | CalculatorEditable.java | 35 replace(int start, int end, CharSequence tb, int tbstart, int tbend) { in replace() argument 37 return super.replace(start, end, tb, tbstart, tbend); in replace() 42 return internalReplace(start, end, delta); in replace() 49 private SpannableStringBuilder internalReplace(int start, int end, String delta) { in internalReplace() argument 53 end = length(); in internalReplace() 71 return super.replace(start, end, ""); in internalReplace() 79 return super.replace(start, end, ""); in internalReplace() 93 return super.replace(start, end, ""); in internalReplace() 96 return super.replace(start, end, delta); in internalReplace()
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
D | EmailHtmlUtil.java | 40 int end = 0; in escapeCharacterToDisplay() local 43 out.append(text.substring(end, start)); in escapeCharacterToDisplay() 44 end = match.end(); in escapeCharacterToDisplay() 48 for (int i = 1, n = end - start; i < n; ++i) { in escapeCharacterToDisplay() 62 out.append(text.substring(end)); in escapeCharacterToDisplay()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsBinaryDictionary.java | 171 int end = getWordEndPosition(name, len, i); in addName() local 172 String word = name.substring(i, end); in addName() 173 i = end - 1; in addName() 194 int end; in getWordEndPosition() local 196 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition() 197 cp = string.codePointAt(end); in getWordEndPosition() 203 return end; in getWordEndPosition() 269 int end = getWordEndPosition(name, len, i); in isNameInDictionary() local 270 String word = name.substring(i, end); in isNameInDictionary() 271 i = end - 1; in isNameInDictionary()
|
D | EditingUtils.java | 103 int end = -1; in getWordRangeAtCursor() local 104 while (++end < after.length() && !isWhitespace(after.charAt(end), sep)) { in getWordRangeAtCursor() 109 if (start >= 0 && cursor + end <= after.length() + before.length()) { in getWordRangeAtCursor() 111 + after.toString().substring(0, end); in getWordRangeAtCursor() 112 return new Range(before.length() - start, end, word); in getWordRangeAtCursor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumDataLoader.java | 144 int end = mContentEnd; in setContentWindow() local 154 if (contentStart >= end || start >= contentEnd) { in setContentWindow() 155 for (int i = start, n = end; i < n; ++i) { in setContentWindow() 162 for (int i = contentEnd, n = end; i < n; ++i) { in setContentWindow() 169 public void setActiveWindow(int start, int end) { in setActiveWindow() argument 170 if (start == mActiveStart && end == mActiveEnd) return; in setActiveWindow() 172 Utils.assertTrue(start <= end in setActiveWindow() 173 && end - start <= mData.length && end <= mSize); in setActiveWindow() 177 mActiveEnd = end; in setActiveWindow() 180 if (start == end) return; in setActiveWindow() [all …]
|
D | AlbumSetDataLoader.java | 165 int end = this.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 <= mCoverItem.length && end <= mSize); in setActiveWindow() 192 mActiveEnd = end; in setActiveWindow() 196 if (start == end) return; in setActiveWindow() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 86 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 …]
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 120 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/Email/src/org/apache/commons/io/output/ |
D | ProxyWriter.java | 71 public void write(char[] chr, int st, int end) throws IOException { in write() argument 72 out.write(chr, st, end); in write() 91 public void write(String str, int st, int end) throws IOException { in write() argument 92 out.write(str, st, end); in write()
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
D | SourceLatency.java | 94 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | OpenWnnClauseConverterJAJP.java | 167 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/apps/Mms/src/com/android/mms/ui/ |
D | RecipientsEditor.java | 153 int end = getSelectionEnd(); in enoughToFilter() local 156 return end == len; in enoughToFilter() 322 int end = mTokenizer.findTokenEnd(text, start); in getContextMenuInfo() local 324 if (end != start) { in getContextMenuInfo() 325 String number = getNumberAt(getText(), start, end, getContext()); in getContextMenuInfo() 334 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument 335 String number = getFieldAt("number", sp, start, end, context); in getNumberAt() 351 private static int getSpanLength(Spanned sp, int start, int end, Context context) { in getSpanLength() argument 358 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getSpanLength() 365 private static String getFieldAt(String field, Spanned sp, int start, int end, in getFieldAt() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartGridView.java | 84 void setBounds(long start, long end) { in setBounds() argument 87 mLayoutEnd = makeLayout(formatDateRange(context, end, end)); in setBounds() 130 final Layout end = mLayoutEnd; in onDraw() local 131 if (end != null) { in onDraw() 133 canvas.translate(width - end.getWidth(), height + padding); in onDraw() 134 end.draw(canvas); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/net/ |
D | SummaryForAllUidLoader.java | 35 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { in buildArgs() argument 39 args.putLong(KEY_END, end); in buildArgs() 59 final long end = mArgs.getLong(KEY_END); in loadInBackground() local 62 return mSession.getSummaryForAllUid(template, start, end, false); in loadInBackground()
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
D | ElementParallelTimeContainerImpl.java | 99 float end = (float)endTime.getResolvedOffset(); in getImplicitDuration() local 100 dur = (end > dur) ? end : dur; in getImplicitDuration() 139 Time end = endList.item(j); in getActiveChildrenAt() local 140 if (end.getResolved()) { in getActiveChildrenAt() 141 double resolvedOffset = end.getResolvedOffset() * 1000.0; in getActiveChildrenAt()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | dictionary.h | 86 unsigned short *end = str; in wideStrLen() local 87 while (*end) in wideStrLen() 88 end++; in wideStrLen() 89 return end - str; in wideStrLen()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | MetaData.java | 170 public void write(String timezone, long begin, long end, int startDay, int endDay) { in write() argument 174 writeLocked(timezone, begin, end); in write() 194 public void writeLocked(String timezone, long begin, long end) { in writeLocked() argument 199 values.put(CalendarMetaData.MAX_INSTANCE, end); in writeLocked() 215 mFields.maxInstance = end; in writeLocked()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | InterruptableOutputStream.java | 44 int end = offset + count; in write() local 45 while (offset < end) { in write() 47 int bytesCount = Math.min(MAX_WRITE_BYTES, end - offset); in write()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | Utf8ByteLengthFilter.java | 47 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 51 for (int i = start; i < end; i++) { in filter() 71 for (int i = start; i < end; i++) { in filter()
|