Home
last modified time | relevance | path

Searched refs:isDemo (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSFooterImpl.java284 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() argument
291 if (!mExpanded || isDemo || !UserManager.supportsMultipleUsers()) { in showUserSwitcher()
DQSSecurityFooter.java139 && currentUser.isDemo(); in handleRefreshState()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java71 when(userInfo.isDemo()).thenReturn(isDemoUser); in configureTest()
/frameworks/base/services/core/java/com/android/server/am/
DUserSwitchingDialog.java97 if (mOldUser.isDemo()) { in inflateContent()
DActivityManagerService.java833 && mUserController.getCurrentUser().isDemo()); in canShowErrorDialogs()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java168 public boolean isDemo() { in isDemo() method in UserInfo
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java139 when(mockUserInfo.isDemo()).thenReturn(true); in testManagedDemoMode()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1164 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()
/frameworks/base/core/java/android/os/
DUserManager.java1821 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUser()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java684 && userInfo.isDemo(); in isLockScreenDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java380 } else if (info.isGuest() || info.isDemo()) {
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9411 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()
/frameworks/base/config/
Dboot-image-profile.txt1881 HPLandroid/content/pm/UserInfo;->isDemo()Z