/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 55 private static final String TEST_CAMERA_LAUNCH = "testCameraLaunch"; 56 private static final String TEST_SINGLE_CAPTURE = "testSingleCapture"; 57 private static final String TEST_REPROCESSING_LATENCY = "testReprocessingLatency"; 58 private static final String TEST_REPROCESSING_THROUGHPUT = "testReprocessingThroughput"; 61 private final ImmutableMultimap<String, String> mReportingKpis = 62 new ImmutableMultimap.Builder<String, String>() 73 private static final ImmutableMap<String, String> METHOD_JSON_KEY_MAP = 74 new ImmutableMap.Builder<String, String>() 121 … public void handleMetricsOnTestEnded(TestDescription test, Map<String, String> testMetrics) { in handleMetricsOnTestEnded() argument 124 for (Map.Entry<String, String> metric : testMetrics.entrySet()) { in handleMetricsOnTestEnded() [all …]
|
D | CameraTestBase.java | 69 protected static final String PROCESS_CAMERA_DAEMON = "mm-qcamera-daemon"; 70 protected static final String PROCESS_MEDIASERVER = "mediaserver"; 71 protected static final String PROCESS_CAMERA_APP = "com.google.android.GoogleCamera"; 72 protected static final String DUMP_ION_HEAPS_COMMAND = "cat /d/ion/heaps/system"; 73 protected static final String ARGUMENT_TEST_ITERATIONS = "iterations"; 76 private String mTestPackage = "com.google.android.camera"; 79 private String mTestClass = null; 82 private Collection<String> mTestMethods = new ArrayList<>(); 85 private String mTestRunner = "android.test.InstrumentationTestRunner"; 98 private String mRuKey = null; [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ArgsOptionParserTest.java | 43 private static final String DEFAULT_VALUE = "default"; 44 private static final String OPTION_NAME = "my_option"; 45 private static final String OPTION_DESC = "option description"; 48 private String mMyOption = DEFAULT_VALUE; 56 private static final String OPTION_NAME = "my_option"; 57 private static final String OPTION_DESC = "option description"; 68 private static final String OPTION_NAME = "my_option"; 69 private static final String OPTION_DESC = "option description"; 72 private Map<String, String> mMyOption = new HashMap<String, String>(); 81 private static final String DEFAULT_VALUE = "default"; [all …]
|
D | ConfigurationFactoryTest.java | 56 private static final String TEST_CONFIG = "test-config"; 57 private static final String GLOBAL_TEST_CONFIG = "global-config"; 58 private static final String INCLUDE_CONFIG = "include-config"; 69 protected String getConfigPrefix() { in setUp() 80 Mockito.doReturn(new HashSet<String>()).when(spyFactory).getConfigNamesFromTestCases(null); in testLoadAllConfigs() 93 Mockito.doReturn(new HashSet<String>()).when(spyFactory).getConfigNamesFromTestCases(null); in testLoadAndPrintAllConfigs() 108 private Map<String, String> buildMap(String... args) { in buildMap() 110 throw new IllegalArgumentException(String.format( in buildMap() 114 final Map<String, String> map = new HashMap<String, String>(args.length / 2); in buildMap() 158 final Map<ConfigId, String> map = new HashMap<>(); in testConfigId_hashKey() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 66 static final String DISMISS_DIALOG_CMD = "input keyevent 23"; 68 public static final String DISMISS_KEYGUARD_CMD = "input keyevent 82"; 74 static final String DISMISS_KEYGUARD_WM_CMD = "wm dismiss-keyguard"; 79 private static final String TEST_INPUT_CMD = "dumpsys input"; 84 static final String LIST_PACKAGES_CMD = "pm list packages -f"; 87 static final String LIST_APEXES_CMD = "pm list packages --apex-only --show-versioncode"; 92 private static final String[] SETTINGS_NAMESPACE = {"system", "secure", "global"}; 95 private static final String USER_PATTERN = "(.*?\\{)(\\d+)(:)(.*)(:)(\\d+)(\\}.*)"; 97 private static final String DISPLAY_ID_PATTERN = "(Display )(?<id>\\d+)( color modes:)"; 104 private static final String DUMPHEAP_CMD = "am dumpheap %s %s"; [all …]
|
D | ITestDevice.java | 54 public String filesystem; 55 public String mountpoint; 56 public String type; 57 public List<String> options; 65 public MountPointInfo(String filesystem, String mountpoint, String type, in MountPointInfo() 66 List<String> options) { in MountPointInfo() 73 public MountPointInfo(String filesystem, String mountpoint, String type, String optString) { in MountPointInfo() 77 public static List<String> splitMountOptions(String options) { in splitMountOptions() 78 List<String> list = Arrays.asList(options.split(",")); in splitMountOptions() 83 public String toString() { in toString() [all …]
|
D | NativeDevice.java | 105 private static final String SD_CARD = "/sdcard/"; 117 private static final String BUGREPORT_CMD = "bugreport"; 118 private static final String BUGREPORTZ_CMD = "bugreportz"; 119 private static final String BUGREPORTZ_TMP_PATH = "/bugreports/"; 145 private static final String ENCRYPTION_PASSWORD = "android"; 159 static final String BUILD_ID_PROP = "ro.build.version.incremental"; 160 private static final String PRODUCT_NAME_PROP = "ro.product.name"; 161 private static final String BUILD_TYPE_PROP = "ro.build.type"; 162 private static final String BUILD_ALIAS_PROP = "ro.build.id"; 163 private static final String BUILD_FLAVOR = "ro.build.flavor"; [all …]
|
D | INativeDevice.java | 80 public String getSerialNumber(); in getSerialNumber() 89 public String getProperty(String name) throws DeviceNotAvailableException; in getProperty() 99 public boolean setProperty(String propKey, String propValue) throws DeviceNotAvailableException; in setProperty() 111 public String getBootloaderVersion() throws DeviceNotAvailableException; in getBootloaderVersion() 127 public String getBasebandVersion() throws DeviceNotAvailableException; in getBasebandVersion() 138 public String getProductType() throws DeviceNotAvailableException; in getProductType() 150 public String getProductVariant() throws DeviceNotAvailableException; in getProductVariant() 164 public String getFastbootProductType() throws DeviceNotAvailableException; in getFastbootProductType() 178 public String getFastbootProductVariant() throws DeviceNotAvailableException; in getFastbootProductVariant() 189 public String getBuildAlias() throws DeviceNotAvailableException; in getBuildAlias() [all …]
|
D | WifiHelper.java | 46 private static final String NULL = "null"; 47 private static final String NULL_IP_ADDR = "0.0.0.0"; 48 private static final String INSTRUMENTATION_CLASS = ".WifiUtil"; 49 public static final String INSTRUMENTATION_PKG = "com.android.tradefed.utils.wifi"; 50 static final String FULL_INSTRUMENTATION_NAME = 51 String.format("%s/%s", INSTRUMENTATION_PKG, INSTRUMENTATION_CLASS); 53 static final String CHECK_PACKAGE_CMD = 54 String.format("dumpsys package %s", INSTRUMENTATION_PKG); 55 static final String ENABLE_WIFI_CMD = "svc wifi enable"; 56 static final String DISABLE_WIFI_CMD = "svc wifi disable"; [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AbiUtils.java | 30 public static final String ABI_ARM_V7A = "armeabi-v7a"; 31 public static final String ABI_ARM_64_V8A = "arm64-v8a"; 32 public static final String ABI_X86 = "x86"; 33 public static final String ABI_X86_64 = "x86_64"; 34 public static final String ABI_MIPS = "mips"; 35 public static final String ABI_MIPS64 = "mips64"; 38 public static final String BASE_ARCH_ARM = "arm"; 39 public static final String ARCH_ARM64 = BASE_ARCH_ARM + "64"; 40 public static final String BASE_ARCH_X86 = "x86"; 41 public static final String ARCH_X86_64 = BASE_ARCH_X86 + "_64"; [all …]
|
D | SubprocessEventHelper.java | 39 private static final String CLASSNAME_KEY = "className"; 40 private static final String TESTNAME_KEY = "testName"; 41 private static final String TRACE_KEY = "trace"; 42 private static final String CAUSE_KEY = "cause"; 43 private static final String RUNNAME_KEY = "runName"; 44 private static final String TESTCOUNT_KEY = "testCount"; 45 private static final String ATTEMPT_KEY = "runAttempt"; 46 private static final String TIME_KEY = "time"; 47 private static final String REASON_KEY = "reason"; 48 private static final String START_TIME = "start_time"; [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | AggregatePostProcessorTest.java | 36 private static final String TEST_CLASS = "test.class"; 37 private static final String TEST_NAME = "test.name"; 42 private static final String STATS_KEY_MIN = "min"; 43 private static final String STATS_KEY_MAX = "max"; 44 private static final String STATS_KEY_MEAN = "mean"; 45 private static final String STATS_KEY_VAR = "var"; 46 private static final String STATS_KEY_STDEV = "stdev"; 47 private static final String STATS_KEY_MEDIAN = "median"; 49 private static final String STATS_KEY_SEPARATOR = "-"; 65 final String singularDoubleKey = "singular_double"; in testSingularDoubleMetric() [all …]
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 28 private final String mSerial; 32 private final String mProduct; 33 private final String mProductVariant; 34 private final String mSdkVersion; 35 private final String mBuildId; 36 private final String mBatteryLevel; 37 private final String mDeviceClass; 38 private final String mMacAddress; 39 private final String mSimState; 40 private final String mSimOperator; [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationFactory.java | 58 private static final String LOG_TAG = "ConfigurationFactory"; 60 private static final String CONFIG_SUFFIX = ".xml"; 61 private static final String CONFIG_PREFIX = "config/"; 62 private static final String DRY_RUN_TEMPLATE_CONFIG = "empty"; 63 private static final String CONFIG_ERROR_PATTERN = "(Could not find option with name )(.*)"; 75 public String name = null; 76 public Map<String, String> templateMap = new HashMap<>(); 88 public ConfigId(String name) { in ConfigId() 95 public ConfigId(String name, Map<String, String> templateMap) { in ConfigId() argument 138 private String mPrefix = null; [all …]
|
D | ConfigurationXmlParser.java | 49 private static final String OBJECT_TAG = "object"; 50 private static final String OPTION_TAG = "option"; 51 private static final String INCLUDE_TAG = "include"; 52 private static final String TEMPLATE_INCLUDE_TAG = "template-include"; 53 private static final String CONFIG_TAG = "configuration"; 54 private static final String DEVICE_TAG = "device"; 55 private static final String IS_FAKE_ATTR = "isFake"; 58 static final String INNER_TEMPLATE_INCLUDE_ERROR = 67 private final Map<String, String> mTemplateMap; 68 private final Set<String> mTemplateSeen; [all …]
|
D | ArgsOptionParser.java | 136 private static final String LOG_TAG = "ArgsOptionParser"; 138 static final String SHORT_NAME_PREFIX = "-"; 139 static final String OPTION_NAME_PREFIX = "--"; 173 public List<String> parse(String... args) throws ConfigurationException { in parse() 183 public List<String> parse(List<String> args) throws ConfigurationException { in parse() 184 final List<String> leftovers = new ArrayList<String>(); in parse() 185 final ListIterator<String> argsIter = args.listIterator(); in parse() 206 public List<String> parseBestEffort(String... args) { in parseBestEffort() 216 public List<String> parseBestEffort(List<String> args) { in parseBestEffort() 229 public List<String> parseBestEffort(List<String> args, boolean forceContinue) { in parseBestEffort() [all …]
|
D | GlobalConfiguration.java | 66 public static final String DEVICE_MONITOR_TYPE_NAME = "device_monitor"; 67 public static final String HOST_MONITOR_TYPE_NAME = "host_monitor"; 68 public static final String DEVICE_MANAGER_TYPE_NAME = "device_manager"; 69 public static final String WTF_HANDLER_TYPE_NAME = "wtf_handler"; 70 public static final String HOST_OPTIONS_TYPE_NAME = "host_options"; 71 public static final String HOST_RESOURCE_MANAGER_TYPE_NAME = "host_resource_manager"; 72 public static final String DEVICE_REQUIREMENTS_TYPE_NAME = "device_requirements"; 73 public static final String SCHEDULER_TYPE_NAME = "command_scheduler"; 74 public static final String MULTI_DEVICE_RECOVERY_TYPE_NAME = "multi_device_recovery"; 75 public static final String KEY_STORE_TYPE_NAME = "key_store"; [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/ |
D | ArgsOptionParserTest.java | 39 private static final String DEFAULT_VALUE = "default"; 40 private static final String OPTION_NAME = "my_option"; 41 private static final String OPTION_DESC = "option description"; 44 private String mMyOption = DEFAULT_VALUE; 52 private static final String OPTION_NAME = "my_option"; 53 private static final String OPTION_DESC = "option description"; 65 private static final String DEFAULT_VALUE = "default"; 71 protected String mMyOption = DEFAULT_VALUE; 90 private static final String OPTION_NAME = "my_sub_option"; 91 private static final String OPTION_DESC = "sub description"; [all …]
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | HermeticMemoryTest.java | 46 private static final String AM_START = "am start -n %s"; 47 private static final String AM_BROADCAST = "am broadcast -a %s -n %s %s"; 48 private static final String PROC_MEMINFO = "cat /proc/meminfo"; 49 private static final String CACHED_PROCESSES = 53 private static final String DUMPSYS_PROCESS = "dumpsys meminfo %s"; 54 private static final String DUMPSYS_MEMINFO = "dumpsys meminfo -a "; 55 private static final String MAPS_INFO = "cat /proc/%d/maps"; 56 private static final String SMAPS_INFO = "cat /proc/%d/smaps"; 57 private static final String STATUS_INFO = "cat /proc/%d/status"; 58 private static final String NATIVE_HEAP = "Native"; [all …]
|
D | FioBenchmarkTest.java | 61 private static final String[] FIO_V0_RESULT_FIELDS = { 126 private static final String[] FIO_V3_RESULT_FIELDS = { 262 public String mJobName = null; 263 public Map<String, String> mParameters = new HashMap<>(); 270 public String createJob() { in createJob() 275 sb.append(String.format("[%s]\n", mJobName)); in createJob() 276 for (Entry<String, String> parameter : mParameters.entrySet()) { in createJob() 278 sb.append(String.format("%s\n", parameter.getKey())); in createJob() 280 sb.append(String.format("%s=%s\n", parameter.getKey(), parameter.getValue())); in createJob() 292 public String mFileName = null; [all …]
|
D | AppTransitionTests.java | 68 private static final String PACKAGE_NAME = "com.android.apptransition.tests"; 69 private static final String CLASS_NAME = "com.android.apptransition.tests.AppTransitionTests"; 70 private static final String TEST_COLD_LAUNCH = "testColdLaunchFromLauncher"; 71 private static final String TEST_HOT_LAUNCH = "testHotLaunchFromLauncher"; 72 private static final String TEST_APP_TO_HOME = "testAppToHome"; 73 private static final String TEST_APP_TO_RECENT = "testAppToRecents"; 74 private static final String TEST_LATENCY = "testLatency"; 75 private static final String TEST_HOT_LAUNCH_FROM_RECENTS = "testHotLaunchFromRecents"; 76 private static final String DROP_CACHE_SCRIPT_FILE = "dropCache"; 77 private static final String SCRIPT_EXTENSION = ".sh"; [all …]
|
/tools/tradefederation/contrib/src/com/android/framework/tests/ |
D | BandwidthMicroBenchMarkTest.java | 66 private String mTestPackageName; 69 private String mTestClassName; 72 private String mTestMethodName; 75 private String mTestLabel; 81 private String mTestServer; 84 private String mSsid; 116 private String mCompactRuKey; 122 private String mIface; 124 private static final String TEST_RUNNER = "com.android.bandwidthtest.BandwidthTestRunner"; 125 private static final String TEST_SERVER_QUERY = "query"; [all …]
|
D | PackageManagerHostTestUtils.java | 43 public static final String JB_APP_PRIVATE_PATH = "/mnt/asec/"; 44 public static final String DEVICE_APP_PATH = "/data/app/"; 45 public static final String SDCARD_APP_PATH = "/mnt/asec/"; 47 private static String mAppPrivatePath = JB_APP_PRIVATE_PATH; 80 public static String getAppPrivatePath() { in getAppPrivatePath() 84 public static void setAppPrivatePath(String path) { in setAppPrivatePath() 93 public static String getDeviceAppPath() { in getDeviceAppPath() 102 public static String getSDCardAppPath() { in getSDCardAppPath() 119 String pkgName, in doRunTests() 120 String className, in doRunTests() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParser.java | 50 public boolean shouldAccept(String item); in shouldAccept() 53 private static final String ANDROID_INFO_FILE_NAME = "android-info.txt"; 68 public static final String PRODUCT_KEY = "product"; 69 public static final String BOARD_KEY = "board"; 70 public static final String BOOTLOADER_VERSION_KEY = "version-bootloader"; 71 public static final String BASEBAND_VERSION_KEY = "version-baseband"; 81 public static class AndroidInfo extends HashMap<String, MultiMap<String, String>> {} 93 public FlashingResourcesParser(File deviceImgZipFile, Map<String, Constraint> c) in FlashingResourcesParser() argument 119 public FlashingResourcesParser(BufferedReader infoReader, Map<String, Constraint> c) in FlashingResourcesParser() argument 143 public String getRequiredBootloaderVersion() { in getRequiredBootloaderVersion() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandler.java | 51 public static final String COLUMN_NAME = "name"; 52 public static final String COLUMN_ABSOLUTE_PATH = "absolute_path"; 53 public static final String COLUMN_DIRECTORY = "is_directory"; 54 public static final String COLUMN_MIME_TYPE = "mime_type"; 55 public static final String COLUMN_METADATA = "metadata"; 56 public static final String QUERY_INFO_VALUE = "INFO"; 57 public static final String NO_RESULTS_STRING = "No result found."; 60 public static final String[] COLUMNS = 61 new String[] { 69 public static final String PACKAGE_NAME = "android.tradefed.contentprovider"; [all …]
|