Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 132) sorted by relevance

123456

/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java81 public List<SearchResult> search(String query, int limit, int action) { in search() argument
90 results.addAll(searchChannels(query, channelsFound, limit)); in search()
92 results.addAll(searchInputs(query, limit)); in search()
95 results.addAll(searchChannels(query, channelsFound, limit)); in search()
96 if (results.size() >= limit) { in search()
102 if (limit == 1) { in search()
103 results.addAll(searchInputs(query, limit)); in search()
110 limit -= results.size(); in search()
117 limit)); in search()
169 private List<SearchResult> searchChannels(String query, Set<Long> channels, int limit) { in searchChannels() argument
[all …]
DDataManagerSearch.java71 public List<SearchResult> search(final String query, final int limit, final int action) { in search() argument
74 .submit(() -> searchFromDataManagers(query, limit, action)); in search()
88 private List<SearchResult> searchFromDataManagers(String query, int limit, int action) { in searchFromDataManagers() argument
111 if (results.size() >= limit) { in searchFromDataManagers()
135 if (results.size() >= limit) { in searchFromDataManagers()
174 if (results.size() >= limit) { in searchFromDataManagers()
200 if (results.size() >= limit) { in searchFromDataManagers()
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dint_array_view_test.cpp71 EXPECT_FALSE(intArrayView.limit(0).contains(3)); in TEST()
78 EXPECT_TRUE(intArrayView.limit(0).empty()); in TEST()
79 EXPECT_EQ(intArrayView.size(), intArrayView.limit(intArrayView.size()).size()); in TEST()
80 EXPECT_EQ(intArrayView.size(), intArrayView.limit(1000).size()); in TEST()
82 IntArrayView subView = intArrayView.limit(4); in TEST()
96 EXPECT_EQ(intArrayView.size(), intArrayView.limit(1000).size()); in TEST()
111 intArrayView.limit(0).copyToArray(&buffer, 0); in TEST()
114 intArrayView.limit(1).copyToArray(&buffer, 0); in TEST()
117 intArrayView.limit(1).copyToArray(&buffer, 1); in TEST()
132 EXPECT_EQ(10, intArrayView.limit(0).firstOrDefault(10)); in TEST()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DSectionParser.java1515 private static List<TsDescriptor> parseDescriptors(byte[] data, int offset, int limit) { in parseDescriptors() argument
1518 if (data.length < limit) { in parseDescriptors()
1522 while (pos + 1 < limit) { in parseDescriptors()
1528 if (limit < pos + length + 2) { in parseDescriptors()
1589 private static Iso639LanguageDescriptor parseIso639Language(byte[] data, int pos, int limit) { in parseIso639Language() argument
1594 while (pos + 4 <= limit) { in parseIso639Language()
1595 if (limit <= pos + 3) { in parseIso639Language()
1616 private static CaptionServiceDescriptor parseCaptionService(byte[] data, int pos, int limit) { in parseCaptionService() argument
1619 if (limit <= pos + 2) { in parseCaptionService()
1627 if (limit < pos + numberServices * 6) { in parseCaptionService()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DInputPointersTests.java68 final int limit = src.getXCoordinates().length * 2 + 10; in testAdd() local
69 for (int i = 0; i < limit; i++) { in testAdd()
77 for (int i = 0; i < limit; i++) { in testAdd()
92 final int limit = 1000, step = 100; in testAddAt() local
93 for (int i = 0; i < limit; i += step) { in testAddAt()
101 for (int i = 0; i < limit; i += step) { in testAddAt()
116 final int limit = src.getXCoordinates().length * 2 + 10; in testSet() local
117 for (int i = 0; i < limit; i++) { in testSet()
136 final int limit = 100; in testCopy() local
137 for (int i = 0; i < limit; i++) { in testCopy()
[all …]
DResizableIntArrayTests.java53 final int limit = DEFAULT_CAPACITY * 2 + 10; in testAdd() local
54 for (int i = 0; i < limit; i++) { in testAdd()
72 for (int i = 0; i < limit; i++) { in testAdd()
81 final int limit = DEFAULT_CAPACITY * 10, step = DEFAULT_CAPACITY * 2; in testAddAt() local
82 for (int i = 0; i < limit; i += step) { in testAddAt()
87 for (int i = 0; i < limit; i += step) { in testAddAt()
195 final int limit = DEFAULT_CAPACITY * 2 + 10; in testSet() local
196 for (int i = 0; i < limit; i++) { in testSet()
386 final int limit = DEFAULT_CAPACITY * 10; in testShift() local
388 for (int i = 0; i < limit; ++i) { in testShift()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageInfoController.java46 long limit = info.limitLevel; in getSummaryLimit() local
47 if (limit <= 0) { in getSummaryLimit()
48 limit = info.warningLevel; in getSummaryLimit()
50 if (info.usageLevel > limit) { in getSummaryLimit()
51 limit = info.usageLevel; in getSummaryLimit()
53 return limit; in getSummaryLimit()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageInfoController.java46 long limit = info.limitLevel; in getSummaryLimit() local
47 if (limit <= 0) { in getSummaryLimit()
48 limit = info.warningLevel; in getSummaryLimit()
50 if (info.usageLevel > limit) { in getSummaryLimit()
51 limit = info.usageLevel; in getSummaryLimit()
53 return limit; in getSummaryLimit()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java94 assertEquals(68, buf.limit()); in testParseWithinNetlinkMessage()
108 assertEquals(52, bufWithoutHeader.limit()); in testParseWithinNetlinkMessage()
123 assertEquals(76, buf.limit()); in testParseUnknownOptionWithinNetlinkMessage()
163 assertEquals(52, buf.limit()); in testZeroLengthOption()
175 assertEquals(52, buf.limit()); in testTooLongOption()
186 assertEquals(32, buf.limit()); in testOptionsTooLong()
192 assertEquals(48, buf.limit()); in testOptionsTooLong()
DStructNdOptPref64Test.java140 final int len = buf.limit(); in testParsing()
141 for (int i = 0; i < buf.limit() - 1; i++) { in testParsing()
143 buf.limit(i); in testParsing()
148 buf.limit(len); in testParsing()
/packages/apps/TV/tests/robotests/src/com/android/tv/search/
DLocalSearchProviderTest.java176 private void verifyQueryWithArguments(Integer limit, Integer action) { in verifyQueryWithArguments() argument
179 if (limit != null || action != null) { in verifyQueryWithArguments()
181 if (limit != null) { in verifyQueryWithArguments()
183 SearchManager.SUGGEST_PARAMETER_LIMIT, limit.toString()); in verifyQueryWithArguments()
195 limit == null || limit <= 0 ? LocalSearchProvider.DEFAULT_SEARCH_LIMIT : limit; in verifyQueryWithArguments()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h101 AK_FORCE_INLINE const IntArrayView limit(const size_t maxSize) const { in limit() function
136 std::vector<IntArrayView> split(const int separator, const int limit = S_INT_MAX) const {
137 if (limit <= 0) {
141 if (limit == 1) {
150 if (result.size() >= static_cast<size_t>(limit - 1)) {
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/
DCallHistoryLiveData.java73 private static CallHistoryLiveData newInstance(Context context, int callType, int limit) { in newInstance() argument
76 limit = limit < 0 ? 0 : limit; in newInstance()
87 Integer.toString(limit)) in newInstance()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java204 final String sortOrder, final String limit) { in explainQueryPlan() argument
211 limit); in explainQueryPlan()
246 final String having, final String orderBy, final String limit) { in query() argument
251 groupBy, having, orderBy, limit); in query()
260 groupBy, having, orderBy, limit); in query()
280 final String groupBy, final String having, final String sortOrder, final String limit) { in query() argument
283 groupBy, having, sortOrder, limit); in query()
291 having, sortOrder, limit); in query()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java276 long limit = info.limitLevel; in getSummaryLimit() local
277 if (limit <= 0) { in getSummaryLimit()
278 limit = info.warningLevel; in getSummaryLimit()
280 if (info.usageLevel > limit) { in getSummaryLimit()
281 limit = info.usageLevel; in getSummaryLimit()
283 return limit; in getSummaryLimit()
/packages/apps/Settings/src/com/android/settings/development/
DBackgroundProcessLimitPreferenceController.java73 final int limit = getActivityManagerService().getProcessLimit(); in updateAppProcessLimitOptions() local
77 if (val >= limit) { in updateAppProcessLimitOptions()
92 final int limit = newValue != null ? Integer.parseInt(newValue.toString()) : -1; in writeAppProcessLimitOptions() local
93 getActivityManagerService().setProcessLimit(limit); in writeAppProcessLimitOptions()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBackgroundProcessLimitPreferenceController.java73 final int limit = getActivityManagerService().getProcessLimit(); in updateAppProcessLimitOptions() local
77 if (val >= limit) { in updateAppProcessLimitOptions()
92 final int limit = newValue != null ? Integer.parseInt(newValue.toString()) : -1; in writeAppProcessLimitOptions() local
93 getActivityManagerService().setProcessLimit(limit); in writeAppProcessLimitOptions()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java193 int limit = mLayout.getScrollLimit(); in onScrollPositionChanged() local
194 mListener.onScrollPositionChanged(newPosition, limit); in onScrollPositionChanged()
255 int limit = mLayout.getScrollLimit(); in render() local
256 if (oldX > 0 && newX == 0 || oldX < limit && newX == limit) { in render()
258 if (newX == limit) v = -v; in render()
615 int limit = WIDE ? mContentLength - mWidth : mContentLength - mHeight; in getScrollLimit() local
616 return limit <= 0 ? 0 : limit; in getScrollLimit()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNduseroptMessage.java84 int oldLimit = buf.limit(); in NduseroptMessage()
85 buf.limit(start + STRUCT_SIZE + opts_len); in NduseroptMessage()
89 buf.limit(oldLimit); in NduseroptMessage()
94 if (newPosition >= buf.limit()) { in NduseroptMessage()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java151 float limit = mUserDistance / 20f; in onGyroscopeChanged() local
152 if (mX > limit || mX < -limit || mY > limit || mY < -limit) { in onGyroscopeChanged()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java193 final int limit = user.length() - 1; in isQuotedUserValid() local
194 if (limit < 1 || !user.endsWith("\"")) { in isQuotedUserValid()
200 for (int i = 1; i < limit; ++i) { in isQuotedUserValid()
209 if (i + 1 < limit) { in isQuotedUserValid()
/packages/modules/DnsResolver/
DREADME-DoT.md83 20 seconds will be closed. This sets the limit of tolerance for slow replies,
87 `DnsTlsQueryMap` imposes a retry limit of 3. `DnsTlsTransport` will retry the query up
89 This limit helps to ensure proper functioning in the case of a recursive resolver that
96 This sets the limit on how long session tickets will be preserved during idle periods,
101 `DnsTlsSessionCache` sets a limit of 5 sessions in each cache, expiring the oldest one
102 when the limit is reached. However, because the client code does not currently
103 reuse sessions more than once, it should not be possible to hit this limit.
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java183 String limit, CancellationSignal cancellationSignal) { in handleSearchSuggestionsQuery() argument
193 cursor, db, projection, selection, searchClause, limit, cancellationSignal); in handleSearchSuggestionsQuery()
225 String[] projection, String selection, String filter, String limit, in addSearchSuggestionsBasedOnFilter() argument
251 if (limit != null) { in addSearchSuggestionsBasedOnFilter()
252 sb.append(" LIMIT " + limit); in addSearchSuggestionsBasedOnFilter()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DPagingProvider.java72 int limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, Integer.MIN_VALUE); in queryChildDocuments() local
85 int numItems = (limit >= 0) in queryChildDocuments()
86 ? Math.min(limit, size - offset) in queryChildDocuments()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java376 int limit = 12; in queryRecentDocuments() local
378 limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, -1); in queryRecentDocuments()
380 if (limit < 0) { in queryRecentDocuments()
382 limit = 12; in queryRecentDocuments()
399 while (cursor.moveToNext() && result.getCount() < limit) { in queryRecentDocuments()
423 notificationUris, null /* parentId */, (limit - result.getCount()), in queryRecentDocuments()
868 @Nullable String parentId, int limit, boolean includePending) { in includeDownloadsFromMediaStore() argument
869 if (limit == 0) { in includeDownloadsFromMediaStore()
877 if (limit != NO_LIMIT) { in includeDownloadsFromMediaStore()
878 queryUriBuilder.appendQueryParameter(MediaStore.PARAM_LIMIT, String.valueOf(limit)); in includeDownloadsFromMediaStore()

123456