Home
last modified time | relevance | path

Searched refs:isGuest (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/users/
DUserMetricsUtils.java33 if (userInfo.isGuest()) { in getRemoveUserMetricCategory()
48 if (userInfo.isGuest()) { in getSwitchUserMetricCategory()
DUserDetailsSettings.java130 if (mUserInfo.isGuest() && mGuestUserAutoCreated) { in onResume()
144 if (mUserInfo.isGuest()) { in onPreferenceClick()
317 if (!mUserInfo.isGuest()) {
364 if (mUserInfo.isMain() || mUserInfo.isGuest() || !UserManager.isMultipleAdminEnabled()
393 if (mUserInfo.isGuest()) {
DUserCapabilities.java59 caps.mIsGuest = myUserInfo.isGuest(); in create()
DUserSettings.java681 if (mGuestUserAutoCreated && userInfo.isGuest()) { in openUserDetails()
1226 if (user.isGuest()) {
1251 if (user.id != UserHandle.myUserId() && !user.isGuest() && !user.isInitialized()) {
1401 if (!user.isGuest() || !user.isEnabled()) {
1547 .filter(user -> !user.isGuest() && !user.isProfile())
DRemoveGuestOnExitPreferenceController.java220 if (guestUserInfo == null || !guestUserInfo.isGuest() || !mEnabling) { in onClick()
/packages/services/Car/libs/car-helper-lib/src/com/android/car/internal/user/
DCarUserIconProvider.java64 if (userInfo.isGuest()) { in getDefaultUserIcon()
105 if (userInfo.isGuest()) { in getUserNameIconColor()
113 if (userInfo.isGuest()) { in getUserBackgroundIconColor()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarMultiUserTestBase.java242 private UserInfo createUser(@Nullable String name, boolean isGuest) throws Exception { in createUser() argument
244 Log.d(TAG, "Creating new " + (isGuest ? "guest" : "user") + " with name '" + name in createUser()
251 if (isGuest) { in createUser()
274 .isEqualTo(isGuest); in createUser()
DCarUserManagerTest.java95 assertWithMessage("(%s).isGuest()", newUser.toFullString()).that(newUser.isGuest()) in testCreateUser()
110 assertWithMessage("(%s).isGuest()", newGuest.toFullString()).that(newGuest.isGuest()) in testCreateGuest()
267 .that(newGuest.isGuest()).isTrue(); in testGuestUserResumeToNewGuestUser()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java176 public static String getDefaultUserType(boolean isGuest) { in getDefaultUserType() argument
177 return isGuest ? UserManager.USER_TYPE_FULL_GUEST : UserManager.USER_TYPE_FULL_SECONDARY; in getDefaultUserType()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserFragment.java159 boolean isGuest = mNewUserIsGuestCheckBox.isChecked(); in createUser()
163 + UserInfo.flagsToString(flags) + ", is guest=" + isGuest); in createUser()
164 if (isGuest) { in createUser()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DNfcAndPaymentFragment.java68 if (myUserInfo.isGuest()) {
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfilesPreferenceProvider.java93 userInfo -> !userInfo.isGuest() && userInfo.id != currUserInfo.id); in createProfileList()
DProfileGridRecyclerView.java153 if (!isForeground && userInfo.isGuest()) { in createProfileRecords()
164 if (!getCurrentForegroundProfileInfo().isGuest()) { in createProfileRecords()
DProfileDetailsActionButtonsPreferenceController.java241 userInfo -> !userInfo.isGuest() && userInfo.id != currUserInfo.id).isEmpty(); in areThereOtherProfiles()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/qc/
DCarUiPortraitProfileSwitcher.java58 if (mUserTracker.getUserInfo() != null && mUserTracker.getUserInfo().isGuest()) { in createGuestProfileRow()
/packages/services/Car/car-lib/src/android/car/user/
DUserCreationRequest.java139 public boolean isGuest() { in isGuest() method in UserCreationRequest
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentSettings.java125 if (myUserInfo.isGuest()) {
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java456 boolean isGuest) { in generateUser() argument
463 when(info.isGuest()).thenReturn(isGuest); in generateUser()
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/
Dapis-without-coverage.txt12 android.car.user.UserCreationRequest#isGuest()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/
DDevicePolicyFragment.java238 boolean isGuest = mNewUserIsGuestCheckBox.isChecked(); in createUser()
239 if (isGuest) { in createUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DPaymentSettingsTest.java113 when(mUserInfo.isGuest()).thenReturn(true); in getNonIndexableKey_guestUser_returnsFalse()
/packages/services/Car/service/src/com/android/car/user/
DInitialUserSetter.java626 if (UserHalHelper.isGuest(halFlags)) { in createNewUser()
642 String type = UserHalHelper.isGuest(halFlags) ? UserManager.USER_TYPE_FULL_GUEST in createNewUser()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java2405 boolean isGuest = false;
2416 isGuest = true;
2440 + ", guest=" + isGuest + ", halOnly=" + halOnly + ", timeout=" + timeout);
2452 if (isGuest) {
2512 newUserRequest = getCreateUserRequest(name, isGuest, flags);
2515 name, isGuest, flags);
2568 private NewUserRequest getCreateUserRequest(String name, boolean isGuest, int flags) {
2578 if (isGuest) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalHelperTest.java201 assertThat(UserHalHelper.isGuest(UserInfo.USER_FLAG_GUEST)).isTrue(); in testIsGuest()
202 assertThat(UserHalHelper.isGuest(UserInfo.USER_FLAG_GUEST | 666)).isTrue(); in testIsGuest()
203 assertThat(UserHalHelper.isGuest(UserInfo.USER_FLAG_SYSTEM)).isFalse(); in testIsGuest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java494 private void mockMenuConditions(boolean isGuest, boolean isAirplaneModeOn, boolean isWifiOn) { in mockMenuConditions() argument
495 mNetworkProviderSettings.mIsGuest = isGuest; in mockMenuConditions()

12