Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 120) sorted by relevance

12345

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DStrictShardHelperTest.java291 List<IRemoteTest> res = testShard(0); in testMergeSuite_shard0() local
292 assertEquals(3, res.size()); in testMergeSuite_shard0()
294 assertTrue(res.get(0) instanceof ITestSuite); in testMergeSuite_shard0()
295 assertEquals("module3", ((ITestSuite) res.get(0)).getDirectModule().getId()); in testMergeSuite_shard0()
296 assertEquals(2, ((ITestSuite) res.get(0)).getDirectModule().numTests()); in testMergeSuite_shard0()
298 assertTrue(res.get(1) instanceof ITestSuite); in testMergeSuite_shard0()
299 assertEquals("module1", ((ITestSuite) res.get(1)).getDirectModule().getId()); in testMergeSuite_shard0()
300 assertEquals(1, ((ITestSuite) res.get(1)).getDirectModule().numTests()); in testMergeSuite_shard0()
302 assertTrue(res.get(2) instanceof ITestSuite); in testMergeSuite_shard0()
303 assertEquals("module2", ((ITestSuite) res.get(2)).getDirectModule().getId()); in testMergeSuite_shard0()
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DBootSector.java481 StringBuilder res = new StringBuilder(1024); in toString() local
482 res.append("Bootsector :\n"); in toString()
483 res.append("oemName="); in toString()
484 res.append(getOemName()); in toString()
485 res.append('\n'); in toString()
486 res.append("medium descriptor = "); in toString()
487 res.append(getMediumDescriptor()); in toString()
488 res.append('\n'); in toString()
489 res.append("Nr heads = "); in toString()
490 res.append(getNrHeads()); in toString()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DAndroidDebugBridgeWrapperTest.java52 CommandResult res = new CommandResult(); in testAdbVersionParsing() local
53 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing()
54 res.setStdout("Android Debug Bridge version 1.0.36\nRevision 0e7324e9095a-android\n"); in testAdbVersionParsing()
58 .andReturn(res); in testAdbVersionParsing()
68 CommandResult res = new CommandResult(); in testAdbVersionParsing_altFormat() local
69 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_altFormat()
70 res.setStdout( in testAdbVersionParsing_altFormat()
77 .andReturn(res); in testAdbVersionParsing_altFormat()
87 CommandResult res = new CommandResult(); in testAdbVersionParse_runFail() local
88 res.setStatus(CommandStatus.FAILED); in testAdbVersionParse_runFail()
[all …]
DDeviceStateMonitorTest.java123 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline()
124 assertTrue(res); in testWaitForDeviceOffline_alreadyOffline()
143 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline()
144 assertTrue(res); in testWaitForDeviceOffline()
153 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_REACHED_MS); in testWaitForDeviceOffline_timeout()
154 assertFalse(res); in testWaitForDeviceOffline_timeout()
180 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShellAvailable()
181 assertTrue(res); in testWaitForShellAvailable()
221 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShell_becomeAvailable()
222 assertTrue(res); in testWaitForShell_becomeAvailable()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSBucketUtil.java137 CommandResult res = getRunUtil() in checkGSUtil() local
140 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in checkGSUtil()
184 CommandResult res = run in copy() local
186 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in copy()
192 res.getStatus(), in copy()
193 res.getStdout(), in copy()
194 res.getStderr())); in copy()
196 return res; in copy()
282 CommandResult res = getRunUtil() in makeBucket() local
286 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in makeBucket()
[all …]
DBundletoolUtil.java98 CommandResult res = in generateDeviceSpecFile() local
104 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in generateDeviceSpecFile()
107 generateDeviceSpecCmd.toString(), res.getStderr()); in generateDeviceSpecFile()
148 CommandResult res = getRunUtil().runTimedCmd(CMD_TIME_OUT, extractApkCmd); in extractSplitsFromApks() local
149 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in extractSplitsFromApks()
153 Arrays.toString(extractApkCmd), res.getStderr()); in extractSplitsFromApks()
184 CommandResult res = in installApks() local
189 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in installApks()
193 installApksCmd.toString(), res.getStderr()), in installApks()
/tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/synaccess/
Dnp02b.py80 res = self.tnhelper.cmd('pshow')
81 status_list = re.findall('(ON|OFF)', res)
163 res = self._tn.read_until(utils.ascii_string(self.prompt), 2)
166 if res is None:
168 res = res.decode()
169 if re.search('Invalid', res):
171 res = res.replace(self.prompt, '')
172 res = res.replace(self.tx_cmd_separator, '')
173 res = res.replace(self.rx_cmd_separator, '')
174 res = res.replace(cmd_str, '')
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleSplitterTest.java71 List<ModuleDefinition> res = in testSplitModule_configNotShardable() local
74 assertEquals(1, res.size()); in testSplitModule_configNotShardable()
78 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotShardable()
80 assertSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotShardable()
107 List<ModuleDefinition> res = in testSplitModule_configNotStrictShardable_dynamic() local
110 assertEquals(10, res.size()); in testSplitModule_configNotStrictShardable_dynamic()
114 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotStrictShardable_dynamic()
116 assertNotSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_dynamic()
142 List<ModuleDefinition> res = in testSplitModule_configNotStrictShardable_notDynamic() local
145 assertEquals(1, res.size()); in testSplitModule_configNotStrictShardable_notDynamic()
[all …]
DSuiteModuleLoaderTest.java251 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_moduleArgs() local
254 assertNotNull(res.get("armeabi-v7a module1[test]")); in testInjectConfigOptions_moduleArgs()
255 IConfiguration config = res.get("armeabi-v7a module1[test]"); in testInjectConfigOptions_moduleArgs()
322 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_testArgs() local
325 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_testArgs()
326 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_testArgs()
362 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_moduleArgs_alias() local
365 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_moduleArgs_alias()
366 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_moduleArgs_alias()
399 LinkedHashMap<String, IConfiguration> res = in testFilterParameterized() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DResourceUtilTest.java38 Map<String, String> res = ResourceUtil.readConfigurationFromResource("this/doesnt/exists"); in testLoadNonExisting() local
39 assertTrue(res.isEmpty()); in testLoadNonExisting()
45 Map<String, String> res = in testLoad() local
47 assertEquals("value", res.get("key")); in testLoad()
48 assertEquals("value2", res.get("key2")); in testLoad()
57 Map<String, String> res = in testLoad_invalid() local
59 assertTrue(res.isEmpty()); in testLoad_invalid()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DAcloudConfigParserTest.java54 AcloudConfigParser res = AcloudConfigParser.parseConfig(tmpConfig); in testParse() local
55 assertNotNull(res); in testParse()
56 assertEquals("us-central1-c", res.getValueForKey(AcloudKeys.ZONE)); in testParse()
57 assertEquals("android-treehugger", res.getValueForKey(AcloudKeys.PROJECT)); in testParse()
60 res.getValueForKey(AcloudKeys.SERVICE_ACCOUNT_NAME)); in testParse()
62 "/some/key.p12", res.getValueForKey(AcloudKeys.SERVICE_ACCOUNT_PRIVATE_KEY)); in testParse()
71 AcloudConfigParser res = AcloudConfigParser.parseConfig(new File("doesnotexistsfile")); in testFailParse() local
72 assertNull(res); in testFailParse()
DRemoteFileUtilTest.java57 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteFile() local
72 .andReturn(res); in testFetchRemoteFile()
92 CommandResult res = new CommandResult(CommandStatus.FAILED); in testFetchRemoteFile_fail() local
93 res.setStderr("Failed to fetch file."); in testFetchRemoteFile_fail()
108 .andReturn(res); in testFetchRemoteFile_fail()
121 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteDir() local
137 .andReturn(res); in testFetchRemoteDir()
157 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testPushFileToRemote() local
174 .andReturn(res); in testPushFileToRemote()
199 CommandResult res = new CommandResult(CommandStatus.FAILED); in testPushFileToRemote_fail() local
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBootstrapBuildProviderTest.java62 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild() local
63 assertNotNull(res); in testGetBuild()
65 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild()
67 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild()
70 mProvider.cleanUp(res); in testGetBuild()
85 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild_stubDevice() local
86 assertNotNull(res); in testGetBuild_stubDevice()
88 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild_stubDevice()
90 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild_stubDevice()
91 assertEquals("stub", res.getBuildBranch()); in testGetBuild_stubDevice()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/lite/
DSampleTests.java35 int res = 2 + 2; in testAddition() local
36 assertEquals(expected, res); in testAddition()
42 int res = 2 * 2; in testMultiplication() local
43 assertEquals(expected, res); in testMultiplication()
49 int res = 12 - 2; in testSubtraction() local
50 assertEquals(expected, res); in testSubtraction()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java226 CommandResult res = new CommandResult(); in testSetupSuccess_removeExistingStagedApexSuccess() local
227 res.setStdout("test.apex"); in testSetupSuccess_removeExistingStagedApexSuccess()
228 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess()
229 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess()
230 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess()
253 CommandResult res = new CommandResult(); in testSetupSuccess_noDataUnderApexDataDirs() local
254 res.setStdout(""); in testSetupSuccess_noDataUnderApexDataDirs()
255 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs()
256 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs()
257 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/
DBaseRetryDecisionTest.java116 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry()
117 assertFalse(res); in testShouldRetry()
123 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_failure()
124 assertTrue(res); in testShouldRetry_failure()
135 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_failure_nonRetriable()
136 assertTrue(res); in testShouldRetry_failure_nonRetriable()
146 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_success()
147 assertTrue(res); in testShouldRetry_success()
159 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_morefailure()
160 assertTrue(res); in testShouldRetry_morefailure()
[all …]
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java70 boolean res = mHandler.pushFile(tmpFile, "/sdcard/" + tmpFile.getName()); in testPushFile_encode()
71 assertTrue(res); in testPushFile_encode()
87 boolean res = mHandler.pushFile(tmpFile, "/sdcard/" + tmpFile.getName()); in testPushFile_encode_plus()
88 assertTrue(res); in testPushFile_encode_plus()
101 boolean res = mHandler.pushFile(tmpFile, devicePath); in testPushFile()
102 assertTrue(res); in testPushFile()
116 boolean res = mHandler.pushFile(tmpFile, devicePath); in testDeleteFile()
117 assertTrue(res); in testDeleteFile()
141 boolean res = mHandler.pullFile("/sdcard/" + tmpFile.getName(), tmpPullFile); in testPullFile()
142 assertTrue(res); in testPullFile()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DNestedDeviceStateMonitor.java57 CommandResult res = null; in nestedWaitForDeviceOnline() local
62 res = mDevice.executeShellV2Command("dumpsys package"); in nestedWaitForDeviceOnline()
63 if (CommandStatus.SUCCESS.equals(res.getStatus()) in nestedWaitForDeviceOnline()
64 && !res.getStdout().contains(DUMPSYS_ERROR)) { in nestedWaitForDeviceOnline()
72 if (res != null) { in nestedWaitForDeviceOnline()
73 CLog.e("Error checking device ready: %s", res.getStderr()); in nestedWaitForDeviceOnline()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DUsbResetRunConfigRecoveryTest.java45 boolean res = mUsbReset.shouldSkip(mockDevice); in testShouldSkip()
46 assertFalse(res); in testShouldSkip()
47 res = mUsbReset.shouldSkip(mockDevice); in testShouldSkip()
48 assertTrue(res); in testShouldSkip()
49 res = mUsbReset.shouldSkip(mockDevice); in testShouldSkip()
50 assertFalse(res); in testShouldSkip()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java123 CommandResult res = new CommandResult(); in testRun() local
124 res.setStatus(CommandStatus.SUCCESS); in testRun()
125 res.setStderr("TEST_RUN_STARTED {\"testCount\": 5, \"runName\": \"TestSuite\"}"); in testRun()
129 .andReturn(res); in testRun()
160 CommandResult res = new CommandResult(); in testRun_failWithIncludeFilters() local
161 res.setStatus(CommandStatus.SUCCESS); in testRun_failWithIncludeFilters()
162 res.setStderr("TEST_RUN_STARTED {\"testCount\": 5, \"runName\": \"TestSuite\"}"); in testRun_failWithIncludeFilters()
166 .andReturn(res); in testRun_failWithIncludeFilters()
199 CommandResult res = new CommandResult(); in testRun_withIncludeFilters() local
200 res.setStatus(CommandStatus.SUCCESS); in testRun_withIncludeFilters()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DAndroidDebugBridgeWrapper.java89 CommandResult res = in getAdbVersion() local
91 if (CommandStatus.SUCCESS.equals(res.getStatus())) { in getAdbVersion()
93 Matcher m = VERSION_PATTERN.matcher(res.getStdout()); in getAdbVersion()
103 Matcher revision = REVISION_PATTERN.matcher(res.getStdout()); in getAdbVersion()
108 Matcher subVersion = SUB_VERSION_PATTERN.matcher(res.getStdout()); in getAdbVersion()
113 Matcher installPath = PATH_PATTERN.matcher(res.getStdout()); in getAdbVersion()
122 res.getStdout(), res.getStderr()); in getAdbVersion()
/tools/test/connectivity/acts/tests/google/fuchsia/bt/
DBleFuchsiaTest.py50 res = self.fuchsia_adv.ble_lib.blePublishService(
52 self.log.info("Publish result: {}".format(res))
61 res = True
71 res = False
76 return res
87 res = self.fuchsia_adv.ble_lib.blePublishService(
89 self.log.info("Publish result: {}".format(res))
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigDumpTest.java58 int res = mConfigDump.parse(commandLine); in testParseCommandLine() local
59 assertEquals(0, res); in testParseCommandLine()
79 int res = mConfigDump.parse(commandLine); in testParseCommandLine_filtered() local
80 assertEquals(0, res); in testParseCommandLine_filtered()
100 int res = mConfigDump.parse(commandLine); in testParseCommandLine_run() local
101 assertEquals(0, res); in testParseCommandLine_run()
DTradefedSandboxTest.java138 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment() local
140 assertNull(res); in testPrepareEnvironment()
181 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail() local
183 assertNotNull(res); in testPrepareEnvironment_dumpConfigFail()
184 assertTrue(res instanceof ConfigurationException); in testPrepareEnvironment_dumpConfigFail()
185 assertEquals("Error when dumping the config. stderr: Ouch I failed.", res.getMessage()); in testPrepareEnvironment_dumpConfigFail()
221 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail_fallback_fail() local
223 assertNotNull(res); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
224 assertTrue(res instanceof ConfigurationException); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
227 res.getMessage()); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetRunConfigRecovery.java33 boolean res = device.isStateBootloaderOrFastbootd(); in shouldSkip()
35 if (!res && DeviceAllocationState.Available.equals(device.getAllocationState())) { in shouldSkip()
36 res = true; in shouldSkip()
38 if (!res) { in shouldSkip()

12345