Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/widget/
DCursorFilter.java51 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()
DFilter.java161 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
DSimpleAdapter.java327 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()
DArrayAdapter.java452 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/
DCursorFilter.java52 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/
DBandwidthTest.java130 Bundle results = new Bundle(); in downloadFile() local
131 results.putString("device_id", mDeviceId); in downloadFile()
132 results.putString("timestamp", ts); in downloadFile()
133 results.putInt("size", FILE_SIZE); in downloadFile()
134 AddStatsToResults(PROF_LABEL, prof_stats, results); in downloadFile()
135 AddStatsToResults(PROC_LABEL, proc_stats, results); in downloadFile()
136 getInstrumentation().sendStatus(INSTRUMENTATION_IN_PROGRESS, results); in downloadFile()
184 Bundle results = new Bundle(); in uploadFile() local
185 results.putString("device_id", mDeviceId); in uploadFile()
186 results.putString("timestamp", ts); in uploadFile()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java180 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/
DPerformanceCollector.java86 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/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DManagerService.java171 AbstractResult results = in onActualResultsObtained() local
174 Log.i(LOG_TAG, "onActualResultObtained: " + results.getRelativePath()); in onActualResultsObtained()
175 handleResults(results); in onActualResultsObtained()
208 private void handleResults(AbstractResult results) { in handleResults() argument
209 String relativePath = results.getRelativePath(); in handleResults()
210 results.setExpectedTextResult(getExpectedTextResult(relativePath)); in handleResults()
211 results.setExpectedTextResultPath(getExpectedTextResultPath(relativePath)); in handleResults()
212 results.setExpectedImageResult(getExpectedImageResult(relativePath)); in handleResults()
213 results.setExpectedImageResultPath(getExpectedImageResultPath(relativePath)); in handleResults()
215 dumpActualTextResult(results); in handleResults()
[all …]
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/testrunner/
DUiAutomatorTestRunner.java75 Bundle results = new Bundle(); in run()
76 results.putString("shortMsg", ex.getClass().getName()); in run()
77 results.putString("longMsg", ex.getMessage()); in run()
78 mWatcher.instrumentationFinished(null, 0, results); in run()
166 public void instrumentationStatus(ComponentName name, int resultCode, Bundle results) { in instrumentationStatus() argument
170 if (!mRawMode && results != null) { in instrumentationStatus()
171 pretty = results.getString(Instrumentation.REPORT_KEY_STREAMRESULT); in instrumentationStatus()
176 if (results != null) { in instrumentationStatus()
177 for (String key : results.keySet()) { in instrumentationStatus()
179 + results.get(key)); in instrumentationStatus()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryCommitter.java83 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/
DGeocoder.java132 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()
DLocation.java285 double lat2, double lon2, float[] results) { in computeDistanceAndBearing() argument
370 results[0] = distance; in computeDistanceAndBearing()
371 if (results.length > 1) { in computeDistanceAndBearing()
375 results[1] = initialBearing; in computeDistanceAndBearing()
376 if (results.length > 2) { in computeDistanceAndBearing()
380 results[2] = finalBearing; in computeDistanceAndBearing()
404 double endLatitude, double endLongitude, float[] results) { in distanceBetween() argument
405 if (results == null || results.length < 1) { in distanceBetween()
409 endLatitude, endLongitude, results); in distanceBetween()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java76 Bundle results = new Bundle(); in testMemory() local
81 measureMemory(app, processName, results); in testMemory()
88 instrumentation.sendStatus(0, results); in testMemory()
169 Bundle results) { in measureMemory() argument
178 reportError(appName, processName, results); in measureMemory()
183 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory()
190 results.putInt(mNameToResultKey.get(appName), average(pssData)); in measureMemory()
221 private void reportError(String appName, String processName, Bundle results) { in reportError() argument
231 results.putString(mNameToResultKey.get(appName), crash.shortMsg); in reportError()
236 results.putString(mNameToResultKey.get(appName), in reportError()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java69 Bundle results = new Bundle(); in testMeasureStartUpTime() local
72 startApp(app, results); in testMeasureStartUpTime()
81 instrumentation.sendStatus(0, results); in testMeasureStartUpTime()
128 private void startApp(String appName, Bundle results) in startApp() argument
148 reportError(appName, mNameToProcess.get(appName), results); in startApp()
151 results.putString(mNameToResultKey.get(appName), String.valueOf(result.thisTime)); in startApp()
179 private void reportError(String appName, String processName, Bundle results) { in reportError() argument
189 results.putString(mNameToResultKey.get(appName), crash.shortMsg); in reportError()
194 results.putString(mNameToResultKey.get(appName), in reportError()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLocaleTest.java83 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/
DETC1Util.java98 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/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java173 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/base/services/java/com/android/server/display/
DPersistentDataStore.java115 WifiDisplay[] results = displays; in applyWifiDisplayAliases() local
116 if (results != null) { in applyWifiDisplayAliases()
121 if (results == displays) { in applyWifiDisplayAliases()
122 results = new WifiDisplay[count]; in applyWifiDisplayAliases()
123 System.arraycopy(displays, 0, results, 0, count); in applyWifiDisplayAliases()
125 results[i] = result; in applyWifiDisplayAliases()
129 return results; in applyWifiDisplayAliases()
/frameworks/base/core/java/android/app/
DLauncherActivity.java187 FilterResults results = new FilterResults(); in performFiltering() local
198 results.values = list; in performFiltering()
199 results.count = list.size(); in performFiltering()
225 results.values = newValues; in performFiltering()
226 results.count = newValues.size(); in performFiltering()
229 return results; in performFiltering()
233 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument
235 mActivitiesList = (List<ListItem>) results.values; in publishResults()
236 if (results.count > 0) { in publishResults()
446 protected void onSortResultList(List<ResolveInfo> results) { in onSortResultList() argument
[all …]
DInstrumentation.java162 public void sendStatus(int resultCode, Bundle results) { in sendStatus() argument
165 mWatcher.instrumentationStatus(mComponent, resultCode, results); in sendStatus()
182 public void finish(int resultCode, Bundle results) { in finish() argument
187 results.putAll(mPerfMetrics); in finish()
189 mThread.finishInstrumentation(resultCode, results); in finish()
1272 private void addValue(String key, int value, Bundle results) { in addValue() argument
1273 if (results.containsKey(key)) { in addValue()
1274 List<Integer> list = results.getIntegerArrayList(key); in addValue()
1281 results.putIntegerArrayList(key, list); in addValue()
1289 Bundle results = new Bundle(); in getAllocCounts() local
[all …]
DIInstrumentationWatcher.aidl27 in Bundle results); in instrumentationStatus() argument
29 in Bundle results); in instrumentationFinished() argument
/frameworks/ex/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java202 final FilterResults results = new FilterResults(); in performFiltering() local
209 return results; in performFiltering()
259 results.values = new DefaultFilterResult( in performFiltering()
262 results.count = 1; in performFiltering()
272 return results; in performFiltering()
276 protected void publishResults(final CharSequence constraint, FilterResults results) { in publishResults() argument
284 if (results.values != null) { in publishResults()
285 DefaultFilterResult defaultFilterResult = (DefaultFilterResult) results.values; in publishResults()
347 final FilterResults results = new FilterResults(); in performFiltering() local
348 results.values = null; in performFiltering()
[all …]
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java549 public boolean getKeyData(int keyCode, KeyData results) { in getKeyData() argument
550 if (results.meta.length < KeyData.META_LENGTH) { in getKeyData()
560 results.displayLabel = displayLabel; in getKeyData()
561 results.number = nativeGetNumber(mPtr, keyCode); in getKeyData()
562 results.meta[0] = nativeGetCharacter(mPtr, keyCode, 0); in getKeyData()
563 results.meta[1] = nativeGetCharacter(mPtr, keyCode, KeyEvent.META_SHIFT_ON); in getKeyData()
564 results.meta[2] = nativeGetCharacter(mPtr, keyCode, KeyEvent.META_ALT_ON); in getKeyData()
565 results.meta[3] = nativeGetCharacter(mPtr, keyCode, in getKeyData()
/frameworks/base/core/java/android/speech/
DIRecognitionListener.aidl71 void onResults(in Bundle results); in onResults() argument
78 void onPartialResults(in Bundle results); in onPartialResults() argument

12345678