/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | BlendingPromoterTest.java | 58 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 0, 0); in testLimitZeroShortcutsPerSource() 64 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 1, 1); in testLimitOneShortcutPerSource() 70 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 2, 2); in testLimitTwoShortcutsPerSource() 76 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 3, 3); in testLimitThreeShortcutsPerSource() 82 SuggestionCursor promoted = limit(cursor(mS11, mS12), 0, 0); in testLimitOneSourceZeroPromoted() 88 SuggestionCursor promoted = limit(cursor(mS11, mS12), 1, 1); in testLimitOneSourceOnePromoted() 94 SuggestionCursor promoted = limit(cursor(mS11, mS12), 2, 2); in testLimitOneSourceTwoPromoted() 100 SuggestionCursor promoted = limit(cursor(), 2, 2); in testLimitNoShortcuts() 106 SuggestionCursor promoted = limit(cursor(mS11, mS12, mWeb1, mWeb2), 0, 2); in testLimitZeroWebShortcuts() 112 SuggestionCursor promoted = limit(cursor(mS11, mS12, mWeb1, mWeb2), 2, 2); in testLimitTwoWebShortcuts() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
D | PartialInputStream.java | 27 private final long limit; field in PartialInputStream 32 this.limit = offset + length; in PartialInputStream() 40 if (limit > position) in read() 61 return (int)Math.min(Integer.MAX_VALUE, limit - position); in getBytesLeft()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputPointersTests.java | 52 final int limit = src.getXCoordinates().length * 2 + 10; in testAdd() local 53 for (int i = 0; i < limit; i++) { in testAdd() 57 for (int i = 0; i < limit; i++) { in testAdd() 67 final int limit = 1000, step = 100; in testAddAt() local 68 for (int i = 0; i < limit; i += step) { in testAddAt() 72 for (int i = 0; i < limit; i += step) { in testAddAt() 82 final int limit = src.getXCoordinates().length * 2 + 10; in testSet() local 83 for (int i = 0; i < limit; i++) { in testSet() 97 final int limit = 100; in testCopy() local 98 for (int i = 0; i < limit; i++) { in testCopy()
|
D | ResizableIntArrayTests.java | 36 final int limit = DEFAULT_CAPACITY * 2 + 10; in testAdd() local 37 for (int i = 0; i < limit; i++) { in testAdd() 54 for (int i = 0; i < limit; i++) { in testAdd() 61 final int limit = DEFAULT_CAPACITY * 10, step = DEFAULT_CAPACITY * 2; in testAddAt() local 62 for (int i = 0; i < limit; i += step) { in testAddAt() 66 for (int i = 0; i < limit; i += step) { in testAddAt() 164 final int limit = DEFAULT_CAPACITY * 2 + 10; in testSet() local 165 for (int i = 0; i < limit; i++) { in testSet()
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | Recycler.java | 82 int limit = getMessageLimit(context); in deleteOldMessages() local 85 deleteMessagesForThread(context, threadId, limit); in deleteOldMessages() 112 abstract public void setMessageLimit(Context context, int limit); in setMessageLimit() argument 171 public void setMessageLimit(Context context, int limit) { in setMessageLimit() argument 174 editPrefs.putInt(MAX_SMS_MESSAGES_PER_THREAD, limit); in setMessageLimit() 254 int limit = getMessageLimit(context); in anyThreadOverLimit() local 268 if (msgs.getCount() >= limit) { in anyThreadOverLimit() 311 public void setMessageLimit(Context context, int limit) { in setMessageLimit() argument 314 editPrefs.putInt(MAX_MMS_MESSAGES_PER_THREAD, limit); in setMessageLimit() 448 int limit = getMessageLimit(context); in anyThreadOverLimit() local [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | PointerInfo.java | 94 byteCount = input2.limit() - position; in toByteBuffer() 105 byteCount = (input2.limit() - position) * 2; in toByteBuffer() 117 byteCount = (input2.limit() - position)* 2; in toByteBuffer() 129 byteCount = (input2.limit() - position) * 4; in toByteBuffer() 141 byteCount = (input2.limit() - position) * 4; in toByteBuffer() 153 byteCount = (input2.limit() - position) * 8; in toByteBuffer() 165 byteCount = (input2.limit() - position) * 8; in toByteBuffer()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | EyePosition.java | 152 float limit = mUserDistance / 20f; in onGyroscopeChanged() local 153 if (mX > limit || mX < -limit || mY > limit || mY < -limit) { in onGyroscopeChanged()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 192 int limit = mLayout.getScrollLimit(); in onScrollPositionChanged() local 193 mListener.onScrollPositionChanged(newPosition, limit); in onScrollPositionChanged() 254 int limit = mLayout.getScrollLimit(); in render() local 255 if (oldX > 0 && newX == 0 || oldX < limit && newX == limit) { in render() 257 if (newX == limit) v = -v; in render() 614 int limit = WIDE ? mContentLength - mWidth : mContentLength - mHeight; in getScrollLimit() local 615 return limit <= 0 ? 0 : limit; in getScrollLimit()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 182 SQLiteDatabase db, Uri uri, String[] projection, String limit) { in handleSearchSuggestionsQuery() argument 192 cursor, db, projection, selection, searchClause, limit); in handleSearchSuggestionsQuery() 223 String[] projection, String selection, String filter, String limit) { in addSearchSuggestionsBasedOnFilter() argument 247 if (limit != null) { in addSearchSuggestionsBasedOnFilter() 248 sb.append(" LIMIT " + limit); in addSearchSuggestionsBasedOnFilter()
|
D | CallLogProvider.java | 157 final int limit = getIntParam(uri, Calls.LIMIT_PARAM_KEY, 0); in query() local 160 if (limit > 0) { in query() 161 limitClause = offset + "," + limit; in query()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SuggestionsView.java | 81 public void setLimitSuggestionsToViewHeight(boolean limit) { in setLimitSuggestionsToViewHeight() argument 82 mLimitSuggestionsToViewHeight = limit; in setLimitSuggestionsToViewHeight()
|
D | SuggestionsListView.java | 65 void setLimitSuggestionsToViewHeight(boolean limit); in setLimitSuggestionsToViewHeight() argument
|
D | ClusteredSuggestionsView.java | 45 public void setLimitSuggestionsToViewHeight(boolean limit) { in setLimitSuggestionsToViewHeight() argument
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | Search.java | 61 int limit = searchParams.mLimit; in searchMessages() local 63 if (limit < 0 || limit > MAX_SEARCH_RESULTS || offset < 0) return 0; in searchMessages() 106 s.data(Tags.SEARCH_RANGE, offset + "-" + (offset + limit - 1)); in searchMessages()
|
/packages/apps/Email/src/com/beetstra/jutf7/ |
D | UTF7StyleCharsetEncoder.java | 165 && out.limit() != MAX_BYTES_PER_CHAR * in.limit()) in encodeLoop()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Pyramid.cpp | 157 int limit = scr->width + scr->border; in BorderExpandOdd() local 158 for (i = -scr->border; i < limit; i++) { in BorderExpandOdd() 170 int limit = out->height + out->border; in BorderExpandOdd() local 171 for (j = -out->border; j < limit; j++) { in BorderExpandOdd()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
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/Gallery2/src/com/android/gallery3d/util/ |
D | JobLimiter.java | 131 public JobLimiter(ThreadPool pool, int limit) { in JobLimiter() argument 133 mLimit = limit; in JobLimiter()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | AudioTrackView.java | 309 final int limit = Math.min(mScrollX + mScreenWidth, getWidth() - getPaddingRight()); in onDraw() local 316 for (int i = start; i < limit; i++) { in onDraw() 332 for (int i = start; i < limit; i++) { in onDraw()
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
D | SourceLatency.java | 164 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument 199 if (limit > 0) { in getSuggestions() 201 String.valueOf(limit)); in getSuggestions()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
D | ExchangeDirectoryProvider.java | 275 int limit = DEFAULT_LOOKUP_LIMIT; in query() local 278 limit = Integer.parseInt(limitString); in query() 280 limit = 0; in query() 282 if (limit <= 0) { in query() 298 filter, limit); in query()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
D | LocalDataTest.java | 420 String limit = uri.getQueryParameter("limit"); in query() local 427 selectionArgs, groupBy, null, sortOrder, limit)); in query() 436 selectionArgs, groupBy, null, sortOrder, limit); in query()
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | SnapshotProvider.java | 159 String limit = uri.getQueryParameter(BrowserContract.PARAM_LIMIT); in query() local 174 null, null, sortOrder, limit); in query()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | Utils.java | 164 public static String getStackTrace(final int limit) { in getStackTrace() argument 171 for (int j = 1; j < frames.length && j < limit + 1; ++j) { in getStackTrace()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | TextHighlightingAnimation.java | 111 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
|