Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 45) sorted by relevance

12

/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DUsbDevice.java75 (short) data.length, in controlTransfer()
103 int length = mUsb.libusb_get_string_descriptor_ascii(mHandle, mDescriptor[16], data, 64); in getSerialNumber() local
104 return length > 0 ? new String(data, 0, length) : null; in getSerialNumber()
DIUsbNative.java108 Pointer dev_handle, byte desc_index, byte[] data, int length); in libusb_get_string_descriptor_ascii() argument
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DAppStartupHelperTest.java123 assertEquals(1, appLaunchMetrics.get(coldLaunchMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
134 appLaunchMetrics.get(coldLaunchTransitionMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
143 appLaunchMetrics.get(coldLaunchProcessMetricKey).toString().split(",").length); in testSingleColdLaunchMetric()
172 assertEquals(2, appLaunchMetrics.get(coldLaunchMetricKey).toString().split(",").length); in testMultipleColdLaunchMetric()
184 appLaunchMetrics.get(coldLaunchProcessMetricKey).toString().split(",").length); in testMultipleColdLaunchMetric()
231 appLaunchMetrics.get(coldLaunchCalendarMetricKey).toString().split(",").length); in testDifferentAppColdLaunchMetric()
233 appLaunchMetrics.get(coldLaunchSettingsCountPkgKey).toString().split(",").length); in testDifferentAppColdLaunchMetric()
251 appLaunchMetrics.get(coldLaunchTransCalMetricKey).toString().split(",").length); in testDifferentAppColdLaunchMetric()
253 appLaunchMetrics.get(coldLaunchTransSetMetricKey).toString().split(",").length); in testDifferentAppColdLaunchMetric()
268 appLaunchMetrics.get(coldLaunchProcessMetricKey).toString().split(",").length); in testDifferentAppColdLaunchMetric()
[all …]
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java69 int length; in executeCommandBlocking() local
71 while ((length = is.read(buf)) >= 0) { in executeCommandBlocking()
72 out.write(buf, 0, length); in executeCommandBlocking()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DOpenApps.java53 if (names.length != pkgs.length) { in testOpen()
57 for (int i = 0; i < names.length; i++) { in testOpen()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSquare.java84 squareCoords.length * 4); in Square()
93 drawOrder.length * 2); in Square()
150 GLES20.GL_TRIANGLES, drawOrder.length, in draw()
DTriangle.java65 private final int vertexCount = triangleCoords.length / COORDS_PER_VERTEX;
79 triangleCoords.length * 4); in Triangle()
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DCrashCheckBase.java92 for (int i = 0; i < maxLines && i < lines.length; i++) { in truncate()
96 if (lines.length > maxLines) { in truncate()
98 ret.append(lines.length - maxLines); in truncate()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java181 DownloadAppTestHelper.FILE_TYPES[random.nextInt(FILE_TYPES.length)]); in populateContentInDLApp()
193 DownloadAppTestHelper.FILE_TYPES[random.nextInt(FILE_TYPES.length)], in populateContentInDLApp()
207 boolean isMediaScannerScannable, String mimeType, String path, long length, in addToDownloadContentDB() argument
230 values.put("total_bytes", length); in addToDownloadContentDB()
254 if (removeIds.length > 0) { in removeContentInDLApp()
255 Assert.assertEquals(removeIds.length, getDLManager().remove(removeIds)); in removeContentInDLApp()
293 public static String randomWord(int length) { in randomWord() argument
296 for (int j = 0; j < length; j++) { in randomWord()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java149 for (int i = 0; i < traceCategoriesSplit.length; i++) { in setUp()
178 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testColdLaunchFromLauncher()
230 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testHotLaunchFromLauncher()
276 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testAppToRecents()
320 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testHotLaunchFromRecents()
383 if (null != mPreAppsListArray && mPreAppsListArray.length > 0) { in cleanTestApps()
399 for (int preAppCount = 0; preAppCount < mPreAppsListArray.length; preAppCount++) { in populateRecentsList()
568 int length = appNames == null ? 0 : appNames.length; in closeApps() local
569 for (int i = 0; i < length; i++) { in closeApps()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DJUnitXmlRunner.java48 if (outputFile != null && outputFile.length() > 0) { in getRunListener()
63 if (outputFileStr != null && outputFileStr.length() > 0) { in getAtestRunListener()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DBinderCollectionHelper.java100 file.getAbsolutePath(), file.length())); in getMetrics()
149 line.substring(line.indexOf(COUNT_PREFIX) + COUNT_PREFIX.length())); in getNextCounter()
164 + TRACE_FOR_PROCESS_PREFIX.length()); in parseMetrics()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java125 } else if (mProcessNames.length > 0) { in getMetrics()
127 } else if (mProcessNames.length == 0) { in getMetrics()
153 mMemoryMap.put(PROCESS_COUNT, Integer.toString(mProcessNames.length - 1)); in getMetrics()
310 if (metricDetailsSplit.length == 2) { in setMetricNameIndex()
340 String processName = processSplit[processSplit.length - 1].trim(); in getAllProcessNames()
DProcessShowmapHelper.java98 for (int i = 0; i < mTestEndMetrics.length; i++) { in getMetrics()
143 ShowmapMetrics[] metrics = new ShowmapMetrics[processNames.length]; in sampleMemoryOfProcesses()
144 for (int i = 0; i < processNames.length; i++) { in sampleMemoryOfProcesses()
DDumpsysMeminfoHelper.java134 if (tokens.length < 2) { in parseMetrics()
141 if (tokens.length < 11) { in parseMetrics()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DQuickstepPressureRule.java33 if (packages.length == 0) { in QuickstepPressureRule()
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/
DAccountHelper.java89 Assert.assertTrue("Device doesn't have any account registered", accounts.length >= 1); in getRegisteredGoogleAccountOnDevice()
90 for (int i = 0; i < accounts.length; ++i) { in getRegisteredGoogleAccountOnDevice()
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java282 for (int count = 0; count < customList.length; count++) { in getActivityList()
341 int length; in writeDataToByteStream() local
342 while ((length = inputStream.read(buffer)) >= 0) { in writeDataToByteStream()
343 outputStream.write(buffer, 0, length); in writeDataToByteStream()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DAssertions.java151 negatedAssertionName = this.assertionName.substring(NEGATION_PREFIX.length() + 1); in negate()
187 for (int i = 0; i < timeUnits.length; i++) { in prettyTimestamp()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java213 Assert.assertTrue("Device doesn't have any account registered", accounts.length >= 1); in getRegisteredEmailAccount()
214 for(int i =0; i < accounts.length; ++i) { in getRegisteredEmailAccount()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java371 Point[] coordinateArray = new Point[unlockPattern.length()]; in unlockDeviceWithPattern()
372 for (int i=0; i < unlockPattern.length(); i++) { in unlockDeviceWithPattern()
390 Point[] coordinateArray = new Point[unlockPattern.length()]; in enterPatternLockOnceForSettingLock()
391 for (int i=0; i < unlockPattern.length(); i++) { in enterPatternLockOnceForSettingLock()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseMetricListener.java282 int length; in executeCommandBlocking() local
283 while ((length = is.read(buf)) >= 0) { in executeCommandBlocking()
284 out.write(buf, 0, length); in executeCommandBlocking()
DIncidentReportListener.java89 } if (output.length == 0) { in onTestRunEnd()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DLayersTraceMonitorTest.java84 assertThat(trace.length).isGreaterThan(0); in captureLayersTrace()
DWindowManagerTraceMonitorTest.java84 assertThat(trace.length).isGreaterThan(0); in captureWindowTrace()

12