Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 214) sorted by relevance

123456789

/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/
DLyricCpuUtilizationHelperTest.java62 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/
DMediaValidationHelper.java58 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/health/rules/tests/src/android/platform/test/rule/
DTestMetricRuleTest.java83 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testValidListener_testPasses()
85 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION)) in testValidListener_testPasses()
101 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testValidListener_testFails()
103 String.format( in testValidListener_testFails()
108 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION)) in testValidListener_testFails()
127 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testMultipleListeners_allValid()
128 String.format("Test %s: TestableCollector2#onTestStart", DESCRIPTION), in testMultipleListeners_allValid()
130 String.format( in testMultipleListeners_allValid()
133 String.format( in testMultipleListeners_allValid()
136 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION), in testMultipleListeners_allValid()
[all …]
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java110 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/
DPREUPLOAD.cfg5 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/compatibility-common-util/src/com/android/compatibility/common/util/
DMultiLog.java29 public void logInfo(String logTag, String format, Object... args); in logInfo() argument
37 public void logDebug(String logTag, String format, Object... args); in logDebug() argument
45 public void logWarn(String logTag, String format, Object... args); in logWarn() argument
53 public void logError(String logTag, String format, Object... args); in logError() argument
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/service/
DAudioCaptureSession.java52 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/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java84 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 …]
DPinnerHelper.java60 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/collectors-helper/lyric/src/com/android/helpers/
DLyricCpuUtilizationHelper.java47 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/health/rules/src/android/platform/test/rule/
DCompilationFilterRule.java72 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()
DTestMetricRule.java77 String.format( in TestMetricRule()
85 String.format( in TestMetricRule()
92 String fullName = String.format("%s.%s", METRIC_COLLECTORS_PACKAGE, listenerName); in TestMetricRule()
95 String.format( in TestMetricRule()
103 String.format( in TestMetricRule()
127 String.format( in starting()
143 String.format( in finished()
160 String.format( in failed()
175 String.format("Could not find class with fully qualified name %s.", name)); in loadListenerByFullyQualifiedName()
180 String.format("Class %s is not a BaseMetricListener.", loadedClass)); in loadListenerByFullyQualifiedName()
[all …]
DDynamicRuleChain.java89 String.format( in apply()
96 String.format( in apply()
102 String fullName = String.format("%s.%s", RULES_PACKAGE, ruleName); in apply()
105 String.format( in apply()
113 String.format( in apply()
131 String.format("Could not find class with fully qualified name %s.", name)); in loadRuleByFullyQualifiedName()
136 String.format("Class %s is not a TestRule.", loadedClass)); in loadRuleByFullyQualifiedName()
146 String.format( in loadRuleByFullyQualifiedName()
DIorapCompilationRule.java98 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/flicker/src/com/android/server/wm/traces/common/
DBuffer.kt19 class Buffer(width: Int, height: Int, val stride: Int, val format: Int) : Size(width, height) { constant
27 other.format == format in prettyPrint()
33 result = 31 * result + format in prettyPrint()
DColor.kt54 val r = FloatFormatter.format(color.r) in prettyPrint()
55 val g = FloatFormatter.format(color.g) in prettyPrint()
56 val b = FloatFormatter.format(color.b) in prettyPrint()
57 val a = FloatFormatter.format(color.a) in prettyPrint()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java95 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/
DHelperManager.java84 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/
DSimpleperfHelper.java64 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/
DLauncherJankTests.java97 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 …]
DSystemUiJankTests.java171 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/
DJavaAudioSystem.java60 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/
DTestOption.java65 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/
DDumpsysServiceHelperTest.java85 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/
DScreenRecordCollector.java96 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()

123456789