Home
last modified time | relevance | path

Searched refs:mTestInformation (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/internal/
DDeviceResetFeature.java54 private TestInformation mTestInformation; field in DeviceResetFeature
68 mTestInformation = testInformation; in setTestInformation()
73 return mTestInformation; in getTestInformation()
93 mTestInformation.setActiveDeviceIndex(index); in execute()
97 mTestInformation.getDevice().getSerialNumber(), in execute()
98 mTestInformation.getDevice().getClass().getSimpleName()); in execute()
100 AbstractConnection connection = mTestInformation.getDevice().getConnection(); in execute()
101 if ((mTestInformation.getDevice() instanceof RemoteAndroidVirtualDevice) in execute()
103 GceAvdInfo info = getAvdInfo(mTestInformation.getDevice(), connection); in execute()
117 mTestInformation.getDevice().getSerialNumber(), in execute()
[all …]
DDeviceSnapshotFeature.java52 private TestInformation mTestInformation; field in DeviceSnapshotFeature
66 mTestInformation = testInformation; in setTestInformation()
71 return mTestInformation; in getTestInformation()
94 mTestInformation.setActiveDeviceIndex(index); in execute()
95 AbstractConnection connection = mTestInformation.getDevice().getConnection(); in execute()
97 if ((mTestInformation.getDevice() instanceof RemoteAndroidVirtualDevice) in execute()
99 GceAvdInfo info = getAvdInfo(mTestInformation.getDevice(), connection); in execute()
118 mTestInformation.getDevice().getClass().getSimpleName(), in execute()
134 mTestInformation.setActiveDeviceIndex(0); in execute()
149 mTestInformation.getDevice().getSerialNumber(), in snapshot()
[all …]
DEarlyDeviceReleaseFeature.java39 private TestInformation mTestInformation; field in EarlyDeviceReleaseFeature
49 mTestInformation = testInformation; in setTestInformation()
54 return mTestInformation; in getTestInformation()
73 ITestDevice device = mTestInformation.getContext().getDevice(entry.getKey()); in execute()
75 device = mTestInformation.getContext().getDevices().get(index); in execute()
80 mTestInformation.getContext().markReleasedEarly(); in execute()
82 listener.releaseDevices(mTestInformation.getContext(), deviceStates); in execute()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DSwitchUserTargetPreparerTest.java52 private TestInformation mTestInformation; field in SwitchUserTargetPreparerTest
61 mTestInformation = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
78 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch()
96 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch()
120 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_switchToMain()
144 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsSystem_ifSystemSwitchIsNotAllowed_noSwitchIfAlreadyOnMainUser()
163 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary()
182 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsGuest_ifNotInGuest_switchToGuest()
201 mSwitchUserTargetPreparer.setUp(mTestInformation); in testSetUpRunAsSystem_ifNotInSystem_switchToSystem()
221 mSwitchUserTargetPreparer.setUp(mTestInformation); in testTearDown_ifStartedInSecondary_switchesBackToSecondary()
[all …]
DRestartSystemServerTargetPreparerTest.java44 private TestInformation mTestInformation; field in RestartSystemServerTargetPreparerTest
55 mTestInformation = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
66 mRestartSystemServerTargetPreparer.setUp(mTestInformation); in testSetUp_bootComplete()
83 mRestartSystemServerTargetPreparer.setUp(mTestInformation); in testSetUp_bootNotComplete()
100 mRestartSystemServerTargetPreparer.tearDown(mTestInformation, null); in testTearDown_restart()
113 mRestartSystemServerTargetPreparer.setUp(mTestInformation); in testNone()
DKnownFailurePreparerTest.java35 private TestInformation mTestInformation; field in KnownFailurePreparerTest
42 mTestInformation = Mockito.mock(TestInformation.class); in setUp()
54 mKnownFailurePreparer.setUp(mTestInformation); in testSetup()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DDeviceParameterizedRunner.java53 private TestInformation mTestInformation; field in DeviceParameterizedRunner
67 ((IDeviceTest) testObj).setDevice(mTestInformation.getDevice()); in methodInvoker()
70 ((IBuildReceiver) testObj).setBuild(mTestInformation.getBuildInfo()); in methodInvoker()
78 .setInvocationContext(mTestInformation.getContext()); in methodInvoker()
81 ((ITestInformationReceiver) testObj).setTestInformation(mTestInformation); in methodInvoker()
100 mTestInformation = testInformation; in setTestInformation()
105 return mTestInformation; in getTestInformation()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DDeviceJUnit4ClassRunner.java66 private TestInformation mTestInformation; field in DeviceJUnit4ClassRunner
85 ((IDeviceTest) testObj).setDevice(mTestInformation.getDevice()); in createTest()
88 ((IBuildReceiver) testObj).setBuild(mTestInformation.getBuildInfo()); in createTest()
96 .setInvocationContext(mTestInformation.getContext()); in createTest()
99 ((ITestInformationReceiver) testObj).setTestInformation(mTestInformation); in createTest()
130 : new RunBeforesWithInfo(statement, beforesWithDevice, mTestInformation); in withBeforeClasses()
141 : new RunAftersWithInfo(statement, aftersWithDevice, mTestInformation); in withAfterClasses()
166 mTestInformation = testInformation; in setTestInformation()
171 return mTestInformation; in getTestInformation()
177 if (mTestInformation != null) { in createResolver()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/skipped/
DSkipManagerTest.java38 private TestInformation mTestInformation; field in SkipManagerTest
48 mTestInformation = TestInformation.newBuilder().setInvocationContext(mContext).build(); in setup()
53 Truth.assertThat(mManager.shouldSkipInvocation(mTestInformation)).isFalse(); in testSkipInvocation()
55 Truth.assertThat(mManager.shouldSkipInvocation(mTestInformation)).isTrue(); in testSkipInvocation()
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/
DDeviceResetFeatureTest.java53 private TestInformation mTestInformation; field in DeviceResetFeatureTest
67 mTestInformation = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
68 mFeature.setTestInformation(mTestInformation); in setUp()
89 verify(mMockPreparer).setUp(mTestInformation); in testFeature_resetup()
99 doThrow(error).when(mMockPreparer).setUp(mTestInformation); in testFeature_resetup_error()
DDeviceSnapshotFeatureTest.java45 private TestInformation mTestInformation; field in DeviceSnapshotFeatureTest
57 mTestInformation = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
58 mFeature.setTestInformation(mTestInformation); in setUp()
DEarlyDeviceReleaseFeatureTest.java60 private @Mock TestInformation mTestInformation; field in EarlyDeviceReleaseFeatureTest
74 when(mTestInformation.getContext()).thenReturn(mInvocationContext); in setUp()
79 mEarlyDeviceReleaseFeature.setTestInformation(mTestInformation); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DResolvePartialDownload.java47 private TestInformation mTestInformation; field in ResolvePartialDownload
59 mTestInformation = testInformation; in setTestInformation()
64 return mTestInformation; in getTestInformation()
77 dynamicResolver.setDevice(mTestInformation.getDevice()); in execute()
102 for (File remotePath : mTestInformation.getBuildInfo().getRemoteFiles()) { in execute()
/tools/tradefederation/core/javatests/com/android/tradefed/build/content/
DTestContentAnalyzerTest.java46 private TestInformation mTestInformation; field in TestContentAnalyzerTest
55 mTestInformation = in setUp()
77 mTestInformation, in testAnalyzeTestsDir_withChange()
107 mTestInformation, in testAnalyzeTestsDir_noChange()
143 mTestInformation, in testAnalyzeXtsSuite_withChange()
179 mTestInformation, in testAnalyzeXtsSuite_withDiscovery()
214 mTestInformation, in testAnalyzeXtsSuite_noChange()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DResolvePartialDownloadTest.java46 @Mock TestInformation mTestInformation; field in ResolvePartialDownloadTest
52 mResolveFeature.setTestInformation(mTestInformation); in setUp()
57 doReturn(new BuildInfo()).when(mTestInformation).getBuildInfo(); in testRemotePaths()
75 doReturn(new BuildInfo()).when(mTestInformation).getBuildInfo(); in testRemotePaths_multi()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMicrodroidFuncTest.java53 private TestInformation mTestInformation; field in MicrodroidFuncTest
67 mTestInformation = testInformation; in setTestInformation()
72 return mTestInformation; in getTestInformation()
88 findTestFile(mTestInformation, APK_NAME), CONFIG_PATH) in testStartAndShutdownMicrodroid()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java146 private TestInformation mTestInformation; field in BaseRetryDecision
237 mTestInformation = testInformation; in setTestInformation()
242 return mTestInformation; in getTestInformation()
703 mTestInformation.properties().getAll()); in resetIsolation()
704 mTestInformation.properties().clear(); in resetIsolation()