Home
last modified time | relevance | path

Searched refs:isRestricted (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java96 final boolean isRestricted = SecurityFragment.isRestrictedProfileInEffect(getContext()); in onCreatePreferences()
99 mDatePref.setVisible(!isRestricted); in onCreatePreferences()
101 mTimePref.setVisible(!isRestricted); in onCreatePreferences()
112 autoDateTimePref.setVisible(!isRestricted); in onCreatePreferences()
114 mTimeZone.setVisible(!isRestricted); in onCreatePreferences()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUxrButton.java60 if (isRestricted()) {
102 if (isRestricted()) { in onCreateDrawableState()
133 private boolean isRestricted() { in isRestricted() method in UxrButton
134 return CarUxRestrictionsUtil.isRestricted(mRestrictions, mActiveCarUxRestrictions); in isRestricted()
DCarUxRestrictionsUtil.java134 public static boolean isRestricted(@CarUxRestrictionsInfo int restrictionFlags, in isRestricted() method in CarUxRestrictionsUtil
145 if (isRestricted(UX_RESTRICTIONS_LIMIT_STRING_LENGTH, uxr)) { in complyString()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileModel.java99 return mCurrentUserInfo.isRestricted(); in isCurrentUser()
107 if (mCurrentUserInfo.isRestricted()) { in getUser()
111 if (userInfo.isRestricted()) { in getUser()
122 if (!mCurrentUserInfo.isRestricted()) { in getOwnerUserId()
/packages/apps/Settings/src/com/android/settings/location/
DLocationEnabler.java102 mListener.onLocationModeChanged(mode, isRestricted()); in refreshLocationMode()
110 if (isRestricted()) { in setLocationEnabled()
127 return mode != Settings.Secure.LOCATION_MODE_OFF && !isRestricted(); in isEnabled()
157 private boolean isRestricted() { in isRestricted() method in LocationEnabler
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationEnabler.java102 mListener.onLocationModeChanged(mode, isRestricted()); in refreshLocationMode()
110 if (isRestricted()) { in setLocationEnabled()
127 return mode != Settings.Secure.LOCATION_MODE_OFF && !isRestricted(); in isEnabled()
157 private boolean isRestricted() { in isRestricted() method in LocationEnabler
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictionUtils.java13 private static boolean isRestricted = false; field in ShadowRestrictionUtils
17 if (isRestricted) { in checkIfRestrictionEnforced()
24 isRestricted = restricted; in setRestricted()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItem.java241 boolean wasRestricted = isRestricted(); in setCarUxRestrictions()
244 if (isRestricted() != wasRestricted) { in setCarUxRestrictions()
249 /* package */ boolean isRestricted() { in isRestricted() method in MenuItem
250 return CarUxRestrictionsUtil.isRestricted(mUxRestrictions, mCurrentRestrictions); in isRestricted()
260 if (isRestricted()) { in performClick()
/packages/apps/Car/libs/car-apps-common/tests/robotests/src/com/android/car/apps/common/
DCarUxRestrictionsUtilTest.java50 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testNullActiveRestriction()
62 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testOneActiveRestriction()
76 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testMultipleActiveRestrictions()
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/utils/
DCarUxRestrictionsUtilTest.java50 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testNullActiveRestriction()
62 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testOneActiveRestriction()
76 boolean actualResult = CarUxRestrictionsUtil.isRestricted(mRestrictionsArray[i], in testMultipleActiveRestrictions()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java190 final boolean isRestricted = batteryTip instanceof RestrictAppTip; in onBatteryTipHandled()
191 if (isRestricted) { in onBatteryTipHandled()
200 preference.setChecked(isRestricted); in onBatteryTipHandled()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DMessageNotificationViewHolder.java106 StatusBarNotification statusBarNotification, boolean isInGroup, boolean isRestricted, in bindBody() argument
150 if (isRestricted) { in bindBody()
183 if (!isRestricted && unshownCount > 0) { in bindBody()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DRestrictedAppDetails.java190 final boolean isRestricted = batteryTip instanceof RestrictAppTip; in onBatteryTipHandled()
191 if (isRestricted) { in onBatteryTipHandled()
200 preference.setChecked(isRestricted); in onBatteryTipHandled()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java133 public static boolean isRestricted( in isRestricted() method in CarUxRestrictionsUtil
144 if (isRestricted(UX_RESTRICTIONS_LIMIT_STRING_LENGTH, uxr)) { in complyString()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java495 if (info.isRestricted() && mUserCaps.mIsAdmin) { in onManageUserClicked()
527 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
836 && (voiceCapable || user.isRestricted()); in updateUserList()
838 && (!voiceCapable && !user.isRestricted() && !user.isGuest()); in updateUserList()
854 if (user.isRestricted()) { in updateUserList()
865 } else if (user.isRestricted()) { in updateUserList()
DUserDialogs.java70 } else if (userInfo.isRestricted()) { in createRemoveDialog()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java499 if (info.isRestricted() && mUserCaps.mIsAdmin) { in onManageUserClicked()
531 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
840 && (voiceCapable || user.isRestricted()); in updateUserList()
842 && (!voiceCapable && !user.isRestricted() && !user.isGuest()); in updateUserList()
858 if (user.isRestricted()) { in updateUserList()
869 } else if (user.isRestricted()) { in updateUserList()
DUserDialogs.java70 } else if (userInfo.isRestricted()) { in createRemoveDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DDevicePrefFragment.java73 if (isRestricted()) { in onCreatePreferences()
132 private boolean isRestricted() { in isRestricted() method in DevicePrefFragment
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountsFragment.java145 if (isRestricted()) { in updateAccounts()
153 private boolean isRestricted() { in isRestricted() method in AccountsFragment
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java225 if (isRestricted()) { in onCreatePreferences()
405 private boolean isRestricted() { in isRestricted() method in MainFragment
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java920 displayId, (listener.isRestricted() ? "restricted" : "unrestricted"))); in dump()
999 return listenerForTopTaskDisplay.isRestricted(); in isUxRestrictedOnDisplay()
1384 private synchronized boolean isRestricted() { in isRestricted() method in CarPackageManagerService.UxRestrictionsListener
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DDiskReceiver.java53 if (userInfo.isRestricted() in onReceive()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java149 if (userInfo.isRestricted()) { in updateSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DVpnPreferenceController.java149 if (userInfo.isRestricted()) { in updateSummary()

12