Home
last modified time | relevance | path

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

12345678910>>...83

/tools/tradefederation/contrib/tests/src/com/android/performance/tests/
DDDBenchmarkTestTest.java28 public static void checkDDCommandOptions(String ddCommand, String[] expectedOptions) { in checkDDCommandOptions()
29 for (String option : expectedOptions) Assert.assertTrue(ddCommand.contains(option)); in checkDDCommandOptions()
33 String bandwidthS, String unit, double expectedBandwidth) { in testBandwidthInMiB()
55 String bandwidthS = "1"; in testBandwidthInMiBInputUnknown()
56 String unit = "UnknownUnit/s"; in testBandwidthInMiBInputUnknown()
62 String ddBinary = "dd"; in testBuildDDCommandEmpty()
63 String inputFile = null; in testBuildDDCommandEmpty()
64 String outputFile = null; in testBuildDDCommandEmpty()
65 String inputBlockSize = null; in testBuildDDCommandEmpty()
66 String outputBlockSize = null; in testBuildDDCommandEmpty()
[all …]
DInodeopBenchmarkTestTest.java29 private static final String MOCK_INODEOP_OUTPUT_V0 = "0;test_workload;15.2;ms";
30 private static final String[] MOCK_INODEOP_OUTPUT_FIELDS_V0 = MOCK_INODEOP_OUTPUT_V0.split(";");
31 private static final Map<InodeopOutputV0, String> expectedFields = Map.of(
38 String inodeopCommand, String[] expectedOptions) { in checkInodeopCommandOptions()
39 for (String option : expectedOptions) Assert.assertTrue(inodeopCommand.contains(option)); in checkInodeopCommandOptions()
44 String version = in testGetInodeOutputFieldVersion()
52 String workload = in testGetInodeOutputFieldWorkload()
60 String execTime = in testGetInodeOutputFieldExecTime()
68 String timeUnit = in testGetInodeOutputFieldTimeUnit()
76 String inodeopBinary = "inodeop"; in testBuildInodeopCommandEmpty()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DAbiUtils.java30 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";
36 public static final String ABI_RISCV64 = "riscv64";
39 public static final String BASE_ARCH_ARM = "arm";
40 public static final String ARCH_ARM64 = BASE_ARCH_ARM + "64";
41 public static final String BASE_ARCH_X86 = "x86";
[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 …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java57 public String filesystem;
58 public String mountpoint;
59 public String type;
60 public List<String> options;
68 public MountPointInfo(String filesystem, String mountpoint, String type, in MountPointInfo()
69 List<String> options) { in MountPointInfo()
76 public MountPointInfo(String filesystem, String mountpoint, String type, String optString) { in MountPointInfo()
80 public static List<String> splitMountOptions(String options) { in splitMountOptions()
81 List<String> list = Arrays.asList(options.split(",")); in splitMountOptions()
86 public String toString() { in toString()
[all …]
DINativeDevice.java83 public String getSerialNumber(); in getSerialNumber()
86 public String getFastbootSerialNumber(); in getFastbootSerialNumber()
95 public String getProperty(String name) throws DeviceNotAvailableException; in getProperty()
105 public long getIntProperty(String name, long defaultValue) throws DeviceNotAvailableException; in getIntProperty()
117 public boolean getBooleanProperty(String name, boolean defaultValue) in getBooleanProperty()
128 public boolean setProperty(String propKey, String propValue) throws DeviceNotAvailableException; in setProperty()
137 public String getFastbootVariable(String variableName) in getFastbootVariable()
150 public String getBootloaderVersion() throws DeviceNotAvailableException; in getBootloaderVersion()
166 public String getBasebandVersion() throws DeviceNotAvailableException; in getBasebandVersion()
177 public String getProductType() throws DeviceNotAvailableException; in getProductType()
[all …]
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java30 private final String mSerial;
31 private final String mDisplaySerial;
36 private final String mProduct;
37 private final String mProductVariant;
38 private final String mSdkVersion;
39 private final String mBuildId;
40 private final String mHardwareRevision;
41 private final String mBatteryLevel;
42 private final String mDeviceClass;
43 private final String mMacAddress;
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java56 private static final String TEST_CAMERA_LAUNCH = "testCameraLaunch";
57 private static final String TEST_SINGLE_CAPTURE = "testSingleCapture";
58 private static final String TEST_REPROCESSING_LATENCY = "testReprocessingLatency";
59 private static final String TEST_SINGLE_CAPTURE_JPEG_R = "testSingleCaptureJpegR";
60 private static final String TEST_REPROCESSING_THROUGHPUT = "testReprocessingThroughput";
63 private final ImmutableMultimap<String, String> mReportingKpis =
64 new ImmutableMultimap.Builder<String, String>()
77 private static final ImmutableMap<String, String> METHOD_JSON_KEY_MAP =
78 new ImmutableMap.Builder<String, String>()
126 … public void handleMetricsOnTestEnded(TestDescription test, Map<String, String> testMetrics) { in handleMetricsOnTestEnded() argument
[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 …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkTest.java49 static final String DEFAULT_TEST_PATH = "/data/benchmarktest";
50 static final String GBENCHMARK_FILTER_OPTION = "--benchmark_filter";
53 private static final String GBENCHMARK_LIST_TESTS_OPTION = "--benchmark_list_tests=true";
54 private static final List<String> DEFAULT_FILE_EXCLUDE_FILTERS = new ArrayList<>();
57 static final String GBENCHMARK_JSON_OUTPUT_FORMAT = "--benchmark_format=json";
67 private List<String> mFileExclusionFilterRegex = new ArrayList<>(DEFAULT_FILE_EXCLUDE_FILTERS);
72 private String mDeviceTestPath = DEFAULT_TEST_PATH;
79 private List<String> mTestModules = new ArrayList<>();
86 private String mReportRunName = null;
95 private Set<String> mIncludeFilters = new LinkedHashSet<>();
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DStatsdBeforeAfterGaugeMetricPostProcessor.java120 private MultiMap<String, String> mMetricFormatters = new MultiMap<>();
140 protected Map<String, Metric.Builder> parseMetricsFromReportList( in parseMetricsFromReportList()
147 Map<String, MultiMap<String, String>> beforeMetrics = new HashMap<>(); in parseMetricsFromReportList()
148 Map<String, MultiMap<String, String>> afterMetrics = new HashMap<>(); in parseMetricsFromReportList()
153 Map<String, Map<String, Set<String>>> beforekeyToFormatterOutput = new HashMap<>(); in parseMetricsFromReportList()
154 Map<String, Map<String, Set<String>>> afterkeyToFormatterOutput = new HashMap<>(); in parseMetricsFromReportList()
182 Set<String> atomsInBeforeOnly = in parseMetricsFromReportList()
191 Set<String> atomsInAfterOnly = in parseMetricsFromReportList()
205 Map<String, MultiMap<String, String>> deltaMetrics = new HashMap<>(); in parseMetricsFromReportList()
206 for (String atomName : Sets.intersection(beforeMetrics.keySet(), afterMetrics.keySet())) { in parseMetricsFromReportList()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DArgsOptionParserTest.java49 private static final String DEFAULT_VALUE = "default";
50 private static final String OPTION_NAME = "my_option";
51 private static final String OPTION_DESC = "option description";
54 private String mMyOption = DEFAULT_VALUE;
60 private static final String DEFAULT_VALUE_ONE = "defaultOne";
61 private static final String OPTION_NAME_ONE = "my_option_one";
63 private static final String DEFAULT_VALUE_TWO = "defaultTwo";
64 private static final String OPTION_NAME_TWO = "my_option_two";
67 private String mMyOptionOne = DEFAULT_VALUE_ONE;
70 private String mMyOptionTwo = DEFAULT_VALUE_TWO;
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DQuotationAwareTokenizerTest.java34 private static void verify(String input, String[] expected, String delimiter) in verify()
36 String[] observed = QuotationAwareTokenizer.tokenizeLine(input, delimiter); in verify()
39 fail(String.format("Expected and observed arrays are different lengths: expected %s " + in verify()
45 String.format( in verify()
53 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify()
60 String input = " one two three"; in testTokenizeLine_simple()
61 String[] expected = new String[] {"one", "two", "three"}; in testTokenizeLine_simple()
73 String input = "--foo \"this is a config\""; in testTokenizeLine_whitespace()
74 String[] expected = new String[] {"--foo", "this is a config"}; in testTokenizeLine_whitespace()
81 String input = "--foo,bar"; in testTokenizeLine_comma()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/
DKTapResultParserTest.java58 String ktapResults = in test_doc_example_tap()
82 String[][] expectedLeafResults = { in test_doc_example_tap()
90 String[] expectedRootResults = {"main_test", "FAILURE", ""}; in test_doc_example_tap()
96 String[] ktapResultsByLine = { in test_partial_tap()
121 String[][] expectedLeafResults = { in test_partial_tap()
131 Optional<String> ktapResults = in test_partial_tap()
133 String[] expectedRootResults = {"main_test", "FAILURE", ""}; in test_partial_tap()
139 Optional<String> ktapResults2 = in test_partial_tap()
143 String.format( in test_partial_tap()
154 String ktapResults = in test_too_many_results()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DDeviceSettingChecker.java39 private static final String NAMESPACE_SYSTEM = "system";
40 private static final String NAMESPACE_GLOBAL = "global";
41 private static final String NAMESPACE_SECURE = "secure";
42 private static final Set<String> NAMESPACES = new HashSet<>();
54 private Set<String> mIgnoredSystemSettings = new HashSet<>();
60 private Set<String> mIgnoredSecureSettings = new HashSet<>();
66 private Set<String> mIgnoredGlobalSettings = new HashSet<>();
69 private Map<String, Map<String, String>> mSettingValPair = new HashMap<>();
77 Set<String> failedNamespaces = new HashSet<>(); in preExecutionCheck()
78 for (String namespace : NAMESPACES) { in preExecutionCheck()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestParserTestBase.java29 protected static final String TEST_TYPE_DIR = "testtype";
30 protected static final String TEST_MODULE_NAME = "module";
31 protected static final String GTEST_OUTPUT_FILE_1 = "gtest_output1.txt";
32 protected static final String GTEST_OUTPUT_FILE_2 = "gtest_output2.txt";
33 protected static final String GTEST_OUTPUT_FILE_3 = "gtest_output3.txt";
34 protected static final String GTEST_OUTPUT_FILE_4 = "gtest_output4.txt";
35 protected static final String GTEST_OUTPUT_FILE_5 = "gtest_output5.txt";
36 protected static final String GTEST_OUTPUT_FILE_6 = "gtest_output6.txt";
37 protected static final String GTEST_OUTPUT_FILE_7 = "gtest_output7.txt";
38 protected static final String GTEST_OUTPUT_FILE_8 = "gtest_output8.txt";
[all …]
DArtRunTestTest.java107 private void createExpectedStdoutFile(String runTestName) throws IOException { in createExpectedStdoutFile()
115 private void createExpectedStderrFile(String runTestName) throws IOException { in createExpectedStderrFile()
123 private CommandResult createMockCommandResult(String stdout, String stderr, int exitCode) { in createMockCommandResult()
135 final String classpath = "/data/local/tmp/test/test.jar"; in testRunSingleTest_unsetRunTestNameOption()
150 final String runTestName = "test"; in testRunSingleTest_unsetClasspathOption()
164 private void doTestRunSingleTest(final String runTestName, final String classpath) in doTestRunSingleTest()
174 String runName = "ArtRunTest_abi"; in doTestRunSingleTest()
180 final String stdoutFileName = "stdout.txt"; in doTestRunSingleTest()
181 final String stderrFileName = "stderr.txt"; in doTestRunSingleTest()
183 String tmpTestRemoteDirPath = "/data/local/tmp/test.0123456789"; in doTestRunSingleTest()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultRecordHandler.java24 private static final String BEGIN_TIME = "Begin Time";
25 private static final String END_TIME = "End Time";
26 private static final String RESULT = "Result";
27 private static final String STACKTRACE = "Stacktrace";
28 private static final String TEST_CLASS = "Test Class";
29 private static final String TEST_NAME = "Test Name";
32 public Record handle(Map<String, Object> docMap) { in handle() argument
34 builder.setTestClass(String.valueOf(docMap.get(TEST_CLASS))); in handle()
35 builder.setTestName(String.valueOf(docMap.get(TEST_NAME))); in handle()
36 builder.setResult(RecordResult.valueOf((String) docMap.get(RESULT))); in handle()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java70 private static final Set<String> SUPPORTED_EXTENSIONS =
74 private static final String CONFIG_PREFIX = "config/";
75 private static final String DRY_RUN_TEMPLATE_CONFIG = "empty";
76 private static final String CONFIG_ERROR_PATTERN = "(Could not find option with name )(.*)";
78 private static final String DIRECT_CONFIG_PATTERN = "^(gs|file|http|https)://.*";
90 public String name = null;
91 public Map<String, String> templateMap = new HashMap<>();
103 public ConfigId(String name) { in ConfigId()
110 public ConfigId(String name, Map<String, String> templateMap) { in ConfigId() argument
157 private String mPrefix = null;
[all …]
DConfigurationXmlParser.java52 private static final String OBJECT_TAG = "object";
53 private static final String OPTION_TAG = "option";
54 private static final String INCLUDE_TAG = "include";
55 private static final String TEMPLATE_INCLUDE_TAG = "template-include";
56 private static final String CONFIG_TAG = "configuration";
57 private static final String DEVICE_TAG = "device";
58 private static final String IS_FAKE_ATTR = "isFake";
61 static final String INNER_TEMPLATE_INCLUDE_ERROR =
70 private final Map<String, String> mTemplateMap;
71 private final Set<String> mTemplateSeen;
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/build/
DIBuildInfo.java45 public static final String UNKNOWN_BUILD_ID = "-1";
48 public static final String REMOTE_FILE_PREFIX = "remote_file:";
51 public static final String REMOTE_FILE_VERSION = "";
57 public String getBuildId(); in getBuildId()
62 public void setBuildId(String buildId); in setBuildId()
67 public String getTestTag(); in getTestTag()
72 public void setTestTag(String testTag); in setTestTag()
80 public String getBuildTargetName(); in getBuildTargetName()
91 public String getBuildFlavor(); in getBuildFlavor()
97 public String getDeviceSerial(); in getDeviceSerial()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFeatureFlagTargetPreparer.java76 private List<String> mFlagValues = new ArrayList<>();
83 private final Map<String, Map<String, String>> mFlagsToRestore = new HashMap<>();
95 List<Map<String, Map<String, String>>> flagBundles = new ArrayList<>(); in setUp()
99 String.format("Flag file '%s' not found", flagFile), in setUp()
110 Map<String, Map<String, String>> initialFlags = null; in setUp()
113 for (Map<String, Map<String, String>> targetFlags : flagBundles) { in setUp()
115 Map<String, Map<String, String>> currentFlags = listFlags(device); in setUp()
120 for (String namespace : targetFlags.keySet()) { in setUp()
122 Map<String, String> currentValues = currentFlags.getOrDefault(namespace, Map.of()); in setUp()
123 Map<String, String> targetValues = targetFlags.get(namespace); in setUp()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceProperties.java24 public static final String BOARD = "ro.product.board";
26 public static final String HARDWARE = "ro.hardware";
28 public static final String VARIANT = "ro.product.vendor.device";
30 public static final String VARIANT_LEGACY_O_MR1 = "ro.vendor.product.device";
32 public static final String VARIANT_LEGACY_LESS_EQUAL_O = "ro.product.device";
34 public static final String SDK_VERSION = "ro.build.version.sdk";
36 public static final String BRAND = "ro.product.brand";
38 public static final String PRODUCT = "ro.product.name";
40 public static final String RELEASE_VERSION = "ro.build.version.release";
42 public static final String BOOT_REASON_HISTORY = "persist.sys.boot.reason.history";
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DMetricUtility.java52 private static final String TEST_HEADER_SEPARATOR = "\n\n";
53 private static final String METRIC_SEPARATOR = "\n";
54 private static final String METRIC_KEY_VALUE_SEPARATOR = ":";
55 private static final String STATS_KEY_MIN = "min";
56 private static final String STATS_KEY_MAX = "max";
57 private static final String STATS_KEY_MEAN = "mean";
58 private static final String STATS_KEY_VAR = "var";
59 private static final String STATS_KEY_STDEV = "stdev";
60 private static final String STATS_KEY_MEDIAN = "median";
61 private static final String STATS_KEY_TOTAL = "total";
[all …]

12345678910>>...83