Home
last modified time | relevance | path

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

123

/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.java122 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline()
123 assertTrue(res); in testWaitForDeviceOffline_alreadyOffline()
142 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline()
143 assertTrue(res); in testWaitForDeviceOffline()
152 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_REACHED_MS); in testWaitForDeviceOffline_timeout()
153 assertFalse(res); in testWaitForDeviceOffline_timeout()
179 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShellAvailable()
180 assertTrue(res); in testWaitForShellAvailable()
220 boolean res = mMonitor.waitForDeviceShell(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForShell_becomeAvailable()
221 assertTrue(res); in testWaitForShell_becomeAvailable()
[all …]
DNativeDeviceTest.java312 boolean res = mTestDevice.pullDir("/sdcard/screenshots/", dir); in testPullDir_nothingToDo()
313 assertTrue(res); in testPullDir_nothingToDo()
380 boolean res = mTestDevice.pullDir("/sdcard/screenshots/", dir); in testPullDir()
381 assertTrue(res); in testPullDir()
460 boolean res = mTestDevice.pullDir("/sdcard/screenshots/", dir); in testPullDir_pullFail()
462 assertFalse(res); in testPullDir_pullFail()
1159 InputStreamSource res = null; in testGetBugreport_deviceUnavail_fallback() local
1161 res = mTestDevice.getBugreport(); in testGetBugreport_deviceUnavail_fallback()
1162 assertNotNull(res); in testGetBugreport_deviceUnavail_fallback()
1165 StreamUtil.cancel(res); in testGetBugreport_deviceUnavail_fallback()
[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/testtype/suite/
DModuleSplitterTest.java65 List<ModuleDefinition> res = ModuleSplitter.splitConfiguration(runConfig, 5, true); in testSplitModule_configNotShardable() local
67 assertEquals(1, res.size()); in testSplitModule_configNotShardable()
71 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotShardable()
73 assertSame(config.getTests().get(0), res.get(0).getTests().get(0)); in testSplitModule_configNotShardable()
96 List<ModuleDefinition> res = ModuleSplitter.splitConfiguration(runConfig, 5, true); in testSplitModule_configNotStrictShardable_dynamic() local
98 assertEquals(10, res.size()); in testSplitModule_configNotStrictShardable_dynamic()
102 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotStrictShardable_dynamic()
104 assertNotSame(config.getTests().get(0), res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_dynamic()
127 List<ModuleDefinition> res = ModuleSplitter.splitConfiguration(runConfig, 5, false); in testSplitModule_configNotStrictShardable_notDynamic() local
129 assertEquals(1, res.size()); in testSplitModule_configNotStrictShardable_notDynamic()
[all …]
DSuiteModuleLoaderTest.java120 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_moduleArgs() local
122 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_moduleArgs()
123 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_moduleArgs()
168 LinkedHashMap<String, IConfiguration> res = in testInjectConfigOptions_testArgs() local
170 assertNotNull(res.get("armeabi-v7a module1")); in testInjectConfigOptions_testArgs()
171 IConfiguration config = res.get("armeabi-v7a module1"); in testInjectConfigOptions_testArgs()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBootstrapBuildProviderTest.java52 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild() local
53 assertNotNull(res); in testGetBuild()
55 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild()
57 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild()
60 mProvider.cleanUp(res); in testGetBuild()
75 IBuildInfo res = mProvider.getBuild(mMockDevice); in testGetBuild_stubDevice() local
76 assertNotNull(res); in testGetBuild_stubDevice()
78 assertTrue(res instanceof IDeviceBuildInfo); in testGetBuild_stubDevice()
80 assertTrue(((IDeviceBuildInfo) res).getTestsDir() != null); in testGetBuild_stubDevice()
81 assertEquals("stub", res.getBuildBranch()); in testGetBuild_stubDevice()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java72 CommandResult res = new CommandResult(); in testRun() local
73 res.setStatus(CommandStatus.SUCCESS); in testRun()
74 res.setStderr("TEST_RUN_STARTED {\"testCount\": 5, \"runName\": \"TestSuite\"}"); in testRun()
80 .andReturn(res); in testRun()
105 CommandResult res = new CommandResult(); in testRunFail_exception() local
106 res.setStatus(CommandStatus.EXCEPTION); in testRunFail_exception()
107 res.setStderr("Could not execute."); in testRunFail_exception()
113 .andReturn(res); in testRunFail_exception()
138 CommandResult res = new CommandResult(); in testRunFail_failureOnly() local
139 res.setStatus(CommandStatus.FAILED); in testRunFail_failureOnly()
[all …]
/tools/tradefederation/core/src/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/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.java127 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment() local
129 assertNull(res); in testPrepareEnvironment()
163 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_dumpConfigFail() local
165 assertNotNull(res); in testPrepareEnvironment_dumpConfigFail()
166 assertTrue(res instanceof ConfigurationException); in testPrepareEnvironment_dumpConfigFail()
167 assertEquals("Ouch I failed.", res.getMessage()); in testPrepareEnvironment_dumpConfigFail()
181 Exception res = mSandbox.prepareEnvironment(mMockContext, mMockConfig, mMockListener); in testPrepareEnvironment_noTfDirJar() local
183 assertNotNull(res); in testPrepareEnvironment_noTfDirJar()
184 assertTrue(res instanceof ConfigurationException); in testPrepareEnvironment_noTfDirJar()
186 "Could not read TF_JAR_DIR to get current Tradefed instance.", res.getMessage()); in testPrepareEnvironment_noTfDirJar()
[all …]
DSandboxConfigUtilTest.java67 File res = null; in testDumpVersion() local
69 res = in testDumpVersion()
76 assertNotNull(res); in testDumpVersion()
78 FileUtil.deleteFile(res); in testDumpVersion()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java93 File res = mPreparer.getTestsDir(mMockBuildInfo); in testGetTestsDir_noVar() local
94 assertNotNull(res); in testGetTestsDir_noVar()
95 assertEquals(tmpDir.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_noVar()
117 File res = in testGetLocalPathForFilename_withVariable() local
120 assertNotNull(res); in testGetLocalPathForFilename_withVariable()
121 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable()
148 File res = in testGetTestsDir_notDir() local
151 assertNotNull(res); in testGetTestsDir_notDir()
152 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java123 EventSl4aObject res = mEventQueue.get(name).poll(); in popEvent() local
124 if (res != null) { in popEvent()
125 return res; in popEvent()
149 EventSl4aObject res = mEventQueue.get(name).poll(); in waitForEvent() local
150 if (res != null && predicate.test(res)) { in waitForEvent()
151 return res; in waitForEvent()
DSl4aClient.java108 String res = device.installPackage(sl4aApkFile, true); in installSl4a() local
109 if (res != null) { in installSl4a()
111 res)); in installSl4a()
189 String res = mDevice.executeAdbCommand("forward", "--list"); in open() local
190 CLog.d("forwardings: %s", res); in open()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DAndroidJUnitTestTest.java383 List<IRemoteTest> res = (List<IRemoteTest>) mAndroidJUnitTest.split(3); in testSplit_threeShards() local
384 assertNotNull(res); in testSplit_threeShards()
385 assertEquals(3, res.size()); in testSplit_threeShards()
387 assertEquals(20000L, ((AndroidJUnitTest)res.get(0)).getRuntimeHint()); in testSplit_threeShards()
388 assertEquals(20000L, ((AndroidJUnitTest)res.get(1)).getRuntimeHint()); in testSplit_threeShards()
389 assertEquals(20000L, ((AndroidJUnitTest)res.get(2)).getRuntimeHint()); in testSplit_threeShards()
391 assertNull(((AndroidJUnitTest) res.get(0)).split(2)); in testSplit_threeShards()
392 assertNull(((AndroidJUnitTest) res.get(0)).split()); in testSplit_threeShards()
404 List<IRemoteTest> res = (List<IRemoteTest>) mAndroidJUnitTest.split(3); in testSplit_maxShard() local
405 assertNotNull(res); in testSplit_maxShard()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DPackageManagerOTATestUtils.java191 String res = mDevice.executeShellCommand(cmd); in packageHasPermission() local
192 if (res != null) { in packageHasPermission()
193 if (res.contains("grantedPermissions:")) { in packageHasPermission()
194 return res.contains(permission); in packageHasPermission()
198 Matcher m = perm.matcher(res); in packageHasPermission()
218 String res = mDevice.executeShellCommand(cmd); in packageHasFlag() local
219 if (res != null) { in packageHasFlag()
221 Matcher m = flags.matcher(res); in packageHasFlag()
DDataIdleTestHelper.java47 String res = mDevice.executeShellCommand("ping -c 10 -w 100 " + host); in pingTest() local
48 CLog.d("res: %s", res); in pingTest()
49 if (!res.contains(PING_FAIL_STRING)) { in pingTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunCommandTargetPreparerTest.java71 CommandResult res = new CommandResult(); in testSetUp() local
72 res.setStatus(CommandStatus.SUCCESS); in testSetUp()
73 res.setStdout(""); in testSetUp()
74 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(res); in testSetUp()
91 CommandResult res = new CommandResult(); in testSetUp_withTimeout() local
92 res.setStatus(CommandStatus.SUCCESS); in testSetUp_withTimeout()
93 res.setStdout(""); in testSetUp_withTimeout()
100 .andReturn(res); in testSetUp_withTimeout()
DAppSetupTest.java298 Set<String> res = new HashSet<>(); in testSetup_uninstallAll_noPackage() local
299 EasyMock.expect(mMockDevice.getUninstallablePackageNames()).andReturn(res); in testSetup_uninstallAll_noPackage()
314 Set<String> res = new HashSet<>(); in testSetup_uninstallAll() local
315 res.add("com.fake1"); in testSetup_uninstallAll()
316 EasyMock.expect(mMockDevice.getUninstallablePackageNames()).andReturn(res).times(2); in testSetup_uninstallAll()
332 Set<String> res = new HashSet<>(); in testSetup_uninstallAll_fails() local
333 res.add("com.fake1"); in testSetup_uninstallAll_fails()
334 EasyMock.expect(mMockDevice.getUninstallablePackageNames()).andReturn(res).times(4); in testSetup_uninstallAll_fails()
/tools/test/connectivity/acts/tests/google/net/
DCoreNetworkingTest.py62 res = self.dut.droid.launchForResult(dum_class)
70 % res['extras']['result'])
71 return res['extras']['result']
/tools/tradefederation/core/python-lib/helloWorld/
Dtest_hello_world.py48 res = self.android_device.executeShellCommand('id')
49 self.assertTrue('uid' in res)
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java45 Exception res = sandbox.prepareEnvironment(context, config, listener); in prepareAndRun() local
46 if (res != null) { in prepareAndRun()
49 throw res; in prepareAndRun()
/tools/tradefederation/contrib/
DAndroid.mk17 $(COMPATIBILITY.tradefed_tests_dir) $(LOCAL_PATH)/res/config
24 LOCAL_JAVA_RESOURCE_DIRS := res
/tools/tradefederation/core/
DAndroid.mk17 …BILITY.tradefed_tests_dir) $(LOCAL_PATH)/res/config $(LOCAL_PATH)/tests/res/config $(LOCAL_PATH)/p…
44 LOCAL_JAVA_RESOURCE_DIRS := res
88 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := external/doclava/res/assets/templates-sdk

123