Home
last modified time | relevance | path

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

12345

/packages/apps/Gallery3D/src/com/cooliris/media/
DIndexRange.java23 end = endRange; in IndexRange()
28 end = 0; in IndexRange()
31 public void set(int begin, int end) { in set() argument
33 this.end = end; in set()
37 return begin == end; in isEmpty()
41 return end - begin; in size()
45 public int end; field in IndexRange
DIndexRangeIterator.java38 public void setRange(int begin, int end) { in setRange() argument
40 mRange.end = end; in setRange()
49 return mRange.end; in getEnd()
54 return (pos < mList.length && pos < mRange.end); in hasNext()
/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()
DListSuggestionCursorNoDuplicates.java81 int end = url.length(); in normalizeUrl() local
82 if (url.indexOf('/', start) == end - 1) { in normalizeUrl()
83 end--; in normalizeUrl()
85 return url.substring(start, end); in normalizeUrl()
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java184 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/Calendar/src/com/android/calendar/
DAgendaWindowAdapter.java172 int end; field in AgendaWindowAdapter.QuerySpec
184 result = prime * result + end; in hashCode()
201 if (end != other.end || queryStartMillis != other.queryStartMillis in equals()
221 long end; field in AgendaWindowAdapter.EventInfo
235 int end; // end day of the cursor's coverage field in AgendaWindowAdapter.DayAdapterInfo
252 time.setJulianDay(end); in toString()
411 if (info.start <= day && day < info.end) { in getAdapterInfoByTime()
447 event.end = info.cursor.getLong(AgendaWindowAdapter.INDEX_END); in getEventByPosition()
455 time.setJulianDay(Time.getJulianDay(event.end, 0)); in getEventByPosition()
456 event.end = time.toMillis(true); in getEventByPosition()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditable.java35 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSwipeTracker.java100 private int end; // points oldest event
112 top = end = count = 0;
121 return (end + pos) % bufSize;
136 end = advance(end);
154 end = advance(end);
DEditingUtil.java152 int end = -1; in getWordRangeAtCursor() local
153 while (++end < after.length() && !isWhitespace(after.charAt(end), sep)); in getWordRangeAtCursor()
156 if (start >= 0 && cursor + end <= after.length() + before.length()) { in getWordRangeAtCursor()
158 + after.toString().substring(0, end); in getWordRangeAtCursor()
162 returnRange.charsAfter = end; in getWordRangeAtCursor()
197 public int end; field in EditingUtil.SelectedWord
232 selWord.end = selEnd + range.charsAfter; in getWordAtCursorOrSelection()
261 selWord.end = selEnd; in getWordAtCursorOrSelection()
327 sMethodSetComposingRegion.invoke(ic, word.start, word.end); in underlineWord()
/packages/apps/Email/src/org/apache/commons/io/output/
DProxyWriter.java71 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()
DNullWriter.java64 public void write(char[] chr, int st, int end) { in write() argument
82 public void write(String str, int st, int end) { in write() argument
/packages/apps/Email/src/com/android/email/mail/internet/
DEmailHtmlUtil.java94 int end = 0; in escapeCharacterToDisplay() local
97 out.append(text.substring(end, start)); in escapeCharacterToDisplay()
98 end = match.end(); in escapeCharacterToDisplay()
102 for (int i = 1, n = end - start; i < n; ++i) { in escapeCharacterToDisplay()
116 out.append(text.substring(end)); in escapeCharacterToDisplay()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java112 int end = getSelectionEnd(); in enoughToFilter() local
115 return end == len; in enoughToFilter()
263 int end = mTokenizer.findTokenEnd(text, start); in getContextMenuInfo() local
265 if (end != start) { in getContextMenuInfo()
266 String number = getNumberAt(getText(), start, end, getContext()); in getContextMenuInfo()
275 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument
276 return getFieldAt("number", sp, start, end, context); in getNumberAt()
279 private static int getSpanLength(Spanned sp, int start, int end, Context context) { in getSpanLength() argument
286 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getSpanLength()
293 private static String getFieldAt(String field, Spanned sp, int start, int end, in getFieldAt() argument
[all …]
DNumberPicker.java256 public void setRange(int start, int end) { in setRange() argument
257 setRange(start, end, null/*displayedValues*/); in setRange()
269 public void setRange(int start, int end, String[] displayedValues) { in setRange() argument
272 mEnd = end; in setRange()
408 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
411 return mNumberInputFilter.filter(source, start, end, dest, dstart, dend); in filter()
413 CharSequence filtered = String.valueOf(source.subSequence(start, end)); in filter()
442 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
445 CharSequence filtered = super.filter(source, start, end, dest, dstart, dend); in filter()
447 filtered = source.subSequence(start, end); in filter()
/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/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/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/apps/Mms/src/com/android/mms/dom/smil/
DElementParallelTimeContainerImpl.java99 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/providers/CalendarProvider/src/com/android/providers/calendar/
DMetaData.java168 public void write(String timezone, long begin, long end, int startDay, int endDay) { in write() argument
172 writeLocked(timezone, begin, end); in write()
192 public void writeLocked(String timezone, long begin, long end) { in writeLocked() argument
197 values.put(CalendarMetaData.MAX_INSTANCE, end); in writeLocked()
213 mFields.maxInstance = end; in writeLocked()
DCalendarAppWidgetService.java294 long end = cursor.getLong(INDEX_END); in calculateUpdateTime() local
302 end = convertUtcToLocal(recycle, end); in calculateUpdateTime()
305 result = getEventFlip(cursor, start, end, allDay); in calculateUpdateTime()
335 private long getEventFlip(Cursor cursor, long start, long end, boolean allDay) { in getEventFlip() argument
336 long duration = end - start; in getEventFlip()
340 return (start + end) / 2; in getEventFlip()
549 long end = cursor.getLong(INDEX_END); in buildMarkedEvents() local
555 end = convertUtcToLocal(recycle, end); in buildMarkedEvents()
559 long eventFlip = getEventFlip(cursor, start, end, allDay); in buildMarkedEvents()
611 long end = now + searchDuration; in getUpcomingInstancesCursor() local
[all …]
/packages/wallpapers/MusicVisualization/res/raw/
Dwaveform.rs48 int end = 1024 - skip;
49 for (i = skip; i < end; i++) {
75 int end = 1024 - skip;
83 for (i = skip; i < end; i++) {
109 for (i = skip; i < end; i++) {
/packages/apps/Camera/src/com/android/camera/ui/
DGLListView.java263 int end = 0; in setScrollPosition() local
269 for (end = start; end < n; ++ end) { in setScrollPosition()
270 if (bottom <= mModel.getView(end).mBounds.top) break; in setScrollPosition()
272 setVisibleRange(start , end); in setScrollPosition()
276 private void setVisibleRange(int start, int end) { in setVisibleRange() argument
277 if (start == mVisibleStart && end == mVisibleEnd) return; in setVisibleRange()
279 mVisibleEnd = end; in setVisibleRange()
/packages/inputmethods/PinyinIME/jni/share/
Dngram.cpp43 int qsearch_nearest(double code_book[], double freq, int start, int end) { in qsearch_nearest() argument
44 if (start == end) in qsearch_nearest()
47 if (start + 1 == end) { in qsearch_nearest()
48 if (distance(freq, code_book[end]) > distance(freq, code_book[start])) in qsearch_nearest()
50 return end; in qsearch_nearest()
53 int mid = (start + end) / 2; in qsearch_nearest()
58 return qsearch_nearest(code_book, freq, mid, end); in qsearch_nearest()
Duserdict.cpp445 int32 end = dict_info_.lemma_count - 1; in locate_first_in_offsets() local
451 while (begin <= end) { in locate_first_in_offsets()
452 middle = (begin + end) >> 1; in locate_first_in_offsets()
465 end = middle - 1; in locate_first_in_offsets()
467 end = middle - 1; in locate_first_in_offsets()
645 int32 end = dict_info_.lemma_count - 1; in _get_lpis() local
650 while (j <= end) { in _get_lpis()
762 int32 end = dict_info_.lemma_count - 1; in _get_lpis() local
763 int32 middle = end; in _get_lpis()
767 while (begin <= end) { in _get_lpis()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
DWaveformImage.java39 ByteArrayOutputStream waveBuffer, int w, int h, int start, int end) { in drawWaveform() argument
55 int endIndex = end / 2 + delay; in drawWaveform()
56 if (end == 0 || endIndex >= numSamples) { in drawWaveform()

12345