/packages/apps/Settings/src/com/android/settings/wifi/ |
D | ConfigureWifiSettings.java | 63 if (isGuestUser(context)) return; in onAttach() 74 if (isGuestUser(getContext())) return; in onCreate() 96 if (!isGuestUser(getContext())) return; in onViewCreated() 127 if (isGuestUser(context)) return null; in createPreferenceControllers() 148 if (isGuestUser(context)) return false; 154 private static boolean isGuestUser(Context context) { in isGuestUser() method in ConfigureWifiSettings 158 return userManager.isGuestUser(); in isGuestUser()
|
D | WifiScanModeActivity.java | 86 if (isGuestUser(getApplicationContext())) { in createDialog() 193 private static boolean isGuestUser(Context context) { 196 return userManager.isGuestUser();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | ConfigureWifiSettingsTest.java | 77 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 90 when(mUserManager.isGuestUser()).thenReturn(false); in onAttach_isNotGuestUser_setupController() 99 when(mUserManager.isGuestUser()).thenReturn(true); in onAttach_isGuestUser_doNotSetupController() 109 when(mUserManager.isGuestUser()).thenReturn(false); in onCreate_isNotGuestUser_setupPreference() 119 when(mUserManager.isGuestUser()).thenReturn(true); in onCreate_isGuestUser_doNotSetupPreference() 129 when(mUserManager.isGuestUser()).thenReturn(false); in onViewCreated_isNotGuestUser_doNotRestrictUi() 142 when(mUserManager.isGuestUser()).thenReturn(true); in onViewCreated_isGuestUser_restrictUi()
|
D | WifiScanModeActivityTest.java | 69 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 108 when(mUserManager.isGuestUser()).thenReturn(false); in createDialog_isNotGuestUser_shouldNotFinishDialog() 117 when(mUserManager.isGuestUser()).thenReturn(true); in createDialog_isGuestUser_shouldFinishDialog()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/ |
D | LockTypeBasePreferenceControllerTest.java | 93 when(mMockUserManager.isGuestUser()).thenReturn(false); in setUp() 129 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGetAvailabilityStatus_guestUser() 135 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGetAvailabilityStatus_guestUser_zoneWrite() 143 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGetAvailabilityStatus_guestUser_zoneRead() 151 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGetAvailabilityStatus_guestUser_zoneHidden()
|
D | ChooseLockTypePreferenceControllerTest.java | 101 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 204 when(mUserManager.isGuestUser()).thenReturn(true); in isGuestUser_isNotAvailable() 212 when(mUserManager.isGuestUser()).thenReturn(true); in isGuestUser_isNotAvailable_zoneWrite() 222 when(mUserManager.isGuestUser()).thenReturn(true); in isGuestUser_isNotAvailable_zoneRead() 232 when(mUserManager.isGuestUser()).thenReturn(true); in isGuestUser_isNotAvailable_zoneHidden()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiDppConfiguratorActivityTest.java | 60 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 79 when(mUserManager.isGuestUser()).thenReturn(true); in handleIntent_isGuestUser_shouldFinish() 88 when(mUserManager.isGuestUser()).thenReturn(false); in handleIntent_notGuestUser_shouldNotFinish()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/ |
D | AddAppNetworksActivityTest.java | 61 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 106 when(mUserManager.isGuestUser()).thenReturn(true); in showAddNetworksFragment_isGuestUser_returnFalse() 113 when(mUserManager.isGuestUser()).thenReturn(false); in showAddNetworksFragment_notGuestUser_returnTrue()
|
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/ |
D | AddAppNetworksActivity.java | 92 if (isGuestUser(getApplicationContext())) { in showAddNetworksFragment() 143 private static boolean isGuestUser(Context context) { in isGuestUser() method in AddAppNetworksActivity 147 return userManager.isGuestUser(); in isGuestUser()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | UserHandleHelper.java | 67 public boolean isGuestUser(UserHandle user) { in isGuestUser() method in UserHandleHelper 68 return getUserContextAwareUserManager(user.getIdentifier()).isGuestUser(); in isGuestUser()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/sim/ |
D | SimDialogActivityTest.kt | 54 whenever(userManager.isGuestUser).thenReturn(false) in setUp() 66 whenever(userManager.isGuestUser).thenReturn(true) in isUiRestricted_isGuestUser_returnTrue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceControllerTest.java | 228 when(mUserManager.isGuestUser()).thenReturn(false); in canShowDataUsage_configShowDataUsage_returnTrue() 240 when(mUserManager.isGuestUser()).thenReturn(false); in canShowDataUsage_noSimCapability_returnFalse() 252 when(mUserManager.isGuestUser()).thenReturn(true); in canShowDataUsage_isGuestUser_returnFalse() 264 when(mUserManager.isGuestUser()).thenReturn(false); in canShowDataUsage_isMobileNetworkUserRestricted_returnFalse()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pan/ |
D | PanServiceTest.java | 103 when(mMockUserManager.isGuestUser()).thenReturn(true); in connect_whenGuestUser_returnsFalse() 109 when(mMockUserManager.isGuestUser()).thenReturn(false); in connect_inConnectedState_returnsFalse() 120 when(mMockUserManager.isGuestUser()).thenReturn(false); in connect()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryTest.java | 80 doReturn(false).when(mUserManager).isGuestUser(); in setUp() 191 doReturn(false).when(mUserManager).isGuestUser(); in onCreate_isNotGuestUser_shouldNotFinish() 200 doReturn(true).when(mUserManager).isGuestUser(); in onCreate_isGuestUser_shouldFinish()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummary.java | 78 if (isGuestUser(context)) { in onCreate() 255 private static boolean isGuestUser(Context context) { in isGuestUser() method in DataUsageSummary 259 return userManager.isGuestUser(); in isGuestUser()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppConfiguratorActivity.java | 132 if (isGuestUser(getApplicationContext())) { in handleIntent() 409 private static boolean isGuestUser(Context context) { in isGuestUser() method in WifiDppConfiguratorActivity 413 return userManager.isGuestUser(); in isGuestUser()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/ |
D | UserManagerHelper.java | 103 public static boolean isGuestUser(@NonNull UserManager userManager, @NonNull UserHandle user) { in isGuestUser() method in UserManagerHelper 104 return userManager.isGuestUser(user.getIdentifier()); in isGuestUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | UserHandleHelperUnitTest.java | 93 when(mUserManager.isGuestUser()).thenReturn(true); in testIsGuestUser() 95 assertThat(mUserHandleHelper.isGuestUser(mContextUser)).isTrue(); in testIsGuestUser()
|
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/ |
D | ShadowUserManager.java | 366 protected boolean isGuestUser() { in isGuestUser() method in ShadowUserManager 370 public void setGuestUser(boolean isGuestUser) { in setGuestUser() argument 371 mIsGuestUser = isGuestUser; in setGuestUser()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/ |
D | UserPickerController.java | 398 || (userRecord.mIsStartGuestSession && isGuestUser(prevUserId))) { 503 return isGuestUser(userId); 506 private boolean isGuestUser(@UserIdInt int userId) { 521 + (isGuestUser(loggedInUserId) ? "(guest)" : ""));
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceTest.java | 130 when(mUserManager.isGuestUser()).thenReturn(false); in setUp() 174 when(mUserManager.isGuestUser()).thenReturn(true); in getSlice_isGuestUser_shouldNotAddRow() 341 when(mUserManager.isGuestUser()).thenReturn(true); in getBackgroundWorkerClass_isGuestUser_returnNull() 348 when(mUserManager.isGuestUser()).thenReturn(false); in getBackgroundWorkerClass_notGuestUser_returnWorkerClass()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/ |
D | DataUsageListTest.kt | 63 on { isGuestUser } doReturn false in setUp() 82 on { isGuestUser } doReturn true in launchFragment_isGuestUser_finish()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | SecurityEntryPreferenceController.java | 49 return mUserManager.isGuestUser() ? DISABLED_FOR_PROFILE : AVAILABLE; in getDefaultAvailabilityStatus()
|
D | SecuritySettingsFragment.java | 48 return !userManager.isGuestUser();
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | SilentStatusBarPreferenceController.java | 55 return UserManager.get(mContext).isGuestUser() ? DISABLED_FOR_USER : AVAILABLE; in getAvailabilityStatus()
|