/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | DevicePropertyInfo.java | 32 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 …]
|
D | BackupUtils.java | 38 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 …]
|
D | DynamicConfig.java | 42 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 …]
|
D | BusinessLogicExecutor.java | 32 protected static final String LOG_TAG = "BusinessLogicExecutor"; 35 protected static final String STRING_CLASS = "java.lang.String"; 36 protected static final String STRING_ARRAY_CLASS = "[Ljava.lang.String;"; 39 private static final String[] REDACTED_VALUES = new String[] {"permission"}; 40 private static final String REDACTED_PLACEHOLDER = "[redacted]"; 50 public boolean executeCondition(String method, String... args) { in executeCondition() 56 throw new RuntimeException(String.format( in executeCondition() 69 public void executeAction(String method, String... args) { in executeAction() 75 throw new RuntimeException(String.format( in executeAction() 97 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() [all …]
|
D | ReportLog.java | 37 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 …]
|
D | ResultHandler.java | 59 private static final String ENCODING = "UTF-8"; 60 private static final String TYPE = "org.kxml2.io.KXmlParser,org.kxml2.io.KXmlSerializer"; 61 private static final String NS = null; 62 private static final String RESULT_FILE_VERSION = "5.0"; 63 public static final String TEST_RESULT_FILE_NAME = "test_result.xml"; 64 public static final String FAILURE_REPORT_NAME = "test_result_failures.html"; 65 private static final String FAILURE_XSL_FILE_NAME = "compatibility_failures.xsl"; 67 public static final String[] RESULT_RESOURCES = { 75 private static final String ABI_ATTR = "abi"; 76 private static final String BUGREPORT_TAG = "BugReport"; [all …]
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
D | ModuleRepoTest.java | 61 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/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/ |
D | SubPlan.java | 38 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 …]
|
D | ModuleRepo.java | 65 private static final String CONFIG_EXT = ".config"; 66 private static final Map<String, Integer> ENDING_MODULES = new HashMap<>(); 80 private Map<String, Set<String>> mDeviceTokens = new HashMap<>(); 81 private Map<String, Map<String, List<String>>> mTestArgs = new HashMap<>(); 82 private Map<String, Map<String, List<String>>> mModuleArgs = new HashMap<>(); 84 private Map<String, List<TestFilter>> mIncludeFilters = new HashMap<>(); 85 private Map<String, List<TestFilter>> mExcludeFilters = new HashMap<>(); 105 protected Map<String, Set<String>> getDeviceTokens() { in getDeviceTokens() 114 private String mPattern; 116 public NameFilter(String pattern) { in NameFilter() [all …]
|
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/ |
D | KernelApiSysfsTest.java | 45 String state = "/sys/class/android_usb/android0/state"; in testAndroidUSB() 47 String content = getDevice().pullFileContents(state).trim(); in testAndroidUSB() 48 HashSet<String> possibles = in testAndroidUSB() 62 String filePath = "/sys/devices/system/cpu/online"; in testCpuOnlineFormat() 64 String content = getDevice().pullFileContents(filePath).trim(); in testCpuOnlineFormat() 68 private void isReadOnlyAndIntegerContent(String filePath) throws Exception { in isReadOnlyAndIntegerContent() 71 String content = getDevice().pullFileContents(filePath).trim(); in isReadOnlyAndIntegerContent() 76 private void isReadWriteAndIntegerContent(String filePath) throws Exception { in isReadWriteAndIntegerContent() 79 String content = getDevice().pullFileContents(filePath).trim(); in isReadWriteAndIntegerContent() 90 String filePath = "/sys/devices/system/cpu/present"; in testPerCpuCpufreq() [all …]
|
/test/suite_harness/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/ |
D | ManifestGeneratorTest.java | 30 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/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | ResultHandlerTest.java | 52 private static final String SUITE_NAME = "CTS"; 53 private static final String SUITE_VERSION = "5.0"; 54 private static final String SUITE_PLAN = "cts"; 55 private static final String SUITE_BUILD = "12345"; 56 private static final String REPORT_VERSION = "5.0"; 57 private static final String OS_NAME = System.getProperty("os.name"); 58 private static final String OS_VERSION = System.getProperty("os.version"); 59 private static final String OS_ARCH = System.getProperty("os.arch"); 60 private static final String JAVA_VENDOR = System.getProperty("java.vendor"); 61 private static final String JAVA_VERSION = System.getProperty("java.version"); [all …]
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/ |
D | VtsMultiDeviceTestResultParser.java | 46 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 …]
|
D | VtsMultiDeviceTest.java | 74 static final String ACTS_TEST_MODULE = "ACTS_TEST_MODULE"; 75 static final String ADAPTER_ACTS_PATH = "vts/runners/adapters/acts/acts_adapter"; 76 static final String ANDROIDDEVICE = "AndroidDevice"; 77 static final String BUILD = "build"; 78 static final String BUILD_ID = "build_id"; 79 static final String BUILD_TARGET = "build_target"; 80 static final String COVERAGE_PROPERTY = "ro.vts.coverage"; 81 static final String DATA_FILE_PATH = "data_file_path"; 82 static final String LOG_PATH = "log_path"; 83 static final String LOG_SEVERITY = "log_severity"; [all …]
|
D | VtsFuzzTest.java | 36 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/vti/dashboard/src/main/java/com/android/vts/entity/ |
D | DeviceInfoEntity.java | 52 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/result/suite/ |
D | CertificationResultXml.java | 37 public static final String SUITE_PLAN_ATTR = "suite_plan"; 38 private static final String LOG_URL_ATTR = "log_url"; 39 private static final String REPORT_VERSION_ATTR = "report_version"; 40 private static final String REFERENCE_URL_ATTR = "reference_url"; 41 private static final String RESULT_FILE_VERSION = "5.0"; 42 private static final String SUITE_NAME_ATTR = "suite_name"; 43 private static final String SUITE_VERSION_ATTR = "suite_version"; 44 private static final String SUITE_BUILD_ATTR = "suite_build_number"; 45 private static final String SUITE_VARIANT_ATTR = "suite_variant"; 47 private String mSuiteName; [all …]
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | RootProcessScanner.java | 32 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 …]
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/ |
D | OptionHelperTest.java | 33 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/src/com/android/compatibility/common/tradefed/targetprep/ |
D | BusinessLogicPreparer.java | 78 private static final String SUITE_PLACEHOLDER = "{suite-name}"; 81 private static final String GLOBAL_APE_API_KEY = "ape-api-key"; 84 private static final String FILE_LOCATION = "business-logic"; 86 private static final String BL_CACHE_FILE = "business-logic-cache"; 92 private static final String FILE_EXT = ".bl"; 98 private static final String DYNAMIC_CONFIG_FEATURES_KEY = "business_logic_device_features"; 99 private static final String DYNAMIC_CONFIG_PROPERTIES_KEY = "business_logic_device_properties"; 100 private static final String DYNAMIC_CONFIG_PACKAGES_KEY = "business_logic_device_packages"; 101 private static final String DYNAMIC_CONFIG_EXTENDED_DEVICE_INFO_KEY = 106 private String mUrl; [all …]
|
D | DeviceInfoCollector.java | 44 public static final String DEVICE_INFO_DIR = "device_info_dir"; 45 public static final String SKIP_DEVICE_INFO_OPTION = "skip-device-info"; 47 private static final String ABI = "ro.product.cpu.abi"; 48 private static final String ABI2 = "ro.product.cpu.abi2"; 49 private static final String ABIS = "ro.product.cpu.abilist"; 50 private static final String ABIS_32 = "ro.product.cpu.abilist32"; 51 private static final String ABIS_64 = "ro.product.cpu.abilist64"; 52 private static final String BOARD = "ro.product.board"; 53 private static final String BRAND = "ro.product.brand"; 54 private static final String DEVICE = "ro.product.device"; [all …]
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/ |
D | VtsCoveragePreparer.java | 49 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/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | BusinessLogicPreparerTest.java | 58 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/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildHelper.java | 38 public static final String MODULE_IDS = "MODULE_IDS"; 39 public static final String ROOT_DIR = "ROOT_DIR"; 40 public static final String SUITE_BUILD = "SUITE_BUILD"; 41 public static final String SUITE_NAME = "SUITE_NAME"; 42 public static final String SUITE_FULL_NAME = "SUITE_FULL_NAME"; 43 public static final String SUITE_VERSION = "SUITE_VERSION"; 44 public static final String SUITE_PLAN = "SUITE_PLAN"; 45 public static final String START_TIME_MS = "START_TIME_MS"; 46 public static final String COMMAND_LINE_ARGS = "command_line_args"; 48 private static final String ROOT_DIR2 = "ROOT_DIR2"; [all …]
|
D | CompatibilityBuildProvider.java | 56 private static final String ROOT_DIR = "ROOT_DIR"; 57 private static final String SUITE_BUILD = "SUITE_BUILD"; 58 private static final String SUITE_NAME = "SUITE_NAME"; 59 private static final String SUITE_FULL_NAME = "SUITE_FULL_NAME"; 60 private static final String SUITE_VERSION = "SUITE_VERSION"; 61 private static final String SUITE_PLAN = "SUITE_PLAN"; 62 private static final String RESULT_DIR = "RESULT_DIR"; 63 private static final String START_TIME_MS = "START_TIME_MS"; 64 public static final String DYNAMIC_CONFIG_OVERRIDE_URL = "DYNAMIC_CONFIG_OVERRIDE_URL"; 67 private static final String API_KEY = "AIzaSyAbwX5JRlmsLeygY2WWihpIJPXFLueOQ3U"; [all …]
|