Searched refs:isDemo (Results 1 – 7 of 7) sorted by relevance
280 final boolean isDemo = UserManager.isDeviceInDemoMode(mContext); in updateVisibilities()281 mMultiUserSwitch.setVisibility(mExpanded && mMultiUserSwitch.hasMultipleUsers() && !isDemo in updateVisibilities()283 mEdit.setVisibility(isDemo || !mExpanded ? View.INVISIBLE : View.VISIBLE); in updateVisibilities()
72 if (oldUser.isDemo()) { in UserSwitchingDialog()
21729 if (!targetUserInfo.isDemo() && UserManager.isDeviceInDemoMode(mContext)) { in switchUser()
161 public boolean isDemo() { in isDemo() method in UserInfo
190 if (user.isDemo()) { in handleMessage()591 if (!ui.isDemo()) { in onSwitchUser()
912 return userInfo != null && userInfo.isDemo(); in isDemoUser()2223 final boolean isDemo = (flags & UserInfo.FLAG_DEMO) != 0; in createUserInternalUnchecked()2241 if (!isGuest && !isManagedProfile && !isDemo && isUserLimitReached()) { in createUserInternalUnchecked()
367 if (info != null && (info.isGuest() || info.isDemo())) {