Home
last modified time | relevance | path

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

123456

/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DPermissionHelper.java47 public static final String TEST_TAG = "PermissionTest";
48 public static final String SETTINGS_PACKAGE = "com.android.settings";
54 public static Hashtable<String, List<String>> mPermissionGroupInfo = null;
80 String line; in populateDangerousPermissionGroupInfo()
81 List<String> permissions = new ArrayList<String>(); in populateDangerousPermissionGroupInfo()
82 String groupName = null; in populateDangerousPermissionGroupInfo()
88 mPermissionGroupInfo = new Hashtable<String, List<String>>(); in populateDangerousPermissionGroupInfo()
91 permissions = new ArrayList<String>(); in populateDangerousPermissionGroupInfo()
111 public List<String> getPermissionByPackage(String packageName, Boolean permitted) { in getPermissionByPackage()
112 List<String> selectedPermissions = new ArrayList<String>(); in getPermissionByPackage()
[all …]
/platform_testing/libraries/power-helper/src/com/android/helper/
DPowerTestHelper.java35 private final static String PARAM_CONFIG = "conf";
36 private final static String SD_CARD_PATH =
38 private final static String POWER_OUTPUT = SD_CARD_PATH + "autotester.log";
39 private final static String PROPERTY_FILE_NAME = SD_CARD_PATH + "PowerTests.conf";
41 private final static String TAG = "PowerTestHelper";
78 protected String getPropertyString(String key) in getPropertyString()
80 String value = getProperty(key); in getPropertyString()
101 protected long getPropertyLong(String key) in getPropertyLong()
103 String value = getProperty(key); in getPropertyLong()
109 private String getProperty(String key) in getProperty()
[all …]
/platform_testing/tests/functional/otatests/src/com/android/functional/otatests/
DVersionInfo.java10 private final String mBuildId;
11 private final String mBootloaderVersion;
12 private final String mBasebandVersion;
14 private VersionInfo(String buildId, String bootVersion, String radioVersion) { in VersionInfo()
20 public String getBuildId() { in getBuildId()
24 public String getBootloaderVersion() { in getBootloaderVersion()
28 public String getBasebandVersion() { in getBasebandVersion()
32 public static VersionInfo parseFromFile(String fileName) throws IOException { in parseFromFile()
45 private static String denull(String s) { in denull()
DVersionCheckingTest.java11 protected static final String OLD_VERSION = "/sdcard/otatest/version.old";
12 protected static final String NEW_VERSION = "/sdcard/otatest/version.new";
13 protected static final String KEY_BUILD_ID = "ro.build.version.incremental";
14 protected static final String KEY_BOOTLOADER = "ro.bootloader";
15 protected static final String KEY_BASEBAND = "ro.build.expect.baseband";
16 protected static final String KEY_BASEBAND_GSM = "gsm.version.baseband";
50 private String getProp(String key) throws IOException { in getProp()
53 String ret = r.readLine().trim(); in getProp()
/platform_testing/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/
DExternalStorageHelper.java53 public static final String TEST_TAG = "StorageFunctionalTest";
54 public final String SETTINGS_PKG = "com.android.settings";
55 public final String PLAYSTORE_PKG = "com.android.vending";
56 public final String DOCUMENTS_PKG = "com.android.documentsui";
57 public static final Map<String, String> APPLIST = new HashMap<String, String>();
69 public static Hashtable<String, List<String>> mPermissionGroupInfo = null;
118 public String executeShellCommand(String command) { in executeShellCommand()
122 String str = reader.readLine(); in executeShellCommand()
123 Log.d(TEST_TAG, String.format("Executing command: %s", command)); in executeShellCommand()
135 public void createFiles(int numberOfFiles, String dir) { in createFiles()
[all …]
/platform_testing/libraries/timeresult-helper/src/android/support/test/timeresulthelper/
DTimeResultLogger.java30 public static void writeTimeStamp(String logType, String testCase, long delay, File destFile) in writeTimeStamp()
35 public static void writeTimeStamp(String logType, String testCase, long time, in writeTimeStamp()
38 outputWriter.write(String.format("%d %s %s\n", (time + delay), in writeTimeStamp()
43 public static void writeTimeStampLogStart(String testCase, File destFile) throws IOException { in writeTimeStampLogStart()
47 public static void writeTimeStampLogEnd(String testCase, File destFile) throws IOException { in writeTimeStampLogEnd()
51 public static void writeResultToFile(String testCase, File destFile, Bundle result) in writeResultToFile()
54 outputWriter.write(String.format("Result %s\n", testCase)); in writeResultToFile()
55 for (String key : result.keySet()) { in writeResultToFile()
56 outputWriter.write(String.format("%s %s\n", key, in writeResultToFile()
/platform_testing/utils/crashcollector/src/android/test/crashcollector/
DCollector.java42 private static final String LOG_TAG = "CrashCollector";
47 private HashSet<String> mTombstones = null;
54 public static void main(String[] args) { in main()
68 public int run(String[] args) { in run()
113 private void print(String line) { in print()
114 System.err.println(String.format("%s %s", TIME_FORMAT.format(new Date()), line)); in print()
144 String[] tombstones = TOMBSTONES_PATH.list(); in checkNativeCrashes()
154 HashSet<String> newStones = new HashSet<String>(); in checkNativeCrashes()
155 for (String x : tombstones) { in checkNativeCrashes()
170 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { in activityStarting()
[all …]
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
DSettingsHelper.java17 public static final String PKG = "com.android.settings";
36 public static void launchSettingsPage(Context ctx, String pageName) throws Exception { in launchSettingsPage()
43 public void clickSetting(String settingName) { in clickSetting()
57 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
58 String settingName, String internalName) throws Exception { in verifyToggleSetting()
63 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
64 Pattern settingName, String internalName) throws Exception { in verifyToggleSetting()
68 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
69 String settingName, String internalName, boolean doLaunch) throws Exception { in verifyToggleSetting()
74 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
[all …]
DMainSettingsLargeTests.java38 private static final String SETTINGS_PACKAGE = "com.android.settings";
40 private static final String PERSONAL_CATEGORY = "Personal";
41 private static final String[] sPersonalItems = new String[] {
44 private static final String SYSTEM_CATEGORY = "System";
45 private static final String[] sSystemItems = new String[] {
80 private void launchMainSettingsCategory(String category, String[] items) throws Exception { in launchMainSettingsCategory()
83 for (String i : items) { in launchMainSettingsCategory()
85 Log.d(SETTINGS_PACKAGE, String.format("launch setting: %s", i)); in launchMainSettingsCategory()
89 private void launchMainSettings(String mainSetting) throws Exception { in launchMainSettings()
97 private void launchSettingItems(String title) throws Exception { in launchSettingItems()
[all …]
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java51 private static final String TAG = "AppLaunchInstrumentation";
52 private static final String TARGETPACKAGE = "targetpackage";
53 private static final String ACTIVITYLIST = "activitylist";
54 private static final String LAUNCHCOUNT = "launchcount";
55 private static final String RECORDTRACE = "recordtrace";
56 private static final String ATRACE_START = "atrace --async_start am view gfx";
57 private static final String ATRACE_DUMP = "atrace --async_dump";
58 private static final String ATRACE_STOP = "atrace --async_stop";
59 private static final String FORCE_STOP = "am force-stop ";
63 private String mTargetPackageName;
[all …]
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/
DAppSmokeTest.java59 private static final String TAG = AppSmokeTest.class.getSimpleName();
60 private static final String EXCLUDE_LIST = "exclude_apps";
61 private static final String DEBUG_LIST = "debug_apps";
76 public String appName;
77 public String packageName;
78 public String activityName;
80 private LaunchParameter(String appName, String packageName, String activityName) { in LaunchParameter()
92 public String toString() { in toString()
96 public String toLongString() { in toLongString()
97 return String.format("%s [activity: %s/%s]", appName, packageName, activityName); in toLongString()
[all …]
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java39 public final String TEST_TAG = "AppLinkFunctionalTest";
40 public final String TEST_PKG_NAME = "com.android.applinktestapp";
41 public final String TEST_APP_NAME = "AppLinkTestApp";
42 public final String YOUTUBE_PKG_NAME = "com.google.android.youtube";
43 public final String HTTP_SCHEME = "http";
44 public final String TEST_HOST = "test.com";
61 String out = getAppLink(TEST_PKG_NAME); in testDefaultAppLinkSettting()
107 String out = getAppLink(YOUTUBE_PKG_NAME); in testVerifiedAppOpenWhenUnverifiedSetToAsk()
151 String out = getAppLink(TEST_PKG_NAME); in testSettingsChangeUI()
153 assertTrue(String.format("Default app link not set to 'always ask' rather set to %s", out), in testSettingsChangeUI()
[all …]
/platform_testing/libraries/settings-app-helper/src/android/platform/test/helpers/
DSettingsHelperImpl.java40 private static final String UI_PACKAGE_NAME = "com.android.settings";
44 private static final String LOG_TAG = SettingsHelperImpl.class.getSimpleName();
63 public String getPackage() { in getPackage()
71 public String getLauncherName() { in getLauncherName()
103 public static void launchSettingsPage(Context ctx, String pageName) throws Exception { in launchSettingsPage()
136 public void clickSetting(String settingName) throws InterruptedException { in clickSetting()
146 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
147 String settingName, String internalName) throws Exception { in verifyToggleSetting()
152 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting()
153 Pattern settingName, String internalName) throws Exception { in verifyToggleSetting()
[all …]
/platform_testing/libraries/google-keyboard-app-helper/src/android/platform/test/helpers/
DGoogleKeyboardHelperImpl.java39 private static final String TAG = GoogleKeyboardHelperImpl.class.getCanonicalName();
41 private static final Map<Character, String> SPECIAL_KEY_CONTENT_DESCRIPTIONS;
47 private static final String UI_ANDROID_VIEW_CLASS = "android.view.View";
48 private static final String UI_DECLINE_BUTTON_ID = "decline_button";
49 private static final String UI_KEYBOARD_KEY_CLASS = "com.android.inputmethod.keyboard.Key";
50 private static final String UI_KEYBOARD_LETTER_KEY_DESC = "Letters";
51 private static final String UI_KEYBOARD_NUMBER_KEY_DESC = "Symbols";
52 private static final String UI_KEYBOARD_SHIFT_KEY_DESC = "Shift";
53 private static final String UI_KEYBOARD_SYMBOL_KEY_DESC = "More symbols";
54 private static final String UI_KEYBOARD_VIEW_ID = "keyboard_view";
[all …]
/platform_testing/libraries/base-app-helpers/src/android/platform/test/helpers/
DAbstractGmailHelper.java86 public abstract void sendReplyEmail(String address, String body); in sendReplyEmail()
93 public abstract void setEmailToAddress(String address); in setEmailToAddress()
100 public abstract void setEmailSubject(String subject); in setEmailSubject()
108 public abstract void setEmailBody(String body); in setEmailBody()
124 public abstract String getComposeEmailBody(); in getComposeEmailBody()
177 public abstract void openMailbox(String mailboxName); in openMailbox()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java37 private static final String TAG = "ProcessStatusTracker";
42 private final String PS_PATTERN =
48 private Map<String, Integer> mPidTracker;
49 private Set<String> mPidExclusions;
51 public ProcessStatusTracker(String[] processes) { in ProcessStatusTracker()
52 mPidTracker = new HashMap<String, Integer>(); in ProcessStatusTracker()
53 mPidExclusions = new HashSet<String>(); in ProcessStatusTracker()
55 for (String proc : processes) { in ProcessStatusTracker()
61 public void addMonitoredProcess(String processName) { in addMonitoredProcess()
86 Set<String> deadProcesses = new HashSet<String>(mPidTracker.keySet()); in getProcessDetails()
[all …]
DDataCollector.java37 private static final String TAG = "AuptDataCollector";
192 Log.w(TAG, String.format("Failed to take bugreport: %s", e.getMessage())); in createLog()
203 Log.w(TAG, String.format("Failed to save buddyinfo: %s", e.getMessage())); in createLog()
215 Log.w(TAG, String.format("Failed to save ION heap: %s", e.getMessage())); in createLog()
226 Log.w(TAG, String.format("Failed to save pagetypeinfo: %s", e.getMessage())); in createLog()
237 Log.w(TAG, String.format("Failed to save trace: %s", e.getMessage())); in createLog()
242 public void saveCompactMeminfo(String filename) in saveCompactMeminfo()
247 public void saveCpuinfo(String filename) in saveCpuinfo()
252 public void saveFragmentation(String filename) in saveFragmentation()
257 public void saveIonHeap(String type, String filename) in saveIonHeap()
[all …]
DAuptTestCase.java61 private static final String SDCARD =
63 private static final String RECORD_MEMINFO_PARAM = "record_meminfo";
68 private static final String TAG = AuptTestCase.class.getSimpleName();
84 private Map<String, Long> mLastDumpheap = new HashMap<String, Long>();
85 private Map<String, Long> mDumpheapCount = new HashMap<String, Long>();
190 private Map<String, List<MemHealthRecord>> mMemHealthRecords;
191 private String[] mProcsToTrack;
192 private String mResultsDirectory;
194 public void setMemHealthRecords(Map<String, List<MemHealthRecord>> records) { in setMemHealthRecords() argument
213 String processes = getParams().getString("trackMemory", null); in setUp()
[all …]
DUiWatchers.java32 private static final String LOG_TAG = UiWatchers.class.getSimpleName();
33 private final List<String> mErrors = new ArrayList<String>();
52 String errorText = window.getText(); in registerAnrAndCrashWatchers()
67 String errorText = window.getText(); in registerAnrAndCrashWatchers()
85 public void onAnrDetected(String errorText) { in onAnrDetected()
89 public void onCrashDetected(String errorText) { in onCrashDetected()
97 public List<String> getErrors() { in getErrors()
107 String formatedOutput = String.format("UI Exception Message: %-20s\n", in postHandler()
/platform_testing/libraries/google-docs-app-helper/src/android/platform/test/helpers/
DGoogleDocsHelperImpl.java38 private static final String LOG_TAG = GoogleDocsHelperImpl.class.getSimpleName();
40 private static final String UI_PACKAGE_NAME = "com.google.android.apps.docs.editors.docs";
41 private static final String UI_DOCS_LIST_TITLE = "title";
42 private static final String UI_DOCS_LIST_VIEW = "doc_list_view";
43 private static final String UI_EDITOR_VIEW = "kix_editor_view";
44 private static final String UI_TOOLBAR = "toolbar";
45 private static final String UI_TEXT_DOCS = "Docs";
46 private static final String UI_TEXT_SKIP = "SKIP";
61 public String getPackage() { in getPackage()
70 public String getLauncherName() { in getLauncherName()
[all …]
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java46 public static final String[] FILE_TYPES = new String[] {
50 public static final String PACKAGE_NAME = "com.android.documentsui";
51 public static final String APP_NAME = "Downloads";
52 public static final String TEST_TAG = "DownloadAppTest";
58 private Hashtable<String, DlObjSizeTimePair> mDownloadedItems =
59 new Hashtable<String, DlObjSizeTimePair>();
79 public void launchApp(String packageName, String appName) { in launchApp()
86 public void sortByParam(String sortby) { in sortByParam()
94 mDevice.wait(Until.findObject(By.text(String.format("By %s", sortby))), 200).click(); in sortByParam()
99 public List<String> getDownloadItemNames() { in getDownloadItemNames()
[all …]
/platform_testing/libraries/google-app-camera-helper/src/android/platform/test/helpers/
DGoogleCameraHelperImpl.java40 private static final String LOG_TAG = GoogleCameraHelperImpl.class.getSimpleName();
41 private static final String UI_ACTIVITY_VIEW_ID = "activity_root_view";
42 private static final String UI_ALBUM_FILMSTRIP_VIEW_ID = "filmstrip_view";
43 private static final String UI_PACKAGE_NAME = "com.android.camera2";
44 private static final String UI_RECORDING_TIME_ID = "recording_time";
45 private static final String UI_SHUTTER_DESC_CAM_3X = "Capture photo";
46 private static final String UI_SHUTTER_DESC_CAM_2X = "Shutter";
47 private static final String UI_SHUTTER_DESC_VID_3X = "Capture video";
48 private static final String UI_SHUTTER_DESC_VID_2X = "Shutter";
49 private static final String UI_THUMBNAIL_ALBUM_BUTTON_ID = "rounded_thumbnail_view";
[all …]
/platform_testing/libraries/facebook-app-helper/src/android/platform/test/helpers/
DFacebookHelperImpl.java32 private static final String TAG = "android.platform.test.helpers.FacebookHelperImpl";
34 private static final String UI_HOME_PAGE_CONTAINER_ID = "cs7";
35 private static final String UI_LOADING_VIEW_ID = "loading_view";
36 private static final String UI_LOGIN_BUTTON_ID = "bjb";
37 private static final String UI_LOGIN_PASSWORD_ID = "bj_";
38 private static final String UI_LOGIN_ROOT_ID = "bj6";
39 private static final String UI_LOGIN_USERNAME_ID = "bj8";
40 private static final String UI_NEWS_FEED_TAB_ID = "a0";
41 private static final String UI_NEWS_FEED_TAB_SELECTED_DESC = "News";
42 private static final String UI_PACKAGE_NAME = "com.facebook.katana";
[all …]
/platform_testing/utils/dialogs/src/com/android/dialogutils/
DDismissDialogsInstrumentation.java58 private static final String LOG_TAG = DismissDialogsInstrumentation.class.getSimpleName();
59 private static final String IMAGE_SUBFOLDER = "dialog-dismissal";
65 private static final String PARAM_APP = "apps";
67 private static final String PARAM_SCREENSHOTS = "screenshots";
69 private static final String PARAM_QUIT_ON_ERROR = "quitOnError";
72 private static final String BUNDLE_DISMISSED_APP_KEY = "dismissedApp";
73 private static final String BUNDLE_APP_ERROR_KEY = "appError";
75 private Map<String, Class<? extends IStandardAppHelper>> mKeyHelperMap;
76 private String[] mApps;
85 mKeyHelperMap = new HashMap<String, Class<? extends IStandardAppHelper>>(); in onCreate()
[all …]
/platform_testing/utils/permissions/src/com/android/permissionutils/
DPermissionInstrumentation.java37 private static final String DUMP_TAG = "DUMP";
38 private static final String PARAM_COMMAND = "command";
39 private static final String COMMAND_DUMP = "dump";
40 private static final String COMMAND_GRANTALL = "grant-all";
47 String command = arguments.getString(PARAM_COMMAND); in onCreate()
57 String.format("unrecognized command \"%s\"", command)); in onCreate()
65 List<String> permissions = new ArrayList<>(); in runCommand()
70 for (String permission : info.requestedPermissions) { in runCommand()
93 Log.e(DUMP_TAG, String.format("Revoked permissions for %s", info.packageName)); in runCommand()
94 for (String permission : permissions) { in runCommand()

123456