/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | MasterClearEntryPreferenceControllerTest.java | 77 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()
|
D | ResetNetworkEntryPreferenceControllerTest.java | 73 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()
|
D | SystemUpdatePreferenceControllerTest.java | 75 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()
|
D | BuildNumberPreferenceControllerTest.java | 73 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()
|
D | DeveloperOptionsEntryPreferenceControllerTest.java | 68 when(mShadowCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | UsersEntryPreferenceControllerTest.java | 75 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()
|
D | UsersListPreferenceControllerTest.java | 75 when(mCarUserManagerHelper.isCurrentProcessAdminUser()).thenReturn(true); in setUp()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 53 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/ |
D | DevelopmentSettingsUtil.java | 68 boolean isAdminOrDemo = carUserManagerHelper.isCurrentProcessAdminUser() in isDevelopmentSettingsEnabled() 83 boolean isAdminOrDemo = carUserManagerHelper.isCurrentProcessAdminUser() in showDeveloperOptions()
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | CarUserManagerHelper.java | 674 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/ |
D | ShadowCarUserManagerHelper.java | 147 protected boolean isCurrentProcessAdminUser() { in isCurrentProcessAdminUser() method in ShadowCarUserManagerHelper 148 return sMockInstance.isCurrentProcessAdminUser(); in isCurrentProcessAdminUser()
|
/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | UserUtils.java | 60 return carUserManagerHelper.isCurrentProcessAdminUser() && !userInfo.isAdmin(); in isAdminViewingNonAdmin()
|
D | UsersEntryPreferenceController.java | 52 if (mCarUserManagerHelper.isCurrentProcessAdminUser()) { in handlePreferenceClicked()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkEntryPreferenceController.java | 52 return !mCarUserManagerHelper.isCurrentProcessAdminUser() in isUserRestricted()
|
D | MasterClearEntryPreferenceController.java | 56 return !(mCarUserManagerHelper.isCurrentProcessAdminUser() || isDemoUser()) in isUserRestricted()
|
D | BuildNumberPreferenceController.java | 68 if (!mCarUserManagerHelper.isCurrentProcessAdminUser() in handlePreferenceClicked()
|
D | SystemUpdatePreferenceController.java | 71 return mCarUserManagerHelper.isCurrentProcessAdminUser() ? AVAILABLE : DISABLED_FOR_USER; in getAvailabilityStatus()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | CarUserManagerHelperTest.java | 612 assertThat(mCarUserManagerHelper.isCurrentProcessAdminUser()).isTrue(); in testIsCurrentProcessSystemUser() 615 assertThat(mCarUserManagerHelper.isCurrentProcessAdminUser()).isFalse(); in testIsCurrentProcessSystemUser()
|