Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/
DDockItemClickListener.kt32 private var isRestricted: Boolean, variable in com.android.car.docklib.view.DockItemClickListener
35 if (isRestricted) { in onClick()
45 fun setIsRestricted(isRestricted: Boolean) { in setIsRestricted()
46 this.isRestricted = isRestricted in setIsRestricted()
DDockItemViewController.kt130 fun setRestricted(isRestricted: Boolean): Boolean { in setRestricted()
131 if ((isRestricted && optionalState.contains(OptionalStates.RESTRICTED)) || in setRestricted()
132 (!isRestricted && !optionalState.contains(OptionalStates.RESTRICTED)) in setRestricted()
137 if (isRestricted) { in setRestricted()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedStoragePermissionSharedUidTest.java85 public final boolean isRestricted; field in RestrictedStoragePermissionSharedUidTest.TestApp
88 TestApp(@NonNull String apk, @NonNull String pkg, boolean isRestricted, in TestApp() argument
93 this.isRestricted = isRestricted; in TestApp()
132 if (isRestricted) { in install()
236 boolean isRestricted = app1.isRestricted && app2.isRestricted; in checkExceptedStorageStateForAppsSharingUid()
241 if (isRestricted) { in checkExceptedStorageStateForAppsSharingUid()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedPreferenceAdapter.java70 this.mRestricted = isRestricted(); in RestrictedPreferenceAdapter()
114 public boolean isRestricted() { in isRestricted() method in RestrictedPreferenceAdapter
133 public boolean isRestricted(String restriction) { in isRestricted() method in RestrictedPreferenceAdapter
182 if (mRestrictedPreference != null && (isRestricted(UserManager.DISALLOW_CONFIG_WIFI) in getPreference()
183 || (isRestricted(UserManager.DISALLOW_ADD_WIFI_CONFIG) && !mIsApSaved))) { in getPreference()
213 mRestricted = isRestricted(); in updatePreference()
222 if (mRestricted && isRestricted(UserManager.DISALLOW_CONFIG_WIFI)) { in updatePreference()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DRestrictManagerTest.java184 assertFalse(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in setUp()
185 assertFalse(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WWAN)); in setUp()
218 assertFalse(mRestrictManager.isRestricted(srcTransportType)); in validateGuardingRestriction()
219 assertTrue(mRestrictManager.isRestricted(targetTransportType)); in validateGuardingRestriction()
231 assertTrue(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testAddRestriction()
248 assertFalse(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testAddRestriction()
258 assertTrue(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testAddRestrictionOnRestriction()
299 assertTrue(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testReleaseRestriction()
329 assertFalse(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testReleaseRestriction()
334 assertFalse(mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in testProcessReleaseEvent()
[all …]
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DEnhancedConfirmationManagerTest.kt92 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenStoreAppThenIsNotRestrictedFromProtectedSetting()
101 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenLocalAppThenIsRestrictedFromProtectedSetting()
110 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenDownloadedThenAppIsRestrictedFromProtectedSetting()
127 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting()
129 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting()
138 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, NON_PROTECTED_SETTING)) } in givenRestrictedAppThenIsNotRestrictedFromNonProtectedSetting()
156 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenRestrictedAppWhenClearRestrictionThenNotRestrictedFromProtectedSetting()
160 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenRestrictedAppWhenClearRestrictionThenNotRestrictedFromProtectedSetting()
/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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/users/
DRestrictedProfileModel.java95 return mCurrentUserInfo.isRestricted(); in isCurrentUser()
103 if (mCurrentUserInfo.isRestricted()) { in getUser()
107 if (userInfo.isRestricted()) { in getUser()
118 if (!mCurrentUserInfo.isRestricted()) { in getOwnerUserId()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileModel.java95 return mCurrentUserInfo.isRestricted(); in isCurrentUser()
103 if (mCurrentUserInfo.isRestricted()) { in getUser()
107 if (userInfo.isRestricted()) { in getUser()
118 if (!mCurrentUserInfo.isRestricted()) { in getOwnerUserId()
/packages/apps/Settings/src/com/android/settings/location/
DLocationEnabler.java105 mListener.onLocationModeChanged(mode, isRestricted()); in refreshLocationMode()
116 if (isRestricted()) { in setLocationEnabled()
136 return mode != Settings.Secure.LOCATION_MODE_OFF && !isRestricted(); in isEnabled()
172 private boolean isRestricted() { in isRestricted() method in LocationEnabler
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/system/
DDateTimeState.java88 final boolean isRestricted = isRestrictedProfileInEffect(); in onCreate()
90 mDatePref.setVisible(!isRestricted); in onCreate()
92 mTimePref.setVisible(!isRestricted); in onCreate()
95 mAutoDateTimePref.setVisible(!isRestricted); in onCreate()
97 mTimeZonePref.setVisible(!isRestricted); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DOemUnlockPreferenceController.java86 if (isRestricted()) { in getPreferenceSummary()
98 return !isRestricted() && !isBootloaderUnlocked() && isOemUnlockAllowedByUserAndCarrier(); in shouldEnableOemUnlockPreference()
104 private boolean isRestricted() { in isRestricted() method in OemUnlockPreferenceController
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DMessageNotificationViewHolder.java128 private void bindBody(AlertEntry alertEntry, boolean isInGroup, boolean isRestricted, in bindBody() argument
136 if (isRestricted) { in bindBody()
154 mBodyView.setCountTextAlpha(isRestricted ? mDisabledCountTextButtonAlpha : /* alpha= */ 1); in bindBody()
209 messageText = getMessageText(latestMessage, isRestricted, isHeadsUp, isGroupConversation, in bindBody()
234 if (!isRestricted && !isHeadsUp && messageStyleFlag) { in bindBody()
252 boolean isRestricted, boolean isHeadsUp, boolean isGroupConversation, in getMessageText() argument
276 if (isRestricted) { in getMessageText()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java101 final boolean isRestricted = SecurityFragment.isRestrictedProfileInEffect(getContext()); in onCreatePreferences()
104 datePref.setVisible(!isRestricted); in onCreatePreferences()
107 timePref.setVisible(!isRestricted); in onCreatePreferences()
118 autoDateTimePref.setVisible(!isRestricted); in onCreatePreferences()
121 timeZonePref.setVisible(!isRestricted); in onCreatePreferences()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointConfigUserStoreData.java213 XmlUtil.writeNextValue(out, XML_TAG_IS_RESTRICTED, provider.isRestricted()); in serializeProvider()
290 boolean isRestricted = false; in deserializeProvider()
333 isRestricted = (boolean) value; in deserializeProvider()
380 provider.setRestricted(isRestricted); in deserializeProvider()
385 if (isRestricted) { in deserializeProvider()
/packages/apps/Settings/src/com/android/settings/users/
DUserMetricsUtils.java36 if (userInfo.isRestricted()) { in getRemoveUserMetricCategory()
51 if (userInfo.isRestricted()) { in getSwitchUserMetricCategory()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserInfoCompat.java48 public boolean isRestricted() { in isRestricted() method in UserInfoCompat
49 return mUserInfo.isRestricted(); in isRestricted()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DEnableDisablePreferenceController.java59 if (isRestricted()) { in init()
142 boolean isRestricted() { in isRestricted() method in EnableDisablePreferenceController
164 if (mPreferenceCompat.isRestricted()) { in update()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DBaseActionItem.java89 public BaseActionItem setRestricted(boolean isRestricted) { in setRestricted() argument
90 mIsRestricted = isRestricted; in setRestricted()
DActionButtonInfo.java142 ActionButtonInfo setPreferenceRestricted(boolean isRestricted) { in setPreferenceRestricted() argument
143 mIsPreferenceRestricted = isRestricted; in setPreferenceRestricted()
/packages/services/Telephony/src/com/android/services/telephony/rcs/validator/
DRestrictedOutgoingSubscribeValidator.java63 boolean isRestricted = eventHeaders.stream().map(e -> e.second) in validate()
67 return isRestricted ? new ValidationResult( in validate()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java194 final boolean isRestricted = batteryTip instanceof RestrictAppTip; in onBatteryTipHandled()
195 if (isRestricted) { in onBatteryTipHandled()
205 preference.setChecked(isRestricted); in onBatteryTipHandled()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPermission.kt106 val isRestricted = constant
140 if (isRestricted) append(", Restricted") in <lambda>()
/packages/modules/Permission/framework-s/java/android/app/ecm/
DEnhancedConfirmationManager.java252 public boolean isRestricted(@NonNull String packageName, @NonNull String settingIdentifier) in isRestricted() method in EnhancedConfirmationManager
255 return mService.isRestricted(packageName, settingIdentifier, in isRestricted()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DAccessNetworkEvaluator.java447 && !mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WLAN)); in isIwlanAvailableWithoutRestrict()
452 && !mRestrictManager.isRestricted(AccessNetworkConstants.TRANSPORT_TYPE_WWAN)); in isCellularAvailableWithoutRestrict()
814 if (!mRestrictManager.isRestricted(otherTransportType)) { in onDataConnectionConnected()
1188 boolean isRestricted = mRestrictManager.isRestricted(transportType); in evaluateAvailability()
1208 if (isRestricted) { in evaluateAvailability()
1212 isRestricted = mRestrictManager.isRestrictedExceptGuarding(transportType); in evaluateAvailability()
1213 sb.append(" isRestrictedExceptGuarding:").append(isRestricted); in evaluateAvailability()
1215 sb.append(" isRestricted:").append(isRestricted); in evaluateAvailability()
1218 sb.append(" isRestricted:").append(isRestricted); in evaluateAvailability()
1220 if (!isRestricted) { in evaluateAvailability()

1234