Home
last modified time | relevance | path

Searched refs:AndroidMockitoHelper (Results 1 – 25 of 33) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java20 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
21 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackground;
22 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackgroundVisibleOnDispl…
23 import static android.car.test.mocks.AndroidMockitoHelper.mockBinderGetCallingUserHandle;
24 import static android.car.test.mocks.AndroidMockitoHelper.mockCarGetCarVersion;
25 import static android.car.test.mocks.AndroidMockitoHelper.mockCarGetPlatformVersion;
26 import static android.car.test.mocks.AndroidMockitoHelper.mockCarIsApiVersionAtLeast;
27 import static android.car.test.mocks.AndroidMockitoHelper.mockContextCheckCallingOrSelfPermission;
28 import static android.car.test.mocks.AndroidMockitoHelper.mockContextCreateContextAsUser;
29 import static android.car.test.mocks.AndroidMockitoHelper.mockContextGetService;
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/users/
DCarSystemUIUserUtilTest.java25 import android.car.test.mocks.AndroidMockitoHelper;
70 AndroidMockitoHelper.mockUmIsHeadlessSystemUserMode(true); in setUp()
71 AndroidMockitoHelper.mockAmGetCurrentUser(mActivityManagerTestUser); in setUp()
101 AndroidMockitoHelper.mockUmIsHeadlessSystemUserMode(false); in getCurrentUserHandle_userTrackerNull_nonHeadlessSystemUser_returnsContextUser()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationAccessConfirmationActivityTest.java32 import android.car.test.mocks.AndroidMockitoHelper;
114 AndroidMockitoHelper.syncRunOnUiThread(mActivity, () -> { in onAllow_permissionMissing_finishes()
132 AndroidMockitoHelper.syncRunOnUiThread(mActivity, () -> { in onAllow_permissionAvailable_callsNotificationManager()
146 AndroidMockitoHelper.syncRunOnUiThread(mActivity, () -> { in onDeny_finishes()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/admin/
DNewUserDisclaimerActivityTest.java30 import android.car.test.mocks.AndroidMockitoHelper;
91 AndroidMockitoHelper.syncRunOnUiThread(mActivity, () -> { in testAccept()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackground;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackgroundVisibleOnDispl…
21 import static android.car.test.mocks.AndroidMockitoHelper.mockAmSwitchUser;
22 import static android.car.test.mocks.AndroidMockitoHelper.mockCarGetPlatformVersion;
23 import static android.car.test.mocks.AndroidMockitoHelper.mockContextCreateContextAsUser;
24 import static android.car.test.mocks.AndroidMockitoHelper.mockDpmLogoutUser;
25 import static android.car.test.mocks.AndroidMockitoHelper.mockForceStopUser;
26 import static android.car.test.mocks.AndroidMockitoHelper.mockForceStopUserThrows;
27 import static android.car.test.mocks.AndroidMockitoHelper.mockStopUserWithDelayedLocking;
28 import static android.car.test.mocks.AndroidMockitoHelper.mockStopUserWithDelayedLockingThrows;
[all …]
DExperimentalCarUserServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmSwitchUser;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockUmCreateUser;
DUserHandleHelperUnitTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockContextCreateContextAsUser;
DCarUserNoticeServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockContextGetService;
DBaseCarUserServiceTestCase.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetUserHandles;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockUmRemoveUserWhenPossible;
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DDeviceAdminAddActivityTest.java18 import static android.car.test.mocks.AndroidMockitoHelper.syncCallOnMainThread;
DEnterprisePrivacySettingsActivityTest.java18 import static android.car.test.mocks.AndroidMockitoHelper.syncCallOnMainThread;
DEnterpriseSetDefaultAppsListFragmentTest.java18 import static android.car.test.mocks.AndroidMockitoHelper.syncCallOnMainThread;
DEnterprisePrivacySettingsFragmentTest.java18 import static android.car.test.mocks.AndroidMockitoHelper.syncCallOnMainThread;
DDeviceAdminAddFragmentTest.java30 import static android.car.test.mocks.AndroidMockitoHelper.syncCallOnMainThread;
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockQueryService;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetUserHandles;
21 import static android.car.test.mocks.AndroidMockitoHelper.mockUmIsUserRunning;
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java443 AndroidMockitoHelper.mockAmGetCurrentUser(userId); in mockGetCurrentUser()
461 AndroidMockitoHelper.mockUmIsHeadlessSystemUserMode(mode); in mockIsHeadlessSystemUserMode()
477 AndroidMockitoHelper.mockBinderGetCallingUserHandle(userId); in mockGetCallingUserHandle()
DAndroidMockitoHelper.java75 public final class AndroidMockitoHelper { class
77 private static final String TAG = AndroidMockitoHelper.class.getSimpleName();
603 private AndroidMockitoHelper() { in AndroidMockitoHelper() method in AndroidMockitoHelper
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerControllerTest.java35 import android.car.test.mocks.AndroidMockitoHelper;
147 AndroidMockitoHelper.mockAmGetCurrentUser(USER_ID_DRIVER); in displaySetup()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarServiceUtilsTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockContextCreateContextAsUser;
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockQueryService;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java54 import android.car.test.mocks.AndroidMockitoHelper;
177 AndroidMockitoHelper.mockAmGetCurrentUser(TEST_USER_ID); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java20 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetAllUsers;
21 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetUserHandles;
22 import static android.car.test.mocks.AndroidMockitoHelper.mockUmIsUserRunning;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetAliveUsers;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairAdvertiserTest.java20 import static android.car.test.mocks.AndroidMockitoHelper.mockCarGetPlatformVersion;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalHelperTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
20 import static android.car.test.mocks.AndroidMockitoHelper.mockUmGetUserHandles;

12