Home
last modified time | relevance | path

Searched refs:isCurrentProcessAdminUser (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearEntryPreferenceControllerTest.java77 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in getAvailabilityStatus_nonAdminUser_disabledForUser()
84 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in getAvailabilityStatus_adminUser_available()
91 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in getAvailabilityStatus_adminUser_restricted_disabledForUser()
100 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in getAvailabilityStatus_demoMode_demoUser_available()
110 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in getAvailabilityStatus_demoMode_demoUser_restricted_disabledForUser()
DResetNetworkEntryPreferenceControllerTest.java73 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in getAvailabilityStatus_nonAdminUser_disabledForUser()
80 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in getAvailabilityStatus_adminUser_available()
87 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in getAvailabilityStatus_adminUser_restricted_disabledForUser()
DSystemUpdatePreferenceControllerTest.java75 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
91 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in getAvailabilityStatus_adminUser_available()
98 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in getAvailabilityStatus_nonAdminUser_disabledForUser()
DBuildNumberPreferenceControllerTest.java73 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
105 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in testHandlePreferenceClicked_nonAdmin_returnFalse()
113 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in testHandlePreferenceClicked_demoUser_returnsTrue()
DDeveloperOptionsEntryPreferenceControllerTest.java68 when(mShadowCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUsersEntryPreferenceControllerTest.java75 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in preferenceClicked_adminUser_handled()
83 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in preferenceClicked_adminUser_launchesUsersListFragment()
93 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in preferenceClicked_nonAdminUser_handled()
103 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in preferenceClicked_nonAdminUser_launchesUserDetailsFragment()
DUsersListPreferenceControllerTest.java75 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/
DDevelopmentSettingsUtilTest.java53 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
85 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse()
96 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue()
107 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(false); in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse()
/packages/apps/Car/Settings/src/com/android/car/settings/development/
DDevelopmentSettingsUtil.java68 boolean isAdminOrDemo = carUserManagerHelper.isCurrentProcessAdminUser() in isDevelopmentSettingsEnabled()
83 boolean isAdminOrDemo = carUserManagerHelper.isCurrentProcessAdminUser() in showDeveloperOptions()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java674 public boolean isCurrentProcessAdminUser() { in isCurrentProcessAdminUser() method in CarUserManagerHelper
753 if (!isCurrentProcessAdminUser()) { in grantAdminPermissions()
786 if (!(isCurrentProcessAdminUser() || isCurrentProcessSystemUser())) { in createNewAdminUser()
886 if (!isCurrentProcessAdminUser() && !isCurrentProcessUser(userInfo)) { in removeUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java147 protected boolean isCurrentProcessAdminUser() { in isCurrentProcessAdminUser() method in ShadowCarUserManagerHelper
148 return sMockInstance.isCurrentProcessAdminUser(); in isCurrentProcessAdminUser()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserUtils.java60 return carUserManagerHelper.isCurrentProcessAdminUser() && !userInfo.isAdmin(); in isAdminViewingNonAdmin()
DUsersEntryPreferenceController.java52 if (mCarUserManagerHelper.isCurrentProcessAdminUser()) { in handlePreferenceClicked()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkEntryPreferenceController.java52 return !mCarUserManagerHelper.isCurrentProcessAdminUser() in isUserRestricted()
DMasterClearEntryPreferenceController.java56 return !(mCarUserManagerHelper.isCurrentProcessAdminUser() || isDemoUser()) in isUserRestricted()
DBuildNumberPreferenceController.java68 if (!mCarUserManagerHelper.isCurrentProcessAdminUser() in handlePreferenceClicked()
DSystemUpdatePreferenceController.java71 return mCarUserManagerHelper.isCurrentProcessAdminUser() ? AVAILABLE : DISABLED_FOR_USER; in getAvailabilityStatus()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java612 assertThat(mCarUserManagerHelper.isCurrentProcessAdminUser()).isTrue(); in testIsCurrentProcessSystemUser()
615 assertThat(mCarUserManagerHelper.isCurrentProcessAdminUser()).isFalse(); in testIsCurrentProcessSystemUser()