/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | Preconditions.java | 355 * Ensures that {@code start} and {@code end} specify a valid <i>positions</i> 361 * @param end a user-supplied index identifying a ending position in an array, 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 379 if (end < 0 || end > siz [all...] |
H A D | Splitter.java | 217 return matcher.end(); 317 * should be removed from the beginning/end of a subsequence 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) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | FolderSpan.java | 99 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, end, fals [all...] |
/packages/apps/OMA-DM/engine/dmlib/portlib/lj/hdr/ |
H A D | dmAllocatedPointersPool.h | 99 return m_listOfAllocatedPointers.find( ptr ) != m_listOfAllocatedPointers.end(); 116 if ( it == m_listOfAllocatedPointers.end() )
|
/packages/apps/OMA-DM/engine/xpl/hdr/ |
H A D | dmAllocatedPointersPool.h | 90 return m_listOfAllocatedPointers.find( ptr ) != m_listOfAllocatedPointers.end(); 107 if ( it == m_listOfAllocatedPointers.end() )
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | StyleUtils.java | 43 final int end = spannable.getSpanEnd(span); 45 spannable.setSpan(new LinkStyleSpan(onClickListener), start, end,
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | ProxyInputStream.java | 49 * @return the byte read or -1 if the end of stream 59 * @return the number of bytes read or -1 if the end of stream 70 * @param end The number of bytes to read 71 * @return the number of bytes read or -1 if the end of stream 74 public int read(byte[] bts, int st, int end) throws IOException { argument 75 return in.read(bts, st, end); 81 * @return the number of bytes to skipped or -1 if the end of stream
|
H A D | ProxyReader.java | 49 * @return the character read or -1 if the end of stream 59 * @return the number of characters read or -1 if the end of stream 70 * @param end The number of bytes to read 71 * @return the number of characters read or -1 if the end of stream 74 public int read(char[] chr, int st, int end) throws IOException { argument 75 return in.read(chr, st, end); 81 * @return the number of bytes to skipped or -1 if the end of stream
|
H A D | TeeInputStream.java | 119 * @param end maximum number of bytes to read 123 public int read(byte[] bts, int st, int end) throws IOException { argument 124 int n = super.read(bts, st, end);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | Utf8ByteLengthFilter.java | 47 public CharSequence filter(CharSequence source, int start, int end, argument 51 for (int i = start; i < end; i++) { 70 // find end position of largest sequence that fits in keepBytes 71 for (int i = start; i < end; i++) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | TextInfoCompatUtils.java | 42 public static TextInfo newInstance(CharSequence charSequence, int start, int end, int cookie, argument 46 charSequence, start, end, cookie, sequenceNumber); 48 return new TextInfo(charSequence.subSequence(start, end).toString(), cookie,
|
H A D | ViewCompatUtils.java | 53 final int end, final int bottom) { 55 view.setPadding(start, top, end, bottom); 58 CompatUtils.invoke(view, null, METHOD_setPaddingRelative, start, top, end, bottom); 52 setPaddingRelative(final View view, final int start, final int top, final int end, final int bottom) argument
|
H A D | LocaleSpanCompatUtils.java | 73 * @param end the end index to which {@link LocaleSpan} is attached (exclusive). 78 final int end, final Locale locale) { 79 if (end < start) { 80 Log.e(TAG, "Invalid range: start=" + start + " end=" + end); 87 // 1. Enumerate all LocaleSpans between [start - 1, end + 1]. 89 // - Update the range of S so as not to cover [start, end] if S doesn't have the 95 final int searchEnd = Math.min(end + 1, spannable.length()); 104 int newEnd = end; 77 updateLocaleSpan(final Spannable spannable, final int start, final int end, final Locale locale) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | AlbumDataLoader.java | 160 int end = mContentEnd; 170 if (contentStart >= end || start >= contentEnd) { 171 for (int i = start, n = end; i < n; ++i) { 178 for (int i = contentEnd, n = end; i < n; ++i) { 185 public void setActiveWindow(int start, int end) { argument 186 if (start == mActiveStart && end == mActiveEnd) return; 188 Utils.assertTrue(start <= end 189 && end - start <= mData.length && end <= mSize); 193 mActiveEnd = end; [all...] |
H A D | AlbumSetDataLoader.java | 177 int end = this.mContentEnd; 182 if (contentStart >= end || start >= contentEnd) { 183 for (int i = start, n = end; i < n; ++i) { 190 for (int i = contentEnd, n = end; i < n; ++i) { 197 public void setActiveWindow(int start, int end) { argument 198 if (start == mActiveStart && end == mActiveEnd) return; 200 Utils.assertTrue(start <= end 201 && end - start <= mCoverItem.length && end <= mSize); 204 mActiveEnd = end; [all...] |
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
H A D | AgendaWindowAdapter.java | 118 Instances.END_DAY, // 11 Julian end day 240 int end; field in class:AgendaWindowAdapter.QuerySpec 254 result = prime * result + end; 275 if (end != other.end || queryStartMillis != other.queryStartMillis 298 * The begin and end times of an AgendaItem should always be in local time, even if the event 303 long end; field in class:AgendaWindowAdapter.AgendaItem 313 int end; // end day of the cursor's coverage field in class:AgendaWindowAdapter.DayAdapterInfo 330 time.setJulianDay(end); 820 buildQueryUri(int start, int end, String searchQuery) argument 833 isInRange(int start, int end) argument 842 calculateQueryDuration(int start, int end) argument 857 queueQuery(int start, int end, Time goToTime, String searchQuery, int queryType, long id) argument 950 updateHeaderFooter(final int start, final int end) argument [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | UtilsTests.java | 263 // 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. 508 long end = createTimeInMillis(0, 0, 18, 12, 3, 2000); 509 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, 515 end = createTimeInMillis(0, 0, 18, 1, 0, 2013); 516 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, 525 long end = createTimeInMillis(0, 0, 18, 12, 3, 2012); 526 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, 535 long end [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
H A D | Splitter.java | 217 return matcher.end(); 317 * should be removed from the beginning/end of a subsequence 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) { [all...] |
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
H A D | ElementParallelTimeContainerImpl.java | 99 float end = (float)endTime.getResolvedOffset(); 100 dur = (end > dur) ? end : dur; 139 Time end = endList.item(j); 140 if (end.getResolved()) { 141 double resolvedOffset = end.getResolvedOffset() * 1000.0;
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
H A D | EasSearchGal.java | 53 s.end().end().end().done();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | IOCase.java | 189 * @param end the end to compare against, not null 193 public boolean checkEndsWith(String str, String end) { argument 194 int endLen = end.length(); 195 return str.regionMatches(!sensitive, str.length() - endLen, end, 0, endLen);
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetModel.java | 86 long end; field in class:CalendarAppWidgetModel.EventInfo 127 result = prime * result + (int) (end ^ (end >>> 32)); 153 if (end != other.end) 284 long end = cursor.getLong(CalendarAppWidgetService.INDEX_END); 299 end = Utils.convertAlldayUtcToLocal(recycle, end, tz); 304 + " end:" + end 354 populateEventInfo(long eventId, boolean allDay, long start, long end, int startDay, int endDay, String title, String location, int color, int selfStatus) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ClusterAlbum.java | 80 int end = Math.min(start + count, paths.size()); 81 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end)); 82 final MediaItem[] buf = new MediaItem[end - start]; 90 ArrayList<MediaItem> result = new ArrayList<MediaItem>(end - start);
|
/packages/apps/OMA-DM/engine/dmlib/linux_java/samples/portlib/src/ |
H A D | xpl_dm_Notifications.cc | 22 for ( DmtEventMap::POS nPos = 0; nPos < aEventMap.end(); nPos++ )
|
/packages/apps/OMA-DM/engine/dmlib/portlib/lj/src/ |
H A D | dmAllocatedPointersPool.cc | 47 while (vli != m_listOfAllocatedPointers.end())
|