/frameworks/base/wifi/tests/src/android/net/wifi/rtt/ |
WifiRttManagerTest.java | 73 * Validate ranging call flow with successful results. 78 List<RangingResult> results = new ArrayList<>(); local 79 results.add( 91 callbackCaptor.getValue().onRangingResults(results); 93 verify(callbackMock).onRangingResults(results);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
BaseWifiScannerImplTest.java | 262 ScanResults results = ScanResults.create(0, 2400, 2450, 2450); local 292 ScanResults results = ScanResults.create(0, 2400, 2450, 2450); local 326 ScanResults results = ScanResults.create(0, 2400, 2450, 2450); local 410 * Validate that scan results that are returned from wificond, which are timestamped prior to 504 Set<Integer> expectedScan, Set<String> expectedHiddenNetSSIDs, ScanResults results, 517 expectedHiddenNetSSIDs, results, expectFullResults); 524 Set<String> expectedHiddenNetSSIDs, ScanResults results, boolean expectFullResults) { 529 eq(IFACE_NAME))).thenReturn(results.getScanDetailArrayList()); 537 for (ScanResult result : results.getRawScanResults()) { 543 assertScanDataEquals(results.getScanData(), mScanner.getLatestSingleScanResults()) [all...] |
/libcore/luni/src/test/java/com/android/org/bouncycastle/jce/provider/ |
CertBlacklistTest.java | 157 // convert the results to a hashset of strings 158 Set<String> results = new HashSet<String>(); local 160 results.add(new String(value)); 162 return results; 170 // convert the results to a hashset of strings 171 Set<String> results = new HashSet<String>(); local 173 results.add(value.toString(16)); 175 return results; 322 // do the test- results should be all but the bad one are handled 338 // do the test- results should be all but the bad one are handle [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
TvProviderSearch.java | 82 List<SearchResult> results = new ArrayList<>(); local 85 return results; 89 results.addAll(searchChannels(query, channelsFound, limit)); 91 results.addAll(searchInputs(query, limit)); 94 results.addAll(searchChannels(query, channelsFound, limit)); 95 if (results.size() >= limit) { 96 return results; 102 results.addAll(searchInputs(query, limit)); 103 if (!results.isEmpty()) { 104 return results; 171 List<SearchResult> results = new ArrayList<>(); local 501 List<SearchResult> results = new ArrayList<>(); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
ReplaceStringsVisitor.java | 339 TreeMap<Integer, Expression> results = new TreeMap<Integer, Expression>(); local 340 findContextCandidates(results, clazzType, 0 /*superType*/); 341 if (results.size() > 0) { 342 Integer bestRating = results.keySet().iterator().next(); 343 return results.get(bestRating); 351 * Sort them by rating in the results map. 364 * @param results The map that accumulates the rating=>expression results. The lower 370 private void findContextCandidates(TreeMap<Integer, Expression> results, 388 results.put(Integer.MIN_VALUE, mi) [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
SelectPrinterActivity.java | 547 FilterResults results = new FilterResults(); field in class:SelectPrinterActivity.DestinationAdapter 560 results.values = filteredPrinters; 561 results.count = filteredPrinters.size(); 562 return results; 568 protected void publishResults(CharSequence constraint, FilterResults results) { 574 if (results == null) { 577 List<PrinterInfo> printers = (List<PrinterInfo>) results.values;
|
/packages/apps/Settings/src/com/android/settings/print/ |
PrintServiceSettingsFragment.java | 481 FilterResults results = new FilterResults(); field in class:PrintServiceSettingsFragment.PrintersAdapter 492 results.values = filteredPrinters; 493 results.count = filteredPrinters.size(); 494 return results; 500 protected void publishResults(CharSequence constraint, FilterResults results) { 504 if (results == null) { 507 List<PrinterInfo> printers = (List<PrinterInfo>) results.values;
|
/frameworks/base/core/java/android/os/ |
PerformanceCollector.java | 24 * outputs the results using writer of type {@link PerformanceResultsWriter}. 54 * Structure of results output is up to implementor of 81 * @param results memory and runtime metrics stored as key/value pairs, 86 public void writeEndSnapshot(Bundle results); 104 * @param results runtime metrics of code block between calls to 109 public void writeStopTiming(Bundle results); 143 * In a results Bundle, this key references a List of iteration Bundles. 151 * In a results Bundle, this key reports the cpu time of the code block 156 * In a results Bundle, this key reports the execution time of the code 564 * Returns a bundle with the current results from the allocation counting 567 Bundle results = new Bundle(); local 582 Bundle results = new Bundle(); local [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
NewDatabasePerformanceTests.java | 940 Map<String, Long> results = new ArrayMap<>(); local 950 results.put(key, value); 961 return results;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventLocationAdapter.java | 64 * Internal class for containing info for an item in the auto-complete results. 295 // Add the matched recent locations to returned results. If a match exists in 305 Log.e(TAG, "Failed waiting for locations query results.", e); 307 Log.e(TAG, "Failed waiting for locations query results.", e); 310 // Add all the contacts matches to returned results. 321 msg.append("(").append(resultList.size()).append(" results)"); 332 protected void publishResults(CharSequence constraint, FilterResults results) { 334 if (results != null && results.count > 0) { 335 mResultList.addAll((ArrayList<Result>) results.values) 466 List<Result> results = new ArrayList<Result>(); local [all...] |
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
DataModel.java | 287 // Take the list of deduplicated directories and put them into the results list with 289 List<MediaItem> results = new ArrayList<>(); local 298 results.add(new MediaItem(description, MediaItem.FLAG_BROWSABLE)); 300 mResult.sendResult(results); 334 List<MediaItem> results = new ArrayList<>(); local 367 results.add(new MediaItem(description, mFlags)); 391 mResult.sendResult(results);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
Attachment.java | 649 final List<Attachment> results = Lists.newArrayList(); local 655 results.add(new Attachment(arr.getJSONObject(i))); 662 return results;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DictionaryProvider.java | 222 * @param sortOrder ignored. The results are always returned in no particular order. 345 final Cursor results = local 348 if (null == results) { 353 final int idIndex = results.getColumnIndex(MetadataDbHelper.WORDLISTID_COLUMN); 354 final int localeIndex = results.getColumnIndex(MetadataDbHelper.LOCALE_COLUMN); 356 results.getColumnIndex(MetadataDbHelper.LOCAL_FILENAME_COLUMN); 358 results.getColumnIndex(MetadataDbHelper.RAW_CHECKSUM_COLUMN); 359 final int statusIndex = results.getColumnIndex(MetadataDbHelper.STATUS_COLUMN); 360 if (results.moveToFirst()) { 362 final String wordListId = results.getString(idIndex) [all...] |
/prebuilts/tools/common/m2/repository/org/mockito/mockito-android/2.7.6/ |
mockito-android-2.7.6.jar | |
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
BandwidthMicroBenchMarkTest.java | 59 * the results to the Release Dashboard. 109 description = "Name of the reporting unit for pass/fail results") 289 Map<String, String> results = new HashMap<String, String>(); local 295 results.put(pair[0], pair[1]); 301 return results; 328 * @param listener the {@link ITestInvocationListener} where to report results.
|
/art/compiler/utils/ |
assembler_thumb_test.cc | 35 // Include results file (generated manually) 39 // This controls whether the results are printed to the 43 // of the other results. 45 // When this is false, the results are not printed to the 46 // output, but are compared against the expected results 94 void DumpAndCheck(std::vector<uint8_t>& code, const char* testname, const char* const* results) { 133 // Print the results only, don't check. This is used to generate new output for inserting 139 // Check the results match the appropriate results in the .inc file. 151 if (CompareIgnoringSpace(results[lineindex], testline) != 0) 192 std::map<std::string, const char* const*>::iterator results = test_results.find(testname); local [all...] |
/art/runtime/dex/ |
art_dex_file_loader_test.cc | 143 static const Result results[] = { local 200 ASSERT_EQ(arraysize(results), it.NumVirtualMethods()); 201 for (const Result& r : results) {
|
/art/test/626-const-class-linking/src/ |
Main.java | 124 final Object[] results = new Object[threads.length]; local 136 results[my_index] = get.invoke(null); 138 results[my_index] = ite.getCause(); 140 results[my_index] = t; 150 dumpResultStats(results, 1); 158 final Object[] results = new Object[threads.length]; local 173 results[my_index] = get.invoke(null); 175 results[my_index] = ite.getCause(); 177 results[my_index] = t; 187 dumpResultStats(results, 2) 195 final Object[] results = new Object[threads.length]; local 230 final Object[] results = new Object[threads.length]; local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
DataPathOutOfBandTestCase.java | 53 * wait for results (session) 56 * wait for results (publish session) 66 * wait for results (session) 69 * wait for results (subscribe session) 118 Pair<Integer, WifiAwareSession> results = attachCb.waitForAttach(); local 119 switch (results.first) { 129 mWifiAwareSession = results.second; 194 // wait for results - publish session 311 // wait for results - subscribe session
|
DiscoveryWithRangingTestCase.java | 37 * wait for results (session) 39 * wait for results (subscribe session) 52 * wait for results (session) 54 * wait for results (publish session) 241 Pair<Integer, List<RangingResult>> results = rangingCb.waitForRangingResults(); local 242 switch (results.first) { 250 if (results.second == null || results.second.size() != 1) { 251 Log.e(TAG, "executeRanging: ranging peer invalid results - null, empty, or wrong length"); 254 RangingResult result = results.second.get(0) [all...] |
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
SplitAppTest.java | 146 final Bundle results = receiver.get(); local 147 assertThat(results.getString("base"), equalTo("Base String Default")); 148 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); 149 assertThat(results.getString("feature_b"), nullValue()); 150 assertThat(results.getString("feature_c"), nullValue()); 196 final Bundle results = receiver.get(); local 197 assertThat(results.getString("base"), equalTo("Base String Default")); 198 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); 199 assertThat(results.getString("feature_b"), equalTo("Feature B String Default")); 200 assertThat(results.getString("feature_c"), nullValue()) 239 final Bundle results = receiver.get(); local [all...] |
/cts/hostsidetests/incident/src/com/android/server/cts/ |
GraphicsStatsValidationTest.java | 58 GraphicsStatsProto[] results = runDrawTest("testDrawTenFrames"); local 59 GraphicsStatsProto statsBefore = results[0]; 60 GraphicsStatsProto statsAfter = results[1]; 76 GraphicsStatsProto[] results = runDrawTest("testDrawJankyFrames"); 77 GraphicsStatsProto statsBefore = results[0]; 78 GraphicsStatsProto statsAfter = results[1]; 106 GraphicsStatsProto[] results = runDrawTest("testDrawDaveyFrames"); local 107 GraphicsStatsProto statsBefore = results[0]; 108 GraphicsStatsProto statsAfter = results[1];
|
/cts/hostsidetests/os/src/android/os/cts/ |
ProcfsHostTests.java | 162 String results = mDevice.executeShellCommand(START_TEST_APP_COMMAND); local 181 "Test app PID not captured. results = \"" + results + "\"; logs = \"" + logs + "\"",
|
/cts/tests/tests/net/src/android/net/cts/ |
DnsTest.java | 98 // Clear test state so we don't get confused with the previous results. 176 "search-results.com", "tribalfusion.com", "thefreedictionary.com", "isohunt.com", 190 ArrayList<String> results = new ArrayList<String>(); local 219 results.add(thisResult); 262 results.add(thisResult); 264 for (String result : results) Log.d(TAG, result);
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_StatusUpdatesTest.java | 61 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); local 62 assertNotNull(results[0].uri); 63 assertNotNull(results[1].uri); 65 dataId = ContentUris.parseId(results[1].uri); 113 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); local 114 assertNotNull(results[0].uri); 115 return results[0].uri;
|