/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/ |
D | AutoConfigConstants.java | 22 public static final String RESOURCE_ID = "RESOURCE_ID"; 23 public static final String TEXT = "TEXT"; 24 public static final String TEXT_CONTAINS = "TEXT_CONTAINS"; 25 public static final String DESCRIPTION = "DESCRIPTION"; 26 public static final String CLASS = "CLASS"; 29 public static final String APP_GRID = "APP_GRID"; 30 public static final String APP_GRID_ACTIVITY = "APP_GRID_ACTIVITY"; 31 public static final String APP_GRID_PACKAGE = "APP_GRID_PACKAGE"; 32 public static final String APP_GRID_VIEW = "APP_GRID_VIEW"; 33 public static final String APP_GRID_VIEW_ID = "APP_GRID_VIEW_ID"; [all …]
|
D | AutoJsonUtility.java | 34 private static final String LOG_TAG = AutoJsonUtility.class.getSimpleName(); 37 private static final String CONFIG_FILE_PATH_PARAM = "config-file-path"; 40 public static final String APPLICATION_CONFIG = "APPLICATION_CONFIG"; 42 private Map<String, String> mApplicationConfigMap; 45 private Map<String, IAutoConfigUtility> configUtilityMap; 48 private static final String PATH_KEY = "PATH"; 49 private static final String OPTIONS_KEY = "OPTIONS"; 50 private static final String PATH_DELIMETER = ">"; 51 private static final String TYPE_KEY = "TYPE"; 52 private static final String VALUE_KEY = "VALUE"; [all …]
|
D | AutoAppGridConfigUtility.java | 25 private static final String LOG_TAG = AutoAppGridConfigUtility.class.getSimpleName(); 28 private static final String APP_GRID_PACKAGE = "com.android.car.carlauncher"; 29 private static final String APP_GRID_ACTIVITY = "com.android.car.carlauncher/.AppGridActivity"; 30 private static final String OPEN_APP_GRID_COMMAND = 34 private Map<String, AutoConfiguration> mAppGridConfigMap; 40 mAppGridConfigMap = new HashMap<String, AutoConfiguration>(); in AutoAppGridConfigUtility() 56 public String[] getPath(String menu) { in getPath() 66 public void addPath(String menu, String[] path) { in addPath() 75 public String[] getAvailableOptions(String menu) { in getAvailableOptions() 85 public void addAvailableOptions(String menu, String[] options) { in addAvailableOptions() [all …]
|
D | AutoConfigResource.java | 22 private String resourceType; 25 private String resourceValue; 28 private String resourcePackage; 31 public AutoConfigResource(String resourceType, String resourceValue) { in AutoConfigResource() 36 public AutoConfigResource(String resourceType, String resourceValue, String resourcePackage) { in AutoConfigResource() 43 public String getResourceType() { in getResourceType() 48 public String getResourceValue() { in getResourceValue() 53 public String getResourcePackage() { in getResourcePackage() 58 public void setResourceType(String resourceType) { in setResourceType() 63 public void setResourceValue(String resourceValue) { in setResourceValue() [all …]
|
D | AutoLockScreenConfigUtility.java | 25 private static final String LOG_TAG = AutoLockScreenConfigUtility.class.getSimpleName(); 28 private static final String LOCK_SCREEN_PACKAGE = "com.android.systemui"; 31 private Map<String, AutoConfiguration> mLockScreenConfigMap; 37 mLockScreenConfigMap = new HashMap<String, AutoConfiguration>(); in AutoLockScreenConfigUtility() 53 public String[] getPath(String menu) { in getPath() 63 public void addPath(String menu, String[] path) { in addPath() 72 public String[] getAvailableOptions(String menu) { in getAvailableOptions() 82 public void addAvailableOptions(String menu, String[] options) { in addAvailableOptions() 92 public AutoConfigResource getResourceConfiguration(String configName, String resourceName) { in getResourceConfiguration() 105 public boolean isValidConfiguration(String configName) { in isValidConfiguration() [all …]
|
D | AutoHomeConfigUtility.java | 25 private static final String LOG_TAG = AutoHomeConfigUtility.class.getSimpleName(); 28 private static final String HOME_PACKAGE = "com.android.car.carlauncher"; 31 private Map<String, AutoConfiguration> mHomeConfigMap; 37 mHomeConfigMap = new HashMap<String, AutoConfiguration>(); in AutoHomeConfigUtility() 53 public String[] getPath(String menu) { in getPath() 63 public void addPath(String menu, String[] path) { in addPath() 72 public String[] getAvailableOptions(String menu) { in getAvailableOptions() 82 public void addAvailableOptions(String menu, String[] options) { in addAvailableOptions() 92 public AutoConfigResource getResourceConfiguration(String configName, String resourceName) { in getResourceConfiguration() 105 public boolean isValidConfiguration(String configName) { in isValidConfiguration() [all …]
|
D | AutoNotificationsConfigUtility.java | 24 private static final String LOG_TAG = AutoNotificationsConfigUtility.class.getSimpleName(); 27 private static final String SYSTEM_UI_PACKAGE = "com.android.systemui"; 28 private static final String RECYCLER_VIEW_CLASS = "androidx.recyclerview.widget.RecyclerView"; 29 private static final String OPEN_NOTIFICATIONS_COMMAND = "service call statusbar 1"; 32 private Map<String, AutoConfiguration> mNotificationConfigMap; 38 mNotificationConfigMap = new HashMap<String, AutoConfiguration>(); in AutoNotificationsConfigUtility() 54 public String[] getPath(String menu) { in getPath() 65 public void addPath(String menu, String[] path) { in addPath() 75 public String[] getAvailableOptions(String menu) { in getAvailableOptions() 86 public void addAvailableOptions(String menu, String[] options) { in addAvailableOptions() [all …]
|
/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/ |
D | ISettingsIntelligenceHelper.java | 28 public static final String DATA_URI_STRING_APP_INFO = "package:com.android.settings"; 30 public static final String PAGE_ACTION_HOME = ""; 31 public static final String PAGE_ACTION_ABOUT_PHONE = "android.settings.DEVICE_INFO_SETTINGS"; 32 public static final String PAGE_ACTION_ACCESSIBILITY = 34 public static final String PAGE_ACTION_ACCOUNT = "android.settings.SYNC_SETTINGS"; 35 public static final String PAGE_ACTION_APPLICATION = "android.settings.APPLICATION_SETTINGS"; 36 public static final String PAGE_ACTION_APP_INFO = 38 public static final String PAGE_ACTION_APP_NOTIFICATIONS = 40 public static final String PAGE_ACTION_AUTO_ROTATE_SCREEN = 42 public static final String PAGE_ACTION_BATTERY = "android.intent.action.POWER_USAGE_SUMMARY"; [all …]
|
/platform_testing/libraries/compatibility-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 | BusinessLogicMapStore.java | 26 private static Map<String, Map<String, String>> maps = new HashMap<>(); 28 public boolean hasMap(String mapName) { in hasMap() 32 public void putMap(String mapName, String separator, String... keyValuePairs) { in putMap() 33 Map<String, String> map = maps.get(mapName); in putMap() 39 for (String keyValuePair : keyValuePairs) { in putMap() 40 String[] tmp = keyValuePair.split(separator, 2); in putMap() 45 String key = tmp[0]; in putMap() 46 String value = tmp[1]; in putMap() 51 public static Map<String, String> getMap(String mapName) { in getMap() 52 Map<String, String> map = maps.get(mapName); in getMap()
|
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 | AbiUtils.java | 29 public static String createId(String abi, String name) { in createId() 30 return String.format("%s %s", abi, name); in createId() 37 public static String parseAbi(String id) { in parseAbi() 46 public static String[] parseId(String id) { in parseId() 48 return new String[] {"", ""}; in parseId() 57 public static String parseTestName(String id) { in parseTestName()
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | XmlConstants.java | 25 String ELEMENT_TESTSUITE = "testsuite"; 26 String ELEMENT_TESTCASE = "testcase"; 27 String ELEMENT_PROPERTIES = "properties"; 28 String ELEMENT_PROPERTY = "property"; 29 String ELEMENT_FAILURE = "failure"; 30 String ELEMENT_SKIPPED = "skipped"; 31 String ELEMENT_ERROR = "error"; 33 String ATTR_TESTSUITE_NAME = "name"; 34 String ATTR_TESTSUITE_TESTS = "tests"; 35 String ATTR_TESTSUITE_FAILURES = "failures"; [all …]
|
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/interfaces/ |
D | IAutoConfigUtility.java | 23 void loadDefaultConfig(Map<String, String> mApplicationConfigMap); in loadDefaultConfig() argument 26 AutoConfigResource getResourceConfiguration(String configName, String resourceName); in getResourceConfiguration() 29 String[] getAvailableOptions(String menu); in getAvailableOptions() 32 void addAvailableOptions(String menu, String[] options); in addAvailableOptions() 35 String[] getPath(String menu); in getPath() 38 void addPath(String menu, String[] options); in addPath() 41 boolean isValidConfiguration(String configName); in isValidConfiguration() 44 boolean isValidResource(String configName, String resourceName); in isValidResource() 47 boolean isValidOption(String menu); in isValidOption() 50 boolean isValidPath(String menu); in isValidPath()
|
/platform_testing/libraries/collectors-helper/simpleperf/src/com/android/helpers/ |
D | SimpleperfHelper.java | 41 private static final String LOG_TAG = SimpleperfHelper.class.getSimpleName(); 42 private static final String SIMPLEPERF_TMP_FILE_PATH = "/data/local/tmp/perf.data"; 43 private static final String SIMPLEPERF_REPORT_TMP_FILE_PATH = "/data/local/tmp/perf_report.txt"; 45 private static final String SIMPLEPERF_START_CMD = "simpleperf %s -o %s %s"; 46 private static final String SIMPLEPERF_STOP_CMD = "pkill -INT simpleperf"; 47 private static final String SIMPLEPERF_PROC_ID_CMD = "pidof simpleperf"; 48 private static final String REMOVE_CMD = "rm %s"; 49 private static final String MOVE_CMD = "mv %s %s"; 68 public boolean startCollecting(String subcommand, String arguments) { in startCollecting() 79 Log.i(LOG_TAG, String.format("Starting simpleperf")); in startCollecting() [all …]
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | PinnerHelper.java | 37 public class PinnerHelper implements ICollectorHelper<String> { 38 private static final String TAG = PinnerHelper.class.getSimpleName(); 40 @VisibleForTesting public static final String PINNER_CMD = "dumpsys pinner"; 41 private static final String PINNED_FILES_TOTAL_SIZE = "Total size"; 42 public static final String SYSTEM_HEADER_NAME = "pinner_system"; 43 public static final String TOTAL_SIZE_BYTES_KEY = "pinner_total_size_bytes"; 44 public static final String TOTAL_FILE_COUNT_KEY = "pinner_total_files_count"; 45 public static final String OUTPUT_FILE_PATH_KEY = "pinner_output_file"; 46 public static final String PINNER_FILES_COUNT_SUFFIX = "files_count"; 47 private String mTestOutputDir = null; [all …]
|
D | HeapDumpHelper.java | 32 public class HeapDumpHelper implements ICollectorHelper<String> { 33 private static final String TAG = HeapDumpHelper.class.getSimpleName(); 34 private static final String HEAPDUMP_OUTPUT_FILE_METRIC_NAME = "heapdump_file_"; 35 private static final String HEAPDUMP_CMD = "am dumpheap %s %s"; 37 String mId = null; 39 private String[] mProcessNames = null; 40 private String mTestOutputDir = null; 42 HashMap<String, String> mHeapDumpFinalMap; 49 public void setUp(String testOutputDir, String... processNames) { in setUp() 56 public boolean startCollecting(String id) { in startCollecting() [all …]
|
D | ShowmapSnapshotHelper.java | 44 public class ShowmapSnapshotHelper implements ICollectorHelper<String> { 45 private static final String TAG = ShowmapSnapshotHelper.class.getSimpleName(); 47 private static final String DROP_CACHES_CMD = "echo %d > /proc/sys/vm/drop_caches"; 48 private static final String PIDOF_CMD = "pidof %s"; 49 public static final String ALL_PROCESSES_CMD = "ps -A"; 50 private static final String SHOWMAP_CMD = "showmap -v %d"; 51 private static final String CHILD_PROCESSES_CMD = "ps -A --ppid %d"; 53 public static final String OUTPUT_METRIC_PATTERN = "showmap_%s_bytes"; 54 public static final String OUTPUT_FILE_PATH_KEY = "showmap_output_file"; 55 public static final String PROCESS_COUNT = "process_count"; [all …]
|
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/ |
D | IAutoDialHelper.java | 39 void dialANumber(String phoneNumber); in dialANumber() 62 void callContact(String contactName); in callContact() 76 String getDialedNumber(); in getDialedNumber() 83 String getDialInNumber(); in getDialInNumber() 90 String getDialedContactName(); in getDialedContactName() 97 String getRecentCallHistory(); in getRecentCallHistory() 113 void dialFromList(String contact); in dialFromList() 122 void inCallDialPad(String phoneNumber); in inCallDialPad() 159 String getContactName(); in getContactName() 166 String getContactType(); in getContactType() [all …]
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | CompilationFilterRule.java | 36 private static final String LOG_TAG = CompilationFilterRule.class.getSimpleName(); 38 @VisibleForTesting static final String COMPILE_CMD_FORMAT = "cmd package compile -f -m %s %s"; 39 @VisibleForTesting static final String DUMP_PROFILE_CMD = "killall -s SIGUSR1 %s"; 40 private static final ImmutableList<String> COMPILE_FILTER_LIST = 42 @VisibleForTesting static final String SPEED_PROFILE_FILTER = "speed-profile"; 43 private static final String PROFILE_SAVE_TIMEOUT = "profile-save-timeout"; 44 @VisibleForTesting static final String COMPILE_FILTER_OPTION = "compilation-filter"; 45 @VisibleForTesting static final String COMPILE_SUCCESS = "Success"; 46 @VisibleForTesting static Set<String> mCompiledTests = new HashSet<>(); 48 private final String[] mApplications; [all …]
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | DumpsysServiceHelper.java | 34 public class DumpsysServiceHelper implements ICollectorHelper<String> { 36 private static final String TAG = DumpsysServiceHelper.class.getSimpleName(); 38 private static final String DUMPSYS_CMD = "dumpsys %s"; 40 private static final String DUMPSYS_OUTPUT_DIRECTORY = "/sdcard/test_results"; 42 private static final String DUMPSYS_OUTPUT_FILENAME = "dumpsys_service_%s.txt"; 44 private static final String DUMPSYS_SERVICE_KEY = "dumpsys_service_%s"; 46 private String[] mServiceNames = {}; 49 public void setUp(String... serviceNames) { in setUp() 68 public Map<String, String> getMetrics() { in getMetrics() 69 Map<String, String> metrics = new HashMap<>(); in getMetrics() [all …]
|
D | TimeInStateHelper.java | 35 private static final String LOG_TAG = TimeInStateHelper.class.getSimpleName(); 36 private static final String METRIC_KEY_PREFIX = "time_in_state"; 37 private static final String AVG_FREQ_KEY_SUFFIX = "avg_freq"; 39 private static final String KEY_SOURCE_SEPARATOR = "@"; 41 private static final String METRICS_LOG_FMT = "metrics key: %s, value: %d"; 42 private static final String READ_FILE_CMD = "cat %s"; 43 private static final String CHECK_FILE_EXIST_CMD = "file -b %s"; 45 private List<String> mMetricKeys = new ArrayList<>(); 46 private List<String> mSourceLocations = new ArrayList<>(); 47 private List<Map<String, Long>> mBeforeFreqStats; [all …]
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | DumpsysServiceHelperTest.java | 44 private static final String DUMPSYS_OUTPUT_DIRECTORY = "/sdcard/test_results"; 46 private static final String DUMPSYS_OUTPUT_FILENAME = "dumpsys_service_%s.txt"; 48 private static final String DUMPSYS_SERVICE_KEY = "dumpsys_service_%s"; 51 private static final String TEST_SERVICE_NAME = "media.camera"; 53 private static final String TEST_SERVICE_NAME_2 = "meminfo"; 71 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_noService() 82 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_oneService() 85 String key = String.format(DUMPSYS_SERVICE_KEY, TEST_SERVICE_NAME); in testCollectDumpsys_oneService() 86 String path = in testCollectDumpsys_oneService() 89 String.format(DUMPSYS_OUTPUT_FILENAME, TEST_SERVICE_NAME)) in testCollectDumpsys_oneService() [all …]
|
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/ |
D | PerfettoHelper.java | 36 private static final String LOG_TAG = PerfettoHelper.class.getSimpleName(); 42 private static final String PERFETTO_START_CMD = "perfetto --background-wait -c %s%s -o %s"; 43 private static final String PERFETTO_TMP_OUTPUT_FILE = 46 private static final String PERFETTO_TXT_PROTO_ARG = " --txt"; 48 private static final String PERFETTO_STOP_CMD = "kill %d"; 50 private static final String PERFETTO_PROC_ID_EXIST_CHECK = "ls -l /proc/%d/exe"; 52 private static final String REMOVE_CMD = "rm %s"; 54 private static final String MOVE_CMD = "mv %s %s"; 62 private String mConfigRootDir; 76 public boolean startCollecting(String configFileName, boolean isTextProtoConfig) { in startCollecting() [all …]
|