Home
last modified time | relevance | path

Searched refs:isGuestUser (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/wifi/
DConfigureWifiSettings.java63 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()
DWifiScanModeActivity.java86 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/
DConfigureWifiSettingsTest.java77 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()
DWifiScanModeActivityTest.java69 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/
DLockTypeBasePreferenceControllerTest.java93 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()
DChooseLockTypePreferenceControllerTest.java101 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/
DWifiDppConfiguratorActivityTest.java60 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/
DAddAppNetworksActivityTest.java61 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/
DAddAppNetworksActivity.java92 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/
DUserHandleHelper.java67 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/
DSimDialogActivityTest.kt54 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/
DCreateShortcutPreferenceControllerTest.java228 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/
DPanServiceTest.java103 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/
DDataUsageSummaryTest.java80 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/
DDataUsageSummary.java78 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/
DWifiDppConfiguratorActivity.java132 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/
DUserManagerHelper.java103 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/
DUserHandleHelperUnitTest.java93 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/
DShadowUserManager.java366 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/
DUserPickerController.java398 || (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/
DProviderModelSliceTest.java130 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/
DDataUsageListTest.kt63 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/
DSecurityEntryPreferenceController.java49 return mUserManager.isGuestUser() ? DISABLED_FOR_PROFILE : AVAILABLE; in getDefaultAvailabilityStatus()
DSecuritySettingsFragment.java48 return !userManager.isGuestUser();
/packages/apps/Settings/src/com/android/settings/notification/
DSilentStatusBarPreferenceController.java55 return UserManager.get(mContext).isGuestUser() ? DISABLED_FOR_USER : AVAILABLE; in getAvailabilityStatus()

123