/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/ |
D | LyricCpuUtilizationHelperTest.java | 62 assertThat(metrics.get(String.format(METRIC_KEY, node, "number_of_invocations"))) in testProcessOutput() 65 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput() 68 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput() 71 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_max"))) in testProcessOutput() 74 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_min"))) in testProcessOutput() 77 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time"))) in testProcessOutput() 80 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_max"))) in testProcessOutput() 83 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_min"))) in testProcessOutput() 86 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time"))) in testProcessOutput() 89 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time_max"))) in testProcessOutput() [all …]
|
/platform_testing/libraries/media-helper/src/android/test/mediahelper/ |
D | MediaValidationHelper.java | 58 Log.d(TAG, String.format("Number of tracks: %d", numTracks)); in validateVideo() 62 MediaFormat format = extractor.getTrackFormat(i); in validateVideo() local 63 String mime = format.getString(MediaFormat.KEY_MIME); in validateVideo() 64 Log.d(TAG, String.format("Mime type: %s; format: %s", mime, format.toString())); in validateVideo() 67 validateVideoTrackMediaFormat(format, expHeight, expWidth, minDurationMillis); in validateVideo() 88 MediaFormat format, int expHeight, int expWidth, long minDurationMillis) { in validateVideoTrackMediaFormat() argument 90 TimeUnit.MICROSECONDS.toMillis(format.getLong(MediaFormat.KEY_DURATION)); in validateVideoTrackMediaFormat() 91 int width = format.getInteger(MediaFormat.KEY_WIDTH); in validateVideoTrackMediaFormat() 92 int height = format.getInteger(MediaFormat.KEY_HEIGHT); in validateVideoTrackMediaFormat() 95 String.format( in validateVideoTrackMediaFormat() [all …]
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 110 mockResetCommand("pkg1", String.format(GFXINFO_RESET_FORMAT, "pkg1")); in testCollect_valuesMatch() 111 mockGetCommand("pkg1", String.format(GFXINFO_GET_FORMAT, "pkg1")); in testCollect_valuesMatch() 154 mockResetCommand("pkg1", String.format(GFXINFO_RESET_FORMAT, "pkg1")); in testCollect_singlePackage() 155 mockGetCommand("pkg1", String.format(GFXINFO_GET_FORMAT, "pkg1")); in testCollect_singlePackage() 171 mockResetCommand("pkg1", String.format(GFXINFO_RESET_FORMAT, "pkg1")); in testCollect_multiPackage() 172 mockGetCommand("pkg1", String.format(GFXINFO_GET_FORMAT, "pkg1")); in testCollect_multiPackage() 173 mockResetCommand("pkg2", String.format(GFXINFO_RESET_FORMAT, "pkg2")); in testCollect_multiPackage() 174 mockGetCommand("pkg2", String.format(GFXINFO_GET_FORMAT, "pkg2")); in testCollect_multiPackage() 175 mockResetCommand("pkg3", String.format(GFXINFO_RESET_FORMAT, "pkg3")); in testCollect_multiPackage() 176 mockGetCommand("pkg3", String.format(GFXINFO_GET_FORMAT, "pkg3")); in testCollect_multiPackage() [all …]
|
/platform_testing/ |
D | PREUPLOAD.cfg | 5 google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format 6 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format…
|
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/ |
D | AudioCaptureSession.java | 52 String.format( in AudioCaptureSession() 70 String.format( in create() 88 String.format( in start() 93 LOGGER.info(String.format("id=%d - Capture Session Started", mSessionId)); in start() 103 String.format( in stop() 109 LOGGER.info(String.format("id=%d - Capture Session Stopped", mSessionId)); in stop() 118 String.format( in awaitStop() 126 String.format( in awaitStop() 135 String.format( in awaitStop()
|
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/ |
D | LyricCpuUtilizationHelper.java | 47 String.format( 105 String.format(METRIC_KEY, node, "number_of_invocations"), in processMatch() 107 metrics.put(String.format(METRIC_KEY, node, "system_time"), parseTime(matcher.group(3))); in processMatch() 109 String.format(METRIC_KEY, node, "system_time_max"), parseTime(matcher.group(4))); in processMatch() 111 String.format(METRIC_KEY, node, "system_time_min"), parseTime(matcher.group(5))); in processMatch() 112 metrics.put(String.format(METRIC_KEY, node, "user_time"), parseTime(matcher.group(6))); in processMatch() 113 metrics.put(String.format(METRIC_KEY, node, "user_time_max"), parseTime(matcher.group(7))); in processMatch() 114 metrics.put(String.format(METRIC_KEY, node, "user_time_min"), parseTime(matcher.group(8))); in processMatch() 115 metrics.put(String.format(METRIC_KEY, node, "wall_time"), parseTime(matcher.group(9))); in processMatch() 116 metrics.put(String.format(METRIC_KEY, node, "wall_time_max"), parseTime(matcher.group(10))); in processMatch() [all …]
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | ShowmapSnapshotHelper.java | 84 Log.e(TAG, String.format("Invalid test setup")); in startCollecting() 89 String filePath = String.format("%s/showmap_snapshot%d.txt", mTestOutputDir, in startCollecting() 96 Log.e(TAG, String.format("Failed to delete result output file %s", filePath)); in startCollecting() 101 Log.e(TAG, String.format("Failed to create result output directory %s", in startCollecting() 112 String.format("Race with another user of result output file %s", filePath)); in startCollecting() 116 Log.e(TAG, String.format("Failed to create result output file %s", filePath), e); in startCollecting() 182 Log.e(TAG, String.format("Failed to write output file %s", mTestOutputFile), e); in getMetrics() 216 mUiDevice.executeShellCommand(String.format(DROP_CACHES_CMD, cacheOption)); in dropCache() 231 .executeShellCommand(String.format(PIDOF_CMD, processName)); in getPids() 243 throw new RuntimeException(String.format("Unable to get pid of %s ", processName), e); in getPids() [all …]
|
D | PinnerHelper.java | 60 Log.e(TAG, String.format("Invalid test setup")); in startCollecting() 65 String filePath = String.format("%s/pinner_snapshot%d.txt", mTestOutputDir, in startCollecting() 72 Log.e(TAG, String.format("Result file %s already exists and cannot be deleted", in startCollecting() 78 Log.e(TAG, String.format("Failed to create result output directory %s", in startCollecting() 89 String.format("Race with another user of result output file %s", filePath)); in startCollecting() 93 Log.e(TAG, String.format("Failed to create result output file %s", filePath), e); in startCollecting() 122 Log.e(TAG, String.format("Failed to write output file %s", mTestOutputFile), e); in getMetrics() 152 throw new RuntimeException(String.format("Unable to write file %s ", fileName), e); in storeToFile() 188 mPinnerMap.put(String.format("%s_%s", headerName, PINNER_FILES_COUNT_SUFFIX), in parseAndUpdatePinnerInfo() 202 String.format("%s_%s_bytes", headerName, pinnerDetails.get(0).trim()), in parseAndUpdatePinnerInfo() [all …]
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | CompilationFilterRule.java | 72 String.format( in finished() 86 String response = executeShellCommand(String.format(DUMP_PROFILE_CMD, app)); in finished() 89 String.format("Received dump profile cmd response: %s", response)); in finished() 91 String.format("Failed to dump profile %s.", app)); in finished() 97 String.format(COMPILE_CMD_FORMAT, filter, app)); in finished() 99 Log.d(LOG_TAG, String.format("Received compile cmd response: %s", response)); in finished() 100 throw new RuntimeException(String.format("Failed to compile %s.", app)); in finished() 102 Log.d(LOG_TAG, String.format("Test %s compiled successfully", testId)); in finished() 107 Log.d(LOG_TAG, String.format("Test %s already compiled", testId)); in finished()
|
D | IorapCompilationRule.java | 98 executeShellCommand(String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage() 99 Log.v(TAG, "Executed: " + String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage() 121 executeShellCommand(String.format("setprop iorapd.perfetto.enable %b", enable)); in toggleIorapStatus() 122 executeShellCommand(String.format("setprop iorapd.readahead.enable %b", enable)); in toggleIorapStatus() 123 executeShellCommand(String.format( in toggleIorapStatus() 125 executeShellCommand(String.format("dumpsys iorapd --refresh-properties")); in toggleIorapStatus() 155 executeShellCommand(String.format(IORAP_COMPILE_CMD, appPkgName)); in compileAppForIorap() 287 String.format( in logStatus()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | AppStartupHelperTest.java | 94 HelperTestUtility.clearApp(String.format(KILL_TEST_APP_CMD_TEMPLATE, CALCULATOR_PKG_NAME)); in setUp() 95 HelperTestUtility.clearApp(String.format(KILL_TEST_APP_CMD_TEMPLATE, CLOCK_PKG_NAME)); in setUp() 130 String coldLaunchMetricKey = String.format(COLD_LAUNCH_KEY_TEMPLATE, CALCULATOR_PKG_NAME); in testSingleColdLaunchMetric() 131 String coldLaunchCountPkgKey = String.format(COLD_LAUNCH_COUNT_PKG_KEY_TEMPLATE, in testSingleColdLaunchMetric() 140 String coldLaunchTransitionMetricKey = String.format( in testSingleColdLaunchMetric() 148 String coldLaunchProcessMetricKey = String.format(COLD_LAUNCH_PROCESS_FG_KEY_TEMPLATE, in testSingleColdLaunchMetric() 150 String coldLaunchProcessCountPkgKey = String.format(COLD_LAUNCH_COUNT_PKG_KEY_TEMPLATE, in testSingleColdLaunchMetric() 164 String sourceEventDelayMetricKey = String.format(SOURCE_EVENT_DELAY_MILLIS_KEY_TEMPLATE, in testSingleColdLaunchMetric() 183 HelperTestUtility.clearApp(String.format(KILL_TEST_APP_CMD_TEMPLATE, CALCULATOR_PKG_NAME)); in testMultipleColdLaunchMetric() 187 String coldLaunchMetricKey = String.format(COLD_LAUNCH_KEY_TEMPLATE, CALCULATOR_PKG_NAME); in testMultipleColdLaunchMetric() [all …]
|
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/ |
D | Buffer.kt | 19 class Buffer(width: Int, height: Int, val stride: Int, val format: Int) : Bounds(width, height) { constant 27 other.format == format in prettyPrint() 33 result = 31 * result + format in prettyPrint()
|
D | Color.kt | 34 val r = FloatFormatter.format(color.r) in prettyPrint() 35 val g = FloatFormatter.format(color.g) in prettyPrint() 36 val b = FloatFormatter.format(color.b) in prettyPrint() 37 val a = FloatFormatter.format(color.a) in prettyPrint()
|
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/ |
D | PerfettoHelper.java | 95 String output = mUIDevice.executeShellCommand(String.format(REMOVE_CMD, in startCollecting() 97 Log.i(LOG_TAG, String.format("Perfetto output file cleanup - %s", output)); in startCollecting() 99 String perfettoCmd = String.format(PERFETTO_START_CMD, in startCollecting() 109 Log.i(LOG_TAG, String.format("Perfetto start command output - %s", startOutput)); in startCollecting() 133 Log.i(LOG_TAG, String.format( in stopCollecting() 162 Log.i(LOG_TAG, String.format("Perfetto stop command output - %s", stopOutput)); in stopPerfetto() 186 Log.i(LOG_TAG, String.format("Perfetto process id - %s", perfettoProcId)); in isPerfettoRunning() 212 Log.e(LOG_TAG, String.format( in copyFileOutput() 221 String moveResult = mUIDevice.executeShellCommand(String.format( in copyFileOutput() 224 Log.e(LOG_TAG, String.format( in copyFileOutput()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | HelperManager.java | 84 String.format("Cannot pass in null instrumentation.")); in getInstance() 108 String.format("No file found at path: %s.", path)); in getInstance() 113 String.format("Cannot pass in null instrumentation.")); in getInstance() 165 String.format("Selecting implementation %s", matching.get(0).getClass().getName())); in get() 181 String.format("Selecting implementation %s", matching.get(0).getClass().getName())); in get() 220 Log.w(LOG_TAG, String.format("Class not found: %s", className)); in getAll() 234 String.format( in getAll() 242 String.format("Failed to access the constructor %s", className), in getAll() 247 wrapThrowable(String.format("Failed to instantiate %s", className), e)); in getAll() 252 String.format( in getAll() [all …]
|
/platform_testing/libraries/collectors-helper/simpleperf/src/com/android/helpers/ |
D | SimpleperfHelper.java | 64 Log.i(LOG_TAG, String.format("Starting simpleperf")); in startCollecting() 69 String.format( in startCollecting() 74 Log.i(LOG_TAG, String.format("Start command: %s", startCommand)); in startCollecting() 81 String.format("Simpleperf start command output - %s", startOutput)); in startCollecting() 143 Log.i(LOG_TAG, String.format("Simpleperf stop command ran")); in stopSimpleperf() 166 Log.i(LOG_TAG, String.format("Simpleperf process id - %s", simpleperfProcId)); in isSimpleperfRunning() 193 String.format( in copyFileOutput() 204 String.format(MOVE_CMD, SIMPLEPERF_TMP_FILE_PATH, destinationFile)); in copyFileOutput() 208 String.format( in copyFileOutput()
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | LauncherJankTests.java | 97 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepareOpenAllAppsContainer() 103 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestOpenAllAppsContainer() 105 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestOpenAllAppsContainer() 123 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in openAllApps() 128 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestAllAppsContainerSwipe() 130 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestAllAppsContainerSwipe() 149 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in makeHomeScrollable() 154 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestHomeScreenSwipe() 156 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestHomeScreenSwipe() 175 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in openAllWidgets() [all …]
|
D | SystemUiJankTests.java | 171 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in populateRecentApps() 176 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in forceStopPackages() 180 TimeResultLogger.writeResultToFile(String.format("%s-%s", in forceStopPackages() 401 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in beforeNotificationListPull() 406 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterNotificationListPull() 409 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterNotificationListPull() 431 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in beforeNotificationListScroll() 438 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterNotificationListScroll() 444 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterNotificationListScroll() 465 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in beforeNotificationListPull_manyNotifications() [all …]
|
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/ |
D | JavaAudioSystem.java | 60 public TargetDataLine getTargetDataLine(AudioFormat format) throws LineUnavailableException { in getTargetDataLine() argument 61 return AudioSystem.getTargetDataLine(format); in getTargetDataLine() 65 public TargetDataLine getTargetDataLine(AudioFormat format, Mixer.Info mixerinfo) in getTargetDataLine() argument 67 return AudioSystem.getTargetDataLine(format, mixerinfo); in getTargetDataLine()
|
/platform_testing/libraries/health/options/src/android/platform/test/option/ |
D | TestOption.java | 65 String.format( in apply() 75 String.format( in apply() 107 String.format("Default value for option %s cannot be null.", this)); 121 String.format( 142 return String.format("%s \"%s\"", this.getClass().getSimpleName(), mOptionName);
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | DumpsysServiceHelperTest.java | 85 String key = String.format(DUMPSYS_SERVICE_KEY, TEST_SERVICE_NAME); in testCollectDumpsys_oneService() 89 String.format(DUMPSYS_OUTPUT_FILENAME, TEST_SERVICE_NAME)) in testCollectDumpsys_oneService() 102 String key1 = String.format(DUMPSYS_SERVICE_KEY, TEST_SERVICE_NAME); in testCollectDumpsys_multipleServices() 106 String.format(DUMPSYS_OUTPUT_FILENAME, TEST_SERVICE_NAME)) in testCollectDumpsys_multipleServices() 109 String key2 = String.format(DUMPSYS_SERVICE_KEY, TEST_SERVICE_NAME_2); in testCollectDumpsys_multipleServices() 113 String.format(DUMPSYS_OUTPUT_FILENAME, TEST_SERVICE_NAME_2)) in testCollectDumpsys_multipleServices()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | ScreenRecordCollector.java | 96 Log.d(getTag(), String.format("Adding video part: #%s", recording.getName())); in onTestEnd() 98 String.format("%s_%s", getTag(), recording.getName()), recording); in onTestEnd() 114 String.format("%s.%s", description.getClassName(), description.getMethodName()); in getOutputFile() 118 String.format( in getOutputFile() 165 String.format("Recording screen to %s", output.getAbsolutePath())); in run() 172 String.format("screenrecord %s", output.getAbsolutePath())); in run() 191 getDevice().executeShellCommand(String.format("kill -2 %s", pid)); in cancel() 194 String.format("Sent SIGINT 2 to screenrecord process (%s)", pid)); in cancel()
|
D | ScreenshotOnFailureCollector.java | 85 Log.e(getTag(), String.format("Invalid screenshot quality: %d.", quality)); in onTestRunStart() 114 String.format("%s.%s", description.getClassName(), description.getMethodName()); in onTestFail() 122 final String pngFileName = String.format("%s-screenshot-on-failure.png", fileName); in onTestFail() 125 testData.addFileMetric(String.format("%s_%s", getTag(), img.getName()), img); in onTestFail() 132 String.format("%s_%s", getTag(), uixFile.getName()), uixFile); in onTestFail() 142 Log.w(getTag(), String.format("File exists: %s", img.getAbsolutePath())); in takeScreenshot() 170 File uixFile = new File(mDestDir, String.format("%s.uix", fileName)); in collectUiXml() 172 Log.w(getTag(), String.format("File exists: %s.", uixFile.getAbsolutePath())); in collectUiXml()
|
/platform_testing/tests/perf/PerformanceLaunch/ |
D | gen_locales.py | 28 os.mkdir("res/values-{0}".format(locale)) 32 with open("res/values-{0}/strings.xml".format(locale), "w") as f: 33 f.write(template.format(locale))
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | LogGenerator.java | 87 Log.w(TAG, String.format("Failed to take bugreport: %s", e.getMessage())); in save() 99 Log.w(TAG, String.format("Failed to take bugreport: %s", e.getMessage())); in save() 111 Log.w(TAG, String.format("Failed to save frangmentation: %s", e.getMessage())); in save() 123 Log.w(TAG, String.format("Failed to save graphicsstats: %s", e.getMessage())); in save() 136 Log.w(TAG, String.format("Failed to save ION heap: %s", e.getMessage())); in save() 148 Log.w(TAG, String.format("Failed to save pagetypeinfo: %s", e.getMessage())); in save() 160 Log.w(TAG, String.format("Failed to save trace: %s", e.getMessage())); in save()
|