Home
last modified time | relevance | path

Searched refs:mMockitoSession (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/
DAbstractExtendedMockitoRule.java82 private MockitoSession mMockitoSession; field in AbstractExtendedMockitoRule
88 mMockitoSession = builder.mMockitoSession; in AbstractExtendedMockitoRule()
101 + ", mockitoSession=" + mMockitoSession in AbstractExtendedMockitoRule()
193 if (mMockitoSession != null) {
194 Log.d(TAG, "NOT creating session as set on builder: " + mMockitoSession);
197 mMockitoSession = mSessionBuilder.startMocking();
233 Log.d(TAG, "Finishing mockito session " + mMockitoSession + " on " + description
237 mMockitoSession.finishMocking(e);
238 mMockitoSession = null;
282 @Nullable MockitoSession mMockitoSession;
[all …]
/frameworks/base/tests/LocalizationTest/java/com/android/internal/app/
DLocalizationTest.kt40 private lateinit var mMockitoSession: MockitoSession variable in com.android.android.internal.app.LocalizationTest
44 mMockitoSession = mockitoSession() in setUp()
52 mMockitoSession.finishMocking() in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerStartableTest.java61 private MockitoSession mMockitoSession; field in BatteryControllerStartableTest
69 mMockitoSession = mockitoSession() in setUp()
93 mMockitoSession.finishMocking(); in tearDown()
DBatteryControllerTest.java80 private MockitoSession mMockitoSession; field in BatteryControllerTest
85 mMockitoSession = mockitoSession() in setUp()
105 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/
DFreeformTaskListenerTests.java70 private StaticMockitoSession mMockitoSession; field in FreeformTaskListenerTests
74 mMockitoSession = mockitoSession().initMocks(this) in setup()
112 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DDreamManagerServiceMockingTest.java73 private MockitoSession mMockitoSession; field in DreamManagerServiceMockingTest
89 mMockitoSession = mockitoSession() in setUp()
98 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/core/tests/mockingcoretests/src/android/window/
DConfigurationHelperTest.java56 MockitoSession mMockitoSession; field in ConfigurationHelperTest
61 mMockitoSession = mockitoSession() in setUp()
71 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayLayoutTest.java60 private MockitoSession mMockitoSession; field in DisplayLayoutTest
64 mMockitoSession = mockitoSession() in setup()
73 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUserUsageStatsServiceTest.java61 private MockitoSession mMockitoSession; field in UserUsageStatsServiceTest
72 mMockitoSession = mockitoSession() in setUp()
94 if (mMockitoSession != null) { in tearDown()
95 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DAppChildProcessTest.java71 private StaticMockitoSession mMockitoSession; field in AppChildProcessTest
90 mMockitoSession = mockitoSession() in setUp()
121 if (mMockitoSession != null) { in tearDown()
122 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarControllerImplTest.java84 private StaticMockitoSession mMockitoSession; field in NavigationBarControllerImplTest
119 mMockitoSession = mockitoSession().mockStatic(Utilities.class).startMocking(); in setUp()
140 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
DBlobStoreManagerServiceTest.java64 private MockitoSession mMockitoSession; field in BlobStoreManagerServiceTest
84 mMockitoSession = mockitoSession() in setUp()
106 if (mMockitoSession != null) { in tearDown()
107 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DCameraPrivacyLightControllerTest.java76 private MockitoSession mMockitoSession; field in CameraPrivacyLightControllerTest
162 mMockitoSession = ExtendedMockito.mockitoSession() in setUp()
171 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/selinux/src/com/android/server/selinux/
DSelinuxAuditLogsCollectorTest.java66 private MockitoSession mMockitoSession; field in SelinuxAuditLogsCollectorTest
83 mMockitoSession = mockitoSession().mockStatic(FrameworkStatsLog.class).startMocking(); in setUp()
89 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/android/service/games/
DGameSessionTest.java69 private MockitoSession mMockitoSession; field in GameSessionTest
73 mMockitoSession = mockitoSession() in setUp()
86 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTest.java115 private MockitoSession mMockitoSession; field in TileLifecycleManagerTest
126 mMockitoSession = mockitoSession() in setUp()
159 if (mMockitoSession != null) { in tearDown()
160 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java84 private StaticMockitoSession mMockitoSession; field in DisplayTest
92 mMockitoSession = mockitoSession() in setupTests()
113 if (mMockitoSession != null) { in teardownTests()
114 mMockitoSession.finishMocking(); in teardownTests()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java129 private MockitoSession mMockitoSession; field in DragAndDropPolicyTest
134 mMockitoSession = mockitoSession() in setUp()
176 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUpgradeTest.java104 private MockitoSession mMockitoSession; field in AppOpsUpgradeTest
146 mMockitoSession = mockitoSession() in setUp()
192 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorationTests.java144 private StaticMockitoSession mMockitoSession; field in DesktopModeWindowDecorationTests
158 mMockitoSession = mockitoSession() in setUp()
180 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDeviceProvisionedCoordinatorTest.java62 private MockitoSession mMockitoSession; field in DeviceProvisionedCoordinatorTest
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java93 private MockitoSession mMockitoSession; field in StagingManagerTest
100 mMockitoSession = ExtendedMockito.mockitoSession() in setUp()
119 if (mMockitoSession != null) { in tearDown()
120 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateTest.java107 private MockitoSession mMockitoSession; field in InternetDialogDelegateTest
125 mMockitoSession = ExtendedMockito.mockitoSession() in setUp()
171 mMockitoSession.finishMocking(); in tearDown()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java137 private StaticMockitoSession mMockitoSession; field in SystemServicesTestRule
197 mMockitoSession = mockitoSession()
481 mMockitoSession.finishMocking();
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DTestPhoneWindowManager.java180 private StaticMockitoSession mMockitoSession; field in TestPhoneWindowManager
271 mMockitoSession = mockitoSession() in setUp()
404 mMockitoSession.finishMocking(); in tearDown()

12