/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/ |
D | UsbDevice.java | 75 (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()
|
D | IUsbNative.java | 108 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/ |
D | AppStartupHelperTest.java | 123 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/ |
D | MetricUtility.java | 69 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/ |
D | OpenApps.java | 53 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/ |
D | Square.java | 84 squareCoords.length * 4); in Square() 93 drawOrder.length * 2); in Square() 150 GLES20.GL_TRIANGLES, drawOrder.length, in draw()
|
D | Triangle.java | 65 private final int vertexCount = triangleCoords.length / COORDS_PER_VERTEX; 79 triangleCoords.length * 4); in Triangle()
|
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/ |
D | CrashCheckBase.java | 92 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/ |
D | DownloadAppTestHelper.java | 181 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/ |
D | AppTransitionTests.java | 149 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/ |
D | JUnitXmlRunner.java | 48 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/ |
D | BinderCollectionHelper.java | 100 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/ |
D | ShowmapSnapshotHelper.java | 125 } 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()
|
D | ProcessShowmapHelper.java | 98 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()
|
D | DumpsysMeminfoHelper.java | 134 if (tokens.length < 2) { in parseMetrics() 141 if (tokens.length < 11) { in parseMetrics()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | QuickstepPressureRule.java | 33 if (packages.length == 0) { in QuickstepPressureRule()
|
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/ |
D | AccountHelper.java | 89 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/ |
D | AppLaunchTests.java | 282 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/ |
D | Assertions.java | 151 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/ |
D | AuptTestCase.java | 213 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/ |
D | LockscreenHelper.java | 371 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/ |
D | BaseMetricListener.java | 282 int length; in executeCommandBlocking() local 283 while ((length = is.read(buf)) >= 0) { in executeCommandBlocking() 284 out.write(buf, 0, length); in executeCommandBlocking()
|
D | IncidentReportListener.java | 89 } if (output.length == 0) { in onTestRunEnd()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/ |
D | LayersTraceMonitorTest.java | 84 assertThat(trace.length).isGreaterThan(0); in captureLayersTrace()
|
D | WindowManagerTraceMonitorTest.java | 84 assertThat(trace.length).isGreaterThan(0); in captureWindowTrace()
|