Home
last modified time | relevance | path

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

12345678910>>...66

/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 …]
DConfigurationFactoryTest.java66 private static final String TEST_CONFIG = "test-config";
67 private static final String GLOBAL_TEST_CONFIG = "global-config";
68 private static final String INCLUDE_CONFIG = "include-config";
70 private static final List<String> JAR_TO_CHECK = new ArrayList<>();
87 protected String getConfigPrefix() { in setUp()
96 Mockito.doReturn(new HashSet<String>()).when(spyFactory).getConfigNamesFromTestCases(null); in testLoadAllConfigs()
105 Map<String, String> configAndJar = spyFactory.getConfigSetFromClasspathFromJar(null); in testLoadAllConfigs()
106 Map<String, List<String>> classInContribJars = getClassInContribJar(); in testLoadAllConfigs()
108 List<String> exceptionConfigJar = new ArrayList<>(); in testLoadAllConfigs()
110 String configName = entry.getKey().name; in testLoadAllConfigs()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java67 static final String DISMISS_DIALOG_CMD = "input keyevent 23";
69 public static final String DISMISS_KEYGUARD_CMD = "input keyevent 82";
75 static final String DISMISS_KEYGUARD_WM_CMD = "wm dismiss-keyguard";
80 private static final String TEST_INPUT_CMD = "dumpsys input";
85 static final String LIST_PACKAGES_CMD = "pm list packages -f";
88 static final String LIST_APEXES_CMD = "pm list packages --apex-only --show-versioncode -f";
100 private static final String[] SETTINGS_NAMESPACE = {"system", "secure", "global"};
103 private static final String USER_PATTERN = "(.*?\\{)(\\d+)(:)(.*)(:)(\\w+)(\\}.*)";
105 private static final String DISPLAY_ID_PATTERN = "(Display )(?<id>\\d+)( color modes:)";
112 private static final String DUMPHEAP_CMD = "am dumpheap %s %s";
[all …]
DNativeDevice.java109 protected static final String SD_CARD = "/sdcard/";
121 private static final String BUGREPORT_CMD = "bugreport";
122 private static final String BUGREPORTZ_CMD = "bugreportz";
123 private static final String BUGREPORTZ_TMP_PATH = "/bugreports/";
149 private static final String ENCRYPTION_PASSWORD = "android";
166 private static final String SIM_STATE_PROP = "gsm.sim.state";
167 private static final String SIM_OPERATOR_PROP = "gsm.operator.alpha";
169 static final String MAC_ADDRESS_PATTERN = "([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}";
170 static final String MAC_ADDRESS_COMMAND = "su root cat /sys/class/net/wlan0/address";
185 private static final String TOMBSTONE_PATH = "/data/tombstones/";
[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 …]
DCameraTestBase.java69 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/device/
DTestDeviceTest.java88 private static final String MOCK_DEVICE_SERIAL = "serial";
93 private static final String RAWIMAGE_RESOURCE = "/testdata/rawImage.zip";
124 void doReboot(RebootMode rebootMode, @Nullable final String reason) in doReboot()
263 private void setExecuteAdbCommandExpectations(CommandResult result, String command) in setExecuteAdbCommandExpectations()
314 EasyMock.expect(mMockIDevice.getProperty(EasyMock.<String>anyObject())).andReturn(null); in testGetProductType_fastboot()
321 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastboot()
322 (String)EasyMock.anyObject(), (String)EasyMock.anyObject(), in testGetProductType_fastboot()
323 (String)EasyMock.anyObject(), (String)EasyMock.anyObject())).andReturn( in testGetProductType_fastboot()
335 EasyMock.expect(mMockIDevice.getProperty(EasyMock.<String>anyObject())).andReturn(null); in testGetProductType_fastbootNonalpha()
342 mMockRunUtil.runTimedCmd(EasyMock.anyLong(), (String)EasyMock.anyObject(), in testGetProductType_fastbootNonalpha()
[all …]
DNativeDeviceTest.java87 private static final String MOCK_DEVICE_SERIAL = "serial";
88 private static final String FAKE_NETWORK_SSID = "FakeNet";
89 private static final String FAKE_NETWORK_PASSWORD ="FakePass";
275 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childFile()
291 public String executeShellCommand(String cmd) throws DeviceNotAvailableException { in testPushDir_childDir()
295 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir()
311 Set<String> filter = new HashSet<>(); in testPushDir_childDir_filtered()
319 public String executeShellCommand(String cmd) in testPushDir_childDir_filtered()
327 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir_filtered()
352 public String executeShellCommand(String command) in testPullDir_nothingToDo()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DAggregatePostProcessorTest.java36 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";
48 private static final String STATS_KEY_TOTAL = "total";
50 private static final String STATS_KEY_SEPARATOR = "-";
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java62 private static final Set<String> SUPPORTED_EXTENSIONS =
65 private static final String LOG_TAG = "ConfigurationFactory";
67 private static final String CONFIG_PREFIX = "config/";
68 private static final String DRY_RUN_TEMPLATE_CONFIG = "empty";
69 private static final String CONFIG_ERROR_PATTERN = "(Could not find option with name )(.*)";
81 public String name = null;
82 public Map<String, String> templateMap = new HashMap<>();
94 public ConfigId(String name) { in ConfigId()
101 public ConfigId(String name, Map<String, String> templateMap) { in ConfigId() argument
144 private String mPrefix = null;
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/
DResultAggregatorTest.java61 private String mCurrentRunError = null;
69 String getInvocationMetricRunError() { in getInvocationMetricRunError()
74 void addInvocationMetricRunError(String errors) { in addInvocationMetricRunError()
125 EasyMock.<HashMap<String, Metric>>anyObject()); in testForwarding()
133 EasyMock.<HashMap<String, Metric>>anyObject()); in testForwarding()
136 mDetailedListener.testRunEnded(450L, new HashMap<String, Metric>()); in testForwarding()
143 EasyMock.<HashMap<String, Metric>>anyObject()); in testForwarding()
144 mDetailedListener.testRunEnded(450L, new HashMap<String, Metric>()); in testForwarding()
156 EasyMock.<HashMap<String, Metric>>anyObject()); in testForwarding()
163 EasyMock.<HashMap<String, Metric>>anyObject()); in testForwarding()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostTestTest.java105 public SuccessTestCase(String name) { in SuccessTestCase()
126 public DynamicTestCase(String name) { in DynamicTestCase()
138 public String testOption = null;
141 public List<String> listOption = new ArrayList<>();
144 public Map<String, String> mapOption = new HashMap<>();
182 public AnotherTestCase(String name) { in AnotherTestCase()
208 public Map<String, String> mapOption = new HashMap<>();
392 private String mOption = null;
449 public String mOption = null;
517 public NoConstructorTest(String name) { in NoConstructorTest()
[all …]
DGTestTest.java50 private static final String GTEST_FLAG_FILTER = "--gtest_filter";
75 String runName, ITestInvocationListener listener) { in setUp()
81 String testRunName, ITestInvocationListener listener) { in setUp()
145 final String nativeTestPath = GTest.DEFAULT_NATIVETEST_PATH; in testRun()
146 final String test1 = "test1"; in testRun()
147 final String test2 = "test2"; in testRun()
148 final String testPath1 = String.format("%s/%s", nativeTestPath, test1); in testRun()
149 final String testPath2 = String.format("%s/%s", nativeTestPath, test2); in testRun()
162 String[] files = new String[] {"test1", "test2"}; in testRun()
185 final String nativeTestPath = GTest.DEFAULT_NATIVETEST_PATH; in testRunFilterAbiPath()
[all …]
DGoogleBenchmarkTestTest.java71 String runName, ITestInvocationListener listener) { in setUp()
74 public Map<String, String> parse(CollectingOutputReceiver output) { in setUp()
104 final String nativeTestPath = GoogleBenchmarkTest.DEFAULT_TEST_PATH; in testRun()
105 final String test1 = "test1"; in testRun()
106 final String test2 = "test2"; in testRun()
112 String[] files = new String[] {"test1", "test2"}; in testRun()
123 String.format( in testRun()
129 String.format( in testRun()
135 EasyMock.eq(mDummyTest), EasyMock.<HashMap<String, String>>anyObject()); in testRun()
139 EasyMock.eq(mDummyTest), EasyMock.<HashMap<String, String>>anyObject()); in testRun()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteModuleLoader.java71 public static final String CONFIG_EXT = ".config";
72 private Map<String, List<OptionDef>> mTestOrPreparerOptions = new HashMap<>();
73 private Map<String, List<OptionDef>> mModuleOptions = new HashMap<>();
75 private Map<String, List<SuiteTestFilter>> mIncludeFilters = new HashMap<>();
76 private Map<String, List<SuiteTestFilter>> mExcludeFilters = new HashMap<>();
86 private static final Set<String> MAINLINE_PARAMETERS_TO_VALIDATE =
98 Map<String, List<SuiteTestFilter>> includeFilters, in SuiteModuleLoader() argument
99 Map<String, List<SuiteTestFilter>> excludeFilters, in SuiteModuleLoader()
100 List<String> testArgs, in SuiteModuleLoader()
101 List<String> moduleArgs) { in SuiteModuleLoader()
[all …]
/tools/tradefederation/core/device_build_interfaces/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 …]
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java71 private static final String ENCODING = "UTF-8";
72 private static final String TYPE = "org.kxml2.io.KXmlParser,org.kxml2.io.KXmlSerializer";
73 public static final String NS = null;
75 public static final String TEST_RESULT_FILE_NAME = "test_result.xml";
78 private static final String ABI_ATTR = "abi";
79 private static final String BUGREPORT_TAG = "BugReport";
80 private static final String BUILD_TAG = "Build";
81 private static final String CASE_TAG = "TestCase";
82 private static final String COMMAND_LINE_ARGS = "command_line_args";
83 private static final String DEVICES_ATTR = "devices";
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java81 private static final String CONSOLE_PROMPT = "\u001B[0;32mtf >\u001B[0;0m";
83 protected static final String HELP_PATTERN = "\\?|h|help";
84 protected static final String LIST_PATTERN = "l(?:ist)?";
85 protected static final String DUMP_PATTERN = "d(?:ump)?";
86 protected static final String RUN_PATTERN = "r(?:un)?";
87 protected static final String EXIT_PATTERN = "(?:q|exit)";
88 protected static final String SET_PATTERN = "s(?:et)?";
89 protected static final String INVOC_PATTERN = "i(?:nvocation)?";
90 protected static final String VERSION_PATTERN = "version";
91 protected static final String REMOVE_PATTERN = "remove";
[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 …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppTransitionTests.java68 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/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java86 private static final String MANIFEST_ENTRY_NAME = V1SchemeSigner.MANIFEST_ENTRY_NAME;
109 Map<Integer, String> supportedApkSigSchemeNames, in verify()
123 Set<String> cdEntryNames = checkForDuplicateEntries(cdRecords, result); in verify()
147 private static Set<String> checkForDuplicateEntries( in checkForDuplicateEntries()
149 Set<String> cdEntryNames = new HashSet<>(cdRecords.size()); in checkForDuplicateEntries()
150 Set<String> duplicateCdEntryNames = null; in checkForDuplicateEntries()
152 String entryName = cdRecord.getName(); in checkForDuplicateEntries()
176 public static Pair<ManifestParser.Section, Map<String, ManifestParser.Section>> parseManifest( in parseManifest()
177 byte[] manifestBytes, Set<String> cdEntryNames, Result result) { in parseManifest()
181 Map<String, ManifestParser.Section> entryNameToManifestSection = in parseManifest()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java45 private static final String CLASSNAME_KEY = "className";
46 private static final String TESTNAME_KEY = "testName";
47 private static final String TRACE_KEY = "trace";
48 private static final String CAUSE_KEY = "cause";
49 private static final String RUNNAME_KEY = "runName";
50 private static final String TESTCOUNT_KEY = "testCount";
51 private static final String ATTEMPT_KEY = "runAttempt";
52 private static final String TIME_KEY = "time";
53 private static final String REASON_KEY = "reason";
54 private static final String START_TIME = "start_time";
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java110 private static final MultiMap<String, String> METADATA_INCLUDES = new MultiMap<>();
111 private static final MultiMap<String, String> METADATA_EXCLUDES = new MultiMap<>();
112 private static final String EMPTY_CONFIG = "empty";
113 private static final String TEST_CONFIG_NAME = "test";
114 private static final String FAKE_HOST_ARCH = "arm";
132 private String mTestFailedMessage = "I failed!";
153 public LinkedHashMap<String, IConfiguration> loadTests() { in loadTests()
154 LinkedHashMap<String, IConfiguration> testConfig = new LinkedHashMap<>(); in loadTests()
158 .createConfigurationFromArgs(new String[] {EMPTY_CONFIG}); in loadTests()
169 .createConfigurationFromArgs(new String[] {EMPTY_CONFIG}); in loadTests()
[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";
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 …]
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/
DGlobalConfiguration.java69 public static final String DEVICE_MONITOR_TYPE_NAME = "device_monitor";
70 public static final String HOST_MONITOR_TYPE_NAME = "host_monitor";
71 public static final String DEVICE_MANAGER_TYPE_NAME = "device_manager";
72 public static final String WTF_HANDLER_TYPE_NAME = "wtf_handler";
73 public static final String HOST_OPTIONS_TYPE_NAME = "host_options";
74 public static final String HOST_RESOURCE_MANAGER_TYPE_NAME = "host_resource_manager";
75 public static final String DEVICE_REQUIREMENTS_TYPE_NAME = "device_requirements";
76 public static final String SCHEDULER_TYPE_NAME = "command_scheduler";
77 public static final String MULTI_DEVICE_RECOVERY_TYPE_NAME = "multi_device_recovery";
78 public static final String KEY_STORE_TYPE_NAME = "key_store";
[all …]

12345678910>>...66