Home
last modified time | relevance | path

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

12345678910>>...15

/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DDevicePropertyInfo.java32 private final String mAbi;
33 private final String mAbi2;
34 private final String mAbis;
35 private final String mAbis32;
36 private final String mAbis64;
37 private final String mBoard;
38 private final String mBrand;
39 private final String mDevice;
40 private final String mFingerprint;
41 private final String mId;
[all …]
DBackupUtils.java38 private static final String LOCAL_TRANSPORT_NAME =
40 private static final String LOCAL_TRANSPORT_NAME_PRE_Q =
42 private static final String LOCAL_TRANSPORT_PACKAGE = "com.android.localtransport";
43 public static final String LOCAL_TRANSPORT_TOKEN = "1";
51 private static final String MATCH_LINE_BACKUP_MANAGER_IS_NOT_PENDING_INIT =
54 private static final String BACKUP_DUMPSYS_CURRENT_TOKEN_FIELD = "Current:";
60 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand()
62 public void executeShellCommandSync(String command) throws IOException { in executeShellCommandSync()
66 public String getShellCommandOutput(String command) throws IOException { in getShellCommandOutput()
71 public void backupNowAndAssertSuccess(String packageName) throws IOException { in backupNowAndAssertSuccess()
[all …]
DDynamicConfig.java42 public static final String NS = null;
43 public static final String CONFIG_TAG = "dynamicConfig";
44 public static final String ENTRY_TAG = "entry";
45 public static final String VALUE_TAG = "value";
46 public static final String KEY_ATTR = "key";
48 public static final String REMOTE_CONFIG_REQUIRED_KEY = "remote_config_required";
49 public static final String REMOTE_CONFIG_RETRIEVED_KEY = "remote_config_retrieved";
50 public static final String CONFIG_FOLDER_ON_DEVICE = "/sdcard/dynamic-config-files/";
52 protected Map<String, List<String>> mDynamicConfigMap = new HashMap<String, List<String>>();
64 public String getValue(String key) { in getValue()
[all …]
DResultHandler.java57 private static final String ENCODING = "UTF-8";
58 private static final String TYPE = "org.kxml2.io.KXmlParser,org.kxml2.io.KXmlSerializer";
59 private static final String NS = null;
60 private static final String RESULT_FILE_VERSION = "5.0";
61 public static final String TEST_RESULT_FILE_NAME = "test_result.xml";
62 public static final String FAILURE_REPORT_NAME = "test_result_failures.html";
63 private static final String FAILURE_XSL_FILE_NAME = "compatibility_failures.xsl";
65 public static final String[] RESULT_RESOURCES = {
73 private static final String ABI_ATTR = "abi";
74 private static final String BUGREPORT_TAG = "BugReport";
[all …]
DReportLog.java37 private static final String ENCODING = "UTF-8";
38 private static final String TYPE = "org.kxml2.io.KXmlParser,org.kxml2.io.KXmlSerializer";
41 private static final String METRIC_TAG = "Metric";
42 private static final String MESSAGE_ATTR = "message";
43 private static final String SCORETYPE_ATTR = "score_type";
44 private static final String SCOREUNIT_ATTR = "score_unit";
45 private static final String SOURCE_ATTR = "source";
46 private static final String SUMMARY_TAG = "Summary";
47 private static final String VALUE_TAG = "Value";
48 private static final String DEFAULT_NAME = "default";
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepoTest.java61 private static final String TOKEN =
65 private static final String CONFIG =
72 private static final String FOOBAR_TOKEN = "foobar";
73 private static final String SERIAL1 = "abc";
74 private static final String SERIAL2 = "def";
75 private static final String SERIAL3 = "ghi";
76 private static final Set<String> SERIALS = new HashSet<>();
78 private static final List<String> DEVICE_TOKENS = new ArrayList<>();
79 private static final List<String> TEST_ARGS= new ArrayList<>();
80 private static final List<String> MODULE_ARGS = new ArrayList<>();
[all …]
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DResultHandlerTest.java38 private static final String SUITE_NAME = "CTS";
39 private static final String SUITE_VERSION = "5.0";
40 private static final String SUITE_PLAN = "cts";
41 private static final String SUITE_BUILD = "12345";
42 private static final String REPORT_VERSION = "5.0";
43 private static final String OS_NAME = System.getProperty("os.name");
44 private static final String OS_VERSION = System.getProperty("os.version");
45 private static final String OS_ARCH = System.getProperty("os.arch");
46 private static final String JAVA_VENDOR = System.getProperty("java.vendor");
47 private static final String JAVA_VERSION = System.getProperty("java.version");
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsMultiDeviceTest.java72 static final String ACTS_TEST_MODULE = "ACTS_TEST_MODULE";
73 static final String ADAPTER_ACTS_PATH = "vts/runners/adapters/acts/acts_adapter";
74 static final String ANDROIDDEVICE = "AndroidDevice";
75 static final String BUILD = "build";
76 static final String BUILD_ID = "build_id";
77 static final String BUILD_TARGET = "build_target";
78 static final String COVERAGE_PROPERTY = "ro.vts.coverage";
79 static final String DATA_FILE_PATH = "data_file_path";
80 static final String LOG_PATH = "log_path";
81 static final String LOG_SEVERITY = "log_severity";
[all …]
DVtsMultiDeviceTestResultParser.java46 String[] mAllLines;
47 String mCurrentLine;
52 String mTestClass;
54 String mCurrentTraceback;
58 private Map<TestDescription, String> mTestResultCache;
60 private String mRunName = null;
61 private String mCurrentTestName = null;
69 static final String CASE_OK = "ok";
70 static final String RUN_OK = "OK";
71 static final String RUN_FAILED = "FAILED";
[all …]
DVtsFuzzTest.java36 private static final String LOG_TAG = "VtsFuzzTest";
37 static final String DEFAULT_FUZZER_BINARY_PATH = "/system/bin/fuzzer";
45 private static final String VTS_FUZZ_TEST_FLAG_CLASS = "--class";
46 private static final String VTS_FUZZ_TEST_FLAG_TYPE = "--type";
47 private static final String VTS_FUZZ_TEST_FLAG_VERSION = "--version";
48 private static final String VTS_FUZZ_TEST_FLAG_EPOCH_COUNT = "--epoch_count";
54 private String mFuzzerBinaryPath = DEFAULT_FUZZER_BINARY_PATH;
58 private String mTargetComponentPath = null;
62 private String mTargetClass = null;
66 private String mTargetType = null;
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepo.java62 private static final String CONFIG_EXT = ".config";
63 private static final Map<String, Integer> ENDING_MODULES = new HashMap<>();
77 private Map<String, Set<String>> mDeviceTokens = new HashMap<>();
78 private Map<String, Map<String, List<String>>> mTestArgs = new HashMap<>();
79 private Map<String, Map<String, List<String>>> mModuleArgs = new HashMap<>();
81 private Map<String, List<TestFilter>> mIncludeFilters = new HashMap<>();
82 private Map<String, List<TestFilter>> mExcludeFilters = new HashMap<>();
102 protected Map<String, Set<String>> getDeviceTokens() { in getDeviceTokens()
111 private String mPattern;
113 public NameFilter(String pattern) { in NameFilter()
[all …]
DSubPlan.java38 private final Set<String> mIncludes;
39 private final Set<String> mExcludes;
41 private static final String ENCODING = "UTF-8";
42 private static final String NS = null; // namespace used for XML serializer
43 private static final String VERSION_ATTR = "version";
44 private static final String SUBPLAN_VERSION = "2.0";
46 private static final String SUBPLAN_TAG = "SubPlan";
47 private static final String ENTRY_TAG = "Entry";
48 private static final String EXCLUDE_ATTR = "exclude";
49 private static final String INCLUDE_ATTR = "include";
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DBusinessLogicPreparer.java77 private static final String SUITE_PLACEHOLDER = "{suite-name}";
80 private static final String GLOBAL_APE_API_KEY = "ape-api-key";
83 private static final String FILE_LOCATION = "business-logic";
85 private static final String BL_CACHE_FILE = "business-logic-cache";
91 private static final String FILE_EXT = ".bl";
97 private static final String DYNAMIC_CONFIG_FEATURES_KEY = "business_logic_device_features";
98 private static final String DYNAMIC_CONFIG_PROPERTIES_KEY = "business_logic_device_properties";
99 private static final String DYNAMIC_CONFIG_PACKAGES_KEY = "business_logic_device_packages";
100 private static final String DYNAMIC_CONFIG_EXTENDED_DEVICE_INFO_KEY =
102 private static final String DYNAMIC_CONFIG_CONDITIONAL_TESTS_ENABLED_KEY =
[all …]
DDeviceInfoCollector.java43 public static final String DEVICE_INFO_DIR = "device_info_dir";
44 public static final String SKIP_DEVICE_INFO_OPTION = "skip-device-info";
46 private static final String ABI = "ro.product.cpu.abi";
47 private static final String ABI2 = "ro.product.cpu.abi2";
48 private static final String ABIS = "ro.product.cpu.abilist";
49 private static final String ABIS_32 = "ro.product.cpu.abilist32";
50 private static final String ABIS_64 = "ro.product.cpu.abilist64";
51 private static final String BOARD = "ro.product.board";
52 private static final String BRAND = "ro.product.brand";
53 private static final String DEVICE = "ro.product.device";
[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 …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildProvider.java53 private static final String ROOT_DIR = "ROOT_DIR";
54 private static final String SUITE_BUILD = "SUITE_BUILD";
55 private static final String SUITE_NAME = "SUITE_NAME";
56 private static final String SUITE_FULL_NAME = "SUITE_FULL_NAME";
57 private static final String SUITE_VERSION = "SUITE_VERSION";
58 private static final String SUITE_PLAN = "SUITE_PLAN";
59 private static final String RESULT_DIR = "RESULT_DIR";
60 private static final String START_TIME_MS = "START_TIME_MS";
61 public static final String DYNAMIC_CONFIG_OVERRIDE_URL = "DYNAMIC_CONFIG_OVERRIDE_URL";
64 private static final String API_KEY = "AIzaSyAbwX5JRlmsLeygY2WWihpIJPXFLueOQ3U";
[all …]
DCompatibilityBuildHelper.java39 public static final String MODULE_IDS = "MODULE_IDS";
40 public static final String ROOT_DIR = "ROOT_DIR";
41 public static final String SUITE_BUILD = "SUITE_BUILD";
42 public static final String SUITE_NAME = "SUITE_NAME";
43 public static final String SUITE_FULL_NAME = "SUITE_FULL_NAME";
44 public static final String SUITE_VERSION = "SUITE_VERSION";
45 public static final String SUITE_PLAN = "SUITE_PLAN";
46 public static final String START_TIME_MS = "START_TIME_MS";
47 public static final String COMMAND_LINE_ARGS = "command_line_args";
49 private static final String ROOT_DIR2 = "ROOT_DIR2";
[all …]
/test/suite_harness/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/
DManifestGeneratorTest.java30 private static final String PACKAGE = "test.package";
31 private static final String INSTRUMENT = "test.package.TestInstrument";
32 private static final String MIN_SDK = "8";
33 private static final String TARGET_SDK = "17";
34 …private static final String MANIFEST = "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\r…
46 private static final String PERMISSION = " <uses-permission android:name=\"%s\" />\r\n";
47 private static final String PERMISSION_A = "android.permission.PermissionA";
48 private static final String PERMISSION_B = "android.permission.PermissionB";
49 private static final String ACTIVITY = " <activity android:name=\"%s\" />\r\n";
50 private static final String ACTIVITY_A = "test.package.ActivityA";
[all …]
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsCoveragePreparer.java49 static final String BUILD_INFO_ARTIFACT = "BUILD_INFO"; // name of build info artifact
50 static final String GCOV_PROPERTY = "ro.vts.coverage"; // indicates gcov when val is 1
51 static final String GCOV_ARTIFACT = "%s-coverage-%s.zip"; // gcov coverage artifact
52 static final String GCOV_FILE_NAME = "gcov.zip"; // gcov zip file to pass to VTS
54 static final String SELINUX_DISABLED = "Disabled"; // selinux disabled
55 static final String SELINUX_ENFORCING = "Enforcing"; // selinux enforcing mode
56 static final String SELINUX_PERMISSIVE = "Permissive"; // selinux permissive mode
58 static final String SYMBOLS_ARTIFACT = "%s-symbols-%s.zip"; // symbolized binary zip
59 static final String SYMBOLS_FILE_NAME = "symbols.zip"; // sancov zip to pass to VTS
60 static final String SANCOV_FLAVOR = "_asan_coverage"; // sancov device build flavor
[all …]
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DRootProcessScanner.java32 private Set<String> mPidDirs;
38 String lsOutput = device.executeShellCommand("ls -F /proc | grep /$"); // directories only in RootProcessScanner()
39 String[] lines = lsOutput.split("/?\r?\n"); // split by line, shave "/" suffix if present in RootProcessScanner()
40 for (String line : lines) { in RootProcessScanner()
42 mPidDirs.add(String.format("/proc/%s", line)); in RootProcessScanner()
64 private static Pattern getRootProcessWhitelistPattern(String... patterns) { in getRootProcessWhitelistPattern()
80 public Set<String> getRootProcesses(boolean approved) in getRootProcesses()
82 Set<String> rootProcessDirs = getRootProcessDirs(approved); in getRootProcesses()
83 Set<String> rootProcessNames = new HashSet<>(); in getRootProcesses()
84 for (String dir : rootProcessDirs) { in getRootProcesses()
[all …]
DPropertyUtil.java36 public static final String FIRST_API_LEVEL = "ro.product.first_api_level";
37 private static final String BUILD_TAGS_PROPERTY = "ro.build.tags";
38 private static final String BUILD_TYPE_PROPERTY = "ro.build.type";
39 private static final String MANUFACTURER_PROPERTY = "ro.product.manufacturer";
40 private static final String TAG_DEV_KEYS = "dev-keys";
41 private static final String VNDK_VERSION = "ro.vndk.version";
46 public static final String GOOGLE_SETTINGS_QUERY =
56 String buildTags = device.getProperty(BUILD_TAGS_PROPERTY); in isDevKeysBuild()
57 for (String tag : buildTags.split(",")) { in isDevKeysBuild()
71 String propString = device.getProperty(FIRST_API_LEVEL); in getFirstApiLevel()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/
DOptionHelperTest.java33 private static final String TEST_CLASS = "test-class";
34 private static final String TEST_CLASS_SHORTNAME = "c";
35 private static final String TEST_FILTER = "test-filter";
36 private static final String TEST_LOGPATH = "test-logpath";
37 private static final String TEST_NAME = "test-name";
38 private static final String TEST_SUITE = "test-suite";
39 private static final String TEST_SUITE_SHORTNAME = "s";
44 private String mTestClass = null;
48 private String mTestName = null;
53 private String mTestSuite = null;
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DBusinessLogicPreparerTest.java58 private Set<String> mPackages;
61 private static final String MEMORY_DEVICE_INFO_JSON =
68 private static final String MANUFACTURER_PROPERTY = "ro.product.manufacturer";
69 private static final String CONFIG_VERSION = "DYNAMIC_CONFIG_FILE:";
70 private static final String CONFIG_FILE_CONTENT =
100 private static final String LIST_FEATURE_QUERY = "pm list features";
101 private static final String FEATURE_WATCH = "android.hardware.type.watch";
102 private static final String FEATURE_LEANBACK = "android.software.leanback";
103 private static final String FEATURES =
112 private static final String GOOGLE_SETTINGS_QUERY =
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelperTest.java46 private static final String SUITE_NAME = "CTS";
47 private static final String SUITE_VERSION = "5.0";
48 private static final String SUITE_PLAN = "cts";
49 private static final String SUITE_BUILD = "12345";
50 private static final String NAME_A = "ModuleA";
51 private static final String NAME_B = "ModuleB";
52 private static final String ABI = "mips64";
53 private static final String ID_A = AbiUtils.createId(ABI, NAME_A);
54 private static final String ID_B = AbiUtils.createId(ABI, NAME_B);
55 private static final String BUILD_ID = "build_id";
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DCtsConfigLoadingTest.java60 private static final String METADATA_COMPONENT = "component";
61 private static final Set<String> KNOWN_COMPONENTS = new HashSet<>(Arrays.asList(
99 private static final Set<String> KNOWN_MISC_MODULES =
122 private static final Set<String> SUPPORTED_CTS_TEST_TYPE = new HashSet<>(Arrays.asList(
139 private static final Set<String> ALLOWED_INSTRUMENTATION_RUNNER_NAME = new HashSet<>();
144 private static final Set<String> RUNNER_EXCEPTION = new HashSet<>();
156 private static final Set<String> MANDATORY_PARAMETERS_FAMILY = new HashSet<>();
167 private static final Set<String> WHITELIST_MODULE_PARAMETERS = new HashSet<>();
188 String ctsRoot = System.getProperty("CTS_ROOT"); in testConfigurationLoad()
191 fail(String.format("%s does not exists", testcases)); in testConfigurationLoad()
[all …]

12345678910>>...15