/frameworks/base/core/java/android/widget/ |
D | CursorFilter.java | 51 FilterResults results = new FilterResults(); in performFiltering() local 53 results.count = cursor.getCount(); in performFiltering() 54 results.values = cursor; in performFiltering() 56 results.count = 0; in performFiltering() 57 results.values = null; in performFiltering() 59 return results; in performFiltering() 63 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 66 if (results.values != null && results.values != oldCursor) { in publishResults() 67 mClient.changeCursor((Cursor) results.values); in publishResults()
|
D | Filter.java | 161 FilterResults results); in publishResults() argument 234 args.results = performFiltering(args.constraint); in handleMessage() 236 args.results = new FilterResults(); in handleMessage() 282 publishResults(args.constraint, args.results); in handleMessage() 284 int count = args.results != null ? args.results.count : -1; in handleMessage() 308 FilterResults results; field in Filter.RequestArguments
|
D | SimpleAdapter.java | 327 FilterResults results = new FilterResults(); in performFiltering() local 335 results.values = list; in performFiltering() 336 results.count = list.size(); in performFiltering() 369 results.values = newValues; in performFiltering() 370 results.count = newValues.size(); in performFiltering() 373 return results; in performFiltering() 377 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 379 mData = (List<Map<String, ?>>) results.values; in publishResults() 380 if (results.count > 0) { in publishResults()
|
D | ArrayAdapter.java | 452 FilterResults results = new FilterResults(); in performFiltering() local 465 results.values = list; in performFiltering() 466 results.count = list.size(); in performFiltering() 499 results.values = newValues; in performFiltering() 500 results.count = newValues.size(); in performFiltering() 503 return results; in performFiltering() 507 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 509 mObjects = (List<T>) results.values; in publishResults() 510 if (results.count > 0) { in publishResults()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | CursorFilter.java | 52 FilterResults results = new FilterResults(); in performFiltering() local 54 results.count = cursor.getCount(); in performFiltering() 55 results.values = cursor; in performFiltering() 57 results.count = 0; in performFiltering() 58 results.values = null; in performFiltering() 60 return results; in performFiltering() 64 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 67 if (results.values != null && results.values != oldCursor) { in publishResults() 68 mClient.changeCursor((Cursor) results.values); in publishResults()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 128 Bundle results = new Bundle(); in downloadFile() local 129 results.putString("device_id", mDeviceId); in downloadFile() 130 results.putString("timestamp", ts); in downloadFile() 131 results.putInt("size", FILE_SIZE); in downloadFile() 132 addStatsToResults(PROF_LABEL, prof_stats, results, mUid); in downloadFile() 133 addStatsToResults(PROC_LABEL, proc_stats, results, mUid); in downloadFile() 134 getInstrumentation().sendStatus(INSTRUMENTATION_IN_PROGRESS, results); in downloadFile() 182 Bundle results = new Bundle(); in uploadFile() local 183 results.putString("device_id", mDeviceId); in uploadFile() 184 results.putString("timestamp", ts); in uploadFile() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PerformanceCollectorTest.java | 180 Bundle results = writer.timingResults; in testAddMeasurementLong() local 181 assertEquals(4, results.size()); in testAddMeasurementLong() 182 assertTrue(results.containsKey("testAddMeasurementLongZero")); in testAddMeasurementLong() 183 assertEquals(0, results.getLong("testAddMeasurementLongZero")); in testAddMeasurementLong() 184 assertTrue(results.containsKey("testAddMeasurementLongPos")); in testAddMeasurementLong() 185 assertEquals(348573, results.getLong("testAddMeasurementLongPos")); in testAddMeasurementLong() 186 assertTrue(results.containsKey("testAddMeasurementLongNeg")); in testAddMeasurementLong() 187 assertEquals(-19354, results.getLong("testAddMeasurementLongNeg")); in testAddMeasurementLong() 201 Bundle results = writer.timingResults; in testAddMeasurementFloat() local 202 assertEquals(4, results.size()); in testAddMeasurementFloat() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PerformanceCollector.java | 86 public void writeEndSnapshot(Bundle results); in writeEndSnapshot() argument 109 public void writeStopTiming(Bundle results); in writeStopTiming() argument 567 Bundle results = new Bundle(); in getAllocCounts() local 568 results.putLong(METRIC_KEY_GLOBAL_ALLOC_COUNT, Debug.getGlobalAllocCount()); in getAllocCounts() 569 results.putLong(METRIC_KEY_GLOBAL_ALLOC_SIZE, Debug.getGlobalAllocSize()); in getAllocCounts() 570 results.putLong(METRIC_KEY_GLOBAL_FREED_COUNT, Debug.getGlobalFreedCount()); in getAllocCounts() 571 results.putLong(METRIC_KEY_GLOBAL_FREED_SIZE, Debug.getGlobalFreedSize()); in getAllocCounts() 572 results.putLong(METRIC_KEY_GC_INVOCATION_COUNT, Debug.getGlobalGcInvocationCount()); in getAllocCounts() 573 return results; in getAllocCounts() 582 Bundle results = new Bundle(); in getBinderCounts() local [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | RttManager.java | 216 public ParcelableRttResults(RttResult[] results) { in ParcelableRttResults() argument 217 mResults = results; in ParcelableRttResults() 260 RttResult results[] = new RttResult[num]; 262 results[i] = new RttResult(); 263 results[i].bssid = in.readString(); 264 results[i].status = in.readInt(); 265 results[i].requestType = in.readInt(); 266 results[i].ts = in.readLong(); 267 results[i].rssi = in.readInt(); 268 results[i].rssi_spread = in.readInt(); [all …]
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneFilterTypeAdapter.java | 173 FilterResults results = new FilterResults(); in performFiltering() local 180 results.values = null; in performFiltering() 181 results.count = 0; in performFiltering() 182 return results; in performFiltering() 253 results.values = filtered; in performFiltering() 254 results.count = filtered.size(); in performFiltering() 255 return results; in performFiltering() 401 results) { in publishResults() argument 402 if (results.values == null || results.count == 0) { in publishResults() 413 Log.d(TAG, "publishResults: " + results.count + " of null [" + constraint); in publishResults() [all …]
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | RemoteInput.java | 203 Bundle results) { in addResultsToIntent() argument 204 IMPL.addResultsToIntent(remoteInputs, intent, results); in addResultsToIntent() 212 Bundle results); in addResultsToIntent() argument 223 public void addResultsToIntent(RemoteInput[] remoteInputs, Intent intent, Bundle results) { in addResultsToIntent() argument 235 public void addResultsToIntent(RemoteInput[] remoteInputs, Intent intent, Bundle results) { in addResultsToIntent() argument 236 RemoteInputCompatJellybean.addResultsToIntent(remoteInputs, intent, results); in addResultsToIntent() 247 public void addResultsToIntent(RemoteInput[] remoteInputs, Intent intent, Bundle results) { in addResultsToIntent() argument 248 RemoteInputCompatApi20.addResultsToIntent(remoteInputs, intent, results); in addResultsToIntent()
|
/frameworks/opt/net/wifi/service/tools/halutil/ |
D | halutil.cpp | 430 static int scanOnce(wifi_band band, wifi_scan_result *results, int num_results) { in scanOnce() argument 432 saved_scan_results = results; in scanOnce() 497 wifi_scan_result results[256]; in retrieveScanResults() local 498 memset(results, 0, sizeof(wifi_scan_result) * 256); in retrieveScanResults() 501 int result = wifi_get_cached_gscan_results(wlan0Handle, 1, num_results, results, &num_results); in retrieveScanResults() 511 printScanResult(results[i]); in retrieveScanResults() 530 static void sortScanResultsByRssi(wifi_scan_result *results, int num_results) { in sortScanResultsByRssi() argument 531 qsort(results, num_results, sizeof(wifi_scan_result), &compareScanResultsByRssi); in sortScanResultsByRssi() 534 static int removeDuplicateScanResults(wifi_scan_result *results, int num) { in removeDuplicateScanResults() argument 543 if (memcmp(results[i].bssid, results[j].bssid, sizeof(mac_addr)) == 0) { in removeDuplicateScanResults() [all …]
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestRunner.java | 83 Bundle results = new Bundle(); in run() 84 results.putString("shortMsg", ex.getClass().getName()); in run() 85 results.putString("longMsg", ex.getMessage()); in run() 86 mWatcher.instrumentationFinished(null, 0, results); in run() 186 public void instrumentationStatus(ComponentName name, int resultCode, Bundle results) { in instrumentationStatus() argument 190 if (!mRawMode && results != null) { in instrumentationStatus() 191 pretty = results.getString(Instrumentation.REPORT_KEY_STREAMRESULT); in instrumentationStatus() 196 if (results != null) { in instrumentationStatus() 197 for (String key : results.keySet()) { in instrumentationStatus() 199 + results.get(key)); in instrumentationStatus() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | TotalCaptureResult.java | 60 public TotalCaptureResult(CameraMetadataNative results, CaptureRequest parent, in TotalCaptureResult() argument 62 super(results, parent, extras); in TotalCaptureResult() 77 public TotalCaptureResult(CameraMetadataNative results, int sequenceId) { in TotalCaptureResult() argument 78 super(results, sequenceId); in TotalCaptureResult()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardEntryCommitter.java | 83 final ContentProviderResult[] results = mContentResolver.applyBatch( in pushIntoContentResolver() local 89 return ((results == null || results.length == 0 || results[0] == null) in pushIntoContentResolver() 90 ? null : results[0].uri); in pushIntoContentResolver()
|
/frameworks/base/location/java/android/location/ |
D | Geocoder.java | 132 List<Address> results = new ArrayList<Address>(); in getFromLocation() local 134 mParams, results); in getFromLocation() 138 return results; in getFromLocation() 174 List<Address> results = new ArrayList<Address>(); in getFromLocationName() local 176 0, 0, 0, 0, maxResults, mParams, results); in getFromLocationName() 180 return results; in getFromLocationName()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiScanningServiceImpl.java | 266 public void onHotlistApFound(ScanResult[] results) { in onHotlistApFound() argument 268 sendMessage(CMD_HOTLIST_AP_FOUND, 0, 0, results); in onHotlistApFound() 272 public void onChangesFound(ScanResult[] results) { in onChangesFound() argument 274 sendMessage(CMD_WIFI_CHANGE_DETECTED, 0, 0, results); in onChangesFound() 382 ScanResult[] results = WifiNative.getScanResults(); in processMessage() local 385 ci2.reportScanResults(results); in processMessage() 400 ScanResult[] results = (ScanResult[])msg.obj; in processMessage() local 401 if (DBG) Log.d(TAG, "Found " + results.length + " results"); in processMessage() 404 ci2.reportHotlistResults(results); in processMessage() 409 ScanResult[] results = (ScanResult[])msg.obj; in processMessage() local [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLocaleTest.java | 83 String[] results = query("SELECT data FROM test"); in testLocaleInsertOrder() local 84 MoreAsserts.assertEquals(STRINGS, results); in testLocaleInsertOrder() 92 String[] results; in testLocaleenUS() local 93 results = query("SELECT data FROM test ORDER BY data COLLATE LOCALIZED ASC"); in testLocaleenUS() 98 MoreAsserts.assertEquals(results, new String[] { in testLocaleenUS()
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 98 int[] results = new int[20]; in isETC1Supported() local 99 GLES10.glGetIntegerv(GLES10.GL_NUM_COMPRESSED_TEXTURE_FORMATS, results, 0); in isETC1Supported() 100 int numFormats = results[0]; in isETC1Supported() 101 if (numFormats > results.length) { in isETC1Supported() 102 results = new int[numFormats]; in isETC1Supported() 104 GLES10.glGetIntegerv(GLES10.GL_COMPRESSED_TEXTURE_FORMATS, results, 0); in isETC1Supported() 106 if (results[i] == ETC1.ETC1_RGB8_OES) { in isETC1Supported()
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
D | MemoryUsageTest.java | 92 Bundle results = new Bundle(); in testMemory() local 98 measureMemory(app, processName, results); in testMemory() 104 measureMemory(app, app, results); in testMemory() 107 instrumentation.sendStatus(0, results); in testMemory() 211 Bundle results) { in measureMemory() argument 220 reportError(appName, processName, results); in measureMemory() 225 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory() 232 results.putInt(mNameToResultKey.get(appName), average(pssData)); in measureMemory() 263 private void reportError(String appName, String processName, Bundle results) { in reportError() argument 273 results.putString(mNameToResultKey.get(appName), crash.shortMsg); in reportError() [all …]
|
/frameworks/ex/common/java/com/android/common/contacts/ |
D | BaseEmailAddressAdapter.java | 173 FilterResults results = new FilterResults(); in performFiltering() local 186 results.count = cursor.getCount(); in performFiltering() 188 results.values = new Cursor[] { directoryCursor, cursor }; in performFiltering() 189 return results; in performFiltering() 193 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 194 if (results.values != null) { in publishResults() 195 Cursor[] cursors = (Cursor[]) results.values; in publishResults() 198 results.count = getCount(); in publishResults() 230 FilterResults results = new FilterResults(); in performFiltering() local 240 results.values = cursor; in performFiltering() [all …]
|
/frameworks/opt/net/wifi/service/jni/ |
D | com_android_server_wifi_WifiNative.cpp | 420 wifi_scan_result results[256]; in android_net_wifi_getScanResults() local 426 int result = wifi_get_cached_gscan_results(handle, 1, num_results, results, &num_results); in android_net_wifi_getScanResults() 448 setStringField(env, scanResult, "SSID", results[i].ssid); in android_net_wifi_getScanResults() 451 sprintf(bssid, "%02x:%02x:%02x:%02x:%02x:%02x", results[i].bssid[0], in android_net_wifi_getScanResults() 452 results[i].bssid[1], results[i].bssid[2], results[i].bssid[3], in android_net_wifi_getScanResults() 453 results[i].bssid[4], results[i].bssid[5]); in android_net_wifi_getScanResults() 457 setIntField(env, scanResult, "level", results[i].rssi); in android_net_wifi_getScanResults() 458 setIntField(env, scanResult, "frequency", results[i].channel); in android_net_wifi_getScanResults() 459 setLongField(env, scanResult, "timestamp", results[i].ts); in android_net_wifi_getScanResults() 553 unsigned num_results, wifi_scan_result *results) { in onHotlistApFound() argument [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | BaseRecipientAdapter.java | 213 final FilterResults results = new FilterResults(); in performFiltering() local 220 return results; in performFiltering() 256 results.values = new DefaultFilterResult( in performFiltering() 259 results.count = 1; in performFiltering() 269 return results; in performFiltering() 273 protected void publishResults(final CharSequence constraint, FilterResults results) { in publishResults() argument 278 if (results.values != null) { in publishResults() 279 DefaultFilterResult defaultFilterResult = (DefaultFilterResult) results.values; in publishResults() 362 final FilterResults results = new FilterResults(); in performFiltering() local 363 results.values = null; in performFiltering() [all …]
|
/frameworks/support/v4/api21/android/support/v4/provider/ |
D | DocumentsContractApi21.java | 50 final ArrayList<Uri> results = new ArrayList<Uri>(); in listFiles() local 60 results.add(documentUri); in listFiles() 68 return results.toArray(new Uri[results.size()]); in listFiles()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | PersistentDataStore.java | 116 WifiDisplay[] results = displays; in applyWifiDisplayAliases() local 117 if (results != null) { in applyWifiDisplayAliases() 122 if (results == displays) { in applyWifiDisplayAliases() 123 results = new WifiDisplay[count]; in applyWifiDisplayAliases() 124 System.arraycopy(displays, 0, results, 0, count); in applyWifiDisplayAliases() 126 results[i] = result; in applyWifiDisplayAliases() 130 return results; in applyWifiDisplayAliases()
|