/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 291 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/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparerTest.java | 226 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 …]
|
D | FastbootDeviceFlasherTest.java | 533 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashBootloader() local 534 res.setStderr("flashing"); in testCheckAndFlashBootloader() 540 .andReturn(res); in testCheckAndFlashBootloader() 583 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashSystem_flashing() local 584 res.setStderr("flashing"); in testCheckAndFlashSystem_flashing() 587 .andReturn(res); in testCheckAndFlashSystem_flashing() 614 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFlashingSystemWithRamdisk() local 615 res.setStderr("flashing"); in testFlashingSystemWithRamdisk() 621 .andReturn(res); in testFlashingSystemWithRamdisk() 627 .andReturn(res); in testFlashingSystemWithRamdisk() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 137 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 …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoaderTest.java | 251 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 …]
|
D | ModuleSplitterTest.java | 71 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 …]
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | BootSector.java | 481 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/testtype/python/ |
D | PythonBinaryHostTestTest.java | 123 CommandResult res = new CommandResult(); in testRun() local 124 res.setStatus(CommandStatus.SUCCESS); in testRun() 125 res.setStdout("python binary stdout."); in testRun() 126 res.setStderr("TEST_RUN_STARTED {\"testCount\": 5, \"runName\": \"TestSuite\"}"); in testRun() 130 .andReturn(res); in testRun() 165 CommandResult res = new CommandResult(); in testRun_failWithIncludeFilters() local 166 res.setStatus(CommandStatus.SUCCESS); in testRun_failWithIncludeFilters() 167 res.setStderr("TEST_RUN_STARTED {\"testCount\": 5, \"runName\": \"TestSuite\"}"); in testRun_failWithIncludeFilters() 171 .andReturn(res); in testRun_failWithIncludeFilters() 204 CommandResult res = new CommandResult(); in testRun_withIncludeFilters() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceRemoteCmdFormatterTest.java | 35 List<String> res = in testFormatSsh() local 38 assertEquals("ssh", res.get(0)); in testFormatSsh() 39 assertEquals("-o", res.get(1)); in testFormatSsh() 40 assertEquals("UserKnownHostsFile=/dev/null", res.get(2)); in testFormatSsh() 41 assertEquals("-o", res.get(3)); in testFormatSsh() 42 assertEquals("StrictHostKeyChecking=no", res.get(4)); in testFormatSsh() 43 assertEquals("-o", res.get(5)); in testFormatSsh() 44 assertEquals("ServerAliveInterval=10", res.get(6)); in testFormatSsh() 45 assertEquals("-i", res.get(7)); in testFormatSsh() 46 assertEquals("/tmp/key", res.get(8)); in testFormatSsh() [all …]
|
D | GceManagerTest.java | 462 GceAvdInfo res = mGceManager.startGce(); in testStartGce() local 464 assertNotNull(res); in testStartGce() 465 assertEquals(GceStatus.SUCCESS, res.getStatus()); in testStartGce() 560 GceAvdInfo res = mGceManager.startGce(); in testStartGce_bootFail() local 562 assertNotNull(res); in testStartGce_bootFail() 563 assertEquals(GceStatus.BOOT_FAIL, res.getStatus()); in testStartGce_bootFail() 681 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testGetSshBugreport() local 682 res.setStdout("bugreport success!\nOK:/bugreports/bugreport.zip\n"); in testGetSshBugreport() 701 .andReturn(res); in testGetSshBugreport() 716 .andReturn(res); in testGetSshBugreport() [all …]
|
D | RemoteFileUtilTest.java | 57 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/device/ |
D | NativeDeviceTest.java | 363 boolean res = mTestDevice.pullDir("/some_device_path/screenshots/", dir); in testPullDir_nothingToDo() 364 assertTrue(res); in testPullDir_nothingToDo() 432 boolean res = mTestDevice.pullDir("/some_device_path/", dir); in testPullDir() 433 assertTrue(res); in testPullDir() 513 boolean res = mTestDevice.pullDir("/some_device_path/", dir); in testPullDir_pullFail() 515 assertFalse(res); in testPullDir_pullFail() 1216 InputStreamSource res = null; in testGetBugreport_deviceUnavail_fallback() local 1218 res = mTestDevice.getBugreport(); in testGetBugreport_deviceUnavail_fallback() 1219 assertNotNull(res); in testGetBugreport_deviceUnavail_fallback() 1222 StreamUtil.cancel(res); in testGetBugreport_deviceUnavail_fallback() [all …]
|
D | DeviceStateMonitorTest.java | 123 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 …]
|
D | AndroidDebugBridgeWrapperTest.java | 52 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 …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTestTest.java | 69 CommandResult res = new CommandResult(); in newCommandResult() local 70 res.setStatus(status); in newCommandResult() 71 res.setStderr(stderr); in newCommandResult() 72 res.setStdout(stdout); in newCommandResult() 73 return res; in newCommandResult() 129 private void mockTestRunExpect(File binary, CommandResult res) throws Exception { in mockTestRunExpect() argument 133 .andReturn(res); in mockTestRunExpect() 159 CommandResult res = successResult("", resultCount(6, 1, 2)); in testRun() local 160 mockTestRunExpect(binary, res); in testRun() 184 CommandResult res = successResult("", resultCount(6, 1, 2)); in testRun_withAdbPath() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/ |
D | BaseRetryDecisionTest.java | 116 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/tests/src/com/android/tradefed/build/ |
D | BootstrapBuildProviderTest.java | 66 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild() local 67 assertNotNull(res); in testGetBuild() 69 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild() 71 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild() 74 mProvider.cleanUp(res); in testGetBuild() 92 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild_add_extra_file() local 93 assertNotNull(res); in testGetBuild_add_extra_file() 95 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild_add_extra_file() 97 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild_add_extra_file() 98 assertEquals(((IDeviceBuildInfo) res).getFile("file_1"), file_1); in testGetBuild_add_extra_file() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | bluetooth_pts_device.py | 340 res = self.pts_library.RegisterProfileWithCallbacks( 346 "Profile has been registered with result {0:d}".format(res)) 354 res = self.pts_library.InitGetDevInfoWithCallbacks( 358 "GetDevInfo has been initialized with result {0:d}".format(res)) 360 res = self.pts_library.VerifyDongleEx() 362 "PTS dongle has been initialized with result {0:d}".format(res)) 394 res = self.pts_library.SetParameterEx( 397 if res: 405 res = self.pts_library.SetParameterEx( 408 if res: [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/synaccess/ |
D | np02b.py | 80 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/repohooks/tools/ |
D | checkpatch.pl | 1159 my $res = ''; 1163 $res .= ' '; 1166 $res .= ' '; 1170 $res .= $c; 1174 return $res; 1177 (my $res = shift) =~ tr/\t/ /c; 1178 return $res; 1208 my $res = ''; 1216 $res = substr($line, 0, 1); 1226 substr($res, $off, 2, "$;$;"); [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatterTest.java | 103 File res = mFormatter.writeResults(mResultHolder, mResultDir); in testBasicFormat() local 104 String content = FileUtil.readStringFromFile(res); in testBasicFormat() 155 File res = mFormatter.writeResults(mResultHolder, mResultDir); in testFailuresReporting() local 156 String content = FileUtil.readStringFromFile(res); in testFailuresReporting() 207 File res = mFormatter.writeResults(mResultHolder, mResultDir); in testFailuresReporting_notDone() local 208 String content = FileUtil.readStringFromFile(res); in testFailuresReporting_notDone() 263 File res = mFormatter.writeResults(mResultHolder, mResultDir); in testAssumptionFailures_Ignore_Reporting() local 264 String content = FileUtil.readStringFromFile(res); in testAssumptionFailures_Ignore_Reporting() 326 File res = mFormatter.writeResults(mResultHolder, mResultDir); in testLogReporting() local 327 String content = FileUtil.readStringFromFile(res); in testLogReporting() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | TradefedSandboxTest.java | 138 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/tests/src/com/android/tradefed/testtype/ |
D | AndroidJUnitTestTest.java | 476 List<IRemoteTest> res = (List<IRemoteTest>) mAndroidJUnitTest.split(3); in testSplit_threeShards() local 477 assertNotNull(res); in testSplit_threeShards() 478 assertEquals(3, res.size()); in testSplit_threeShards() 480 assertEquals(20000L, ((AndroidJUnitTest)res.get(0)).getRuntimeHint()); in testSplit_threeShards() 481 assertEquals(20000L, ((AndroidJUnitTest)res.get(1)).getRuntimeHint()); in testSplit_threeShards() 482 assertEquals(20000L, ((AndroidJUnitTest)res.get(2)).getRuntimeHint()); in testSplit_threeShards() 484 assertNull(((AndroidJUnitTest) res.get(0)).split(2)); in testSplit_threeShards() 485 assertNull(((AndroidJUnitTest) res.get(0)).split()); in testSplit_threeShards() 499 List<IRemoteTest> res = (List<IRemoteTest>) mAndroidJUnitTest.split(3); in testSplit_maxShard() local 500 assertNotNull(res); in testSplit_maxShard() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | apollo_lib.py | 279 res = self.read_serial_port() 281 self.cmd_log = res 287 for line in res: 309 logging.info(res) 332 res = self.cmd('GetPSHex 0x2637') 333 if len(res[0]) == 0: 338 match = re.match(regexp, res[0][0]) 348 res = self.cmd('GetPSHex ' + '%0.2x' % i) 349 if len(res[0]) == 0: 354 match = re.search(regexp, res[0][0]) [all …]
|
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 70 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 …]
|