Searched refs:isDemo (Results 1 – 13 of 13) sorted by relevance
284 final boolean isDemo = UserManager.isDeviceInDemoMode(mContext); in updateVisibilities()285 mMultiUserSwitch.setVisibility(showUserSwitcher(isDemo) ? View.VISIBLE : View.INVISIBLE); in updateVisibilities()286 mEdit.setVisibility(isDemo || !mExpanded ? View.INVISIBLE : View.VISIBLE); in updateVisibilities()287 mSettingsButton.setVisibility(isDemo || !mExpanded ? View.INVISIBLE : View.VISIBLE); in updateVisibilities()290 private boolean showUserSwitcher(boolean isDemo) { in showUserSwitcher() argument291 if (!mExpanded || isDemo || !UserManager.supportsMultipleUsers()) { in showUserSwitcher()
139 && currentUser.isDemo(); in handleRefreshState()
71 when(userInfo.isDemo()).thenReturn(isDemoUser); in configureTest()
97 if (mOldUser.isDemo()) { in inflateContent()
833 && mUserController.getCurrentUser().isDemo()); in canShowErrorDialogs()
168 public boolean isDemo() { in isDemo() method in UserInfo
139 when(mockUserInfo.isDemo()).thenReturn(true); in testManagedDemoMode()
1164 return userInfo != null && userInfo.isDemo(); in isDemoUser()2611 final boolean isDemo = (flags & UserInfo.FLAG_DEMO) != 0; in createUserInternalUnchecked()2629 if (!isGuest && !isManagedProfile && !isDemo && isUserLimitReached()) { in createUserInternalUnchecked()2736 : (isDemo ? TRON_DEMO_CREATED : TRON_USER_CREATED), 1); in createUserInternalUnchecked()3878 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUserEvenWhenDisallowed()
1821 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUser()
684 && userInfo.isDemo(); in isLockScreenDisabled()
380 } else if (info.isGuest() || info.isDemo()) {
9411 final boolean isDemo = isCurrentUserDemo(); in enableSystemApp()9423 if (!isDemo && !isSystemApp(mIPackageManager, packageName, parentUserId)) { in enableSystemApp()9430 if (isDemo) { in enableSystemApp()11807 return mUserManager.getUserInfo(userId).isDemo(); in isCurrentUserDemo()
1881 HPLandroid/content/pm/UserInfo;->isDemo()Z