/tools/tradefederation/core/src/com/android/tradefed/device/connection/ |
D | AdbSshConnection.java | 103 getDevice().getOptions(), in initializeConnection() 110 long remainingTime = getDevice().getOptions().getGceCmdTimeout(); in initializeConnection() 114 createGceTunnelMonitor(getDevice(), getBuildInfo(), mGceAvd, getDevice().getOptions()); in initializeConnection() 148 getDevice().getOptions().getGceCmdTimeout()), in initializeConnection() 197 if (getDevice().getOptions().isLogcatCaptureEnabled()) { in initializeConnection() 304 mGceAvd, getDevice().getOptions(), getRunUtil()); in tearDownConnection() 309 getLogger(), mGceAvd, getDevice().getOptions(), getRunUtil()); in tearDownConnection() 313 getLogger(), mGceAvd, getDevice().getOptions(), getRunUtil()); in tearDownConnection() 321 if (getDevice().getOptions().useOxygen()) { in tearDownConnection() 325 getDevice().getOptions(), in tearDownConnection() [all …]
|
D | DefaultConnection.java | 63 final InstanceType type = device.getOptions().getInstanceType(); in createConnection()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/ |
D | TestInfoTest.java | 41 assertEquals("option1", info.getOptions().get(0).getName()); in testAddOption() 42 assertEquals("value1", info.getOptions().get(0).getValue()); in testAddOption() 43 assertEquals("option2", info.getOptions().get(1).getName()); in testAddOption() 44 assertEquals("value2", info.getOptions().get(1).getValue()); in testAddOption()
|
D | TestMappingTest.java | 139 testOptions.addAll(test.getOptions()); in testparseTestMapping() 162 testOptions.addAll(test.getOptions()); in testparseTestMapping() 450 assertTrue(test1.getOptions().isEmpty()); in testMergeSuccess() 457 assertTrue(test1.getOptions().isEmpty()); in testMergeSuccess() 464 assertTrue(test1.getOptions().isEmpty()); in testMergeSuccess() 482 assertEquals(2, test1.getOptions().size()); in testMergeSuccess_2Filters() 483 assertTrue(new HashSet<TestOption>(test1.getOptions()).contains(option1)); in testMergeSuccess_2Filters() 484 assertTrue(new HashSet<TestOption>(test1.getOptions()).contains(option2)); in testMergeSuccess_2Filters() 518 assertEquals(5, test1.getOptions().size()); in testMergeSuccess_multiFilters() 519 Set<TestOption> mergedOptions = new HashSet<TestOption>(test1.getOptions()); in testMergeSuccess_multiFilters() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | HostOrchestratorUtilTest.java | 78 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testCreateHostOrchestratorTunnel_NoCVDNoOxygenation() 88 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testCreateHostOrchestratorTunnel_Oxygenation() 101 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testCreateHostOrchestratorTunnel_Oxygen_UseCVD() 113 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPullCvdHostLogs_Oxygenation_Success() 146 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPullCvdHostLogs_Oxygenation_CurlFailed() 193 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPullCvdHostLogs_Oxygenation_CreateHOFailed() 230 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPullCvdHostLogs_Oxygenation_404() 264 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPowerwashGce() 337 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPowerwashGce_CreateHOFailed() 382 Mockito.doReturn(mTestDeviceOptions).when(mMockDevice).getOptions(); in testPowerwashGce_ListCvdFailed() [all …]
|
D | ManagedRemoteDeviceTest.java | 75 TestDeviceOptions get = mDevice.getOptions(); in testGetOptions() 77 TestDeviceOptions get2 = mDevice.getOptions(); in testGetOptions() 82 TestDeviceOptions get3 = mDevice.getOptions(); in testGetOptions()
|
D | NestedRemoteDeviceTest.java | 65 public TestDeviceOptions getOptions() { in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestInfo.java | 66 public List<TestOption> getOptions() { in getOptions() method in TestInfo 156 Set<TestOption> commonOptions = new HashSet<TestOption>(test.getOptions()); in merge() 220 test.getOptions() in merge() 229 test.getOptions() in merge() 234 test.getOptions() in merge() 243 test.getOptions() in merge()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | HostOrchestratorUtil.java | 52 this(device, gceAvd, new OxygenClient(device.getOptions().getAvdDriverBinary())); in HostOrchestratorUtil() 183 if (mDevice.getOptions().useOxygenationDevice()) { in createHostOrchestratorTunnel() 190 } else if (mDevice.getOptions().getExtraOxygenArgs().containsKey("use_cvd")) { in createHostOrchestratorTunnel() 197 mDevice.getOptions().getSshPrivateKeyPath(), in createHostOrchestratorTunnel() 199 mDevice.getOptions().getInstanceUser(), in createHostOrchestratorTunnel()
|
D | ManagedRemoteDevice.java | 83 public TestDeviceOptions getOptions() { in getOptions() method in ManagedRemoteDevice 87 TestDeviceOptions options = super.getOptions(); in getOptions()
|
D | NestedRemoteDevice.java | 84 long timeout = Math.max(300000L, this.getOptions().getGceCmdTimeout()); in resetVirtualDevice()
|
D | RemoteAndroidVirtualDevice.java | 61 InstanceType type = getOptions().getInstanceType(); in getTombstones()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 871 when(mMockWifi.checkConnectivity(mTestDevice.getOptions().getConnCheckUrl())) in testConnectToWifiNetworkIfNeeded_alreadyConnected() 884 mTestDevice.getOptions().getConnCheckUrl(), in testConnectToWifiNetwork_success() 901 mTestDevice.getOptions().getConnCheckUrl(), in testConnectToWifiNetworkGivenMap_success() 923 mTestDevice.getOptions().getConnCheckUrl(), in testConnectToWifiNetwork_failure() 932 verify(mMockRunUtil, times(mTestDevice.getOptions().getWifiAttempts() - 1)) in testConnectToWifiNetwork_failure() 934 verify(mMockWifi, times(mTestDevice.getOptions().getWifiAttempts())) in testConnectToWifiNetwork_failure() 938 mTestDevice.getOptions().getConnCheckUrl(), in testConnectToWifiNetwork_failure() 941 verify(mMockWifi, times(mTestDevice.getOptions().getWifiAttempts())).getWifiInfo(); in testConnectToWifiNetwork_failure() 953 mTestDevice.getOptions().getConnCheckUrl(), in testConnectToWifiNetworkGivenMap_failure() 964 verify(mMockRunUtil, times(mTestDevice.getOptions().getWifiAttempts() - 1)) in testConnectToWifiNetworkGivenMap_failure() [all …]
|
D | LocalAndroidVirtualDeviceTest.java | 212 TestDeviceOptions options = mLocalAvd.getOptions(); in setUp() 339 mLocalAvd.getOptions().getGceDriverFileParams().put("test-file", new File("/test/file")); in mockAcloudCreateWithExtraDirs()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | RemoteAndroidDevice.java | 120 if (getOptions().isCmdWifiVirtual()) { in connectToWifiNetwork() 121 getOptions().setUseCmdWifi(true); in connectToWifiNetwork()
|
D | LocalAndroidVirtualDevice.java | 109 result = acloudCreate(report, getOptions()); in preInvocationSetup() 148 TestDeviceOptions options = getOptions(); in postInvocationTearDown() 263 MultiMap<String, File> fileMap = getOptions().getGceDriverFileParams(); in prepareToolsAndImages() 515 TestDeviceOptions options = getOptions(); in shutdown()
|
D | NativeDevice.java | 1155 && getOptions().useExitStatusWorkaround(); in executeShellV2Command() 2933 getOptions().getMaxLogcatDataSize()); in getLogcatSince() 2966 getOptions().getMaxLogcatDataSize()); in getLogcatDump() 3193 if (!getOptions().useCmdWifiCommands() in connectToWifiNetwork() 3460 if (getOptions().shouldDisableReboot()) { in postBootSetup() 4045 "root", getOptions().getAdbRootUnavailableTimeout()); in enableAdbRoot() 4680 public TestDeviceOptions getOptions() { in getOptions() method in NativeDevice 6039 if (!getOptions().shouldUseContentProvider()) { in getContentProvider() 6262 OptionSetter setter = new OptionSetter(this.getOptions()); in setTestDeviceOptions()
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/ |
D | InvocationExecutionTest.java | 390 when(device.getOptions()).thenReturn(options); in testDoSetup() 442 when(device.getOptions()).thenReturn(options); in testDoTearDown() 485 when(mockDevice1.getOptions()).thenReturn(options); in testDoTearDown_multiDevice() 487 when(mockDevice2.getOptions()).thenReturn(options); in testDoTearDown_multiDevice() 546 when(device.getOptions()).thenReturn(options); in testDoTearDown_logger() 599 when(device.getOptions()).thenReturn(options); in testDoTearDown_exception()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/ |
D | AdbSshConnectionTest.java | 109 when(mMockDevice.getOptions()).thenReturn(mOptions); in setUp() 685 when(mMockDevice.getOptions()).thenReturn(mOptions); in testVerifyKernel_rightKernel() 719 when(mMockDevice.getOptions()).thenReturn(mOptions); in testVerifyKernel_wrongKernel()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceUpdateTargetPreparer.java | 96 if (device.getOptions().isEnableAdbRoot()) { in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunner.java | 403 for (TestOption option : testInfo.getOptions()) { in parseOptions() 491 List<TestOption> copyOptions = new ArrayList<>(a.getOptions()); in createComparableNames()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | LogcatOnFailureCollector.java | 119 device, LOGCAT_COLLECT_CMD, device.getOptions().getMaxLogcatDataSize(), 0); in createLogcatReceiver()
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/sandbox/ |
D | ParentSandboxInvocationExecutionTest.java | 110 when(mMockDevice.getOptions()).thenReturn(options); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 518 for (TestOption options : test.getOptions()) { in validateFilterOption() 559 for (TestOption options : test.getOptions()) { in getDetailedErrors()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | LogcatTimingMetricCollector.java | 216 return new LogcatReceiver(device, logcatCmd, device.getOptions().getMaxLogcatDataSize(), 0); in createLogcatReceiver()
|