/packages/apps/Email/src/org/apache/james/mime4j/util/ |
H A D | PartialInputStream.java | 27 private final long limit;
field in class:PartialInputStream 32 this.limit = offset + length;
40 if (limit > position)
61 return (int)Math.min(Integer.MAX_VALUE, limit - position);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | SuggestionsListView.java | 62 * Set whether or not to limit suggestions by view height. If {@code true}, only enough 65 void setLimitSuggestionsToViewHeight(boolean limit); argument
|
H A D | ClusteredSuggestionsView.java | 45 public void setLimitSuggestionsToViewHeight(boolean limit) { argument
|
H A D | SuggestionsView.java | 81 public void setLimitSuggestionsToViewHeight(boolean limit) { argument 82 mLimitSuggestionsToViewHeight = limit;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | BlendingPromoterTest.java | 58 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 0, 0); 64 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 1, 1); 70 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 2, 2); 76 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 3, 3); 82 SuggestionCursor promoted = limit(cursor(mS11, mS12), 0, 0); 88 SuggestionCursor promoted = limit(cursor(mS11, mS12), 1, 1); 94 SuggestionCursor promoted = limit(cursor(mS11, mS12), 2, 2); 100 SuggestionCursor promoted = limit(cursor(), 2, 2); 106 SuggestionCursor promoted = limit(cursor(mS11, mS12, mWeb1, mWeb2), 0, 2); 112 SuggestionCursor promoted = limit(curso 126 private SuggestionCursor limit(SuggestionCursor shortcuts, int maxShortcutsPerWebSource, method in class:BlendingPromoterTest [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputPointersTests.java | 52 final int limit = src.getXCoordinates().length * 2 + 10; 53 for (int i = 0; i < limit; i++) { 57 for (int i = 0; i < limit; i++) { 67 final int limit = 1000, step = 100; 68 for (int i = 0; i < limit; i += step) { 72 for (int i = 0; i < limit; i += step) { 82 final int limit = src.getXCoordinates().length * 2 + 10; 83 for (int i = 0; i < limit; i++) { 97 final int limit = 100; 98 for (int i = 0; i < limit; [all...] |
H A D | ResizableIntArrayTests.java | 36 final int limit = DEFAULT_CAPACITY * 2 + 10; 37 for (int i = 0; i < limit; i++) { 54 for (int i = 0; i < limit; i++) { 61 final int limit = DEFAULT_CAPACITY * 10, step = DEFAULT_CAPACITY * 2; 62 for (int i = 0; i < limit; i += step) { 66 for (int i = 0; i < limit; i += step) { 164 final int limit = DEFAULT_CAPACITY * 2 + 10; 165 for (int i = 0; i < limit; i++) {
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | PointerInfo.java | 94 byteCount = input2.limit() - position; 105 byteCount = (input2.limit() - position) * 2; 117 byteCount = (input2.limit() - position)* 2; 129 byteCount = (input2.limit() - position) * 4; 141 byteCount = (input2.limit() - position) * 4; 153 byteCount = (input2.limit() - position) * 8; 165 byteCount = (input2.limit() - position) * 8;
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | Recycler.java | 82 int limit = getMessageLimit(context); 85 deleteMessagesForThread(context, threadId, limit); 112 abstract public void setMessageLimit(Context context, int limit); argument 171 public void setMessageLimit(Context context, int limit) { argument 174 editPrefs.putInt(MAX_SMS_MESSAGES_PER_THREAD, limit); 217 // Move to the keep limit and then delete everything older than that one. 254 int limit = getMessageLimit(context); 268 if (msgs.getCount() >= limit) { 311 public void setMessageLimit(Context context, int limit) { argument 314 editPrefs.putInt(MAX_MMS_MESSAGES_PER_THREAD, limit); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | EyePosition.java | 152 float limit = mUserDistance / 20f; 153 if (mX > limit || mX < -limit || mY > limit || mY < -limit) {
|
/packages/apps/Email/src/com/beetstra/jutf7/ |
H A D | UTF7StyleCharsetEncoder.java | 165 && out.limit() != MAX_BYTES_PER_CHAR * in.limit())
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupport.java | 182 SQLiteDatabase db, Uri uri, String[] projection, String limit) { 192 cursor, db, projection, selection, searchClause, limit); 223 String[] projection, String selection, String filter, String limit) { 247 if (limit != null) { 248 sb.append(" LIMIT " + limit); 181 handleSearchSuggestionsQuery( SQLiteDatabase db, Uri uri, String[] projection, String limit) argument 222 addSearchSuggestionsBasedOnFilter(MatrixCursor cursor, SQLiteDatabase db, String[] projection, String selection, String filter, String limit) argument
|
H A D | CallLogProvider.java | 157 final int limit = getIntParam(uri, Calls.LIMIT_PARAM_KEY, 0); 160 if (limit > 0) { 161 limitClause = offset + "," + limit;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SlotView.java | 192 int limit = mLayout.getScrollLimit(); 193 mListener.onScrollPositionChanged(newPosition, limit); 254 int limit = mLayout.getScrollLimit(); 255 if (oldX > 0 && newX == 0 || oldX < limit && newX == limit) { 257 if (newX == limit) v = -v; 614 int limit = WIDE ? mContentLength - mWidth : mContentLength - mHeight; 615 return limit <= 0 ? 0 : limit; 719 // Reset the scroll position to avoid scrolling over the updated limit [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | JobLimiter.java | 131 public JobLimiter(ThreadPool pool, int limit) { argument 133 mLimit = limit;
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.cpp | 157 int limit = scr->width + scr->border; local 158 for (i = -scr->border; i < limit; i++) { 170 int limit = out->height + out->border; local 171 for (j = -out->border; j < limit; j++) {
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
H A D | Search.java | 61 int limit = searchParams.mLimit; 63 if (limit < 0 || limit > MAX_SEARCH_RESULTS || offset < 0) return 0; 106 s.data(Tags.SEARCH_RANGE, offset + "-" + (offset + limit - 1));
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | MessagingPreferenceActivity.java | 306 public void onNumberSet(int limit) { 307 mSmsRecycler.setMessageLimit(MessagingPreferenceActivity.this, limit); 314 public void onNumberSet(int limit) { 315 mMmsRecycler.setMessageLimit(MessagingPreferenceActivity.this, limit);
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
H A D | SourceLatency.java | 164 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { argument 199 if (limit > 0) { 201 String.valueOf(limit));
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
H A D | AudioTrackView.java | 309 final int limit = Math.min(mScrollX + mScreenWidth, getWidth() - getPaddingRight()); 316 for (int i = start; i < limit; i++) { 332 for (int i = start; i < limit; i++) {
|
/packages/apps/Browser/src/com/android/browser/provider/ |
H A D | SnapshotProvider.java | 159 String limit = uri.getQueryParameter(BrowserContract.PARAM_LIMIT); 174 null, null, sortOrder, limit);
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
H A D | ExchangeDirectoryProvider.java | 273 // Enforce a limit on the number of lookup responses 275 int limit = DEFAULT_LOOKUP_LIMIT; 278 limit = Integer.parseInt(limitString); 280 limit = 0; 282 if (limit <= 0) { 298 filter, limit);
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
H A D | LocalDataTest.java | 420 String limit = uri.getQueryParameter("limit"); 427 selectionArgs, groupBy, null, sortOrder, limit)); 436 selectionArgs, groupBy, null, sortOrder, limit);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | TextHighlightingAnimation.java | 111 public int nextSpanTransition(int start, int limit, Class type) { argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | Utils.java | 164 public static String getStackTrace(final int limit) { argument 171 for (int j = 1; j < frames.length && j < limit + 1; ++j) {
|