/tools/treble/build/treble_build/local/ |
D | ninja_test.go | 61 res *app.BuildCommand 65 res *app.BuildQuery 69 res *app.BuildInput 73 res *app.BuildPath 77 res []*app.BuildPath 81 res *app.BuildDeps 85 res *app.BuildCmdResult 103 res: &app.BuildCommand{Target: "test", Cmds: []string{"cmd1", "cmd2", "cmd3"}}}, 106 res: &app.BuildQuery{Target: "test", Inputs: []string{"infile"}, Outputs: []string{"outfile"}}}, 109 …res: &app.BuildInput{Target: "test", Files: []string{"file1", "file2", "file3", "file4", "file5"}}, [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 382 List<IRemoteTest> res = testShard(0); in testMergeSuite_shard0() local 383 assertEquals(3, res.size()); in testMergeSuite_shard0() 385 assertTrue(res.get(0) instanceof ITestSuite); in testMergeSuite_shard0() 386 assertEquals("module3", ((ITestSuite) res.get(0)).getDirectModule().getId()); in testMergeSuite_shard0() 387 assertEquals(2, ((ITestSuite) res.get(0)).getDirectModule().numTests()); in testMergeSuite_shard0() 389 assertTrue(res.get(1) instanceof ITestSuite); in testMergeSuite_shard0() 390 assertEquals("module1", ((ITestSuite) res.get(1)).getDirectModule().getId()); in testMergeSuite_shard0() 391 assertEquals(1, ((ITestSuite) res.get(1)).getDirectModule().numTests()); in testMergeSuite_shard0() 393 assertTrue(res.get(2) instanceof ITestSuite); in testMergeSuite_shard0() 394 assertEquals("module2", ((ITestSuite) res.get(2)).getDirectModule().getId()); in testMergeSuite_shard0() [all …]
|
/tools/tradefederation/core/javatests/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("LogLevel=ERROR", res.get(2)); in testFormatSsh() 41 assertEquals("-o", res.get(3)); in testFormatSsh() 42 assertEquals("UserKnownHostsFile=/dev/null", res.get(4)); in testFormatSsh() 43 assertEquals("-o", res.get(5)); in testFormatSsh() 44 assertEquals("StrictHostKeyChecking=no", res.get(6)); in testFormatSsh() 45 assertEquals("-o", res.get(7)); in testFormatSsh() 46 assertEquals("ServerAliveInterval=10", res.get(8)); in testFormatSsh() [all …]
|
D | OxygenClientTest.java | 182 CommandResult res = new CommandResult(); in testLease() 183 res.setStatus(CommandStatus.SUCCESS); in testLease() 184 res.setStdout(""); in testLease() 185 res.setStderr(EXPECTED_OUTPUT); in testLease() 186 return res; in testLease() 193 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLease() local 194 assertEquals(res.getStatus(), CommandStatus.SUCCESS); in testLease() 195 assertEquals(res.getStderr(), EXPECTED_OUTPUT); in testLease() 238 CommandResult res = new CommandResult(); in testLeaseWithoutBuildId() 239 res.setStatus(CommandStatus.SUCCESS); in testLeaseWithoutBuildId() [all …]
|
D | GceAvdInfoTest.java | 358 JSONObject res = new JSONObject(cuttlefish); in testCfStartTimeMetricsAdded() local 359 JSONArray devices = res.getJSONObject("data").getJSONArray("devices"); in testCfStartTimeMetricsAdded() 493 CommandResult res = Mockito.mock(CommandResult.class); in testOxygenClientSucceedResponse() local 501 .when(res) in testOxygenClientSucceedResponse() 510 .when(res) in testOxygenClientSucceedResponse() 519 .when(res) in testOxygenClientSucceedResponse() 522 GceAvdInfo gceAvdInfo = GceAvdInfo.parseGceInfoFromOxygenClientOutput(res, 1234).get(0); in testOxygenClientSucceedResponse() 562 CommandResult res = Mockito.mock(CommandResult.class); in testOxygenClientLeaseMultiDevicesSucceedResponse() local 570 .when(res) in testOxygenClientLeaseMultiDevicesSucceedResponse() 579 .when(res) in testOxygenClientLeaseMultiDevicesSucceedResponse() [all …]
|
D | AcloudConfigParserTest.java | 54 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()
|
/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/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/javatests/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapperTest.java | 57 CommandResult res = new CommandResult(); in testAdbVersionParsing() local 58 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing() 59 res.setStdout("Android Debug Bridge version 1.0.36\nRevision 0e7324e9095a-android\n"); in testAdbVersionParsing() 60 when(mMockRunUtil.runTimedCmd(anyLong(), eq("fakeadb"), eq("version"))).thenReturn(res); in testAdbVersionParsing() 69 CommandResult res = new CommandResult(); in testAdbVersionParsing_altFormat() local 70 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_altFormat() 71 res.setStdout( in testAdbVersionParsing_altFormat() 75 when(mMockRunUtil.runTimedCmd(anyLong(), eq("fakeadb"), eq("version"))).thenReturn(res); in testAdbVersionParsing_altFormat() 84 CommandResult res = new CommandResult(); in testAdbVersionParse_runFail() local 85 res.setStatus(CommandStatus.FAILED); in testAdbVersionParse_runFail() [all …]
|
D | DeviceStateMonitorTest.java | 152 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline() 153 assertTrue(res); in testWaitForDeviceOffline_alreadyOffline() 173 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline() 174 assertTrue(res); in testWaitForDeviceOffline() 184 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_REACHED_MS); in testWaitForDeviceOffline_timeout() 185 assertFalse(res); in testWaitForDeviceOffline_timeout() 205 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShellAvailable() 206 assertTrue(res); in testWaitForShellAvailable() 256 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShell_becomeAvailable() 257 assertTrue(res); in testWaitForShell_becomeAvailable() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | ModuleSplitterTest.java | 76 List<ModuleDefinition> res = in testSplitModule_configNotShardable() local 80 assertEquals(1, res.size()); in testSplitModule_configNotShardable() 84 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotShardable() 86 assertSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotShardable() 113 List<ModuleDefinition> res = in testSplitModule_configNotStrictShardable_dynamic() local 117 assertEquals(9, res.size()); in testSplitModule_configNotStrictShardable_dynamic() 121 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotStrictShardable_dynamic() 123 assertNotSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_dynamic() 149 List<ModuleDefinition> res = in testSplitModule_configNotStrictShardable_notDynamic() local 153 assertEquals(1, res.size()); in testSplitModule_configNotStrictShardable_notDynamic() [all …]
|
D | SuiteModuleLoaderTest.java | 293 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_moduleArgs() local 296 assertNotNull(res.get("armeabi-v7a module1[test]")); in testInjectConfigOptions_moduleArgs() 297 IConfiguration config = res.get("armeabi-v7a module1[test]"); in testInjectConfigOptions_moduleArgs() 364 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_testArgs() local 367 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_testArgs() 368 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_testArgs() 404 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_moduleArgs_alias() local 407 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_moduleArgs_alias() 408 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_moduleArgs_alias() 432 LinkedHashMap<String, IConfiguration> res = in testLoad_notMultiAbi() local [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | BootstrapBuildProviderTest.java | 72 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild() local 73 assertNotNull(res); in testGetBuild() 75 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild() 77 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild() 79 mProvider.cleanUp(res); in testGetBuild() 97 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild_add_extra_file() local 98 assertNotNull(res); in testGetBuild_add_extra_file() 100 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild_add_extra_file() 102 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild_add_extra_file() 103 assertEquals(((IDeviceBuildInfo) res).getFile("file_1"), file_1); in testGetBuild_add_extra_file() [all …]
|
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/ |
D | AttestationApplicationId.java | 116 int res = Integer.compare(packageInfos.size(), other.packageInfos.size()); in compareTo() local 117 if (res != 0) return res; in compareTo() 119 res = packageInfos.get(i).compareTo(other.packageInfos.get(i)); in compareTo() 120 if (res != 0) return res; in compareTo() 122 res = Integer.compare(signatureDigests.size(), other.signatureDigests.size()); in compareTo() 123 if (res != 0) return res; in compareTo() 126 res = cmp.compare(signatureDigests.get(i), other.signatureDigests.get(i)); in compareTo() 127 if (res != 0) return res; in compareTo() 129 return res; in compareTo() 173 int res = Integer.compare(a.length, b.length); in compare() local [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/retry/ |
D | BaseRetryDecisionTest.java | 134 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry() 135 assertFalse(res); in testShouldRetry() 141 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_failure() 142 assertTrue(res); in testShouldRetry_failure() 153 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_failure_nonRetriable() 154 assertTrue(res); in testShouldRetry_failure_nonRetriable() 162 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_success() 163 assertTrue(res); in testShouldRetry_success() 176 boolean res = mRetryDecision.shouldRetry(mTestClass, 0, Arrays.asList(result)); in testShouldRetry_runFailure() 177 assertTrue(res); in testShouldRetry_runFailure() [all …]
|
/tools/asuite/atest/logstorage/ |
D | logstorage_utils_unittest.py | 31 res = logstorage_utils.is_upload_enabled(self._get_request_upload_args()) 33 self.assertTrue(res) 39 res = logstorage_utils.is_upload_enabled(self._get_disable_upload_args()) 41 self.assertFalse(res) 47 res = logstorage_utils.is_upload_enabled(self._get_request_upload_args()) 49 self.assertFalse(res) 55 res = logstorage_utils.is_upload_enabled(self._get_request_upload_args()) 57 self.assertFalse(res) 65 res = logstorage_utils.is_upload_enabled( 69 self.assertTrue(res) [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 141 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withPythonBinariesOption() 142 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withPythonBinariesOption() 143 return res; in testRun_withPythonBinariesOption() 182 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withParFileNameOption() 183 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withParFileNameOption() 184 return res; in testRun_withParFileNameOption() 228 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withStdLogOption() 229 res.setStdout("==========> FooTest <==========\ntest_foo"); in testRun_withStdLogOption() 230 return res; in testRun_withStdLogOption() 256 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_testResultIsMissing() [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/test/mobly_extensions/tools/results_uploader/src/ |
D | resultstore_client.py | 137 res = request.execute(http=self._http) 138 logging.debug('invocations.create: %s', res) 160 res = request.execute(http=self._http) 161 logging.debug('invocations.configs.create: %s', res) 198 res = request.execute(http=self._http) 199 logging.debug('invocations.targets.create: %s', res) 223 res = request.execute(http=self._http) 224 logging.debug('invocations.targets.configuredTargets.create: %s', res) 264 res = request.execute(http=self._http) 266 'invocations.targets.configuredTargets.actions.create: %s', res [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 136 CommandResult res = new CommandResult(); in testRun() local 137 res.setStatus(CommandStatus.SUCCESS); in testRun() 138 res.setStdout("python binary stdout."); in testRun() 139 res.setStderr(FileUtil.readStringFromFile(mOutputFile)); in testRun() 149 return res; in testRun() 192 CommandResult res = new CommandResult(); in testRun_failWithIncludeFilters() local 193 res.setStatus(CommandStatus.SUCCESS); in testRun_failWithIncludeFilters() 194 res.setStderr(FileUtil.readStringFromFile(mOutputFile)); in testRun_failWithIncludeFilters() 240 CommandResult res = new CommandResult(); in testRun_withIncludeFilters() local 241 res.setStatus(CommandStatus.SUCCESS); in testRun_withIncludeFilters() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | FastbootDeviceFlasherTest.java | 558 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashBootloader() local 559 res.setStderr("flashing"); in testCheckAndFlashBootloader() 564 .thenReturn(res); in testCheckAndFlashBootloader() 605 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashSystem_flashing() local 606 res.setStderr("flashing"); in testCheckAndFlashSystem_flashing() 611 .thenReturn(res); in testCheckAndFlashSystem_flashing() 638 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashSystemWithFlashall() local 639 res.setStderr("flashing"); in testCheckAndFlashSystemWithFlashall() 648 return res; in testCheckAndFlashSystemWithFlashall() 686 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFlashingSystemWithRamdisk() local [all …]
|
D | RunCommandTargetPreparerTest.java | 86 CommandResult res = new CommandResult(); in testSetUp() local 87 res.setStatus(CommandStatus.SUCCESS); in testSetUp() 88 res.setStdout(""); in testSetUp() 89 when(mMockDevice.executeShellV2Command(Mockito.eq(command))).thenReturn(res); in testSetUp() 107 CommandResult res = new CommandResult(); in testSetUp_withTimeout() local 108 res.setStatus(CommandStatus.SUCCESS); in testSetUp_withTimeout() 109 res.setStdout(""); in testSetUp_withTimeout() 115 .thenReturn(res); in testSetUp_withTimeout() 160 CommandResult res = new CommandResult(); in testTeardown_withTimeout() local 161 res.setStatus(CommandStatus.SUCCESS); in testTeardown_withTimeout() [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() 143 boolean res = mHandler.pullFile("/sdcard/" + tmpFile.getName(), tmpPullFile); in testPullFile() 144 assertTrue(res); in testPullFile() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/ |
D | modem_logs.py | 73 res = dut.adb.getprop(_MODEM_PILOT_ENABLE_PROP_NAME).strip() 74 _LOG.debug('PILOT modem logging enable: %s', res) 75 if res == 'true': 101 res = dut.adb.getprop(_MODEM_PILOT_ENABLE_PROP_NAME).strip() 102 _LOG.debug('PILOT modem logging enable: %s', res) 103 if res == 'false' or not res: 161 res = dut.adb.getprop(_MODEM_LOGGING_PROFILE_PROP_NAME) 162 if not res: 164 return res
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveRilDataKpiTest.py | 149 res = self.cycle_cellular_data(ad) 150 cycle_cellular_data_summary.append(res) 151 if not res: 157 res, 163 print_nested_dict(ad, res) 171 res, 176 print_nested_dict(ad, res) 241 res = self.cycle_wfc(ad) 242 cycle_wfc_summary.append(res) 243 if not res: [all …]
|