Home
last modified time | relevance | path

Searched refs:restrictions (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java180 List<RestrictionsPerSpeedRange> restrictions) { in findUxRestrictionsInList() argument
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()
190 for (RestrictionsPerSpeedRange r : restrictions) { in findUxRestrictionsInList()
278 for (RestrictionsPerSpeedRange restrictions : messages) { in writeRestrictionsList()
279 writeRestrictions(writer, restrictions); in writeRestrictionsList()
284 private void writeRestrictions(JsonWriter writer, RestrictionsPerSpeedRange restrictions) in writeRestrictions() argument
287 writer.name(JSON_NAME_REQ_OPT).value(restrictions.mReqOpt); in writeRestrictions()
288 writer.name(JSON_NAME_RESTRICTIONS).value(restrictions.mRestrictions); in writeRestrictions()
[all …]
DCarUxRestrictions.java180 public Builder(boolean reqOpt, @CarUxRestrictionsInfo int restrictions, long time) { in Builder() argument
182 mActiveRestrictions = restrictions; in Builder()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java90 CarUxRestrictions restrictions; in testDrivingStateChange() local
138 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange()
139 assertNotNull(restrictions); in testDrivingStateChange()
140 assertTrue(restrictions.isRequiresDistractionOptimization()); in testDrivingStateChange()
141 assertThat(restrictions.getActiveRestrictions()).isEqualTo(UX_RESTRICTIONS_MOVING); in testDrivingStateChange()
154 restrictions = listener.waitForUxRestrictionsChange(); in testDrivingStateChange()
155 assertNotNull(restrictions); in testDrivingStateChange()
156 assertFalse(restrictions.isRequiresDistractionOptimization()); in testDrivingStateChange()
157 assertThat(restrictions.getActiveRestrictions()) in testDrivingStateChange()
180 CarUxRestrictions restrictions; in testDrivingStateChangeForMalformedInputs() local
[all …]
DCarUxRestrictionsManagerServiceTest.java304 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(/* displayId= */ 10); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() local
309 assertTrue(restrictions.toString(), expected.isSameRestrictions(restrictions)); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions()
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java136 private ArrayList<RestrictionEntry> restrictions; field in AppRestrictionsFragment.AppRestrictionsPreference
151 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { in setRestrictions() argument
152 this.restrictions = restrictions; in setRestrictions()
164 return restrictions; in getRestrictions()
455 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( in addLocationAppRestrictionsPreference() local
457 RestrictionEntry locationRestriction = restrictions.get(0); in addLocationAppRestrictionsPreference()
459 p.setRestrictions(restrictions); in addLocationAppRestrictionsPreference()
503 pref.restrictions.get(0).setSelectedState(pref.isChecked()); in onClick()
504 RestrictionUtils.setRestrictions(getActivity(), pref.restrictions, mUser); in onClick()
509 && pref.restrictions == null) { in onClick()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAppRestrictionsFragment.java136 private ArrayList<RestrictionEntry> restrictions; field in AppRestrictionsFragment.AppRestrictionsPreference
151 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { in setRestrictions() argument
152 this.restrictions = restrictions; in setRestrictions()
164 return restrictions; in getRestrictions()
455 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( in addLocationAppRestrictionsPreference() local
457 RestrictionEntry locationRestriction = restrictions.get(0); in addLocationAppRestrictionsPreference()
459 p.setRestrictions(restrictions); in addLocationAppRestrictionsPreference()
503 pref.restrictions.get(0).setSelectedState(pref.isChecked()); in onClick()
504 RestrictionUtils.setRestrictions(getActivity(), pref.restrictions, mUser); in onClick()
509 && pref.restrictions == null) { in onClick()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParser.java238 DrivingStateRestrictions restrictions = parseRestrictions(parser, attrs); in parseAllRestrictions() local
239 if (restrictions == null) { in parseAllRestrictions()
243 restrictions.setSpeedRange(speedRange); in parseAllRestrictions()
246 Log.d(TAG, "Map " + drivingState + " : " + restrictions); in parseAllRestrictions()
251 && restrictions != null) { in parseAllRestrictions()
252 getCurrentBuilder().setUxRestrictions(drivingState, restrictions); in parseAllRestrictions()
272 int restrictions = UX_RESTRICTIONS_UNKNOWN; in parseRestrictions() local
279 restrictions = a.getInt( in parseRestrictions()
294 .setRestrictions(restrictions) in parseRestrictions()
DCarUxRestrictionsManagerService.java402 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions() local
403 if (restrictions == null) { in getCurrentUxRestrictions()
407 restrictions = createFullyRestrictedRestrictions(); in getCurrentUxRestrictions()
409 return restrictions; in getCurrentUxRestrictions()
705 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump() local
706 writer.printf("Port: 0x%02X UXR: %s\n", port, restrictions.toString()); in dump()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java158 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { in setRestrictions() argument
159 this.mRestrictions = restrictions; in setRestrictions()
506 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( in addLocationAppRestrictionsPreference() local
508 RestrictionEntry locationRestriction = restrictions.get(0); in addLocationAppRestrictionsPreference()
510 p.setRestrictions(restrictions); in addLocationAppRestrictionsPreference()
621 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions(); in onPreferenceChange() local
622 if (restrictions != null) { in onPreferenceChange()
623 for (RestrictionEntry entry : restrictions) { in onPreferenceChange()
648 RestrictionsManager.convertRestrictionsToBundle(restrictions), in onPreferenceChange()
691 final ArrayList<RestrictionEntry> restrictions = results != null in onReceive() local
[all …]
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DConfigurationDialogFragment.java102 void onUxRestrictionsSelected(int restrictions); in onUxRestrictionsSelected() argument
196 restrictions -> mBaselineRestrictions = restrictions); in instantiateItem()
200 restrictions -> mPassengerRestrictions = restrictions); in instantiateItem()
DMainActivity.java133 private void updateUxRText(CarUxRestrictions restrictions) { in updateUxRText() argument
135 restrictions.isRequiresDistractionOptimization() in updateUxRText()
140 + Integer.toHexString(restrictions.getActiveRestrictions()) in updateUxRText()
142 + Integer.toBinaryString(restrictions.getActiveRestrictions())); in updateUxRText()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItem.java240 /* package */ void setCarUxRestrictions(CarUxRestrictions restrictions) { in setCarUxRestrictions() argument
242 mCurrentRestrictions = restrictions; in setCarUxRestrictions()
515 @CarUxRestrictions.CarUxRestrictionsInfo int restrictions) { in setUxRestrictions()
516 mUxRestrictions = restrictions; in setUxRestrictions()
DMenuItemRenderer.java86 void setCarUxRestrictions(CarUxRestrictions restrictions) { in setCarUxRestrictions() argument
87 mMenuItem.setCarUxRestrictions(restrictions); in setCarUxRestrictions()
DToolbarControllerImpl.java113 mOnUxRestrictionsChangedListener = restrictions -> {
115 renderer.setCarUxRestrictions(restrictions);
/packages/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java228 private void handleUxRChange(CarUxRestrictions restrictions) { in handleUxRChange() argument
229 if (restrictions == null) { in handleUxRChange()
232 if (!restrictions.isRequiresDistractionOptimization()) { in handleUxRChange()
DCarPackageManagerService.java915 List<String> restrictions = new ArrayList<>(mUxRestrictionsListeners.size()); in dump() local
919 restrictions.add(String.format("Display %d is %s", in dump()
922 writer.println("Display Restrictions:\n" + String.join("\n", restrictions)); in dump()
1348 public void onUxRestrictionsChanged(CarUxRestrictions restrictions) { in onUxRestrictionsChanged() argument
1351 + restrictions.isRequiresDistractionOptimization() in onUxRestrictionsChanged()
1352 + " : " + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
1362 mCurrentUxRestrictions = new CarUxRestrictions(restrictions); in onUxRestrictionsChanged()
/packages/apps/Launcher3/src/com/android/launcher3/
DSecondaryDropTarget.java128 Bundle restrictions = userManager.getUserRestrictions(info.user); in supportsAccessibilityDrop() local
129 uninstallDisabled = restrictions.getBoolean(UserManager.DISALLOW_APPS_CONTROL, false) in supportsAccessibilityDrop()
130 || restrictions.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS, false); in supportsAccessibilityDrop()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java132 public void onUxRestrictionsChanged(CarUxRestrictions restrictions) {
133 if (restrictions == null) {
137 (restrictions.getActiveRestrictions()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java578 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline() local
579 assertTrue(restrictions.isRequiresDistractionOptimization()); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
580 assertEquals(UX_RESTRICTIONS_NO_VIDEO, restrictions.getActiveRestrictions()); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
582 assertTrue(restrictions.isSameRestrictions( in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarHeadsUpNotificationManager.java762 public void onUxRestrictionsChanged(CarUxRestrictions restrictions) { in onUxRestrictionsChanged() argument
764 (restrictions.getActiveRestrictions() in onUxRestrictionsChanged()
/packages/apps/Settings/tests/uitests/assets/
Dsearch_results_list135 Custom restrictions;zen_mode_block_settings_page
/packages/apps/TV/res/raw/
Dthird_party_licenses2894 To protect your rights, we need to make restrictions that forbid
2896 rights. These restrictions translate to certain responsibilities for
3187 restrictions of other proprietary libraries that do not normally
3229 restrictions on the recipients' exercise of the rights granted herein.
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/
Dthird_party_licenses10991 purpose, however, refer to the Unisys LZW patent for restrictions on use of
11828 fall under the restrictions of Paragraphs 3 and 4, provided that you do
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...

12