/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpDeviceIndex.java | 232 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/ |
D | MetadataHandler.java | 47 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 …]
|
D | DictionaryProvider.java | 345 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 …]
|
D | MetadataDbHelper.java | 676 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/ |
D | DirectoryWalker.java | 329 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/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 83 List<SearchResult> results = new ArrayList<>(); in search() local 86 return results; in search() 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() 97 return results; in search() 103 results.addAll(searchInputs(query, limit)); in search() 104 if (!results.isEmpty()) { in search() 105 return results; in search() [all …]
|
D | DataManagerSearch.java | 92 List<SearchResult> results = new ArrayList<>(); in searchFromDataManagers() local 94 return results; in searchFromDataManagers() 99 return results; in searchFromDataManagers() 110 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 112 if (results.size() >= limit) { in searchFromDataManagers() 113 return results; in searchFromDataManagers() 124 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 126 if (results.size() >= limit) { in searchFromDataManagers() 127 return results; in searchFromDataManagers() 140 addResult(results, channelsFound, channel, program); in searchFromDataManagers() [all …]
|
D | ProgramGuideSearchFragment.java | 203 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);
|
D | LocalSearchProvider.java | 94 List<SearchResult> results = new ArrayList<>(); in query() local 96 results.addAll(search.search(query, limit, action)); in query() 98 return createSuggestionsCursor(results); in query() 101 private Cursor createSuggestionsCursor(List<SearchResult> results) { in createSuggestionsCursor() argument 102 MatrixCursor cursor = new MatrixCursor(SEARCHABLE_COLUMNS, results.size()); in createSuggestionsCursor() 105 for (SearchResult result : results) { in createSuggestionsCursor()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSetupCredentialsFragment.java | 89 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/services/Car/car-support-lib/src/android/support/car/ui/ |
D | CursorFilter.java | 53 FilterResults results = new FilterResults(); in performFiltering() local 55 results.count = cursor.getCount(); in performFiltering() 56 results.values = cursor; in performFiltering() 58 results.count = 0; in performFiltering() 59 results.values = null; in performFiltering() 61 return results; in performFiltering() 65 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 68 if (results.values != null && results.values != oldCursor) { in publishResults() 69 mClient.changeCursor((Cursor) results.values); in publishResults()
|
/packages/apps/TV/tests/unit/src/com/android/tv/common/ |
D | TvContentRatingCacheTest.java | 133 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/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 99 List<ScheduledRecording> results = new ArrayList<>(); in insertRecordings() local 103 results.add(ScheduledRecording.buildFrom(r).setId(id).build()); in insertRecordings() 105 return results; in insertRecordings() 117 List<Integer> results = new ArrayList<>(); in updateRecordings() local 122 results.add(updated); in updateRecordings() 124 return results; in updateRecordings() 140 List<Integer> results = new ArrayList<>(); in deleteRecordings() local 144 results.add(deleted); in deleteRecordings() 146 return results; in deleteRecordings()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | SenderInfoLoader.java | 122 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/TV/usbtuner/src/com/android/usbtuner/ts/ |
D | SectionParser.java | 400 List<PatItem> results = new ArrayList<>(); in parsePAT() local 408 results.add(new PatItem(programNo, pmtPid)); in parsePAT() 411 mListener.onPatParsed(results); in parsePAT() 433 List<PmtItem> results = new ArrayList<>(); in parsePMT() local 449 results.add(pmtItem); in parsePMT() 452 results.add(new PmtItem(PmtItem.ES_PID_PCR, pcrPid, null, null)); in parsePMT() 454 mListener.onPmtParsed(table_id_ext, results); in parsePMT() 470 List<MgtItem> results = new ArrayList<>(); in parseMGT() local 480 results.add(new MgtItem(tableType, tableTypePid)); in parseMGT() 487 mListener.onMgtParsed(results); in parseMGT() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | SuggestedMemberListAdapter.java | 173 FilterResults results = new FilterResults(); in performFiltering() local 175 return results; in performFiltering() 209 return results; in performFiltering() 237 return results; in performFiltering() 296 results.values = suggestionsList; in performFiltering() 297 return results; in performFiltering() 301 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 303 List<SuggestedMember> suggestionsList = (List<SuggestedMember>) results.values; in publishResults()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 330 ContentProviderResult[] results; in createRawContact() local 332 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact() 337 Uri rawContactUri = results[0].uri; in createRawContact() 448 final ContentProviderResult[] results = new ContentProviderResult[diff.size()]; in saveContact() local 450 … final int subsetCount = applyDiffSubset(diff, numberProcessed, results, resolver); in saveContact() 465 final long rawContactId = getRawContactId(state, diffWrapper, results); in saveContact() 471 insertedRawContactId = getInsertedRawContactId(diffWrapper, results); in saveContact() 594 ContentProviderResult[] results, ContentResolver resolver) in applyDiffSubset() argument 601 if (subsetResult == null || (offset + subsetResult.length) > results.length) { in applyDiffSubset() 605 results[offset++] = c; in applyDiffSubset() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 47 int results; field in AppScanStats.LastScan 55 this.results = 0; in LastScan() 78 int results = 0; field in AppScanStats 88 lastScans.get(lastScans.size() - 1).results++; in addResult() 90 results++; in addResult() 224 results + "\n"); in dumpToString() 240 sb.append(scan.results + " results"); in dumpToString()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientAdapter.java | 163 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/ |
D | Builder.java | 98 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/services/Telephony/src/org/apache/james/mime4j/field/address/ |
D | Builder.java | 98 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/ |
D | EventLocationAdapter.java | 332 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/ |
D | SentenceLevelAdapter.java | 165 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];
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 390 int[] results = Utils.findNanpPhoneNumbers(text); in findPhoneNumber() local 392 assertEquals(0, results.length % 2); in findPhoneNumber() 394 if (results.length / 2 != matches.length) { in findPhoneNumber() 396 + " matches, found " + results.length / 2); in findPhoneNumber() 399 for (int i = 0; i < results.length / 2; i++) { in findPhoneNumber() 400 CharSequence seq = text.subSequence(results[i*2], results[i*2 + 1]); in findPhoneNumber()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationMessageData.java | 169 private static void addResult(final ArrayList<String> results, final StringBuilder value) { in addResult() argument 171 results.add(value.toString()); in addResult() 173 results.add(EMPTY_STRING); in addResult() 216 final ArrayList<String> results = sUnquoteResults; in splitQuotedString() local 217 results.clear(); in splitQuotedString() 232 addResult(results, sUnquoteStringBuilder); in splitQuotedString() 243 return results.toArray(new String[results.size()]); in splitQuotedString()
|