/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 | 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 | 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 | 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 | 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 | 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 | 21 public static final String PAGE_ACTION_HOME = ""; 22 public static final String PAGE_ACTION_ABOUT_PHONE = "android.settings.DEVICE_INFO_SETTINGS"; 23 public static final String PAGE_ACTION_ACCESSIBILITY = 25 public static final String PAGE_ACTION_ACCOUNT = "android.settings.SYNC_SETTINGS"; 26 public static final String PAGE_ACTION_APPLICATION = "android.settings.APPLICATION_SETTINGS"; 27 public static final String PAGE_ACTION_APP_INFO = 29 public static final String PAGE_ACTION_APP_NOTIFICATIONS = 31 public static final String PAGE_ACTION_AUTO_ROTATE_SCREEN = 33 public static final String PAGE_ACTION_BATTERY = "android.intent.action.POWER_USAGE_SUMMARY"; 34 public static final String PAGE_ACTION_BLUETOOTH = "android.settings.BLUETOOTH_SETTINGS"; [all …]
|
/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/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 | 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()
|
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 | ITestResult.java | 28 String getName(); in getName() 34 String getFullName(); in getFullName() 51 String getMessage(); in getMessage() 56 void setMessage(String message); in setMessage() 61 String getStackTrace(); in getStackTrace() 66 void setStackTrace(String stackTrace); in setStackTrace() 81 String getBugReport(); in getBugReport() 86 void setBugReport(String path); in setBugReport() 91 String getLog(); in getLog() 96 void setLog(String path); in setLog() [all …]
|
D | IInvocationResult.java | 51 void setTestPlan(String plan); in setTestPlan() 56 String getTestPlan(); in getTestPlan() 61 void addDeviceSerial(String serial); in addDeviceSerial() 66 Set<String> getDeviceSerials(); in getDeviceSerials() 71 IModuleResult getOrCreateModule(String id); in getOrCreateModule() 86 void addInvocationInfo(String key, String value); in addInvocationInfo() 91 Map<String, String> getInvocationInfo(); in getInvocationInfo() 96 void setCommandLineArgs(String setCommandLineArgs); in setCommandLineArgs() 101 String getCommandLineArgs(); in getCommandLineArgs() 106 void setBuildFingerprint(String buildFingerprint); in setBuildFingerprint() [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/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/collectors-helper/memory/src/com/android/helpers/ |
D | ShowmapSnapshotHelper.java | 42 public class ShowmapSnapshotHelper implements ICollectorHelper<String> { 43 private static final String TAG = ShowmapSnapshotHelper.class.getSimpleName(); 45 private static final String DROP_CACHES_CMD = "echo %d > /proc/sys/vm/drop_caches"; 46 private static final String PIDOF_CMD = "pidof %s"; 47 public static final String ALL_PROCESSES_CMD = "ps -A"; 48 private static final String SHOWMAP_CMD = "showmap -v %d"; 49 private static final String CHILD_PROCESSES_CMD = "ps -A --ppid %d"; 51 public static final String OUTPUT_METRIC_PATTERN = "showmap_%s_bytes"; 52 public static final String OUTPUT_FILE_PATH_KEY = "showmap_output_file"; 53 public static final String PROCESS_COUNT = "process_count"; [all …]
|
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 …]
|
/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 …]
|
/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 private static Set<String> mCompiledTests = new HashSet<>(); 48 private final String[] mApplications; [all …]
|
D | Dex2oatPressureRule.java | 43 public static final String LOG_TAG = Dex2oatPressureRule.class.getSimpleName(); 46 public static final String PACKAGES_OPTION = "dex2oat-stressor-pkgs"; 49 public static final String COMPILATION_FILTER_OPTION = "dex2oat-stressor-compilation-filter"; 50 public static final String SPEED_FILTER = "speed"; 51 public static final ImmutableList<String> SUPPORTED_FILTERS_LIST = 55 public static final String ENABLE_OPTION = "dex2oat-stressor-enable"; 58 @VisibleForTesting public static final String DEX2OAT_RUNNING_CHECK_COMMAND = "pgrep dex2oat"; 59 public static final String LIST_PACKAGES_COMMAND = "pm list packages"; 60 private static final String COMPILE_COMMAND_TEMPLATE = "cmd package compile -f -m %s %s"; 61 private static final String COMPILE_COMMAND_SUCCESS_RESPONSE = "Success"; [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/app-helpers/interfaces/handheld/src/android/platform/helpers/ |
D | INotificationHelper.java | 29 String UI_PACKAGE_NAME_SYSUI = "com.android.systemui"; 30 String UI_PACKAGE_NAME_ANDROID = "android"; 31 String UI_NOTIFICATION_ID = "status_bar_latest_event_content"; 32 String NOTIFICATION_TITLE_TEXT = "TEST NOTIFICATION"; 33 String NOTIFICATION_CONTENT_TEXT = "Test notification content"; 34 String NOTIFICATION_BIG_TEXT = 39 String NOTIFICATION_CHANNEL_NAME = "Test Channel"; 40 String EXPAND_BUTTON_ID = "expand_button"; 41 String BUBBLE_BUTTON = "bubble_button"; 42 String APP_ICON_ID = "icon"; [all …]
|