Home
last modified time | relevance | path

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

123

/platform_testing/tests/perf/PerformanceLaunch/
Dgen_locales.py28 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/
DDataCollector.java192 Log.w(TAG, String.format("Failed to take bugreport: %s", e.getMessage())); in createLog()
203 Log.w(TAG, String.format("Failed to save buddyinfo: %s", e.getMessage())); in createLog()
215 Log.w(TAG, String.format("Failed to save ION heap: %s", e.getMessage())); in createLog()
226 Log.w(TAG, String.format("Failed to save pagetypeinfo: %s", e.getMessage())); in createLog()
237 Log.w(TAG, String.format("Failed to save trace: %s", e.getMessage())); in createLog()
259 saveProcessOutput(String.format("cat /d/ion/heaps/%s", type), filename); in saveIonHeap()
277 String cmdline = String.format("/system/bin/sh -c /system/bin/bugreport>%s", in saveBugreport()
291 File outputFile = new File(outputDir, String.format("%d.txt", epochSeconds)); in dumpMeminfo()
297 fos.write(String.format("notes: %s\n\n", notes).getBytes()); in dumpMeminfo()
312 Log.d(TAG, String.format("Saving command \"%s\" output into file %s", in saveProcessOutput()
[all …]
DGraphicsStatsMonitor.java87 Log.v(TAG, String.format("Set jank monitor interval rate to %d", intervalRate)); in setIntervalRate()
134 Log.v(TAG, String.format("Process %s stats have not changed, overwriting data.", in grabStatsImage()
139 Log.v(TAG, String.format("Process %s stats were restarted, appending data.", in grabStatsImage()
148 Log.v(TAG, String.format("New process, %s. Creating jank history.", in grabStatsImage()
166 Log.v(TAG, String.format("Aggregating stats for %s (%d set%s)", proc, history.size(), in aggregateStatsImages()
190 executeShellCommand(String.format("dumpsys gfxinfo %s reset", stat.packageName)); in clearGraphicsStats()
191 Log.v(TAG, String.format("Cleared graphics stats for %s", stat.packageName)); in clearGraphicsStats()
211 Log.v(TAG, String.format("Found process, %s. Gathering jank info.", proc)); in gatherGraphicsStats()
DProcessStatusTracker.java98 Log.d(TAG, String.format( in getProcessDetails()
153 Log.v(TAG, String.format("verifyRunningProcess - proc: %s, state: %s", in verifyRunningProcess()
161 Log.v(TAG, String.format("Process started: %s - %d", d.processName, d.pid0)); in verifyRunningProcess()
164 String msg = String.format("Process %s has died.", d.processName); in verifyRunningProcess()
168 String msg = String.format("Process %s restarted: %d -> %d", d.processName, in verifyRunningProcess()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DLauncherJankTests.java94 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepareOpenAllAppsContainer()
99 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestOpenAllAppsContainer()
101 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestOpenAllAppsContainer()
121 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in openAllApps()
126 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestAllAppsContainerSwipe()
128 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestAllAppsContainerSwipe()
164 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in makeHomeScrollable()
169 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestHomeScreenSwipe()
171 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestHomeScreenSwipe()
191 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in openAllWidgets()
[all …]
DSystemUiJankTests.java122 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in populateRecentApps()
127 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in forceStopPackages()
137 TimeResultLogger.writeResultToFile(String.format("%s-%s", in forceStopPackages()
169 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepareNotifications()
174 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in cancelNotifications()
179 TimeResultLogger.writeResultToFile(String.format("%s-%s", in cancelNotifications()
DSettingsJankTests.java93 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in flingSettingsToStart()
98 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestSettingsFling()
100 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestSettingsFling()
/platform_testing/libraries/timeresult-helper/src/android/support/test/timeresulthelper/
DTimeResultLogger.java38 outputWriter.write(String.format("%d %s %s\n", (time + delay), in writeTimeStamp()
54 outputWriter.write(String.format("Result %s\n", testCase)); in writeResultToFile()
56 outputWriter.write(String.format("%s %s\n", key, in writeResultToFile()
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/
DGMailJankTests.java97 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepGMailInboxFling()
102 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestGMailInboxFling()
104 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestGMailInboxFling()
129 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepOpenNavDrawer()
134 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestOpenNavDrawer()
136 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestOpenNavDrawer()
165 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in prepFlingNavDrawer()
176 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestFlingNavDrawer()
178 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestFlingNavDrawer()
DChromeJankTests.java90 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in launchChrome()
95 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestChromeOverflowMenuTap()
97 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestChromeOverflowMenuTap()
DContactsJankTests.java97 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in launchContacts()
102 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestAllContactsFling()
104 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestAllContactsFling()
DYouTubeJankTests.java88 TimeResultLogger.writeTimeStampLogStart(String.format("%s-%s", in launchYouTube()
93 TimeResultLogger.writeTimeStampLogEnd(String.format("%s-%s", in afterTestYouTubeRecomendation()
95 TimeResultLogger.writeResultToFile(String.format("%s-%s", in afterTestYouTubeRecomendation()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTests.java61 String.format("%s.pdf", DownloadAppTestHelper.randomWord(random.nextInt(8) + 2)), in testAddCompletedDownload()
62 String.format("%s Desc", DownloadAppTestHelper.randomWord(random.nextInt(9) + 4)), in testAddCompletedDownload()
88 Log.d(mDLAppHelper.TEST_TAG, String.format("Before sortbyname tests, total count is %d", in testSortByName()
118 String.format("%s:id/%s", DownloadAppTestHelper.PACKAGE_NAME, UIViewType.LIST))), in testToggleViewTypeForDownloadItems()
122 String.format("%s:id/%s", DownloadAppTestHelper.PACKAGE_NAME, UIViewType.GRID))), in testToggleViewTypeForDownloadItems()
135 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_share", in testCABMenuShow()
140 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_delete", in testCABMenuShow()
168 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_delete", in testCABMenuDelete()
DDownloadAppTestHelper.java94 mDevice.wait(Until.findObject(By.text(String.format("By %s", sortby))), 200).click(); in sortByParam()
152 Until.findObject(By.res(String.format("%s:id/%s", in verifyDownloadViewType()
179 String fileName = String.format("%s.%s", in populateContentInDLApp()
190 String.format("%s Desc", in populateContentInDLApp()
198 Log.d(TEST_TAG, String.format("Adding Name = %s, size = %d, time = %d", fileName, in populateContentInDLApp()
249 Log.d(TEST_TAG, String.format("Remove Size is = %d", cursor.getCount())); in removeContentInDLApp()
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java153 assertTrue(String.format("Default app link not set to 'always ask' rather set to %s", out), in testSettingsChangeUI()
161 assertTrue(String.format("Default app link not set to 'never' rather set to %s", out), in testSettingsChangeUI()
169 assertTrue(String.format("Default app link not set to 'always ask' rather set to %s", out), in testSettingsChangeUI()
184 assertTrue(String.format("App link for %s should be set to 'Always'", alwaysOpenApp), in testSysappAppLinkSettings()
203 String out = executeShellCommand(String.format( in openLink()
231 assertTrue(String.format("%s is not top activity", "youtube"), in verifyForegroundAppPackage()
237 return executeShellCommand(String.format("pm get-app-link %s", pkgName)); in getAppLink()
242 executeShellCommand(String.format("pm set-app-link %s %s", pkgName, valueToBeSet)); in setAppLink()
254 Log.d(TEST_TAG, String.format("Executing command: %s", command)); in executeShellCommand()
/platform_testing/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/
DPortableStorageTests.java56 storageHelper.executeShellCommand(String.format( in testAdoptAsPortableViaUI()
60 storageHelper.executeShellCommand(String.format("sm forget all")); in testAdoptAsPortableViaUI()
71 String.format("/storage/%s", storageHelper.getAdoptionVolumeUuid("public"))); in testCopyFromPortable()
91 String.format("/storage/%s", storageHelper.getAdoptionVolumeUuid("public"))); in testDeleteFromPortable()
109 String.format("/storage/%s", storageHelper.getAdoptionVolumeUuid("public"))); in testExplorePortable()
118 .text(String.format("Test_%d", i))), storageHelper.TIMEOUT)); in testExplorePortable()
129 String.format("/storage/%s", storageHelper.getAdoptionVolumeUuid("public"))); in testShareableFromPortable()
148 String.format("/storage/%s", storageHelper.getAdoptionVolumeUuid("public"))); in testPortableOverflowSettings()
213 UiObject2 format = mDevice.wait(Until.findObject(By.text("Format")), storageHelper.TIMEOUT); in testFormatPortable() local
214 format.clickAndWait(Until.newWindow(), storageHelper.TIMEOUT); in testFormatPortable()
DExternalStorageHelper.java123 Log.d(TEST_TAG, String.format("Executing command: %s", command)); in executeShellCommand()
137 if (!new File(String.format("%s/Test_%d", dir, i)).exists()) { in createFiles()
138 fillInStorage(dir, String.format("Test_%d", i), 1); in createFiles()
144 executeShellCommand(String.format("dd if=/dev/zero of=%s/%s bs=1024 count=%d", in fillInStorage()
204 executeShellCommand(String.format("sm partition %s %s", getAdoptionDisk(), type)); in partitionDisk()
208 executeShellCommand(String.format("sm partition %s %s", getAdoptionDisk(), type)); in partitionDisk()
262 Assert.assertTrue(String.format("%s doesn't exist!", packageName), in getInstalledLocation()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DPermissionHelper.java120 throw new RuntimeException(String.format("%s package isn't found", packageName)); in getPermissionByPackage()
151 String.format("For package %s some extra dangerous permissions have been granted", in verifyExtraDangerousPermissionNotGranted()
171 String.format("For package %s not permissible dangerous permissions been granted", in verifyNotPermittedDangerousPermissionDenied()
187 Log.d(TEST_TAG, String.format("%s should have been auto granted", in verifyNormalPermissionsAutoGranted()
192 String.format("For package %s few normal permission have been denied", packageName), in verifyNormalPermissionsAutoGranted()
206 throw new RuntimeException(String.format("%s isn't valid permission status", expected)); in verifyPermissionSettingStatus()
244 String.format("%s - > %s hasn't been granted yet", packageName, permission)); in verifyDefaultDangerousPermissionGranted()
246 Assert.assertTrue(String.format("For %s some Permissions aren't granted yet", packageName), in verifyDefaultDangerousPermissionGranted()
323 String command = String.format("pm %s %s %s", permissionOp.toString().toLowerCase(), in grantOrRevokePermissionViaAdb()
325 Log.d(TEST_TAG, String.format("executing - %s", command)); in grantOrRevokePermissionViaAdb()
[all …]
/platform_testing/tests/androidbvt/src/com/android/androidbvt/
DSysUIMultiWindowTests.java76 …Pattern pattern = Pattern.compile(String.format(".*taskId=([0-9]+): %s/%s.*",CALCULATOR_PACKAGE, C… in testLaunchInMultiwindow()
86 String.format("am stack movetask %d %d true", taskId, SPLITSCREEN)); in testLaunchInMultiwindow()
106 String.format("am stack movetask %d %d true", taskId, FULLSCREEN)); in testLaunchInMultiwindow()
/platform_testing/utils/dialogs/src/com/android/dialogutils/
DDismissDialogsInstrumentation.java149 takeScreenDump("init", String.format("launcher-selection-failure-%d", retry)); in onStart()
170 Log.i(LOG_TAG, String.format("Dismissing dialogs for app, %s.", app)); in onStart()
174 String.format("Unrecognized app \"%s\"", mApps)); in onStart()
257 throw new RuntimeException(String.format( in takeScreenDump()
262 Log.v(LOG_TAG, String.format("Screen file path: %s", scr.getPath())); in takeScreenDump()
263 Log.v(LOG_TAG, String.format("UI XML file path: %s", uix.getPath())); in takeScreenDump()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationInteractionTests.java71 assertNotNull(String.format("Couldn't find %s notification", text), obj); in testNonDismissNotification()
92 String.format("posted %s notifications, here they are: ", NOTIFICATIONS_COUNT)); in testDismissAll()
105 assertTrue(String.format("%s notifications have not been cleared", sbns.length), in testDismissAll()
DNotificationBundlingTests.java97 fail(String.format("Notification %s has not been dismissed", n)); in testDismissBundlingNotification()
113 fail(String.format("Notification %s has not been dismissed", CHILD_NOTIFICATION_ID)); in testDismissIndividualNotification()
116 fail(String.format("Notification %s has been dismissed ", GROUP_NOTIFICATION_ID)); in testDismissIndividualNotification()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java65 String.format("%s.%s", PACKAGE_NAME, activityName)); in launchActivity()
74 Assert.assertNotNull(String.format("Issue in opening %s", activityName), in launchActivity()
/platform_testing/libraries/google-app-camera-helper/src/android/platform/test/helpers/
DGoogleCameraHelperImpl.java121 Log.e(LOG_TAG, String.format("Unable to find package by name, %s", getPackage())); in GoogleCameraHelperImpl()
603 throw new UnknownUiException(String.format("Failed to select HFR mode to FPS %d", in setHFRMode()
670 throw new UnknownUiException(String.format("Failed to select HFR mode to FPS %d", in setHFRMode()
748 String.format("Menu item button was not enabled with %d seconds", in selectMenuItem()
761 throw new UnknownUiException(String.format( in closeMenuItem()
776 String.format("Setting item button was not enabled with %d seconds", in selectSettingItem()
790 String.format("Setting item button was not enabled with %d seconds", in selectSetting2X()
804 String.format("Navigation up button was not enabled with %d seconds", in closeSettingItem()
820 String.format("Back camera button was not enabled with %d seconds", in selectVideoResolution()
1015 String.format("Camera shutter was not enabled with %d seconds", in waitForCameraShutterEnabled()
[all …]
/platform_testing/utils/permissions/src/com/android/permissionutils/
DPermissionInstrumentation.java57 String.format("unrecognized command \"%s\"", command)); in onCreate()
93 Log.e(DUMP_TAG, String.format("Revoked permissions for %s", info.packageName)); in runCommand()

123