Home
last modified time | relevance | path

Searched refs:CarUserManagerHelper (Results 1 – 25 of 150) sorted by relevance

123456

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java19 import android.car.userlib.CarUserManagerHelper;
68 CarUserManagerHelper carUserManagerHelper = new CarUserManagerHelper(context); in isSystemApp()
88 CarUserManagerHelper carUserManagerHelper = new CarUserManagerHelper(context); in isSignedWithPlatformKey()
105 CarUserManagerHelper carUserManagerHelper = new CarUserManagerHelper(context); in isSystemPrivilegedOrPlatformKeyInner()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java78 private CarUserManagerHelper.OnUsersUpdateListener mTestListener;
86 private CarUserManagerHelper mCarUserManagerHelper;
102 mCarUserManagerHelper = new CarUserManagerHelper(mContext, mTestableFrameworkWrapper); in setUpMocksAndVariables()
749 CarUserManagerHelper.OnUsersUpdateListener listener = in testMultipleRegistrationsOfSameListener()
750 Mockito.mock(CarUserManagerHelper.OnUsersUpdateListener.class); in testMultipleRegistrationsOfSameListener()
772 CarUserManagerHelper.OnUsersUpdateListener listener = in testMultipleUnregistrationsOfTheSameListener()
773 Mockito.mock(CarUserManagerHelper.OnUsersUpdateListener.class); in testMultipleUnregistrationsOfTheSameListener()
785 CarUserManagerHelper.OnUsersUpdateListener listener1 = in testUnregisterReceiverCalledAfterAllListenersUnregister()
786 Mockito.mock(CarUserManagerHelper.OnUsersUpdateListener.class); in testUnregisterReceiverCalledAfterAllListenersUnregister()
787 CarUserManagerHelper.OnUsersUpdateListener listener2 = in testUnregisterReceiverCalledAfterAllListenersUnregister()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserDetailsBasePreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
38 private final CarUserManagerHelper.OnUsersUpdateListener mOnUsersUpdateListener = () -> {
42 private final CarUserManagerHelper mCarUserManagerHelper;
48 mCarUserManagerHelper = new CarUserManagerHelper(getContext()); in UserDetailsBasePreferenceController()
86 protected CarUserManagerHelper getCarUserManagerHelper() { in getCarUserManagerHelper()
DUsersBasePreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
39 private final CarUserManagerHelper.OnUsersUpdateListener mOnUsersUpdateListener =
43 private CarUserManagerHelper mCarUserManagerHelper;
49 mCarUserManagerHelper = new CarUserManagerHelper(context); in UsersBasePreferenceController()
91 protected CarUserManagerHelper getCarUserManagerHelper() { in getCarUserManagerHelper()
DUserIconProvider.java19 import android.car.userlib.CarUserManagerHelper;
36 private final CarUserManagerHelper mCarUserManagerHelper;
38 public UserIconProvider(CarUserManagerHelper userManagerHelper) { in UserIconProvider()
82 public static Drawable scaleUserIcon(Bitmap bitmap, CarUserManagerHelper userManagerHelper, in scaleUserIcon()
DUserDetailsBaseFragment.java19 import android.car.userlib.CarUserManagerHelper;
37 private CarUserManagerHelper mCarUserManagerHelper;
74 mCarUserManagerHelper = new CarUserManagerHelper(getContext()); in onAttach()
107 protected CarUserManagerHelper getCarUserManagerHelper() { in getCarUserManagerHelper()
DAddNewUserTask.java19 import android.car.userlib.CarUserManagerHelper;
27 private final CarUserManagerHelper mCarUserManagerHelper;
30 public AddNewUserTask(CarUserManagerHelper helper, AddNewUserListener addNewUserListener) { in AddNewUserTask()
DUserUtils.java19 import android.car.userlib.CarUserManagerHelper;
49 CarUserManagerHelper carUserManagerHelper, UserInfo userInfo) { in getUserDisplayName()
58 public static boolean isAdminViewingNonAdmin(CarUserManagerHelper carUserManagerHelper, in isAdminViewingNonAdmin()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationsUtilsTest.java25 import android.car.userlib.CarUserManagerHelper;
81 CarUserManagerHelper um = mock(CarUserManagerHelper.class); in isProfileOrDeviceOwner_profileOwner_returnsTrue()
95 mock(CarUserManagerHelper.class))).isTrue(); in isProfileOrDeviceOwner_deviceOwner_returnsTrue()
101 mock(DevicePolicyManager.class), mock(CarUserManagerHelper.class))).isFalse(); in isProfileOrDeviceOwner_returnsFalse()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsBasePreferenceControllerTest.java24 import android.car.userlib.CarUserManagerHelper;
70 private CarUserManagerHelper mCarUserManagerHelper;
98 verify(mCarUserManagerHelper).registerOnUsersUpdateListener(any(CarUserManagerHelper in testOnCreate_registerListener()
107 ArgumentCaptor<CarUserManagerHelper.OnUsersUpdateListener> listenerArgumentCaptor = in testOnDestroy_unregisterListener()
108 ArgumentCaptor.forClass(CarUserManagerHelper.OnUsersUpdateListener.class); in testOnDestroy_unregisterListener()
DUsersBasePreferenceControllerTest.java28 import android.car.userlib.CarUserManagerHelper;
81 private CarUserManagerHelper mCarUserManagerHelper;
108 any(CarUserManagerHelper.OnUsersUpdateListener.class)); in onCreate_registersOnUsersUpdateListener()
126 any(CarUserManagerHelper.OnUsersUpdateListener.class)); in onDestroy_unregistersOnUsersUpdateListener()
176 ArgumentCaptor<CarUserManagerHelper.OnUsersUpdateListener> listenerCaptor = in onUsersUpdated_updatesGroup()
177 ArgumentCaptor.forClass(CarUserManagerHelper.OnUsersUpdateListener.class); in onUsersUpdated_updatesGroup()
DPermissionsPreferenceControllerTest.java23 import android.car.userlib.CarUserManagerHelper;
61 private CarUserManagerHelper mCarUserManagerHelper;
66 ShadowCarUserManagerHelper.setMockInstance(mock(CarUserManagerHelper.class)); in setUp()
73 mCarUserManagerHelper = new CarUserManagerHelper(context); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java19 import android.car.userlib.CarUserManagerHelper;
20 import android.car.userlib.CarUserManagerHelper.OnUsersUpdateListener;
34 @Implements(CarUserManagerHelper.class)
39 private static CarUserManagerHelper sMockInstance;
41 public static void setMockInstance(CarUserManagerHelper userManagerHelper) { in setMockInstance()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageUsageBasePreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
42 private CarUserManagerHelper mCarUserManagerHelper;
48 mCarUserManagerHelper = new CarUserManagerHelper(context); in StorageUsageBasePreferenceController()
76 CarUserManagerHelper getCarUserManagerHelper() { in getCarUserManagerHelper()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPreferenceController.java23 import android.car.userlib.CarUserManagerHelper;
49 private final CarUserManagerHelper mCarUserManagerHelper;
55 mCarUserManagerHelper = new CarUserManagerHelper(context); in BluetoothPreferenceController()
60 protected final CarUserManagerHelper getCarUserManagerHelper() { in getCarUserManagerHelper()
DBluetoothEntryPreferenceController.java23 import android.car.userlib.CarUserManagerHelper;
37 private final CarUserManagerHelper mCarUserManagerHelper;
42 mCarUserManagerHelper = new CarUserManagerHelper(context); in BluetoothEntryPreferenceController()
/packages/apps/Car/Settings/src/com/android/car/settings/development/
DDevelopmentSettingsUtil.java20 import android.car.userlib.CarUserManagerHelper;
62 CarUserManagerHelper carUserManagerHelper) { in isDevelopmentSettingsEnabled()
80 CarUserManagerHelper carUserManagerHelper = new CarUserManagerHelper(context); in showDeveloperOptions()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DDeveloperOptionsEntryPreferenceControllerTest.java26 import android.car.userlib.CarUserManagerHelper;
55 private CarUserManagerHelper mShadowCarUserManagerHelper;
71 new CarUserManagerHelper(mContext).setUserRestriction(mUserInfo, in setUp()
98 new CarUserManagerHelper(mContext).setUserRestriction(mUserInfo, in testGetAvailabilityStatus_devOptionsEnabled_hasUserRestriction_isUnavailable()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountsEntryPreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
34 private final CarUserManagerHelper mCarUserManagerHelper;
39 mCarUserManagerHelper = new CarUserManagerHelper(context); in AccountsEntryPreferenceController()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DSecurityEntryPreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
34 private final CarUserManagerHelper mCarUserManagerHelper;
39 mCarUserManagerHelper = new CarUserManagerHelper(context); in SecurityEntryPreferenceController()
DCredentialsResetPreferenceController.java22 import android.car.userlib.CarUserManagerHelper;
33 private final CarUserManagerHelper mCarUserManagerHelper;
38 mCarUserManagerHelper = new CarUserManagerHelper(context); in CredentialsResetPreferenceController()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearOtherUsersPresentPreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
35 private final CarUserManagerHelper mCarUserManagerHelper;
40 mCarUserManagerHelper = new CarUserManagerHelper(context); in MasterClearOtherUsersPresentPreferenceController()
DDeveloperOptionsEntryPreferenceController.java20 import android.car.userlib.CarUserManagerHelper;
32 private CarUserManagerHelper mCarUserManagerHelper;
37 mCarUserManagerHelper = new CarUserManagerHelper(context); in DeveloperOptionsEntryPreferenceController()
DResetNetworkEntryPreferenceController.java22 import android.car.userlib.CarUserManagerHelper;
33 private final CarUserManagerHelper mCarUserManagerHelper;
38 mCarUserManagerHelper = new CarUserManagerHelper(context); in ResetNetworkEntryPreferenceController()
DMasterClearEntryPreferenceController.java22 import android.car.userlib.CarUserManagerHelper;
37 private final CarUserManagerHelper mCarUserManagerHelper;
42 mCarUserManagerHelper = new CarUserManagerHelper(context); in MasterClearEntryPreferenceController()

123456