Home
last modified time | relevance | path

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

/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java181 List<RestrictionsPerSpeedRange> restrictions) { in findUxRestrictionsInList() argument
182 if (restrictions.isEmpty()) { in findUxRestrictionsInList()
186 if (restrictions.size() == 1 && restrictions.get(0).mSpeedRange == null) { in findUxRestrictionsInList()
188 return restrictions.get(0); in findUxRestrictionsInList()
191 for (RestrictionsPerSpeedRange r : restrictions) { in findUxRestrictionsInList()
287 for (RestrictionsPerSpeedRange restrictions : messages) { in writeRestrictionsList()
288 writeRestrictions(writer, restrictions); in writeRestrictionsList()
293 private void writeRestrictions(JsonWriter writer, RestrictionsPerSpeedRange restrictions) in writeRestrictions() argument
296 writer.name(JSON_NAME_REQ_OPT).value(restrictions.mReqOpt); in writeRestrictions()
297 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.java215 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(/* displayId= */ 10); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() local
220 assertTrue(restrictions.toString(), expected.isSameRestrictions(restrictions)); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions()
/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/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/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()
292 .setRestrictions(restrictions) in parseRestrictions()
DCarUxRestrictionsManagerService.java381 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions() local
382 if (restrictions == null) { in getCurrentUxRestrictions()
386 restrictions = createFullyRestrictedRestrictions(); in getCurrentUxRestrictions()
388 return restrictions; in getCurrentUxRestrictions()
601 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump() local
602 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/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java197 private void handleUxRChange(CarUxRestrictions restrictions) { in handleUxRChange() argument
198 if (restrictions == null) { in handleUxRChange()
201 if (!restrictions.isRequiresDistractionOptimization()) { in handleUxRChange()
DCarPackageManagerService.java927 List<String> restrictions = new ArrayList<>(mUxRestrictionsListeners.size()); in dump() local
931 restrictions.add(String.format("Display %d is %s", in dump()
934 writer.println("Display Restrictions:\n" + String.join("\n", restrictions)); in dump()
1361 public void onUxRestrictionsChanged(CarUxRestrictions restrictions) { in onUxRestrictionsChanged() argument
1364 + restrictions.isRequiresDistractionOptimization() in onUxRestrictionsChanged()
1365 + " : " + restrictions.getActiveRestrictions()); in onUxRestrictionsChanged()
1375 mCurrentUxRestrictions = new CarUxRestrictions(restrictions); in onUxRestrictionsChanged()
/packages/apps/Launcher3/src/com/android/launcher3/
DSecondaryDropTarget.java126 Bundle restrictions = userManager.getUserRestrictions(info.user); in supportsAccessibilityDrop() local
127 uninstallDisabled = restrictions.getBoolean(UserManager.DISALLOW_APPS_CONTROL, false) in supportsAccessibilityDrop()
128 || restrictions.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS, false); in supportsAccessibilityDrop()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java504 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline() local
505 assertTrue(restrictions.isRequiresDistractionOptimization()); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
506 assertEquals(UX_RESTRICTIONS_NO_VIDEO, restrictions.getActiveRestrictions()); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
508 assertTrue(restrictions.isSameRestrictions( in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java132 public void onUxRestrictionsChanged(CarUxRestrictions restrictions) {
133 if (restrictions == null) {
137 (restrictions.getActiveRestrictions()
/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_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Den_wordlist.combined.gz
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...