Home
last modified time | relevance | path

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

123456789

/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 …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java133 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataEmptyWithNoBucketInfo() local
135 assertScanDataFreqsEquals(null, results); in filterScanDataEmptyWithNoBucketInfo()
145 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithNoBucketInfo() local
147 assertScanDataFreqsEquals(null, results); in filterScanDataSingleNotMatchingWithNoBucketInfo()
157 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex() local
159 assertScanDataFreqsEquals(new int[][]{ { } }, results); in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
169 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned() local
171 assertScanDataFreqsEquals(new int[][]{ { } }, results); in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned()
181 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithNoBucketInfo() local
184 assertScanDataFreqsEquals(new int[][]{ { 2412 } }, results); in filterScanDataSingleMatchingWithNoBucketInfo()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java308 final CbResults results = new CbResults(); in initOffloadConfig() local
312 results.mSuccess = success; in initOffloadConfig()
313 results.mErrMsg = errMsg; in initOffloadConfig()
323 record("initOffloadConfig, setHandles results:", results); in initOffloadConfig()
324 return results.mSuccess; in initOffloadConfig()
389 final CbResults results = new CbResults(); in initOffloadControl() local
394 results.mSuccess = success; in initOffloadControl()
395 results.mErrMsg = errMsg; in initOffloadControl()
402 record(logmsg, results); in initOffloadControl()
403 return results.mSuccess ? mOffloadControlVersion : OFFLOAD_HAL_VERSION_NONE; in initOffloadControl()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpResultsParcelableUtil.java36 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/
DTvProviderSearch.java83 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 …]
DDataManagerSearch.java90 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 …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java90 InformationElement[] results = in parseInformationElements_withEmptyByteArray() local
92 assertEquals("parsed results should be empty", 0, results.length); in parseInformationElements_withEmptyByteArray()
102 InformationElement[] results = in parseInformationElements_withNullBytes() local
104 assertEquals("parsed results should be empty", 0, results.length); in parseInformationElements_withNullBytes()
114 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionId() local
116 assertEquals("parsed results should be empty", 0, results.length); in parseInformationElements_withZeroLengthAndExtensionId()
129 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe() local
131 assertEquals("parsed results should have 1 IE", 1, results.length); in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe()
133 InformationElement.EID_BSS_LOAD, results[0].id); in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe()
147 InformationElement[] results = in parseInformationElements_withSingleElement() local
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DRttManager.java764 public ParcelableRttResults(RttResult[] results) { in ParcelableRttResults() argument
765 mResults = results; in ParcelableRttResults()
874 RttResult results[] = new RttResult[num];
876 results[i] = new RttResult();
877 results[i].bssid = in.readString();
878 results[i].burstNumber = in.readInt();
879 results[i].measurementFrameNumber = in.readInt();
880 results[i].successMeasurementFrameNumber = in.readInt();
881 results[i].frameNumberPerBurstPeer = in.readInt();
882 results[i].status = in.readInt();
[all …]
DWifiScanner.java645 public ScanData(int id, int flags, ScanResult[] results) { in ScanData() argument
648 mResults = new ArrayList<>(Arrays.asList(results)); in ScanData()
653 ScanResult[] results) { in ScanData() argument
654 this(id, flags, bucketsScanned, bandsScanned, new ArrayList<>(Arrays.asList(results))); in ScanData()
659 List<ScanResult> results) { in ScanData() argument
664 mResults = results; in ScanData()
770 List<ScanResult> results = new ArrayList<>();
771 in.readParcelableList(results, ScanResult.class.getClassLoader());
772 return new ScanData(id, flags, bucketsScanned, bandsScanned, results);
785 public ParcelableScanData(ScanData[] results) { in ParcelableScanData() argument
[all …]
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp173 static void protoOutputStreamToUidMapping(ProtoOutputStream* proto, UidMapping* results) { in protoOutputStreamToUidMapping() argument
184 results->ParseFromArray(bytes.data(), bytes.size()); in protoOutputStreamToUidMapping()
213 UidMapping results; in TEST() local
214 protoOutputStreamToUidMapping(&proto, &results); in TEST()
215 ASSERT_EQ(1, results.snapshots_size()); in TEST()
216 EXPECT_EQ("v1", results.snapshots(0).package_info(0).version_string()); in TEST()
241 UidMapping results; in TEST() local
242 protoOutputStreamToUidMapping(&proto, &results); in TEST()
243 ASSERT_EQ(1, results.snapshots(0).package_info_size()); in TEST()
244 EXPECT_EQ(true, results.snapshots(0).package_info(0).deleted()); in TEST()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java258 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/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp207 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local
210 results.reserve(num_queries); in TEST_F()
212 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
214 for (auto& result : results) { in TEST_F()
278 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local
280 results.reserve(FakeSocketDelay::sDelay); in TEST_F()
282 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
284 for (auto& result : results) { in TEST_F()
297 std::vector<std::future<DnsTlsTransport::Result>> results; in TEST_F() local
300 results.reserve(FakeSocketDelay::sDelay); in TEST_F()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java258 List<Pair<List<RangingResult>, List<RangingResult>>> results = new ArrayList<>(); in testRangingFlow() local
266 results.add(RttTestUtils.getDummyRangingResults(requests[i])); in testRangingFlow()
286 mDut.onRangingResults(mIntCaptor.getValue(), results.get(i).second); in testRangingFlow()
290 verify(mockCallback).onRangingResults(results.get(i).second); in testRangingFlow()
294 mDut.onRangingResults(mIntCaptor.getValue(), results.get(i).second); in testRangingFlow()
301 verify(mockMetrics).recordResult(eq(requests[i]), eq(results.get(i).second), in testRangingFlow()
356 Pair<List<RangingResult>, List<RangingResult>> results = in testRangingFlowUsingAwarePeerHandles() local
358 results.first.remove(results.first.size() - 1); in testRangingFlowUsingAwarePeerHandles()
359 RangingResult removed = results.second.remove(results.second.size() - 1); in testRangingFlowUsingAwarePeerHandles()
360 results.second.add( in testRangingFlowUsingAwarePeerHandles()
[all …]
DRttTestUtils.java126 List<RangingResult> results = new ArrayList<>(); in getDummyRangingResults() local
143 results.add(rangingResult); in getDummyRangingResults()
147 results.add(new RangingResult(RangingResult.STATUS_SUCCESS, in getDummyRangingResults()
151 results.add(new RangingResult(RangingResult.STATUS_SUCCESS, in getDummyRangingResults()
155 results.add(new RangingResult(RangingResult.STATUS_SUCCESS, in getDummyRangingResults()
159 halResults.addAll(results); in getDummyRangingResults()
162 return new Pair<>(halResults, results); in getDummyRangingResults()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/
DTvContentRatingCacheTest.java169 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/services/Car/packages/CarDeveloperOptions/tests/unit/src/com/android/car/developeroptions/
DCarDeveloperOptionsIntentTest.java53 List<ResolveInfo> results = mPm.queryIntentActivities(createSettingsPackageIntent(), in testAvailableIntentActivities_onlyAllowlisted() local
56 for (ResolveInfo resolved : results) { in testAvailableIntentActivities_onlyAllowlisted()
67 List<ResolveInfo> results = mPm.queryIntentServices(createSettingsPackageIntent(), in testAvailableIntentServices_returnsZero() local
70 for (ResolveInfo resolved : results) { in testAvailableIntentServices_returnsZero()
79 List<ResolveInfo> results = mPm.queryBroadcastReceivers(createSettingsPackageIntent(), in testAvailableBroadcastReceivers_returnsZero() local
82 for (ResolveInfo resolved : results) { in testAvailableBroadcastReceivers_returnsZero()
91 List<ResolveInfo> results = mPm.queryIntentContentProviders(createSettingsPackageIntent(), in testAvailableContentProviders_returnsZero() local
94 for (ResolveInfo resolved : results) { in testAvailableContentProviders_returnsZero()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DInputDeviceResultTask.java91 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/Car/Calendar/src/com/android/car/calendar/common/
DEventDescriptions.java74 Map<String, NumberAndAccess> results = new LinkedHashMap<>(); in extractNumberAndPins() local
75 addMatchedNumbers(decoded, results, PHONE_PIN_PATTERN); in extractNumberAndPins()
78 addMatchedNumbers(decoded, results, TEL_PIN_PATTERN); in extractNumberAndPins()
81 return ImmutableList.copyOf(results.values()).reverse(); in extractNumberAndPins()
85 String decoded, Map<String, NumberAndAccess> results, Pattern phonePinPattern) { in addMatchedNumbers() argument
90 results.put(numberAndAccess.getNumber(), numberAndAccess); in addMatchedNumbers()
/packages/modules/Virtualization/compos/src/
Dcompsvc_worker.rs93 let results: io::Result<Vec<_>> = config in open_authfs_files_for_mapping() localVariable
98 fd_mapping.append(&mut results?); in open_authfs_files_for_mapping()
100 let results: io::Result<Vec<_>> = config in open_authfs_files_for_mapping() localVariable
105 fd_mapping.append(&mut results?); in open_authfs_files_for_mapping()
170 let results: Result<Vec<_>> = matches in parse_args() localVariable
183 let in_fds = results?; in parse_args()
185 let results: Result<Vec<_>> = matches in parse_args() localVariable
191 let out_fds = results?; in parse_args()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageUsageBasePreferenceControllerTest.java86 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/services/Mtp/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java90 final Bundle results = new Bundle(); in testReadWriteFile() local
91 results.putDouble("readAverage", readAverage); in testReadWriteFile()
92 results.putDouble("readStandardDeviation", in testReadWriteFile()
94 results.putDouble("writeAverage", writeAverage); in testReadWriteFile()
95 results.putDouble("writeStandardDeviation", in testReadWriteFile()
97 InstrumentationRegistry.getInstrumentation().sendStatus(Activity.RESULT_OK, results); in testReadWriteFile()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSNetworkScanCtlr.java80 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/mapclient/
DMapClientContent.java237 Uri results = mResolver.insert(contentUri, values); in storeSms() local
238 mHandleToUriMap.put(handle, results); in storeSms()
239 mUriToHandleMap.put(results, new MessageStatus(handle, readStatus)); in storeSms()
240 logD("Map InsertedThread" + results); in storeSms()
342 Uri results = mResolver.insert(contentUri, values); in storeMms() local
343 mHandleToUriMap.put(handle, results); in storeMms()
344 mUriToHandleMap.put(results, new MessageStatus(handle, read)); in storeMms()
346 logD("Map InsertedThread" + results); in storeMms()
349 storeMmsPart(part, results); in storeMms()
352 storeAddressPart(message, results); in storeMms()
[all …]

123456789