Home
last modified time | relevance | path

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

123

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndex.java190 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/
DMetadataHandler.java45 private static List<WordListMetadata> makeMetadataObject(final Cursor results) { in makeMetadataObject() argument
47 if (null != results && results.moveToFirst()) { in makeMetadataObject()
48 final int localeColumn = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); in makeMetadataObject()
49 final int typeColumn = results.getColumnIndex(MetadataDbHelper.TYPE_COLUMN); in makeMetadataObject()
51 results.getColumnIndex(MetadataDbHelper.DESCRIPTION_COLUMN); in makeMetadataObject()
52 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); in makeMetadataObject()
53 final int updateIndex = results.getColumnIndex(MetadataDbHelper.DATE_COLUMN); in makeMetadataObject()
54 final int fileSizeIndex = results.getColumnIndex(MetadataDbHelper.FILESIZE_COLUMN); in makeMetadataObject()
56 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); in makeMetadataObject()
57 final int checksumIndex = results.getColumnIndex(MetadataDbHelper.CHECKSUM_COLUMN); in makeMetadataObject()
[all …]
DDictionaryProvider.java353 final Cursor results = in getDictionaryWordListsForLocale() local
356 if (null == results) { in getDictionaryWordListsForLocale()
361 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); in getDictionaryWordListsForLocale()
362 final int localeIndex = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); in getDictionaryWordListsForLocale()
364 results.getColumnIndex(MetadataDbHelper.LOCAL_FILENAME_COLUMN); in getDictionaryWordListsForLocale()
366 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); in getDictionaryWordListsForLocale()
367 final int statusIndex = results.getColumnIndex(MetadataDbHelper.STATUS_COLUMN); in getDictionaryWordListsForLocale()
368 if (results.moveToFirst()) { in getDictionaryWordListsForLocale()
370 final String wordListId = results.getString(idIndex); in getDictionaryWordListsForLocale()
387 final String wordListLocale = results.getString(localeIndex); in getDictionaryWordListsForLocale()
[all …]
DMetadataDbHelper.java642 final ArrayList<DownloadRecord> results = new ArrayList<>(); in getDownloadRecordsForDownloadId() local
646 if (!cursor.moveToFirst()) return results; in getDownloadRecordsForDownloadId()
653 results.add(new DownloadRecord(clientId, null)); in getDownloadRecordsForDownloadId()
658 results.add(new DownloadRecord(clientId, valuesForThisClient)); in getDownloadRecordsForDownloadId()
664 return results; in getDownloadRecordsForDownloadId()
735 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryInstalledOrDeletingOrAvailableDictionaryMetadata() local
742 return results; in queryInstalledOrDeletingOrAvailableDictionaryMetadata()
757 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryCurrentMetadata() local
759 return results; in queryCurrentMetadata()
779 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java288 private void runReadAndWriteTests(final List<String> results, final int bufferType, in runReadAndWriteTests() argument
290 results.add(runReadAndWrite(sWords, sEmptyBigrams, null /* shortcuts */, bufferType, in runReadAndWriteTests()
292 results.add(runReadAndWrite(sWords, sChainBigrams, null /* shortcuts */, bufferType, in runReadAndWriteTests()
294 results.add(runReadAndWrite(sWords, sStarBigrams, null /* shortcuts */, bufferType, in runReadAndWriteTests()
296 results.add(runReadAndWrite(sWords, sEmptyBigrams, sShortcuts, bufferType, formatOptions, in runReadAndWriteTests()
298 results.add(runReadAndWrite(sWords, sChainBigrams, sShortcuts, bufferType, formatOptions, in runReadAndWriteTests()
300 results.add(runReadAndWrite(sWords, sStarBigrams, sShortcuts, bufferType, formatOptions, in runReadAndWriteTests()
302 results.add(runReadAndWrite(sWordsWithVariousCodePoints, sEmptyBigrams, in runReadAndWriteTests()
323 final List<String> results = new ArrayList<>(); in testReadAndWriteWithByteBuffer() local
325 runReadAndWriteTests(results, BinaryDictUtils.USE_BYTE_BUFFER, in testReadAndWriteWithByteBuffer()
[all …]
/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 …]
DAccountCredentials.java51 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/
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/Contacts/src/com/android/contacts/group/
DSuggestedMemberListAdapter.java173 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/
DContactSaveService.java273 ContentProviderResult[] results; in createRawContact() local
275 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact()
280 Uri rawContactUri = results[0].uri; in createRawContact()
366 ContentProviderResult[] results = null; in saveContact() local
368 results = resolver.applyBatch(ContactsContract.AUTHORITY, diff); in saveContact()
371 final long rawContactId = getRawContactId(state, diff, results); in saveContact()
377 insertedRawContactId = getInsertedRawContactId(diff, results); in saveContact()
506 final ContentProviderResult[] results) { in getRawContactId() argument
512 return getInsertedRawContactId(diff, results); in getRawContactId()
520 final ContentProviderResult[] results) { in getInsertedRawContactId() argument
[all …]
/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/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/tests/src/com/android/calendar/
DUtilsTests.java390 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java163 SentenceTextInfoParams originalTextInfoParams, SuggestionsInfo[] results) {
164 if (results == null || results.length == 0) {
181 for (int j = 0; j < results.length; ++j) {
182 final SuggestionsInfo cur = results[j];
/packages/apps/Settings/src/com/android/settings/print/
DPrintServiceSettingsFragment.java503 FilterResults results = new FilterResults(); in getFilter() field in PrintServiceSettingsFragment.PrintersAdapter
513 results.values = filteredPrinters; in getFilter()
514 results.count = filteredPrinters.size(); in getFilter()
515 return results; in getFilter()
521 protected void publishResults(CharSequence constraint, FilterResults results) { in getFilter() argument
525 if (results == null) { in getFilter()
528 List<PrinterInfo> printers = (List<PrinterInfo>) results.values; in getFilter()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DContentProviderTask.java52 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/DeskClock/src/com/android/deskclock/worldclock/
DCitiesActivity.java143 FilterResults results = new FilterResults();
230 results.values = filteredList;
231 results.count = filteredList.size();
232 return results;
236 protected void publishResults(CharSequence constraint, FilterResults results) {
237 mDisplayedCitiesList = (ArrayList<CityObj>) results.values;
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
DIntegrationTestUtils.java175 List<T> results = new ArrayList<T>();
177 results.add(clazz.cast(parent));
182 results.addAll(getAllViews(clazz, viewGroup.getChildAt(i)));
185 return results;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java213 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/Browser/src/com/android/browser/provider/
DSQLiteContentProvider.java205 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/
DSQLiteContentProvider.java215 final ContentProviderResult[] results = new ContentProviderResult[numOperations]; in applyBatch() local
233 results[i] = operation.apply(this, results, i); in applyBatch()
236 return results; in applyBatch()
/packages/apps/Browser/src/com/android/browser/search/
DOpenSearchSearchEngine.java149 JSONArray results = new JSONArray(content); in getSuggestions()
150 JSONArray suggestions = results.getJSONArray(1); in getSuggestions()
152 if (results.length() > 2) { in getSuggestions()
153 descriptions = results.getJSONArray(2); in getSuggestions()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProviderTests.java104 ContentProviderResult[] results = setupPonies(); in testInsertQueryandDelete() local
108 assertNotNull(results); in testInsertQueryandDelete()
109 assertEquals(2, results.length); in testInsertQueryandDelete()
113 TestProvider.sURIMatcher.match(TestProvider.uri(results[0].uri))); in testInsertQueryandDelete()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java229 final ContentProviderResult[] results = new ContentProviderResult[numOperations]; in applyBatch() local
235 results[i] = operation.apply(this, results, i); in applyBatch()
238 return results; in applyBatch()

123