/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpDeviceIndex.java | 190 MtpDeviceIndexRunnable.Results results = mResults; in size() local 191 return results != null ? results.unifiedLookupIndex.length : 0; in size() 202 MtpDeviceIndexRunnable.Results results = mResults; in get() local 203 if (results == null) { in get() 207 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]]; in get() 211 return results.mtpObjects[bucket.itemsStartIndex + position - 1 in get() 215 int zeroIndex = results.unifiedLookupIndex.length - 1 - position; in get() 216 DateBucket bucket = results.buckets[results.unifiedLookupIndex[zeroIndex]]; in get() 220 return results.mtpObjects[bucket.itemsStartIndex + zeroIndex in get() 232 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/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 …]
|
D | AccountCredentials.java | 51 public void onCredentialsComplete(Bundle results) { in onCredentialsComplete() argument 53 intent.putExtras(results); in onCredentialsComplete() 62 final Bundle results = fragment.getCredentialResults(); in onNextButton() local 63 onCredentialsComplete(results); in onNextButton()
|
/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/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientAdapter.java | 119 final FilterResults results = new FilterResults(); in performFiltering() local 124 return results; in performFiltering() 162 results.values = entries; in performFiltering() 163 results.count = 1; in performFiltering() 169 return results; in performFiltering() 173 protected void publishResults(final CharSequence constraint, final FilterResults results) { in publishResults() argument 177 if (results.values != null) { in publishResults() 179 final List<RecipientEntry> entries = (List<RecipientEntry>) results.values; in publishResults()
|
/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 | 288 ContentProviderResult[] results; in createRawContact() local 290 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact() 295 Uri rawContactUri = results[0].uri; in createRawContact() 393 ContentProviderResult[] results = null; in saveContact() local 395 results = resolver.applyBatch(ContactsContract.AUTHORITY, diff); in saveContact() 396 if (results == null) { in saveContact() 403 final long rawContactId = getRawContactId(state, diff, results); in saveContact() 409 insertedRawContactId = getInsertedRawContactId(diff, results); in saveContact() 542 final ContentProviderResult[] results) { in getRawContactId() argument 548 return getInsertedRawContactId(diff, results); in getRawContactId() [all …]
|
/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/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()
|
/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/Settings/src/com/android/settings/print/ |
D | PrintServiceSettingsFragment.java | 519 FilterResults results = new FilterResults(); in getFilter() field in PrintServiceSettingsFragment.PrintersAdapter 529 results.values = filteredPrinters; in getFilter() 530 results.count = filteredPrinters.size(); in getFilter() 531 return results; in getFilter() 537 protected void publishResults(CharSequence constraint, FilterResults results) { in getFilter() argument 541 if (results == null) { in getFilter() 544 List<PrinterInfo> printers = (List<PrinterInfo>) results.values; in getFilter()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | ContentProviderTask.java | 52 public final ContentProviderResult[] results; field in ContentProviderTask.Result 59 private Result(Exception exception, ContentProviderResult[] results) { in Result() argument 61 this.results = results; in Result()
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/ |
D | IntegrationTestUtils.java | 184 List<T> results = new ArrayList<T>(); 186 results.add(clazz.cast(parent)); 191 results.addAll(getAllViews(clazz, viewGroup.getChildAt(i))); 194 return results;
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitiesActivity.java | 143 FilterResults results = new FilterResults(); 234 results.values = filteredList; 235 results.count = filteredList.size(); 236 return results; 240 protected void publishResults(CharSequence constraint, FilterResults results) { 241 mDisplayedCitiesList = (ArrayList<CityObj>) results.values;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | AbstractContactsProvider.java | 213 final ContentProviderResult[] results = new ContentProviderResult[numOperations]; in applyBatch() local 237 results[i] = operation.apply(this, results, i); in applyBatch() 240 return results; in applyBatch()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummary.java | 201 final ArrayList<BatterySipper> results = new ArrayList<>(); in getCoalescedUsageList() local 263 results.add(sipper); in getCoalescedUsageList() 269 results.add(uidList.valueAt(i)); in getCoalescedUsageList() 273 Collections.sort(results, new Comparator<BatterySipper>() { in getCoalescedUsageList() 279 return results; in getCoalescedUsageList()
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | SQLiteContentProvider.java | 205 final ContentProviderResult[] results = new ContentProviderResult[numOperations]; in applyBatch() local 223 results[i] = operation.apply(this, results, i); in applyBatch() 226 return results; in applyBatch()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | SQLiteContentProvider.java | 215 final ContentProviderResult[] results = new ContentProviderResult[numOperations]; in applyBatch() local 233 results[i] = operation.apply(this, results, i); in applyBatch() 236 return results; in applyBatch()
|