/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 …]
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpResultsParcelableUtil.java | 36 public static DhcpResultsParcelable toStableParcelable(@Nullable DhcpResults results) { in toStableParcelable() argument 37 if (results == null) return null; in toStableParcelable() 39 p.baseConfiguration = results.toStaticIpConfiguration(); in toStableParcelable() 40 p.leaseDuration = results.leaseDuration; in toStableParcelable() 41 p.mtu = results.mtu; in toStableParcelable() 42 p.serverAddress = parcelAddress(results.serverAddress); in toStableParcelable() 43 p.vendorInfo = results.vendorInfo; in toStableParcelable() 44 p.serverHostName = results.serverHostName; in toStableParcelable() 45 p.captivePortalApiUrl = results.captivePortalApiUrl; in toStableParcelable() 54 final DhcpResults results = new DhcpResults(p.baseConfiguration); in fromStableParcelable() [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 | 90 List<SearchResult> results = new ArrayList<>(); in searchFromDataManagers() local 92 return results; in searchFromDataManagers() 96 return results; in searchFromDataManagers() 109 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 111 if (results.size() >= limit) { in searchFromDataManagers() 116 + results.size() in searchFromDataManagers() 122 return results; in searchFromDataManagers() 133 addResult(results, channelsFound, channel, null); in searchFromDataManagers() 135 if (results.size() >= limit) { in searchFromDataManagers() 140 + results.size() in searchFromDataManagers() [all …]
|
D | ProgramGuideSearchFragment.java | 213 protected void onPostExecute(List<LocalSearchProvider.SearchResult> results) { 214 super.onPostExecute(results); 223 + ((results == null) ? 0 : results.size())); 226 if (results == null || results.size() == 0) { 236 resultsAdapter.addAll(0, results);
|
/packages/modules/DnsResolver/ |
D | resolv_tls_unit_test.cpp | 200 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local 203 results.reserve(num_queries); in TEST_F() 205 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F() 207 for (auto& result : results) { in TEST_F() 267 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local 269 results.reserve(FakeSocketDelay::sDelay); in TEST_F() 271 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F() 273 for (auto& result : results) { in TEST_F() 286 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local 289 results.reserve(FakeSocketDelay::sDelay); in TEST_F() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 258 private void runReadAndWriteTests(final List<String> results, final int bufferType, in runReadAndWriteTests() argument 260 results.add(runReadAndWrite(sWords, sEmptyBigrams, bufferType, in runReadAndWriteTests() 262 results.add(runReadAndWrite(sWords, sChainBigrams, bufferType, in runReadAndWriteTests() 264 results.add(runReadAndWrite(sWords, sStarBigrams, bufferType, in runReadAndWriteTests() 266 results.add(runReadAndWrite(sWords, sEmptyBigrams, bufferType, formatOptions, in runReadAndWriteTests() 268 results.add(runReadAndWrite(sWords, sChainBigrams, bufferType, formatOptions, in runReadAndWriteTests() 270 results.add(runReadAndWrite(sWords, sStarBigrams, bufferType, formatOptions, in runReadAndWriteTests() 272 results.add(runReadAndWrite(sWordsWithVariousCodePoints, sEmptyBigrams, in runReadAndWriteTests() 327 final List<String> results = new ArrayList<>(); in testReadAndWriteWithByteBuffer() local 329 runReadAndWriteTests(results, BinaryDictUtils.USE_BYTE_BUFFER, in testReadAndWriteWithByteBuffer() [all …]
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/ |
D | TvContentRatingCacheTest.java | 169 ImmutableList<TvContentRating> results = in testStringToContentRatings_oneGoodOneBad() local 173 .that(results) in testStringToContentRatings_oneGoodOneBad() 179 ImmutableList<TvContentRating> results = in testStringToContentRatings_one() local 183 .that(results) in testStringToContentRatings_one() 189 ImmutableList<TvContentRating> results = in testStringToContentRatings_twoNotInOrder() local 192 .that(results) in testStringToContentRatings_twoNotInOrder() 200 ImmutableList<TvContentRating> results = in testStringToContentRatings_twoInOrder() local 203 .that(results) in testStringToContentRatings_twoInOrder() 211 ImmutableList<TvContentRating> results = in testStringToContentRatings_double() local 217 .that(results) in testStringToContentRatings_double() [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
D | InputDeviceResultTask.java | 91 final List<SearchResult> results = new ArrayList<>(); in query() local 92 results.addAll(buildPhysicalKeyboardSearchResults()); in query() 93 results.addAll(buildVirtualKeyboardSearchResults()); in query() 94 Collections.sort(results); in query() 98 return results; in query() 102 final Set<SearchResult> results = new HashSet<>(); in buildPhysicalKeyboardSearchResults() local 113 results.add(new SearchResult.Builder() in buildPhysicalKeyboardSearchResults() 121 return results; in buildPhysicalKeyboardSearchResults() 125 final Set<SearchResult> results = new HashSet<>(); in buildVirtualKeyboardSearchResults() local 144 results.add(new SearchResult.Builder() in buildVirtualKeyboardSearchResults() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 486 BrowseTree.BrowseNode results = mAvrcpStateMachine.findNode(rootName); in testBrowsingCommands() local 487 Assert.assertEquals(rootName + mTestDevice.toString(), results.getID()); in testBrowsingCommands() 490 BrowseTree.BrowseNode playerNodes = mAvrcpStateMachine.findNode(results.getID()); in testBrowsingCommands() 491 mAvrcpStateMachine.requestContents(results); in testBrowsingCommands() 506 mAvrcpStateMachine.requestContents(results); in testBrowsingCommands() 512 playerNodes = mAvrcpStateMachine.findNode(results.getID()); in testBrowsingCommands() 513 Assert.assertEquals(true, results.isCached()); in testBrowsingCommands() 515 results.getChildren().get(0).getMediaItem().toString()); in testBrowsingCommands() 519 results.getChildren().get(0).getID()); in testBrowsingCommands() 598 BrowseTree.BrowseNode results = mAvrcpStateMachine.findNode(rootName); in testPlayerChanged() local [all …]
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSNetworkScanCtlr.java | 80 public void onResults(List<CellInfo> results) { 81 logDebug("Total results :" + results.size()); 82 for (CellInfo cellInfo : results) { 86 Message message = Message.obtain(mHandler, MSG_SCAN_RESULTS_AVAILABLE, results); 113 void onNetworkAvailability(List<CellInfo> results); in onNetworkAvailability() argument 140 public void analyzeScanResults(List<CellInfo> results) { in analyzeScanResults() argument 142 if (!mIsScanActive || results == null) { in analyzeScanResults() 147 for (CellInfo cellInfo : results) { in analyzeScanResults()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 75 public int results; field in AppScanStats.LastScan 93 this.results = 0; in LastScan() 134 public int results = 0; field in AppScanStats 152 scan.results++; in addResult() 156 if (scan.results % 100 == 0) { in addResult() 167 results++; in addResult() 270 .setNumberResults(scan.results) in recordScanStop() 296 mBatteryStats.noteBleScanResults(mWorkSource, scan.results % 100); in recordScanStop() 302 BluetoothStatsLog.BLE_SCAN_RESULT_RECEIVED, mWorkSource, scan.results % 100); in recordScanStop() 517 sb.append("\n Total number of results : " + results); in dumpToString() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageUsageBasePreferenceControllerTest.java | 86 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setsSummary() local 95 results.put(0, result); in onDataLoaded_setsSummary() 96 mController.onDataLoaded(results, 100, 100); in onDataLoaded_setsSummary() 103 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setProgressBarPercentage() local 112 results.put(0, result); in onDataLoaded_setProgressBarPercentage() 113 mController.onDataLoaded(results, 100, 2_000_000_000); in onDataLoaded_setProgressBarPercentage()
|
/packages/apps/Car/Dialer/tests/ |
D | checkresources.py | 12 results = [] variable 15 results.append(lines[i]) 17 if len(results) > 0: 18 print('\n'.join(results))
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtilTest.java | 123 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull() local 126 assertThat(results).isNull(); in getPermittedAndEnabledInputMethodList_noEnabledInputMethods_returnsNull() 139 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() local 142 assertThat(results).isNotNull(); in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() 143 assertThat(results).isEmpty(); in getPermittedAndEnabledInputMethodList_noPermittedMethods_returnsEmptyList() 156 List<InputMethodInfo> results = InputMethodUtil.getPermittedAndEnabledInputMethodList( in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() local 159 assertThat(results).contains(dummyIME); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME() 160 assertThat(results).doesNotContain(googleVoiceTypingIME); in getPermittedAndEnabledInputMethodList_withGoogleTypingIME_doesNotIncludeIME()
|
/packages/apps/Settings/src/com/android/settings/datetime/timezone/ |
D | BaseTimeZoneAdapter.java | 272 final FilterResults results = new FilterResults(); in performFiltering() local 273 results.values = newItems; in performFiltering() 274 results.count = newItems.size(); in performFiltering() 276 return results; in performFiltering() 281 public void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 282 mItems = (List<T>) results.values; in publishResults()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSNetworkScanCtlrTest.java | 89 public void onNetworkAvailability(List<CellInfo> results) { in testStartFastNetworkScan() 90 mResults = results; in testStartFastNetworkScan() 140 public void onNetworkAvailability(List<CellInfo> results) { in testStartFastNetworkScanFail() 193 public void onNetworkAvailability(List<CellInfo> results) { in testStartFastNetworkScanWithMultipleNetworks() 194 mResults = results; in testStartFastNetworkScanWithMultipleNetworks() 245 public void onNetworkAvailability(List<CellInfo> results) { in testStopNetworkScan()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | AppGridView.java | 116 final ArrayList<ActivityEntry> results = new ArrayList<>(); in loadAllApps() local 122 results.add(new ActivityEntry(info, label.toString(), iconFactory)); in loadAllApps() 124 if (results.size() >= needAppCount) { in loadAllApps() 129 Collections.sort(results); in loadAllApps() 131 addAll(results); in loadAllApps()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | AppGridView.java | 116 final ArrayList<ActivityEntry> results = new ArrayList<>(); in loadAllApps() local 122 results.add(new ActivityEntry(info, label.toString(), iconFactory)); in loadAllApps() 124 if (results.size() >= needAppCount) { in loadAllApps() 129 Collections.sort(results); in loadAllApps() 131 addAll(results); in loadAllApps()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | SubscriptionUtil.java | 34 public static void setAvailableSubscriptionsForTesting(List<SubscriptionInfo> results) { in setAvailableSubscriptionsForTesting() argument 35 sAvailableResultsForTesting = results; in setAvailableSubscriptionsForTesting() 39 public static void setActiveSubscriptionsForTesting(List<SubscriptionInfo> results) { in setActiveSubscriptionsForTesting() argument 40 sActiveResultsForTesting = results; in setActiveSubscriptionsForTesting()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/ |
D | BaseTimeZoneAdapter.java | 272 final FilterResults results = new FilterResults(); in performFiltering() local 273 results.values = newItems; in performFiltering() 274 results.count = newItems.size(); in performFiltering() 276 return results; in performFiltering() 281 public void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 282 mItems = (List<T>) results.values; in publishResults()
|
/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/TV/tuner/src/com/android/tv/tuner/data/ |
D | SectionParser.java | 746 List<PatItem> results = new ArrayList<>(); in parsePAT() local 754 results.add(new PatItem(programNo, pmtPid)); in parsePAT() 757 mListener.onPatParsed(results); in parsePAT() 779 List<PmtItem> results = new ArrayList<>(); in parsePMT() local 799 results.add(pmtItem); in parsePMT() 802 results.add(new PmtItem(PmtItem.ES_PID_PCR, pcrPid, null, null)); in parsePMT() 804 mListener.onPmtParsed(table_id_ext, results); in parsePMT() 820 List<MgtItem> results = new ArrayList<>(); in parseMGT() local 830 results.add(new MgtItem(tableType, tableTypePid)); in parseMGT() 835 mListener.onMgtParsed(results); in parseMGT() [all …]
|