Home
last modified time | relevance | path

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

12345678910>>...14

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DTestMetricRuleTest.java84 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testValidListener_testPasses()
86 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION), in testValidListener_testPasses()
104 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testValidListener_testFails()
106 String.format( in testValidListener_testFails()
111 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION), in testValidListener_testFails()
133 String.format("Test %s: TestableCollector1#onTestStart", DESCRIPTION), in testMultipleListeners_allValid()
134 String.format("Test %s: TestableCollector2#onTestStart", DESCRIPTION), in testMultipleListeners_allValid()
136 String.format( in testMultipleListeners_allValid()
139 String.format( in testMultipleListeners_allValid()
142 String.format("Test %s: TestableCollector1#onTestEnd", DESCRIPTION), in testMultipleListeners_allValid()
[all …]
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/util/
DStsExtraBusinessLogicTestCase.java105 String.format("%s-%02d", releaseBulletinSpl, SplUtils.Type.PARTIAL.day); in getReleaseBulletinSpl()
110 public void logInfo(String logTag, String format, Object... args) { in logInfo() argument
111 Log.i(logTag, String.format(format, args)); in logInfo()
115 public void logDebug(String logTag, String format, Object... args) { in logDebug() argument
116 Log.d(logTag, String.format(format, args)); in logDebug()
120 public void logWarn(String logTag, String format, Object... args) { in logWarn() argument
121 Log.w(logTag, String.format(format, args)); in logWarn()
125 public void logError(String logTag, String format, Object... args) { in logError() argument
126 Log.e(logTag, String.format(format, args)); in logError()
/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
89 if (format.containsKey(MediaFormat.KEY_DURATION)) { in validateVideoTrackMediaFormat()
91 TimeUnit.MICROSECONDS.toMillis(format.getLong(MediaFormat.KEY_DURATION)); in validateVideoTrackMediaFormat()
92 int width = format.getInteger(MediaFormat.KEY_WIDTH); in validateVideoTrackMediaFormat()
93 int height = format.getInteger(MediaFormat.KEY_HEIGHT); in validateVideoTrackMediaFormat()
[all …]
/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/sts-common-util/host-side/src/com/android/sts/common/tradefed/testtype/
DStsExtraBusinessLogicHostTestBase.java112 String.format("%s-%02d", releaseBulletinSpl, SplUtils.Type.PARTIAL.day); in getReleaseBulletinSpl()
117 public void logInfo(String logTag, String format, Object... args) { in logInfo() argument
118 Log.i(logTag, String.format(format, args)); in logInfo()
122 public void logDebug(String logTag, String format, Object... args) { in logDebug() argument
123 Log.d(logTag, String.format(format, args)); in logDebug()
127 public void logWarn(String logTag, String format, Object... args) { in logWarn() argument
128 Log.w(logTag, String.format(format, args)); in logWarn()
132 public void logError(String logTag, String format, Object... args) { in logError() argument
133 Log.e(logTag, String.format(format, args)); in logError()
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DActiveBuffer.kt26 class ActiveBuffer private constructor(width: Int, height: Int, val stride: Int, val format: Int) : constant
28 override fun doPrintValue() = "w:$width, h:$height, stride:$stride, format:$format" in doPrintValue()
32 get() = withCache { ActiveBuffer(width = 0, height = 0, stride = 0, format = 0) } in doPrintValue()
33 fun from(width: Int, height: Int, stride: Int, format: Int): ActiveBuffer = withCache { in doPrintValue()
34 ActiveBuffer(width, height, stride, format) in doPrintValue()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiSearch.java23 import static java.lang.String.format;
60 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
64 format("Looking for %s[%s] within %s seconds", name, selector, in search()
72 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
81 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search()
87 Log.w(TAG, format("Given Scroller[%s] was not found in %s seconds", in search()
118 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
122 format("Looking for %s[%s] within %s seconds", name, selector, in search()
129 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
139 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search()
[all …]
DUiSearch2.java21 import static java.lang.String.format;
64 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
68 format("Looking for %s[%s] within %s seconds", name, selector, in search()
76 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
85 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search()
91 Log.w(TAG, format("Given Scroller[%s] was not found in %s seconds", in search()
122 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
126 format("Looking for %s[%s] within %s seconds", name, selector, in search()
133 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
143 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/
DFloatFormatterTest.kt25 Assert.assertEquals(FloatFormatter.format(0.0f), "0.0") in testFormat()
26 Assert.assertEquals(FloatFormatter.format(0.00001f), "0.0") in testFormat()
27 Assert.assertEquals(FloatFormatter.format(0.10f), "0.1") in testFormat()
28 Assert.assertEquals(FloatFormatter.format(10.0001f), "10.0") in testFormat()
/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/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/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()
175 mockResetCommand("pkg1", String.format(GFXINFO_RESET_FORMAT, "pkg1")); in testCollect_multiPackage()
176 mockGetCommand("pkg1", String.format(GFXINFO_GET_FORMAT, "pkg1")); in testCollect_multiPackage()
177 mockResetCommand("pkg2", String.format(GFXINFO_RESET_FORMAT, "pkg2")); in testCollect_multiPackage()
178 mockGetCommand("pkg2", String.format(GFXINFO_GET_FORMAT, "pkg2")); in testCollect_multiPackage()
179 mockResetCommand("pkg3", String.format(GFXINFO_RESET_FORMAT, "pkg3")); in testCollect_multiPackage()
180 mockGetCommand("pkg3", String.format(GFXINFO_GET_FORMAT, "pkg3")); in testCollect_multiPackage()
[all …]
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DCompilationFilterRule.java67 String testId = String.format("%s#%s", normalizedClassName, normalizedMethodName); in finished()
69 Log.d(LOG_TAG, String.format("Test %s already compiled", testId)); in finished()
85 String.format( in finished()
100 String response = executeShellCommand(String.format(DUMP_PROFILE_CMD, app)); in finished()
102 Log.d(LOG_TAG, String.format("Received dump profile cmd response: %s", in finished()
104 throw new RuntimeException(String.format("Failed to dump profile %s.", app)); in finished()
109 String response = executeShellCommand(String.format(COMPILE_CMD_FORMAT, filter, app)); in finished()
111 Log.d(LOG_TAG, String.format("Received compile cmd response: %s", response)); in finished()
112 throw new RuntimeException(String.format("Failed to compile %s.", app)); in finished()
114 Log.d(LOG_TAG, String.format("Test %s compiled successfully", testId)); in finished()
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()
DTestMetricRule.java107 String.format( in TestMetricRule()
115 String.format( in TestMetricRule()
122 String fullName = String.format("%s.%s", METRIC_COLLECTORS_PACKAGE, listenerName); in TestMetricRule()
125 String.format( in TestMetricRule()
133 String.format( in TestMetricRule()
160 String.format( in starting()
176 String.format( in finished()
196 String.format( in failed()
211 String.format("Could not find class with fully qualified name %s.", name)); in loadListenerByFullyQualifiedName()
216 String.format("Class %s is not a BaseMetricListener.", loadedClass)); in loadListenerByFullyQualifiedName()
[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/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java153 String.format( in startCollectingFromConfig()
231 String.format( in startCollectingFromConfigFile()
249 Log.i(LOG_TAG, String.format("Perfetto start command output - %s", startOutput)); in startCollectingFromConfigFile()
274 mUIDevice.executeShellCommand(String.format(REMOVE_CMD, PERFETTO_TMP_OUTPUT_FILE)); in canSetupBeforeStartCollecting()
275 Log.i(LOG_TAG, String.format("Perfetto output file cleanup - %s", output)); in canSetupBeforeStartCollecting()
280 String.format(CREATE_FILE_CMD, PERFETTO_TMP_OUTPUT_FILE)); in canSetupBeforeStartCollecting()
284 Log.e(LOG_TAG, String.format("Unable to create Perfetto output file - %s", output)); in canSetupBeforeStartCollecting()
292 Log.i(LOG_TAG, String.format("Perfetto start command output - %s", startOutput)); in canUpdateAfterStartCollecting()
299 String.format("Perfetto process id %d added for tracking", mPerfettoProcId)); in canUpdateAfterStartCollecting()
325 Log.i(LOG_TAG, String.format( in stopCollecting()
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DAppStartupHelperTest.java94 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/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioConfigUtil.java85 Log.w(LOG_TAG, String.format("Default config not present, so exiting")); in SpectatioConfigUtil()
113 Log.i(LOG_TAG, String.format("Loading default config: %s", path)); in loadDefaultConfiguration()
122 String.format( in loadDefaultConfiguration()
125 String.format("Unable to read default config: %s", path), ex); in loadDefaultConfiguration()
131 Log.w(LOG_TAG, String.format("Default config not available: %s", path)); in loadDefaultConfiguration()
138 Log.i(LOG_TAG, String.format("Done loading default config: %s", path)); in loadDefaultConfiguration()
143 Log.i(LOG_TAG, String.format("Loading runtime config: %s", RUNTIME_CONFIG_PATH)); in loadRuntimeConfiguration()
152 String.format( in loadRuntimeConfiguration()
156 String.format("Unable to read runtime config: %s", RUNTIME_CONFIG_PATH), ex); in loadRuntimeConfiguration()
163 String.format( in loadRuntimeConfiguration()
[all …]
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DLockscreenUtils.java32 import static java.lang.String.format;
88 Log.d(TAG, format("Setting Lockscreen [%s(%s)]", lockscreenType, lockscreenCode)); in setLockscreen()
91 executeShellCommand(format("%s %s", SET_PIN_COMMAND, lockscreenCode)); in setLockscreen()
94 executeShellCommand(format("%s %s", SET_PASSWORD_COMMAND, lockscreenCode)); in setLockscreen()
97 executeShellCommand(format("%s %s", SET_PATTERN_COMMAND, lockscreenCode)); in setLockscreen()
113 () -> String.format("Assert that keyguard %s secure, but failed.", in assertKeyguardSecure()
124 Log.d(TAG, String.format("Re-Setting Lockscreen %s", lockscreenCode)); in resetLockscreen()
126 format("%s %s", RESET_LOCKSCREEN_SHELL_COMMAND, lockscreenCode)); in resetLockscreen()
139 format("Entering Lockscreen code: %s(%s)", lockscreenType, lockscreenCode)); in enterCodeOnLockscreen()
146 executeShellCommand(format("%s %s", INPUT_TEXT_COMMAND, lockscreenCode)); in enterCodeOnLockscreen()
[all …]
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DShowmapSnapshotHelper.java110 Log.e(TAG, String.format("Invalid test setup")); in startCollecting()
116 String filePath = String.format("%s/showmap_snapshot%d.txt", mTestOutputDir, in startCollecting()
123 Log.e(TAG, String.format("Failed to delete result output file %s", filePath)); in startCollecting()
128 Log.e(TAG, String.format("Failed to create result output directory %s", in startCollecting()
139 String.format("Race with another user of result output file %s", filePath)); in startCollecting()
143 Log.e(TAG, String.format("Failed to create result output file %s", filePath), e); in startCollecting()
176 Log.d(TAG, String.format("Dumpsys activity lru output: %s", activityLRU)); in getMetrics()
178 Log.e(TAG, String.format("Failed to execute %s", ACTIVITY_LRU_CMD)); in getMetrics()
209 String.format( in getMetrics()
250 Log.e(TAG, String.format("Failed to write output file %s", mTestOutputFile), e); in getMetrics()
[all …]
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DScrollUtility.java79 String.format( in scrollBackward()
86 String.format("Unable to %s. Error: %s", action, ex.getMessage())); in scrollBackward()
111 String.format( in scrollForward()
118 String.format("Unable to %s. Error: %s", action, ex.getMessage())); in scrollForward()
150 String.format( in scrollAndFindUiObject()
157 String.format("Unable to %s. Error: %s", action, ex.getMessage())); in scrollAndFindUiObject()
179 String.format( in scrollToBeginning()
185 String.format("Unable to %s. Error: %s", action, ex.getMessage())); in scrollToBeginning()
217 String.format( in scrollAndCheckIfUiElementExist()
224 String.format("Unable to %s. Error: %s", action, ex.getMessage())); in scrollAndCheckIfUiElementExist()
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsSystemHelperImpl.java98 String.format("Unable to find UI Element for language selector")); in setDisplayLanguage()
116 object, String.format("Unable to find UI Element for current language")); in getCurrentLanguage()
128 object, String.format("Unable to find UI Element for device model")); in getDeviceModel()
141 object, String.format("Unable to find UI Element for current language")); in getAndroidVersion()
157 String.format( in getAndroidSecurityPatchLevel()
170 private Date formatDate(Date date, String format) { in formatDate() argument
171 SimpleDateFormat dateFormatter = new SimpleDateFormat(format); in formatDate()
172 String dateString = dateFormatter.format(date); in formatDate()
180 private Date parseDate(String date, String format) { in parseDate() argument
183 SimpleDateFormat dateFormatter = new SimpleDateFormat(format); in parseDate()
[all …]
/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/flag-helpers/junit/src_util/android/platform/test/flag/util/
DFlagSetException.java22 super(String.format("Flag %s set error: %s", flag, msg)); in FlagSetException()
26 super(String.format("Flag %s set error", flag), cause); in FlagSetException()
30 super(String.format("Flag %s set error: %s", flag, msg), cause); in FlagSetException()

12345678910>>...14