/aosp12/packages/services/Car/car-lib/src/android/car/drivingstate/ |
H A D | CarUxRestrictionsConfiguration.java | 181 if (restrictions.isEmpty()) { in findUxRestrictionsInList() 185 if (restrictions.size() == 1 && restrictions.get(0).mSpeedRange == null) { in findUxRestrictionsInList() 187 return restrictions.get(0); in findUxRestrictionsInList() 289 if (restrictions.mSpeedRange != null) { in writeRestrictions() 510 .setRestrictions(restrictions); in readRestrictions() 859 if (restrictions.size() > 1 && restrictions.stream().anyMatch( in validateBaselineModeRestrictions() 871 Collections.sort(restrictions, in validateBaselineModeRestrictions() 906 if (restrictions.size() == 1) { in validateRangeOfSpeed() 918 float lastMaxSpeed = restrictions.get(restrictions.size() - 1).mSpeedRange.mMaxSpeed; in validateRangeOfSpeed() 1064 mRestrictions = restrictions; in setRestrictions() [all …]
|
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/ |
H A D | CarDrivingRestrictionsTest.java | 91 CarUxRestrictions restrictions; in testDrivingStateChange() local 139 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange() 140 assertNotNull(restrictions); in testDrivingStateChange() 155 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange() 156 assertNotNull(restrictions); in testDrivingStateChange() 158 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChange() 181 CarUxRestrictions restrictions; in testDrivingStateChangeForMalformedInputs() local 241 assertNotNull(restrictions); in testDrivingStateChangeForMalformedInputs() 243 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChangeForMalformedInputs() 305 + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged() [all …]
|
H A D | CarUxRestrictionsManagerServiceTest.java | 334 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(unknownDisplayId); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() local 339 assertTrue(restrictions.toString(), expected.isSameRestrictions(restrictions)); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() 367 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(virtualDisplayId); in testGetCurrentUxRestrictions_UnreportedVirtualDisplay_UseDefaultDisplayRestriction() local 372 assertTrue(restrictions.toString(), expected.isSameRestrictions(restrictions)); in testGetCurrentUxRestrictions_UnreportedVirtualDisplay_UseDefaultDisplayRestriction() 428 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(virtualDisplayId); in testGetCurrentUxRestrictions_ReportedVirtualDisplay_ReturnsRestrictionsForPort() local 433 assertTrue(restrictions.toString(), expected.isSameRestrictions(restrictions)); in testGetCurrentUxRestrictions_ReportedVirtualDisplay_ReturnsRestrictionsForPort() 673 private CarUxRestrictionsConfiguration createMovingConfig(Integer port, int restrictions) { in createMovingConfig() argument 680 drivingStateRestrictions.setDistractionOptimizationRequired(restrictions != 0); in createMovingConfig() 681 drivingStateRestrictions.setRestrictions(restrictions); in createMovingConfig()
|
/aosp12/art/compiler/optimizing/ |
H A D | loop_optimization.cc | 366 return (restrictions & tested) != 0; in HasVectorRestrictions() 1316 uint64_t restrictions = kNone; in VectorizeDef() local 1330 restrictions |= kNoHiBits; in VectorizeDef() 1618 *restrictions |= kNoDiv | in TrySetVectorType() 1626 *restrictions |= kNoDiv | in TrySetVectorType() 1656 *restrictions |= kNoDiv; in TrySetVectorType() 1660 *restrictions |= kNoDiv; in TrySetVectorType() 1663 *restrictions |= kNoDiv; in TrySetVectorType() 1687 *restrictions |= kNoMul | in TrySetVectorType() 1697 *restrictions |= kNoDiv | in TrySetVectorType() [all …]
|
H A D | loop_optimization.h | 187 uint64_t restrictions); 189 bool TrySetVectorType(DataType::Type type, /*out*/ uint64_t* restrictions); 219 uint64_t restrictions); 224 uint64_t restrictions); 229 uint64_t restrictions); 234 uint64_t restrictions);
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | RestrictionsSet.java | 63 public RestrictionsSet(@UserIdInt int userId, @NonNull Bundle restrictions) { in RestrictionsSet() argument 64 if (restrictions.isEmpty()) { in RestrictionsSet() 67 mUserRestrictions.put(userId, restrictions); in RestrictionsSet() 76 public boolean updateRestrictions(@UserIdInt int userId, @Nullable Bundle restrictions) { in updateRestrictions() argument 78 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions() 82 if (!BundleUtils.isEmpty(restrictions)) { in updateRestrictions() 83 mUserRestrictions.put(userId, restrictions); in updateRestrictions() 217 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions() local 218 restrictionsSet.updateRestrictions(userId, restrictions); in readRestrictions()
|
H A D | UserTypeFactory.java | 163 final Bundle restrictions = new Bundle(); in getDefaultTypeProfileTest() local 164 restrictions.putBoolean(UserManager.DISALLOW_FUN, true); in getDefaultTypeProfileTest() 186 .setDefaultRestrictions(restrictions); in getDefaultTypeProfileTest() 263 final Bundle restrictions = new Bundle(); in getDefaultSecondaryUserRestrictions() local 265 restrictions.putBoolean(UserManager.DISALLOW_SMS, true); in getDefaultSecondaryUserRestrictions() 266 return restrictions; in getDefaultSecondaryUserRestrictions() 275 return restrictions; in getDefaultGuestUserRestrictions() 279 final Bundle restrictions = new Bundle(); in getDefaultManagedProfileRestrictions() local 280 restrictions.putBoolean(UserManager.DISALLOW_WALLPAPER, true); in getDefaultManagedProfileRestrictions() 281 return restrictions; in getDefaultManagedProfileRestrictions() [all …]
|
H A D | UserRestrictionsUtils.java | 341 if (restrictions == null) { in writeRestrictions() 346 for (String key : restrictions.keySet()) { in writeRestrictions() 351 if (restrictions.getBoolean(key)) { in writeRestrictions() 366 restrictions.clear(); in readRestrictions() 370 restrictions.putBoolean(key, true); in readRestrictions() 808 if (restrictions != null) { in dumpRestrictions() 809 for (String key : restrictions.keySet()) { in dumpRestrictions() 810 if (restrictions.getBoolean(key, false)) { in dumpRestrictions() 843 String... restrictions) { in restrictionsChanged() argument 844 if (restrictions.length == 0) { in restrictionsChanged() [all …]
|
H A D | UserManagerService.java | 1992 if (restrictions == null) { in updateLocalRestrictionsForTargetUsersLR() 2052 return restrictions; in getEffectiveUserRestrictions() 2073 if (restrictions != null && restrictions.getBoolean(restrictionKey)) { in hasUserRestrictionOnAnyUser() 3024 if (!restrictions.isEmpty()) { in fallbackToSingleUserLP() 3027 restrictions); in fallbackToSingleUserLP() 4471 if (restrictions != null) { in setApplicationRestrictions() 4476 if (restrictions == null || restrictions.isEmpty()) { in setApplicationRestrictions() 4524 return restrictions; in readApplicationRestrictionsLAr() 4535 return restrictions; in readApplicationRestrictionsLAr() 4545 return restrictions; in readApplicationRestrictionsLAr() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | RestrictionsSetTest.java | 48 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_addRestrictions() local 50 assertTrue(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_addRestrictions() 52 assertRestrictions(restrictions, mRestrictionsSet.getRestrictions(originatingUserId)); in testUpdateRestrictions_addRestrictions() 57 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_removeRestrictions() local 58 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_removeRestrictions() 67 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_noChange() local 68 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_noChange() 70 assertFalse(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_noChange()
|
H A D | UserManagerServiceUserTypeTest.java | 74 final Bundle restrictions = makeRestrictionsBundle("r1", "r2"); in testUserTypeBuilder_createUserType() local 95 .setDefaultRestrictions(restrictions) in testUserTypeBuilder_createUserType() 111 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType() 112 assertNotSame(restrictions, type.getDefaultRestrictions()); in testUserTypeBuilder_createUserType() 250 final Bundle restrictions = makeRestrictionsBundle("no_config_vpn", "no_config_tethering"); in testUserTypeFactoryCustomize_profile() local 256 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_profile() 263 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_profile() 314 final Bundle restrictions = makeRestrictionsBundle("no_config_vpn", "no_config_tethering"); in testUserTypeFactoryCustomize_full() local 319 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_full() 447 public static Bundle makeRestrictionsBundle(String ... restrictions) { in makeRestrictionsBundle() argument [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/users/ |
H A D | AppRestrictionsFragment.java | 138 private ArrayList<RestrictionEntry> restrictions; field in AppRestrictionsFragment.AppRestrictionsPreference 154 this.restrictions = restrictions; in setRestrictions() 166 return restrictions; in getRestrictions() 467 p.setRestrictions(restrictions); in addLocationAppRestrictionsPreference() 517 && pref.restrictions == null) { in onClick() 541 if (restrictions != null) { in onPreferenceChange() 542 for (RestrictionEntry entry : restrictions) { in onPreferenceChange() 644 preference.setRestrictions(restrictions); in onReceive() 684 ArrayList<RestrictionEntry> restrictions) { in onRestrictionsReceived() argument 689 for (RestrictionEntry entry : restrictions) { in onRestrictionsReceived() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
H A D | CoexManagerTest.java | 211 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannels_nonNullChannels_returnedInGetters() 214 assertThat(coexManager.getCoexRestrictions()).isEqualTo(restrictions); in testSetCoexUnsafeChannels_nonNullChannels_returnedInGetters() 229 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannels_nullChannels_setsEmptySet() 234 assertThat(coexManager.getCoexRestrictions()).isEqualTo(restrictions); in testSetCoexUnsafeChannels_nullChannels_setsEmptySet() 249 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannels_undefinedRestrictions_setsEmptySet() 254 assertThat(coexManager.getCoexRestrictions()).isEqualTo(restrictions); in testSetCoexUnsafeChannels_undefinedRestrictions_setsEmptySet() 268 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testSetCoexUnsafeChannels_notifiesWifiVendorHal() 290 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testRegisteredCoexListener_setCoexUnsafeChannels_listenerIsNotified() 315 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testUnregisteredCoexListener_setCoexUnsafeChannels_listenerIsNotNotified() 343 coexManager.setCoexUnsafeChannels(unsafeChannels, restrictions); in testRegisteredRemoteCoexCallback_setCoexUnsafeChannels_callbackIsNotified() [all …]
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarUxRestrictionsConfigurationXmlParser.java | 239 DrivingStateRestrictions restrictions = parseRestrictions(parser, attrs); in parseAllRestrictions() local 240 if (restrictions == null) { in parseAllRestrictions() 244 restrictions.setSpeedRange(speedRange); in parseAllRestrictions() 247 Slog.d(TAG, "Map " + drivingState + " : " + restrictions); in parseAllRestrictions() 252 && restrictions != null) { in parseAllRestrictions() 253 getCurrentBuilder().setUxRestrictions(drivingState, restrictions); in parseAllRestrictions() 273 int restrictions = UX_RESTRICTIONS_UNKNOWN; in parseRestrictions() local 280 restrictions = a.getInt( in parseRestrictions() 295 .setRestrictions(restrictions) in parseRestrictions()
|
H A D | CarUxRestrictionsManagerService.java | 421 CarUxRestrictions restrictions; in getCurrentUxRestrictions() local 427 restrictions = mCurrentUxRestrictions.get(getPhysicalPortLocked(displayId)); in getCurrentUxRestrictions() 429 if (restrictions == null) { in getCurrentUxRestrictions() 432 restrictions = createFullyRestrictedRestrictions(); in getCurrentUxRestrictions() 434 return restrictions; in getCurrentUxRestrictions() 694 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump() local 695 writer.printf("Port: 0x%02X UXR: %s\n", port, restrictions.toString()); in dump() 880 CarUxRestrictions restrictions = displayRestrictions.get(cookie.mPhysicalPort); in dispatchRestrictionsToClients() 881 if (restrictions == null) { in dispatchRestrictionsToClients() 886 callback.onUxRestrictionsChanged(restrictions); in dispatchRestrictionsToClients() [all …]
|
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/ |
H A D | DialpadRestrictionViewModel.java | 133 private DialpadUxrMode evaluateDialpadMode(CarUxRestrictions restrictions, String phoneNumber) { in evaluateDialpadMode() argument 134 return (restrictions.getActiveRestrictions() & UX_RESTRICTIONS_NO_DIALPAD) == 0 in evaluateDialpadMode() 152 private void onUxRestrictionsChanged(CarUxRestrictions restrictions) { in onUxRestrictionsChanged() argument 153 mDialPadMode.setValue(evaluateDialpadMode(restrictions, mCurrentPhoneNumber)); in onUxRestrictionsChanged()
|
/aosp12/frameworks/base/services/restrictions/ |
H A D | Android.bp | 11 name: "services.restrictions-sources", 18 name: "services.restrictions", 20 srcs: [":services.restrictions-sources"],
|
/aosp12/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/ |
H A D | ConfigurationDialogFragment.java | 102 void onUxRestrictionsSelected(int restrictions); in onUxRestrictionsSelected() argument 196 restrictions -> mBaselineRestrictions = restrictions); in instantiateItem() 200 restrictions -> mPassengerRestrictions = restrictions); in instantiateItem()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
H A D | AppRestrictionsFragment.java | 158 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { in setRestrictions() argument 159 this.mRestrictions = restrictions; in setRestrictions() 508 RestrictionEntry locationRestriction = restrictions.get(0); in addLocationAppRestrictionsPreference() 510 p.setRestrictions(restrictions); in addLocationAppRestrictionsPreference() 622 if (restrictions != null) { in onPreferenceChange() 623 for (RestrictionEntry entry : restrictions) { in onPreferenceChange() 695 if (restrictions != null && restrictionsIntent == null) { in onReceive() 696 onRestrictionsReceived(mPreference, restrictions); in onReceive() 717 ArrayList<RestrictionEntry> restrictions) { in onRestrictionsReceived() argument 723 for (RestrictionEntry entry : restrictions) { in onRestrictionsReceived() [all …]
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
H A D | SinglePaneBaseCarSettingsActivityTest.java | 69 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_fragmentHasUpdatedUxRestrictions() local 76 mActivity.onUxRestrictionsChanged(restrictions); in onUxRestrictionsChanged_fragmentHasUpdatedUxRestrictions() 81 .isSameRestrictions(restrictions)).isTrue(); in onUxRestrictionsChanged_fragmentHasUpdatedUxRestrictions()
|
/aosp12/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AudioRestrictionManager.java | 155 final SparseArray<Restriction> restrictions = mZenModeAudioRestrictions.valueAt(o); in dump() local 156 for (int i = 0; i < restrictions.size(); i++) { in dump() 162 final int usage = restrictions.keyAt(i); in dump() 165 Restriction r = restrictions.valueAt(i); in dump()
|
/aosp12/frameworks/base/core/java/android/content/ |
H A D | RestrictionsManager.java | 32 import android.service.restrictions.RestrictionsReceiver; 564 ArrayList<RestrictionEntry> restrictions = new ArrayList<>(); in loadManifestRestrictions() local 573 restrictions.add(restriction); in loadManifestRestrictions() 586 return restrictions; in loadManifestRestrictions() 722 RestrictionEntry[] restrictions = entry.getRestrictions(); in addRestrictionToBundle() local 723 Bundle childBundle = convertRestrictionsToBundle(Arrays.asList(restrictions)); in addRestrictionToBundle()
|
/aosp12/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/auth/ |
H A D | TokenPayload.java | 32 private HashMap<String, Boolean> restrictions; field in TokenPayload 43 return restrictions; in getRestrictions()
|
/aosp12/frameworks/base/cmds/incidentd/src/ |
H A D | PrivacyFilter.cpp | 126 FieldStripper(const Privacy* restrictions, const sp<ProtoReader>& data, 172 FieldStripper::FieldStripper(const Privacy* restrictions, const sp<ProtoReader>& data, in FieldStripper() argument 174 :mRestrictions(restrictions), in FieldStripper() 252 PrivacyFilter::PrivacyFilter(int sectionId, const Privacy* restrictions) in PrivacyFilter() argument 254 mRestrictions(restrictions), in PrivacyFilter()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DpmTestUtils.java | 62 public static RestrictionsSet newRestrictions(int userId, String... restrictions) { in newRestrictions() argument 63 Bundle localRestrictionsBundle = newRestrictions(restrictions); in newRestrictions() 69 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() argument 71 for (String restriction : restrictions) { in newRestrictions()
|