Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 116) sorted by relevance

12345

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndex.java232 MtpDeviceIndexRunnable.Results results = mResults; in size() local
233 return results != null ? results.unifiedLookupIndex.length : 0; in size()
244 MtpDeviceIndexRunnable.Results results = mResults; in get() local
245 if (results == null) { in get()
249 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]]; in get()
253 return results.mtpObjects[bucket.itemsStartIndex + position - 1 in get()
257 int zeroIndex = results.unifiedLookupIndex.length - 1 - position; in get()
258 DateBucket bucket = results.buckets[results.unifiedLookupIndex[zeroIndex]]; in get()
262 return results.mtpObjects[bucket.itemsStartIndex + zeroIndex in get()
274 MtpDeviceIndexRunnable.Results results = mResults; in getWithoutLabels() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataHandler.java47 private static List<WordListMetadata> makeMetadataObject(final Cursor results) { in makeMetadataObject() argument
49 if (null != results && results.moveToFirst()) { in makeMetadataObject()
50 final int localeColumn = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); in makeMetadataObject()
51 final int typeColumn = results.getColumnIndex(MetadataDbHelper.TYPE_COLUMN); in makeMetadataObject()
53 results.getColumnIndex(MetadataDbHelper.DESCRIPTION_COLUMN); in makeMetadataObject()
54 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); in makeMetadataObject()
55 final int updateIndex = results.getColumnIndex(MetadataDbHelper.DATE_COLUMN); in makeMetadataObject()
56 final int fileSizeIndex = results.getColumnIndex(MetadataDbHelper.FILESIZE_COLUMN); in makeMetadataObject()
58 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); in makeMetadataObject()
59 final int checksumIndex = results.getColumnIndex(MetadataDbHelper.CHECKSUM_COLUMN); in makeMetadataObject()
[all …]
DDictionaryProvider.java345 final Cursor results = in getDictionaryWordListsForLocale() local
348 if (null == results) { in getDictionaryWordListsForLocale()
353 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); in getDictionaryWordListsForLocale()
354 final int localeIndex = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); in getDictionaryWordListsForLocale()
356 results.getColumnIndex(MetadataDbHelper.LOCAL_FILENAME_COLUMN); in getDictionaryWordListsForLocale()
358 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); in getDictionaryWordListsForLocale()
359 final int statusIndex = results.getColumnIndex(MetadataDbHelper.STATUS_COLUMN); in getDictionaryWordListsForLocale()
360 if (results.moveToFirst()) { in getDictionaryWordListsForLocale()
362 final String wordListId = results.getString(idIndex); in getDictionaryWordListsForLocale()
379 final String wordListLocale = results.getString(localeIndex); in getDictionaryWordListsForLocale()
[all …]
DMetadataDbHelper.java676 final ArrayList<DownloadRecord> results = new ArrayList<>(); in getDownloadRecordsForDownloadId() local
680 if (!cursor.moveToFirst()) return results; in getDownloadRecordsForDownloadId()
687 results.add(new DownloadRecord(clientId, null)); in getDownloadRecordsForDownloadId()
692 results.add(new DownloadRecord(clientId, valuesForThisClient)); in getDownloadRecordsForDownloadId()
698 return results; in getDownloadRecordsForDownloadId()
778 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryInstalledOrDeletingOrAvailableDictionaryMetadata() local
785 return results; in queryInstalledOrDeletingOrAvailableDictionaryMetadata()
800 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryCurrentMetadata() local
802 return results; in queryCurrentMetadata()
822 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryDictionaries() local
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DDirectoryWalker.java329 protected final void walk(File startDirectory, Collection results) throws IOException { in walk() argument
334 handleStart(startDirectory, results); in walk()
335 walk(startDirectory, 0, results); in walk()
336 handleEnd(results); in walk()
338 handleCancelled(startDirectory, results, cancel); in walk()
350 private void walk(File directory, int depth, Collection results) throws IOException { in walk() argument
351 checkIfCancelled(directory, depth, results); in walk()
352 if (handleDirectory(directory, depth, results)) { in walk()
353 handleDirectoryStart(directory, depth, results); in walk()
356 checkIfCancelled(directory, depth, results); in walk()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/
DCursorToSearchResultConverterTest.java81 List<SearchResult> results = mConverter.convertCursor(mSiteMapManager, null, BASE_RANK); in testParseNullResults_ReturnsNull() local
82 assertThat(results).isNull(); in testParseNullResults_ReturnsNull()
87 List<SearchResult> results = mConverter.convertCursor( in testParseCursor_NotNull() local
89 assertThat(results).isNotNull(); in testParseCursor_NotNull()
94 List<SearchResult> results = mConverter.convertCursor( in testParseCursor_MatchesRank() local
97 assertThat(results.get(i).rank).isEqualTo(BASE_RANK); in testParseCursor_MatchesRank()
103 List<SearchResult> results = mConverter.convertCursor( in testParseCursor_MatchesTitle() local
106 assertThat(results.get(i).title).isEqualTo(TITLES[i]); in testParseCursor_MatchesTitle()
112 List<SearchResult> results = mConverter.convertCursor( in testParseCursor_MatchesSummary() local
115 assertThat(results.get(i).summary).isEqualTo(SUMMARY); in testParseCursor_MatchesSummary()
[all …]
DDatabaseResultLoaderTest.java217 List<SearchResult> results = new ArrayList(); in testDeDupe_noDuplicates_originalListReturn() local
225 results.add(resultOne); in testDeDupe_noDuplicates_originalListReturn()
230 results.add(resultTwo); in testDeDupe_noDuplicates_originalListReturn()
235 results.add(resultThree); in testDeDupe_noDuplicates_originalListReturn()
238 loader.removeDuplicates(results); in testDeDupe_noDuplicates_originalListReturn()
239 assertThat(results.size()).isEqualTo(3); in testDeDupe_noDuplicates_originalListReturn()
240 assertThat(results.get(0)).isEqualTo(resultOne); in testDeDupe_noDuplicates_originalListReturn()
241 assertThat(results.get(1)).isEqualTo(resultTwo); in testDeDupe_noDuplicates_originalListReturn()
242 assertThat(results.get(2)).isEqualTo(resultThree); in testDeDupe_noDuplicates_originalListReturn()
247 List<SearchResult> results = new ArrayList(); in testDeDupe_oneDuplicate_duplicateRemoved() local
[all …]
DSavedQueryRecorderAndRemoverTest.java64 List<? extends SearchResult> results = loader.loadInBackground(); in canSaveAndRemoveQuery() local
67 assertThat(results.size()).isEqualTo(1); in canSaveAndRemoveQuery()
68 assertThat(results.get(0).title).isEqualTo(query); in canSaveAndRemoveQuery()
72 results = loader.loadInBackground(); in canSaveAndRemoveQuery()
75 assertThat(results).isEmpty(); in canSaveAndRemoveQuery()
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java82 List<SearchResult> results = new ArrayList<>(); in search() local
85 return results; in search()
89 results.addAll(searchChannels(query, channelsFound, limit)); in search()
91 results.addAll(searchInputs(query, limit)); in search()
94 results.addAll(searchChannels(query, channelsFound, limit)); in search()
95 if (results.size() >= limit) { in search()
96 return results; in search()
102 results.addAll(searchInputs(query, limit)); in search()
103 if (!results.isEmpty()) { in search()
104 return results; in search()
[all …]
DDataManagerSearch.java93 List<SearchResult> results = new ArrayList<>(); in searchFromDataManagers() local
95 return results; in searchFromDataManagers()
100 return results; in searchFromDataManagers()
113 addResult(results, channelsFound, channel, null); in searchFromDataManagers()
115 if (results.size() >= limit) { in searchFromDataManagers()
117 Log.d(TAG, "Found " + results.size() + " channels. Elapsed time for" + in searchFromDataManagers()
121 return results; in searchFromDataManagers()
132 addResult(results, channelsFound, channel, null); in searchFromDataManagers()
134 if (results.size() >= limit) { in searchFromDataManagers()
136 Log.d(TAG, "Found " + results.size() + " channels. Elapsed time for" + in searchFromDataManagers()
[all …]
DProgramGuideSearchFragment.java203 protected void onPostExecute(List<LocalSearchProvider.SearchResult> results) {
204 super.onPostExecute(results);
209 + " results=" + ((results == null) ? 0 : results.size()));
212 if (results == null || results.size() == 0) {
223 resultsAdapter.addAll(0, results);
DLocalSearchProvider.java98 List<SearchResult> results = new ArrayList<>(); in query() local
100 results.addAll(search.search(query, limit, action)); in query()
102 Cursor c = createSuggestionsCursor(results); in query()
107 private Cursor createSuggestionsCursor(List<SearchResult> results) { in createSuggestionsCursor() argument
108 MatrixCursor cursor = new MatrixCursor(SEARCHABLE_COLUMNS, results.size()); in createSuggestionsCursor()
111 for (SearchResult result : results) { in createSuggestionsCursor()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupCredentialsFragment.java89 void onCredentialsComplete(Bundle results); in onCredentialsComplete() argument
270 final Bundle results = new Bundle(4); in onActivityResult() local
271 results.putString(EXTRA_OAUTH_PROVIDER, mProviderId); in onActivityResult()
272 results.putString(EXTRA_OAUTH_ACCESS_TOKEN, accessToken); in onActivityResult()
273 results.putString(EXTRA_OAUTH_REFRESH_TOKEN, refreshToken); in onActivityResult()
274 results.putInt(EXTRA_OAUTH_EXPIRES_IN_SECONDS, expiresInSeconds); in onActivityResult()
275 mResults = results; in onActivityResult()
277 callback.onCredentialsComplete(results); in onActivityResult()
328 final Bundle results = new Bundle(2); in getCredentialResults() local
329 results.putString(EXTRA_PASSWORD, getPassword()); in getCredentialResults()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchResultsAdapterTest.java114 List<SearchResult> results = mAdapter.getSearchResults(); in testEndToEndSearch_properResultsMerged_correctOrder() local
117 assertThat(results).containsExactlyElementsIn(sortedDummyResults).inOrder(); in testEndToEndSearch_properResultsMerged_correctOrder()
134 List<SearchResult> results = mAdapter.getSearchResults(); in testEndToEndSearch_addResults_resultsAddedInOrder() local
136 assertThat(results).containsExactlyElementsIn(sortedDummyResults).inOrder(); in testEndToEndSearch_addResults_resultsAddedInOrder()
153 List<SearchResult> results = mAdapter.getSearchResults(); in testEndToEndSearch_removeResults_resultsAdded() local
154 assertThat(results.get(0).title).isEqualTo(TITLES[0]); in testEndToEndSearch_removeResults_resultsAdded()
155 assertThat(results.get(1).title).isEqualTo(TITLES[3]); in testEndToEndSearch_removeResults_resultsAdded()
160 List<SearchResult> results = new ArrayList<>(); in getDummyDbResults() local
167 results.add(builder.build()); in getDummyDbResults()
171 results.add(builder.build()); in getDummyDbResults()
[all …]
/packages/apps/Settings/src/com/android/settings/search2/
DDatabaseResultLoader.java136 final List<SearchResult> results = new ArrayList<>( in loadInBackground() local
142 results.addAll(primaryFirstWordResults); in loadInBackground()
143 results.addAll(primaryMidWordResults); in loadInBackground()
144 results.addAll(secondaryResults); in loadInBackground()
145 results.addAll(tertiaryResults); in loadInBackground()
147 return removeDuplicates(results); in loadInBackground()
316 List<SearchResult> removeDuplicates(List<SearchResult> results) { in removeDuplicates() argument
320 for (int i = results.size() - 1; i >= 0; i--) { in removeDuplicates()
321 secondaryResult = results.get(i); in removeDuplicates()
324 primaryResult = results.get(j); in removeDuplicates()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCursorFilter.java54 FilterResults results = new FilterResults(); in performFiltering() local
56 results.count = cursor.getCount(); in performFiltering()
57 results.values = cursor; in performFiltering()
59 results.count = 0; in performFiltering()
60 results.values = null; in performFiltering()
62 return results; in performFiltering()
66 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument
69 if (results.values != null && results.values != oldCursor) { in publishResults()
70 mClient.changeCursor((Cursor) results.values); in publishResults()
/packages/apps/TV/tests/unit/src/com/android/tv/common/
DTvContentRatingCacheTest.java133 TvContentRating[] results = TvContentRatingCache in testStringToContentRatings_oneGoodOneBad() local
136 asArray(TvContentRatingConstants.CONTENT_RATING_US_TV_Y7_US_TV_FV), results); in testStringToContentRatings_oneGoodOneBad()
140 TvContentRating[] results = TvContentRatingCache in testStringToContentRatings_one() local
143 asArray(TvContentRatingConstants.CONTENT_RATING_US_TV_Y7_US_TV_FV), results); in testStringToContentRatings_one()
147 TvContentRating[] results = TvContentRatingCache.stringToContentRatings(Y7_AND_MA); in testStringToContentRatings_twoNotInOrder() local
150 TvContentRatingConstants.CONTENT_RATING_US_TV_Y7_US_TV_FV), results); in testStringToContentRatings_twoNotInOrder()
154 TvContentRating[] results = TvContentRatingCache.stringToContentRatings(MA_AND_Y7); in testStringToContentRatings_twoInOrder() local
157 TvContentRatingConstants.CONTENT_RATING_US_TV_Y7_US_TV_FV), results); in testStringToContentRatings_twoInOrder()
161 TvContentRating[] results = TvContentRatingCache.stringToContentRatings( in testStringToContentRatings_double() local
166 results); in testStringToContentRatings_double()
/packages/apps/UnifiedEmail/src/com/android/mail/
DSenderInfoLoader.java122 Map<String, ContactInfo> results = Maps.newHashMap(); in loadContactPhotos() local
166 results.put(email, result); in loadContactPhotos()
175 if (!results.containsKey(email)) { in loadContactPhotos()
176 results.put(email, new ContactInfo(null)); in loadContactPhotos()
182 return ImmutableMap.copyOf(results); in loadContactPhotos()
202 return ImmutableMap.copyOf(results); in loadContactPhotos()
223 results.put(email, new ContactInfo(prevResult.contactUri, photo)); in loadContactPhotos()
226 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes)); in loadContactPhotos()
237 return ImmutableMap.copyOf(results); in loadContactPhotos()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DEventResultPersister.java227 SparseArray<EventResult> results; in writeState() local
233 results = mResults.clone(); in writeState()
248 int numResults = results.size(); in writeState()
252 Integer.toString(results.keyAt(i))); in writeState()
254 Integer.toString(results.valueAt(i).status)); in writeState()
256 Integer.toString(results.valueAt(i).legacyStatus)); in writeState()
257 if (results.valueAt(i).message != null) { in writeState()
259 results.valueAt(i).message); in writeState()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java57 int results; field in AppScanStats.LastScan
66 this.results = 0; in LastScan()
93 int results = 0; field in AppScanStats
110 int batteryStatsResults = ++lastScans.get(lastScans.size() - 1).results; in addResult()
123 results++; in addResult()
186 batteryStats.noteBleScanResults(workSource, curr.results % 100); in recordScanStop()
282 results + "\n"); in dumpToString()
300 sb.append(scan.results + " results"); in dumpToString()
/packages/apps/TV/src/com/android/tv/tuner/ts/
DSectionParser.java427 List<PatItem> results = new ArrayList<>(); in parsePAT() local
435 results.add(new PatItem(programNo, pmtPid)); in parsePAT()
438 mListener.onPatParsed(results); in parsePAT()
460 List<PmtItem> results = new ArrayList<>(); in parsePMT() local
480 results.add(pmtItem); in parsePMT()
483 results.add(new PmtItem(PmtItem.ES_PID_PCR, pcrPid, null, null)); in parsePMT()
485 mListener.onPmtParsed(table_id_ext, results); in parsePMT()
501 List<MgtItem> results = new ArrayList<>(); in parseMGT() local
511 results.add(new MgtItem(tableType, tableTypePid)); in parseMGT()
518 mListener.onMgtParsed(results); in parseMGT()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java163 final FilterResults results = new FilterResults(); in performFiltering() local
168 return results; in performFiltering()
224 results.values = new ContactReceipientFilterResult(entries, workDirectoryHeaderPos); in performFiltering()
225 results.count = 1; in performFiltering()
226 return results; in performFiltering()
230 protected void publishResults(final CharSequence constraint, final FilterResults results) { in publishResults() argument
235 = (ContactReceipientFilterResult) results.values; in publishResults()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DBuilder.java98 ArrayList<Address> results = new ArrayList<Address>(); in buildGroupBody() local
103 results.add(buildMailbox((ASTmailbox)n)); in buildGroupBody()
107 return new MailboxList(results, true); in buildGroupBody()
168 ArrayList<String> results = new ArrayList<String>(node.jjtGetNumChildren()); in buildRoute() local
173 results.add(buildString((ASTdomain)n, true)); in buildRoute()
177 return new DomainList(results, true); in buildRoute()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventLocationAdapter.java332 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument
334 if (results != null && results.count > 0) { in publishResults()
335 mResultList.addAll((ArrayList<Result>) results.values); in publishResults()
466 List<Result> results = new ArrayList<Result>(); in processLocationsQueryResults() local
468 results.add(new Result(null, location, R.drawable.ic_history_holo_light, null)); in processLocationsQueryResults()
470 return results; in processLocationsQueryResults()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java165 SentenceTextInfoParams originalTextInfoParams, SuggestionsInfo[] results) {
166 if (results == null || results.length == 0) {
183 for (int j = 0; j < results.length; ++j) {
184 final SuggestionsInfo cur = results[j];

12345