Home
last modified time | relevance | path

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

12345678910>>...44

/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java28 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/util/
DAbiUtils.java29 public static final String ABI_ARM_V7A = "armeabi-v7a";
30 public static final String ABI_ARM_64_V8A = "arm64-v8a";
31 public static final String ABI_X86 = "x86";
32 public static final String ABI_X86_64 = "x86_64";
33 public static final String ABI_MIPS = "mips";
34 public static final String ABI_MIPS64 = "mips64";
37 public static final String BASE_ARCH_ARM = "arm";
38 public static final String ARCH_ARM64 = BASE_ARCH_ARM + "64";
39 public static final String BASE_ARCH_X86 = "x86";
40 public static final String ARCH_X86_64 = BASE_ARCH_X86 + "_64";
[all …]
DIEmail.java49 static final String PLAIN = "text/plain";
50 static final String HTML = "text/html";
52 private Collection<String> mToAddrs = null;
53 private Collection<String> mCcAddrs = null;
54 private Collection<String> mBccAddrs = null;
55 private String mSubject = null;
56 private String mBody = null;
57 private String mSender = null;
58 private String mContentType = PLAIN;
69 public Message(String to, String subject, String body) { in Message()
[all …]
DSimplePerfResult.java30 private String commandRawOutput;
31 private String simplePerfRawOutput;
32 private Map<String, String> benchmarkMetrics;
33 private Map<String, String> benchmarkComments;
34 private String totalTestTime;
54 public String getCommandRawOutput() { in getCommandRawOutput()
58 protected void setCommandRawOutput(String s) { in setCommandRawOutput()
73 public String getSimplePerfRawOutput() { in getSimplePerfRawOutput()
77 protected void setSimplePerfRawOutput(String s) { in setSimplePerfRawOutput()
85 protected void addBenchmarkMetrics(String key, String val) { in addBenchmarkMetrics()
[all …]
DClassPathScanner.java39 private static final String LOG_TAG = "ClassPathScanner";
40 private String[] mClassPath;
54 boolean accept(String pathName); in accept()
63 String transform(String pathName); in transform()
70 private static final String DOT_CLASS = ".class";
76 public boolean accept(String pathName) { in accept()
84 public String transform(String pathName) { in transform()
85 String className = pathName.substring(0, pathName.length() - DOT_CLASS.length()); in transform()
100 public boolean accept(String pathName) { in accept()
113 public Set<String> getEntriesFromJar(File plainFile, IClassPathFilter filter) in getEntriesFromJar()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DITestDevice.java54 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 …]
DINativeDevice.java78 public String getSerialNumber(); in getSerialNumber()
87 public String getProperty(String name) throws DeviceNotAvailableException; in getProperty()
99 public String getBootloaderVersion() throws DeviceNotAvailableException; in getBootloaderVersion()
115 public String getBasebandVersion() throws DeviceNotAvailableException; in getBasebandVersion()
126 public String getProductType() throws DeviceNotAvailableException; in getProductType()
138 public String getProductVariant() throws DeviceNotAvailableException; in getProductVariant()
152 public String getFastbootProductType() throws DeviceNotAvailableException; in getFastbootProductType()
166 public String getFastbootProductVariant() throws DeviceNotAvailableException; in getFastbootProductVariant()
177 public String getBuildAlias() throws DeviceNotAvailableException; in getBuildAlias()
185 public String getBuildId() throws DeviceNotAvailableException; in getBuildId()
[all …]
DWifiHelper.java46 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);
58 private static final String WIFIUTIL_APK_NAME = "WifiUtil.apk";
72 public WifiHelper(ITestDevice device, String wifiUtilApkPath) in WifiHelper()
[all …]
/tools/loganalysis/src/com/android/loganalysis/item/
DMemoryHealthItem.java30 private static final String BACKGROUND = "background";
31 private static final String FOREGROUND = "foreground";
33 public static final String DALVIK_AVG = "dalvik_avg";
34 public static final String NATIVE_AVG = "native_avg";
35 public static final String PSS_AVG = "pss_avg";
36 public static final String DALVIK_PEAK = "dalvik_peak";
37 public static final String NATIVE_PEAK = "native_peak";
38 public static final String PSS_PEAK = "pss_peak";
40 public static final String SUMMARY_JAVA_HEAP_AVG = "summary_java_heap_avg";
41 public static final String SUMMARY_NATIVE_HEAP_AVG = "summary_native_heap_avg";
[all …]
DMiscLogcatItem.java28 public static final String EVENT_TIME = "EVENT_TIME";
30 public static final String PID = "PID";
32 public static final String TID = "TID";
34 public static final String APP = "APP";
36 public static final String TAG = "TAG";
38 public static final String LAST_PREAMBLE = "LAST_PREAMBLE";
40 public static final String PROCESS_PREAMBLE = "PROCESS_PREAMBLE";
42 public static final String CATEGORY = "CATEGORY";
44 public static final String STACK = "STACK";
46 private static final Set<String> ATTRIBUTES = new HashSet<String>(Arrays.asList(
[all …]
DMiscKernelLogItem.java29 public static final String EVENT_TIME = "EVENT_TIME";
31 public static final String PREAMBLE = "LAST_PREAMBLE";
33 public static final String CATEGORY = "CATEGORY";
35 public static final String STACK = "STACK";
37 private static final Set<String> ATTRIBUTES = new HashSet<String>(Arrays.asList(
52 protected MiscKernelLogItem(Set<String> attributes) { in MiscKernelLogItem()
73 public String getPreamble() { in getPreamble()
74 return (String) getAttribute(PREAMBLE); in getPreamble()
80 public void setPreamble(String preamble) { in setPreamble()
87 public String getCategory() { in getCategory()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java55 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 …]
/tools/tradefederation/core/src/com/android/tradefed/util/net/
DIHttpHelper.java49 public String buildUrl(String url, MultiMap<String, String> paramMap); in buildUrl() argument
58 public String buildParameters(MultiMap<String, String> paramMap); in buildParameters() argument
84 public String doGet(String url) throws IOException, DataSizeException; in doGet()
95 public void doGet(String url, OutputStream outputStream) throws IOException; in doGet()
108 public String doGetWithRetry(String url) throws IOException, DataSizeException; in doGetWithRetry()
117 public void doGetIgnore(String url) throws IOException; in doGetIgnore()
128 public void doGetIgnoreWithRetry(String url) throws IOException; in doGetIgnoreWithRetry()
143 public String doPostWithRetry(String url, String postData) throws IOException, in doPostWithRetry()
160 public String doPostWithRetry(String url, String postData, String contentType) in doPostWithRetry()
172 public HttpURLConnection createConnection(URL url, String method, String contentType) in createConnection()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DQuotationAwareTokenizerTest.java28 private static void verify(String input, String[] expected, String delimiter) in verify()
30 String[] observed = QuotationAwareTokenizer.tokenizeLine(input, delimiter); in verify()
33 fail(String.format("Expected and observed arrays are different lengths: expected %s " + in verify()
39 String.format( in verify()
47 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify()
55 String input = " one two three"; in testTokenizeLine_simple()
56 String[] expected = new String[] {"one", "two", "three"}; in testTokenizeLine_simple()
68 String input = "--foo \"this is a config\""; in testTokenizeLine_whitespace()
69 String[] expected = new String[] {"--foo", "this is a config"}; in testTokenizeLine_whitespace()
77 String input = "--foo,bar"; in testTokenizeLine_comma()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java50 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/build/
DIBuildInfo.java40 public final static String UNKNOWN_BUILD_ID = "-1";
46 public String getBuildId(); in getBuildId()
51 public void setBuildId(String buildId); in setBuildId()
56 public String getTestTag(); in getTestTag()
61 public void setTestTag(String testTag); in setTestTag()
69 public String getBuildTargetName(); in getBuildTargetName()
80 public String getBuildFlavor(); in getBuildFlavor()
86 public String getDeviceSerial(); in getDeviceSerial()
93 public void setBuildFlavor(String buildFlavor); in setBuildFlavor()
101 public String getBuildBranch(); in getBuildBranch()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DArgsOptionParserTest.java43 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 …]
/tools/appbundle/bundletool/java/com/android/tools/appbundle/bundletool/utils/
DFlagParser.java44 private List<String> commands = new ArrayList<>();
45 private Map<String, String> flags = new HashMap<>();
52 public FlagParser parse(String[] args) throws ParseException { in parse()
55 List<String> argsToProcess = new ArrayList<>(Arrays.asList(args)); in parse()
64 private Map<String, String> parseFlags(List<String> args) throws ParseException { in parseFlags()
65 Map<String, String> flagMap = new HashMap<>(); in parseFlags()
66 for (String arg : args) { in parseFlags()
69 String.format("Syntax error: flags should start with -- (%s)", arg)); in parseFlags()
71 String[] segments = arg.substring(2).split("=", 2); in parseFlags()
72 String value = ""; in parseFlags()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DHermeticMemoryTest.java46 private static final String AM_START = "am start -n %s";
47 private static final String PROC_MEMINFO = "cat /proc/meminfo";
48 private static final String MEM_AVAILABLE = "cat /proc/meminfo| grep MemAvailable:";
49 private static final String CACHED_PROCESSES = "dumpsys meminfo|awk '/Total PSS by category:"
52 private static final String DUMPSYS_PROCESS = "dumpsys meminfo %s |grep 'TOTAL'";
53 private static final String DUMPSYS_MEMINFO = "dumpsys meminfo -a ";
54 private static final String MAPS_INFO = "cat /proc/%d/maps";
55 private static final String SMAPS_INFO = "cat /proc/%d/smaps";
56 private static final String STATUS_INFO = "cat /proc/%d/status";
57 private static final String NATIVE_HEAP = "Native";
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DPackageManagerHostTestUtils.java43 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;
81 public static String getAppPrivatePath() { in getAppPrivatePath()
85 public static void setAppPrivatePath(String path) { in setAppPrivatePath()
94 public static String getDeviceAppPath() { in getDeviceAppPath()
103 public static String getSDCardAppPath() { in getSDCardAppPath()
121 private CollectingTestListener doRunTests(String pkgName, String className, in doRunTests()
122 String methodName, String runnerName, Map<String, String> params) in doRunTests() argument
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java58 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 …]
DArgsOptionParser.java136 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 …]
DConfigurationXmlParser.java49 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 String mName;
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestParserTestBase.java34 protected static final String TEST_TYPE_DIR = "testtype";
35 protected static final String TEST_MODULE_NAME = "module";
36 protected static final String GTEST_OUTPUT_FILE_1 = "gtest_output1.txt";
37 protected static final String GTEST_OUTPUT_FILE_2 = "gtest_output2.txt";
38 protected static final String GTEST_OUTPUT_FILE_3 = "gtest_output3.txt";
39 protected static final String GTEST_OUTPUT_FILE_4 = "gtest_output4.txt";
40 protected static final String GTEST_OUTPUT_FILE_5 = "gtest_output5.txt";
41 protected static final String GTEST_OUTPUT_FILE_6 = "gtest_output6.txt";
42 protected static final String GTEST_OUTPUT_FILE_7 = "gtest_output7.txt";
43 protected static final String GTEST_OUTPUT_FILE_8 = "gtest_output8.txt";
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/
DArgsOptionParserTest.java39 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 …]

12345678910>>...44