/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/ |
D | ConsoleReporter.java | 184 private void logProgress(String format, Object... args) { in logProgress() argument 185 format = String.format("[%s %s %s] %s", progress(), mModuleId, mDeviceSerial, format); in logProgress() 186 log(format, args); in logProgress() 192 private void logMessage(String format, Object... args) { in logMessage() argument 193 format = String.format("[%s] %s", mDeviceSerial, format); in logMessage() 194 log(format, args); in logMessage() 200 private void log(String format, Object... args) { in log() argument 202 CLog.i(format, args); in log() 204 CLog.logAndDisplay(LogLevel.INFO, format, args); in log() 222 return String.format("%d/%d", mCurrentTestNum, mTotalTestsInModule); in progress()
|
/test/catbox/report/src/com/android/catbox/result/ |
D | ResultReportCollector.java | 121 String.format("Either Src or Dest Path is invalid. Source: %s, Destination: %s", in pullFileUsingContentUri() 128 String.format("Started pulling file. Source File: %s, Destination File: %s", in pullFileUsingContentUri() 135 String.format("File %s does not exist on the device.", in pullFileUsingContentUri() 146 String.format("Unable to get destination file path for %s.", in pullFileUsingContentUri() 156 String.format("Unable to create results directory %s.", in pullFileUsingContentUri() 163 String.format("content read --user %d --uri %s", in pullFileUsingContentUri() 177 String.format( in pullFileUsingContentUri() 184 String.format("Failed to open OutputStream to the local file %s. Error: %s", in pullFileUsingContentUri() 191 String.format("Completed pulling file. Source File: %s, Destination File: %s", in pullFileUsingContentUri() 199 String.format( in doesFileExist() [all …]
|
/test/suite_harness/ |
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…
|
/test/mlts/benchmark/results/ |
D | generate_result.py | 228 left_pad = (['{:.2f}ms'.format( 232 right_pad = (['{:.2f}ms'.format( 239 data = (['{:.2f}ms'.format( 296 topk = [TOPK_BASELINE_TEMPLATE.format(val=x) for x in val] 297 return ACCURACY_VALUES_TOPK_TEMPLATE.format( 304 topk = [TOPK_DIFF_TEMPLATE.format( 307 return ACCURACY_VALUES_TOPK_TEMPLATE.format( 315 return ACCURACY_VALUES_MELCEPLOGF0_TEMPLATE.format( 316 max_log_f0=MELCEPLOGF0_BASELINE_TEMPLATE.format( 318 max_mel_cep_distortion=MELCEPLOGF0_BASELINE_TEMPLATE.format( [all …]
|
/test/catbox/target_preparers/src/com/android/catbox/targetpreparer/ |
D | ChromeMdPassengerLoadPreparer.java | 86 String.format("Available displays on the device %s. Skipped displays %s", in setUp() 115 int userId = device.createUser(String.format("user-display-%d", displayId)); in createUser() 117 String.format("Created user with id %d for display %d", userId, displayId)); in createUser() 120 String.format("Device failed to switch to user %d", userId), in createUser() 124 String.format("Started background user %d for display %d", userId, displayId)); in createUser() 133 String.format("Installing the following test APKs in user %d: \n%s", userId, in installApks() 149 LogUtil.CLog.d(String.format("Launching Chrome for User %d with url %s", userId, mUrl)); in simulatePassengerLoad() 150 String launchChromeActivityWithUrlCommand = String.format( in simulatePassengerLoad() 156 String.format("Chrome activity failed to launch for user %d", userId), in simulatePassengerLoad() 164 String dismissCommand = String.format( in dismissInitialDialog() [all …]
|
D | LowPerformanceTargetPreparer.java | 84 String.format("oem nr-cpus %s", mLowPerformanceDeviceInfo.mNrCpus)); in setUp() 86 String.format("oem mem %s", mLowPerformanceDeviceInfo.mMem)); in setUp() 104 executeFastbootCommand(device, String.format("oem mem %s", mInitialDeviceInfo.mMem)); in tearDown() 106 String.format("oem nr-cpus %s", mInitialDeviceInfo.mNrCpus)); in tearDown() 129 LogUtil.CLog.v(String.format("Executing fastboot command: %s", command)); in executeFastbootCommand() 133 String.format( in executeFastbootCommand() 139 LogUtil.CLog.v(String.format( in executeFastbootCommand() 165 throw new TargetSetupError(String.format( in getOemDeviceInfo()
|
D | SetDevicePropertyPreparer.java | 73 device.executeShellCommand(String.format("getprop %s", entry.getKey())).trim()); in setUp() 77 String.format("setprop %s %s", entry.getKey(), entry.getValue()) in setUp() 94 String.format("Resetting prop %s to %s", entry.getKey(), entry.getValue()) in tearDown() 100 String.format("setprop %s %s", entry.getKey(), entry.getValue()) in tearDown() 104 String.format("setprop %s %s", entry.getKey(), EMPTY_STRING) in tearDown()
|
D | SkipTestPreparer.java | 74 String.format("Incompatible operator %s. Skipping preparer", mCompOperator)); in setUp() 76 String.format("Supported operators are %s", String.join(",", supportedOperators))); in setUp() 82 device.executeShellCommand(String.format("getprop %s", mCompProp)).trim()); in setUp() 84 String.format("%s returned %d", mCompProp, devicePropertyValue) in setUp() 92 String.format("Test incompatible with %s = %d", mCompProp, devicePropertyValue), in setUp()
|
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/ |
D | SystemPackageUninstaller.java | 188 String.format("%s; Command result: %s", failureMessage, commandResult), in executeShellCommandOrThrow() 224 String.format("rm -r %s", packageInstallDirectory), in removePackageInstallDirectory() 225 String.format( in removePackageInstallDirectory() 252 String dataPath = String.format("/data/data/%s", packageName); in removePackageData() 256 String.format("rm -r %s", dataPath), in removePackageData() 257 String.format( in removePackageData() 271 String.format("pm list packages %s", packageName), in isPackageInstalled() 276 String.format("Failed to get pm command output: %s", commandResult.getStdout()), in isPackageInstalled() 281 .contains(String.format("package:%s", packageName)); in isPackageInstalled() 289 String.format("pm path %s", packageName), in getPackageInstallDirectory() [all …]
|
D | DeviceUtils.java | 41 import java.time.format.DateTimeFormatter; 139 String.format("appops set %s MANAGE_EXTERNAL_STORAGE allow", packageName)); in grantExternalStoragePermissions() 210 String videoPath = String.format(VIDEO_PATH_ON_DEVICE_TEMPLATE, new Random().nextInt()); in runWithScreenRecording() 222 String.format( in runWithScreenRecording() 362 String.format( in launchPackage() 373 mDevice.executeShellV2Command(String.format("pm dump %s", packageName)); in launchPackage() 377 String.format( in launchPackage() 382 String.format("Package %s is not installed on the device.", packageName)); in launchPackage() 389 mDevice.executeShellV2Command(String.format("am start -n %s", activity)); in launchPackage() 394 String.format( in launchPackage() [all …]
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | BusinessLogicHostExecutor.java | 59 public void logInfo(String format, Object... args) { in logInfo() argument 60 CLog.i(format, args); in logInfo() 70 public void logDebug(String format, Object... args) { in logDebug() argument 71 CLog.d(format, args); in logDebug() 79 return String.format("%s(%s)", method, String.join(", ", formatArgs(args))); in formatExecutionString() 124 throw new RuntimeException(String.format( in getResolvedMethod()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/sl/ |
D | SupportLibraryDriverHandler.java | 57 .format("Unable load NNAPI SL from '%s'.", nnSupportLibFilePath)); in getOrLoadNnApiSlHandle() 60 .format("Successfully loaded NNAPI SL from '%s'.", nnSupportLibFilePath)); in getOrLoadNnApiSlHandle() 64 .format("Unable to find NNAPI SL entry point '%s' in embedded libraries path.", in getOrLoadNnApiSlHandle() 72 … Log.i(TAG, String.format("Getting input stream from APK '%s' and file '%s'.", apkPath, filePath)); in getInputStreamFromApk() 109 …Log.w(TAG, String.format("Unable to find SL library '%s' to extract assuming is not part of this c… in extractNnApiSlLibTo() 115 final String errorMsg = String.format("Unable to extract %s.", sourcePath); in extractNnApiSlLibTo() 129 Log.i(TAG, String.format("Copied '%s' to '%s'.", sourcePath, targetPath)); in extractNnApiSlLibTo()
|
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/ |
D | PerformanceDegradationTest.java | 128 Log.i(TAG, String.format("Checking performance degradation using %d models", in call() 149 Log.i(TAG, String.format( in testDegradationForModels() 154 Log.d(TAG, String.format("%s: Calculating baseline", mTestName)); in testDegradationForModels() 159 return failure(String.format("%s: Baseline has benchmark error '%s'", in testDegradationForModels() 162 Log.d(TAG, String.format("%s: Baseline mean time is %f seconds", mTestName, in testDegradationForModels() 165 Log.d(TAG, String.format("%s: Sleeping for %d millis", mTestName, in testDegradationForModels() 169 Log.d(TAG, String.format("%s: Calculating performance with %d threads", mTestName, in testDegradationForModels() 199 String.format( in testDegradationForModels() 204 Log.d(TAG, String.format("%s: Multithreaded mean time is %f seconds", in testDegradationForModels() 210 Log.i(TAG, String.format( in testDegradationForModels() [all …]
|
D | RunModelsInMultipleProcesses.java | 114 Log.w(TAG, String.format("Unable to delete file %s", fileToDelete.getAbsolutePath())); in deleteOrWarn() 128 String.format("Trying to create model path '%s'", targetModelFile.getAbsolutePath())); in call() 131 return failure(String.format("Unable to copy model to target %s file %s", in call() 140 return failure(String.format("Cannot write test input data file %s for model %s", in call() 157 Log.i(TAG, String.format("Test process returned %d", testResult)); in call() 161 return failure(String.format("Test failed with return code %d", testResult)); in call() 174 String.format( in writeModelInput() 202 Log.w(TAG, String.format("Cannot write to target file %s", targetInputFile.getAbsolutePath()), in writeModelInput() 209 String.format("No content in inference input sequence to write for file %s", in writeModelInput()
|
D | RandomGraphTest.java | 47 Log.d(TAG, String.format("Writing NNAPI Fuzzer logs to %s", logFile)); in getNnapiLogFilePath() 89 String.format("Invalid native result value %d", nativeResult)); in fromNativeResult() 189 String.format(String.format( in call() 219 Log.w(TAG, String.format( in call() 224 Log.i(TAG, String.format("Model has been dumped at path '%s'", in call() 230 Log.w(TAG, String.format( in call()
|
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/ |
D | KernelApiSysfsTest.java | 117 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu); in testPerCpuCpufreq() 122 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq", cpu); in testPerCpuCpufreq() 127 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq", cpu); in testPerCpuCpufreq() 132 f = String.format( in testPerCpuCpufreq() 145 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu); in testPerCpuCpufreq() 177 String.format("find %s -name \"%s\" -maxdepth 1 -type l", dir, nameFilter)); in findFiles() 237 assertTrue(String.format("(%s) does not match RTC_HCTOSYS_DEVICE (%s)", rtc_link, rtc), in testRtcHctosys() 249 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeLockPath)); in testWakeLock() 254 assertTrue(String.format("active wake lock not reported in %s", wakeLockPath), in testWakeLock() 258 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeUnLockPath)); in testWakeLock() [all …]
|
/test/app_compat/csuite/test_scripts/src/main/java/com/android/pixel/utils/ |
D | DeviceUtils.java | 128 String.format( in takeScreenshot() 143 String.format("%s_%s_screenrecord", mTestName, packageName)); in startRecording() 169 final String fileName = String.format("%s-video%s.mp4", description, part == 1 ? "" : part); in getOutputFile() 196 Log.d(TAG, String.format("Recording screen to %s", output.getAbsolutePath())); in run() 201 String.format("screenrecord %s", output.getAbsolutePath())); in run() 218 mDevice.executeShellCommand(String.format("kill -2 %s", pid)); in cancel() 219 Log.d(TAG, String.format("Sent SIGINT 2 to screenrecord process (%s)", pid)); in cancel()
|
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/config/ |
D | AppRemoteFileResolver.java | 146 String.format("%s=%s is empty", URI_TEMPLATE_OPTION, mUriTemplate)); in resolveRemoteFiles() 156 String.format( in resolveRemoteFiles() 164 String.format( in resolveRemoteFiles() 191 String.format("Unsupported scheme (%s) in provided URI (%s)", uriScheme, uri)); in checkAppUri() 200 String.format( in checkAppUri() 206 String.format( in checkAppUri() 228 String.format( in expandVars() 260 String.format("Could not resolve URI (%s) for package '%s'", uri, packageName), in resolveUriToFile()
|
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/ |
D | TestFilterTest.java | 29 private static final String NAME_FILTER = String.format("%s", NAME); 30 private static final String ABI_NAME_FILTER = String.format("%s %s", ABI, NAME); 31 private static final String NAME_TEST_FILTER = String.format("%s %s", NAME, TEST); 32 private static final String FULL_FILTER = String.format("%s %s %s", ABI, NAME, TEST);
|
/test/mlts/benchmark/src/com/android/nn/crashtest/app/ |
D | CrashTestStatus.java | 55 String.format("Received crash test notification: %s and extra msg %s.\n", in handleCompletionNotification() 61 String.format("Test completed with result %s and msg: %s.\n", testResult, in handleCompletionNotification() 64 … mDisplayMessages.accept(String.format("Test completed with result %s\n", testResult)); in handleCompletionNotification() 68 String.format("mParallelTestComplete count is now %d, test result is %s\n", in handleCompletionNotification()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | SettingsPreparer.java | 88 userArg = String.format(" --user %s ", testUser); in run() 93 ? String.format("settings get %s%s%s", mSettingType, userArg, mSettingName) in run() 97 ? String.format( in run() 107 String.format( in run() 135 mFailureMessage = String.format( in run()
|
/test/vts-testcase/hal/usb/gadget/aidl/host/src/com/android/usb/gadget/vts/ |
D | VtsHalUsbGadgetV2_0HostTest.java | 72 .executeShellCommand(String.format("dumpsys -l | grep \"%s\"", HAL_SERVICE)) in beforeClassWithDevice() 118 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testAndroidUSB() 132 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMtp() 148 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testPtp() 166 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMIDI() 183 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testAndroidNcm() 205 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testGetUsbSpeed() 228 String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testResetUsbGadget()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildHelper.java | 216 String.format("Compatibility root directory %s does not exist", dir)); in getRootDir() 228 new File(getRootDir(), String.format("android-%s", getSuiteName().toLowerCase())); in getDir() 230 throw new FileNotFoundException(String.format( in getDir() 314 String.format("No Compatibility tests folder set, did you run lunch?")); in getTestsDir() 318 throw new FileNotFoundException(String.format( in getTestsDir() 364 String.format( in getTestFile() 369 throw new FileNotFoundException(String.format( in getTestFile() 391 return new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss").format(new Date(millis)); in getDirSuffix()
|
D | CompatibilityBuildProvider.java | 195 mBranch = String.format("%s-%s-%s-%s", in getBuild() 247 String.format("Missing install path property %s_ROOT", getSuiteInfoName())); in addCompatibilitySuiteInfo() 252 String.format("Root directory doesn't exist %s", rootDir.getAbsolutePath())); in addCompatibilitySuiteInfo() 265 File testDir = new File(rootDir, String.format("android-%s/testcases/", in addCompatibilitySuiteInfo() 293 String varName = String.format("%s_ROOT", getSuiteInfoName().replace('-', '_')); in getRootDirPath() 301 String.format("%s-root-dir", getSuiteInfoName())); in getRootDirPath() 302 new File(mArtificialRootDir, String.format("android-%s/testcases", in getRootDirPath() 307 String.format("%s was not set, and couldn't create an artificial one.", in getRootDirPath() 354 return new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss").format(new Date(millis)); in getDirSuffix()
|
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/ |
D | HalUsbGadgetV1_0HostTest.java | 57 .executeShellCommand(String.format("lshal | grep \"%s\"", HAL_SERVICE)) in beforeClassWithDevice() 101 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testAndroidUSB() 113 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMtp() 127 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testPtp() 143 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMIDI()
|