Home
last modified time | relevance | path

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

123456789

/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java48 String state = "/sys/class/android_usb/android0/state"; in testAndroidUSB()
51 String content = getDevice().pullFileContents(state).trim(); in testAndroidUSB()
52 HashSet<String> possibles = in testAndroidUSB()
67 String filePath = "/sys/devices/system/cpu/online"; in testCpuOnlineFormat()
69 String content = getDevice().pullFileContents(filePath).trim(); in testCpuOnlineFormat()
73 private void isReadOnlyAndIntegerContent(String filePath) throws Exception { in isReadOnlyAndIntegerContent()
76 String content = getDevice().pullFileContents(filePath).trim(); in isReadOnlyAndIntegerContent()
81 private void isReadWriteAndIntegerContent(String filePath) throws Exception { in isReadWriteAndIntegerContent()
84 String content = getDevice().pullFileContents(filePath).trim(); in isReadWriteAndIntegerContent()
95 String filePath = "/sys/devices/system/cpu/present"; in testPerCpuCpufreq()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/entity/
DDeviceInfoEntity.java52 public static final String KIND = "DeviceInfo";
55 public static final String BRANCH = "branch";
56 public static final String PRODUCT = "product";
57 public static final String BUILD_FLAVOR = "buildFlavor";
58 public static final String BUILD_ID = "buildId";
59 public static final String ABI_BITNESS = "abiBitness";
60 public static final String ABI_NAME = "abiName";
73 private String branch;
76 private String product;
79 private String buildFlavor;
[all …]
DProfilingPointEntity.java43 protected static final String DELIMITER = "#";
45 public static final String KIND = "ProfilingPoint";
48 public static final String TEST_NAME = "testName";
49 public static final String PROFILING_POINT_NAME = "profilingPointName";
50 public static final String TYPE = "type";
51 public static final String REGRESSION_MODE = "regressionMode";
52 public static final String X_LABEL = "xLabel";
53 public static final String Y_LABEL = "yLabel";
60 private String name;
64 private String profilingPointName;
[all …]
DProfilingPointSummaryEntity.java47 protected static final String DELIMITER = "#";
49 public static final String KIND = "ProfilingPointSummary";
50 public static final String ALL = "ALL";
53 public static final String START_TIME = "startTime";
54 public static final String MEAN = "mean";
55 public static final String SUMSQ = "sumSq";
56 public static final String MIN = "min";
57 public static final String MAX = "max";
58 public static final String LABELS = "labels";
59 public static final String LABEL_MEANS = "labelMeans";
[all …]
DCoverageEntity.java52 public static final String KIND = "Coverage";
54 public static String GERRIT_URI;
57 public static final String GROUP = "group";
58 public static final String COVERED_LINE_COUNT = "coveredCount";
59 public static final String TOTAL_LINE_COUNT = "totalCount";
60 public static final String FILE_PATH = "filePath";
61 public static final String PROJECT_NAME = "projectName";
62 public static final String PROJECT_VERSION = "projectVersion";
63 public static final String LINE_COVERAGE = "lineCoverage";
71 @Index @Getter @Setter private String group;
[all …]
DTestSuiteResultEntity.java171 @Getter @Setter String resultPath;
174 @Getter @Setter String infraLogPath;
177 @Index @Getter @Setter String deviceName;
180 @Index @Getter @Setter String hostName;
183 @Index @Getter @Setter String suitePlan;
186 @Getter @Setter String suiteVersion;
189 @Getter @Setter String suiteName;
192 @Getter @Setter String suiteBuildNumber;
201 @Index @Getter @Setter String branch;
204 @Index @Getter @Setter String target;
[all …]
DProfilingPointRunEntity.java50 public static final String KIND = "ProfilingPointRun";
53 public static final String TYPE = "type";
54 public static final String REGRESSION_MODE = "regressionMode";
55 public static final String LABELS = "labels";
56 public static final String VALUES = "values";
57 public static final String X_LABEL = "xLabel";
58 public static final String Y_LABEL = "yLabel";
59 public static final String OPTIONS = "options";
69 private String name;
82 private List<String> labels;
[all …]
DTestAcknowledgmentEntity.java54 public static final String KIND = "TestAcknowledgment";
55 public static final String KEY = "key";
56 public static final String TEST_KEY = "testKey";
57 public static final String TEST_NAME = "testName";
58 public static final String USER_OBJ = "userObj";
59 public static final String CREATED = "created";
60 public static final String BRANCHES = "branches";
61 public static final String DEVICES = "devices";
62 public static final String TEST_CASE_NAMES = "testCaseNames";
63 public static final String NOTE = "note";
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/util/
DBoxPlot.java33 private static final String LABEL_KEY = "label";
34 private static final String SERIES_KEY = "seriesList";
35 private static final String MEAN_KEY = "mean";
36 private static final String STD_KEY = "std";
37 private static final String COUNT_KEY = "count";
39 private static final String DAY = "Day";
42 private final String name;
43 private final String xLabel;
44 private final String yLabel;
45 private final Map<String, Map<String, StatSummary>> labelSeriesMap;
[all …]
DTestResults.java53 private Map<String, Integer> testCaseNameMap; // map from test case name to its order
54 private Set<String> profilingPointNameSet; // set of profiling point names
56 public String testName;
57 public String[] headerRow; // row to display above the test results table
58 public String[][] timeGrid; // grid of data storing timestamps to render as dates
59 public String[][] durationGrid; // grid of data storing timestamps to render as time intervals
60 public String[][] summaryGrid; // grid of data displaying a summary of the test run
61 public String[][] resultsGrid; // grid of data displaying test case results
62 public String[] profilingPointNames; // list of profiling point names in the test run
63 public Map<String, List<String[]>> logInfoMap; // map from test run index to url/display pairs
[all …]
DPerformanceUtil.java42 private static final String NAME_DELIMITER = ", ";
43 private static final String OPTION_DELIMITER = "=";
66 public static String getPercentChangeHTML( in getPercentChangeHTML()
69 String classNames, in getPercentChangeHTML()
70 String style, in getPercentChangeHTML()
72 String pctChangeString = "0 %"; in getPercentChangeHTML()
87 String color = "background-color: rgba(255, 0, 0, " + alpha + "); "; in getPercentChangeHTML()
88 String html = "<td class='" + classNames + "' style='" + color + style + "'>"; in getPercentChangeHTML()
104 public static String getBestCasePerformanceComparisonHTML( in getBestCasePerformanceComparisonHTML()
107 String innerClasses, in getBestCasePerformanceComparisonHTML()
[all …]
/test/app_compat/csuite/instrumentation/launch/src/main/java/com/android/compatibilitytest/
DAppCompatibility.java63 private static final String TAG = AppCompatibility.class.getSimpleName();
64 private static final String PACKAGE_TO_LAUNCH = "package_to_launch";
65 private static final String APP_LAUNCH_TIMEOUT_MSECS = "app_launch_timeout_ms";
66 private static final String ARG_DISMISS_DIALOG = "ARG_DISMISS_DIALOG";
67 private static final Set<String> DROPBOX_TAGS = new HashSet<>();
80 private String mLauncherPackageName;
82 private Map<String, List<String>> mAppErrors = new HashMap<>();
115 String appLaunchTimeoutMsecs = mArgs.getString(APP_LAUNCH_TIMEOUT_MSECS); in setUp()
142 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); in testAppStability()
145 String.format( in testAppStability()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/job/
DVtsPerformanceJobServlet.java52 private static final String PERFORMANCE_JOB_URL = "/cron/vts_performance_job";
53 private static final String MEAN = "Mean";
54 private static final String MAX = "Max";
55 private static final String MIN = "Min";
56 private static final String MIN_DELTA = "&Delta;Min (%)";
57 private static final String MAX_DELTA = "&Delta;Max (%)";
58 private static final String HIGHER_IS_BETTER =
60 private static final String LOWER_IS_BETTER =
62 private static final String STD = "Std";
63 private static final String SUBJECT_PREFIX = "Daily Performance Digest: ";
[all …]
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DRandomGraphTest.java35 private static final String TAG = "NN_RAND_MODEL";
39 private String getGeneratorOutFilePath(String fileExtension) { in getGeneratorOutFilePath()
44 private String getNnapiLogFilePath() { in getNnapiLogFilePath()
46 String logFile = getGeneratorOutFilePath("model.py"); in getNnapiLogFilePath()
47 Log.d(TAG, String.format("Writing NNAPI Fuzzer logs to %s", logFile)); in getNnapiLogFilePath()
54 private String getFailedModelDumpPath() { in getFailedModelDumpPath()
75 private final String mDescription;
77 RandomModelExecutionResult(int value, String description) { in RandomModelExecutionResult()
89 String.format("Invalid native result value %d", nativeResult)); in fromNativeResult()
93 public static final String MAX_TEST_DURATION = "max_test_duration";
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/result/
DCompatibilityTestResult.java27 public static final String KEY_PACKAGE = "app_package";
29 public static final String KEY_VERSION_CODE = "app_version_code";
30 public static final String KEY_VERSION_STRING = "app_version_string";
31 public static final String KEY_NAME = "app_name";
32 public static final String KEY_RANK = "app_rank";
33 public static final String KEY_STATUS = "status";
34 public static final String KEY_MESSAGE = "message";
36 public static final String SEPARATOR = "=@ppcomp@t=";
38 Pattern.compile(String.format("^%s(.*?)%s", SEPARATOR, SEPARATOR));
40 public static final String STATUS_SUCCESS = "success";
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DSystemPackageUninstaller.java42 @VisibleForTesting static final String OPTION_PACKAGE_NAME = "package-name";
43 static final String SYSPROP_DEV_BOOTCOMPLETE = "dev.bootcomplete";
44 static final String SYSPROP_SYS_BOOT_COMPLETED = "sys.boot_completed";
47 @VisibleForTesting static final String PM_CHECK_COMMAND = "pm path android";
49 public static void uninstallPackage(String packageName, ITestDevice device) in uninstallPackage()
83 String packageInstallDirectory = getPackageInstallDirectory(packageName, device); in uninstallPackage()
179 ITestDevice device, String command, String failureMessage) in executeShellCommandOrThrow()
185 String.format("%s; Command result: %s", failureMessage, commandResult)); in executeShellCommandOrThrow()
192 ITestDevice device, String command, String failureMessage) in executeShellCommandOrLog()
210 private static boolean isPackagePathSystemApp(String packagePath) { in isPackagePathSystemApp()
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/config/
DAppRemoteFileResolver.java103 private static final String URI_SCHEME = "app";
106 @VisibleForTesting static final String URI_TEMPLATE_OPTION = "uri-template";
109 private String mUriTemplate;
114 public String getSupportedProtocol() { in getSupportedProtocol()
132 File uriSchemeAndPathAsFile, Map<String, String> uriQueryAndExtraParameters) in resolveRemoteFiles() argument
146 String.format("%s=%s is empty", URI_TEMPLATE_OPTION, mUriTemplate)); in resolveRemoteFiles()
148 String packageName = appUri.getAuthority(); in resolveRemoteFiles()
149 String expanded = expandVars(mUriTemplate, ImmutableMap.of("package", packageName)); in resolveRemoteFiles()
156 String.format( in resolveRemoteFiles()
164 String.format( in resolveRemoteFiles()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowGreenReleaseServlet.java63 private String deviceBuildTarget;
65 private String candidateBuildId;
69 private String greenBuildId;
79 public DeviceBuildInfo(String deviceBuildTarget, String candidateBuildId) { in DeviceBuildInfo()
92 public String getDeviceBuildTarget() { in getDeviceBuildTarget()
101 public String getCandidateBuildId() { in getCandidateBuildId()
106 public void setCandidateBuildId(String candidateBuildId) { in setCandidateBuildId()
129 public String getGreenBuildId() { in getGreenBuildId()
134 public void setGreenBuildId(String greenBuildId) { in setGreenBuildId()
171 String planName = request.getParameter("plan"); in getBreadcrumbLinks()
[all …]
DShowPerformanceDigestServlet.java38 private static final String PERF_DIGEST_JSP = "WEB-INF/jsp/show_performance_digest.jsp";
40 private static final String MEAN = "Mean";
41 private static final String MIN = "Min";
42 private static final String MAX = "Max";
43 private static final String MEAN_DELTA = "&Delta;Mean (%)";
44 private static final String HIGHER_IS_BETTER =
46 private static final String LOWER_IS_BETTER =
48 private static final String STD = "Std";
66 String testName = request.getParameter("testName"); in getBreadcrumbLinks()
88 public static String getPerformanceSummary( in getPerformanceSummary()
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/util/
DPublicApkUtil.java38 private static final String LATEST_FILE = "latest.txt";
49 public static File constructApkDir(String baseDir, String subDir) throws IOException { in constructApkDir()
58 String date = FileUtil.readStringFromFile(latestFile).trim(); in constructApkDir()
94 public static List<ApkInfo> getApkList(String flavor, File dir, boolean fallbackToApkScan) in getApkList()
96 File apkFile = new File(dir, String.format("%s_ranking.csv", flavor)); in getApkList()
119 public boolean accept(File dir, String name) { in getApkListFromDirectory()
128 String.format("Failed to parse apk file %s", apk.getCanonicalPath())); in getApkListFromDirectory()
157 String line; in getApkListFromRankingInfo()
183 public final String packageName;
184 public final String versionString;
[all …]
/test/vts/testcases/host/firmware_dtbo_test/src/com/android/tests/firmwaredtbo/
DFirmwareDtboVerification.java52 private static final String BLOCK_DEV_PATH = "/dev/block/platform";
54 private static final String DEVICE_TEMP_DIR = "/data/local/tmp/";
56 private static final String FDT_PATH = "/sys/firmware/fdt";
58 private static final String PROPERTY_SLOT_SUFFIX = "ro.boot.slot_suffix";
66 private static final String MKDTBOIMG_TOOL = "mkdtboimg.py";
70 private String mDeviceTestRoot = null;
98 String slot_suffix = mDevice.getProperty(PROPERTY_SLOT_SUFFIX); in testCheckDTBOPartition()
102 String currentDtboPartition = "dtbo" + slot_suffix; in testCheckDTBOPartition()
103 String[] options = {"-type", "l"}; in testCheckDTBOPartition()
104 ArrayList<String> dtboPaths = TargetFileUtils.findFile( in testCheckDTBOPartition()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/api/
DCoverageRestServlet.java48 String pathInfo = request.getPathInfo(); in doGet()
49 String json = ""; in doGet()
52 String key = request.getParameter("key"); in doGet()
69 private String apiCoverageData(String key) { in apiCoverageData()
71 String apiCoverageEntityJson = new Gson().toJson(apiCoverageEntity); in apiCoverageData()
79 String pathInfo = request.getPathInfo(); in doPost()
80 String json = ""; in doPost()
83 String cmd = request.getParameter("cmd"); in doPost()
84 String coverageId = request.getParameter("coverageId"); in doPost()
85 String testName = request.getParameter("testName"); in doPost()
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DBenchmarkResult.java31 public final static String BACKEND_TFLITE_NNAPI = "TFLite_NNAPI";
32 public final static String BACKEND_TFLITE_CPU = "TFLite_CPU";
37 private String mTestInfo;
49 private String[] mEvaluatorKeys = {};
53 private String mBackendType;
62 private String[] mValidationErrors = {};
65 private String mBenchmarkError;
68 float sumOfMSEs, float maxSingleError, String testInfo, in BenchmarkResult()
69 String[] evaluatorKeys, float[] evaluatorResults, in BenchmarkResult()
70 String backendType, int testSetSize, String[] validationErrors) { in BenchmarkResult()
[all …]
DInferenceInOutSequence.java70 private String mInputAssetName;
71 private String[] mOutputAssetsNames;
75 public FromAssets(String inputAssetName, String[] outputAssetsNames, int dataBytesSize, in FromAssets()
130 private String mInputPath;
131 private String mLabelAssetName;
132 private String mGroundTruthAssetName;
133 private String mPreprocessorName;
139 public FromDataset(String inputPath, String labelAssetName, String groundTruthAssetName, in FromDataset()
140 String preprocessorName, int datasize, in FromDataset()
156 private boolean isImageFile(String fileName) { in isImageFile()
[all …]
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission()
71 public static String getPermission(String filepath, ITestDevice device) in getPermission()
93 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission()
95 throw new RuntimeException(String.format("Invalid group: %s", groupIndex)); in hasPermission()
99 String.format("Invalid permission bits: %s", permissionBits.length() + "")); in hasPermission()
114 throw new RuntimeException(String.format("Invalid permission bit: %d", perm)); in hasPermission()
121 throw new RuntimeException(String.format( in hasPermission()
143 public static ArrayList<String> findFile(String path, String namePattern, List<String> options, in findFile()
145 ArrayList<String> findedFiles = new ArrayList<>(); in findFile()
146 String command = String.format("find %s -name \"%s\"", path, namePattern); in findFile()
[all …]

123456789