Home
last modified time | relevance | path

Searched refs:CarUxRestrictions (Results 1 – 25 of 264) sorted by relevance

1234567891011

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java27 import android.car.drivingstate.CarUxRestrictions;
64 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters()
75 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState()
78 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState()
80 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingNonMovingState()
88 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
90 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_NoSpeedRange()
99 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
101 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_SingleSpeedRange()
110 CarUxRestrictions slow = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_MultiSpeedRange()
[all …]
DCarDrivingRestrictionsTest.java28 import android.car.drivingstate.CarUxRestrictions;
52 private static final int UX_RESTRICTIONS_MOVING = CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD
53 | CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING
54 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH
55 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD
56 | CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO
57 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT
58 | CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP
59 | CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE;
90 CarUxRestrictions restrictions; in testDrivingStateChange()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DBaseCarSettingsActivityTest.java27 import android.car.drivingstate.CarUxRestrictions;
64 CarUxRestrictions noSetupRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp()
65 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* time= */ 0).build(); in setUp()
133 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions()
135 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions()
139 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions()
141 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions()
159 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
161 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
165 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
[all …]
DPreferenceControllerTest.java33 import android.car.drivingstate.CarUxRestrictions;
60 private static final CarUxRestrictions LIMIT_STRINGS_UX_RESTRICTIONS =
61 new CarUxRestrictions.Builder(/* reqOpt= */ true,
62 CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, /* timestamp= */
64 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS =
65 new CarUxRestrictions.Builder(/* reqOpt= */ true,
66 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build();
68 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS =
69 new CarUxRestrictions.Builder(/* reqOpt= */ true,
70 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build();
[all …]
DPreferenceControllerTestHelper.java33 import android.car.drivingstate.CarUxRestrictions;
54 private static final CarUxRestrictions UX_RESTRICTIONS =
55 new CarUxRestrictions.Builder(/* reqOpt= */ true,
56 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build();
79 ClassParameter.from(CarUxRestrictions.class, UX_RESTRICTIONS)); in PreferenceControllerTestHelper()
DPreferenceControllerListHelperTest.java24 import android.car.drivingstate.CarUxRestrictions;
43 private static final CarUxRestrictions UX_RESTRICTIONS =
44 new CarUxRestrictions.Builder(/* reqOpt= */ true,
45 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build();
/packages/apps/Car/libs/car-apps-common/tests/robotests/src/com/android/car/apps/common/
DCarUxRestrictionsUtilTest.java21 import android.car.drivingstate.CarUxRestrictions;
37 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, in setUp()
38 CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
39 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD in setUp()
40 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
41 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED in setUp()
47 CarUxRestrictions activeRestrictions = null; in testNullActiveRestriction()
58 CarUxRestrictions activeRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */true, in testOneActiveRestriction()
59 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, /* timestamp= */0).build(); in testOneActiveRestriction()
70 CarUxRestrictions activeRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */true, in testMultipleActiveRestrictions()
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/utils/
DCarUxRestrictionsUtilTest.java21 import android.car.drivingstate.CarUxRestrictions;
37 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, in setUp()
38 CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
39 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD in setUp()
40 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
41 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED in setUp()
47 CarUxRestrictions activeRestrictions = null; in testNullActiveRestriction()
58 CarUxRestrictions activeRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */true, in testOneActiveRestriction()
59 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, /* timestamp= */0).build(); in testOneActiveRestriction()
70 CarUxRestrictions activeRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */true, in testMultipleActiveRestrictions()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictions.java64 public final class CarUxRestrictions implements Parcelable { class
216 public CarUxRestrictions build() { in build()
217 return new CarUxRestrictions(this); in build()
336 public static final Parcelable.Creator<CarUxRestrictions> CREATOR =
337 new Parcelable.Creator<CarUxRestrictions>() {
339 public CarUxRestrictions createFromParcel(Parcel in) {
340 return new CarUxRestrictions(in);
344 public CarUxRestrictions[] newArray(int size) {
345 return new CarUxRestrictions[size];
349 public CarUxRestrictions(CarUxRestrictions uxRestrictions) { in CarUxRestrictions() method in CarUxRestrictions
[all …]
DCarUxRestrictionsManager.java90 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo); in onUxRestrictionsChanged()
182 public CarUxRestrictions getCurrentCarUxRestrictions() { in getCurrentCarUxRestrictions()
190 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions()
310 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
325 private void handleUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in handleUxRestrictionsChanged()
347 mgr.dispatchUxRChangeToClient((CarUxRestrictions) msg.obj); in handleMessage()
358 private void dispatchUxRChangeToClient(CarUxRestrictions restrictionInfo) { in dispatchUxRChangeToClient()
DCarUxRestrictionsConfiguration.java114 public CarUxRestrictions getUxRestrictions( in getUxRestrictions()
130 public CarUxRestrictions getUxRestrictions(@CarDrivingState int drivingState, in getUxRestrictions()
198 private CarUxRestrictions createDefaultUxRestrictionsEvent() { in createDefaultUxRestrictionsEvent()
200 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in createDefaultUxRestrictionsEvent()
206 private CarUxRestrictions createUxRestrictionsEvent(boolean requiresOpt, in createUxRestrictionsEvent()
207 @CarUxRestrictions.CarUxRestrictionsInfo int uxr) { in createUxRestrictionsEvent()
211 if (uxr != CarUxRestrictions.UX_RESTRICTIONS_BASELINE) { in createUxRestrictionsEvent()
214 CarUxRestrictions.Builder builder = new CarUxRestrictions.Builder(requiresOpt, uxr, in createUxRestrictionsEvent()
478 int restrictions = CarUxRestrictions.UX_RESTRICTIONS_BASELINE; in readRestrictions()
727 @CarUxRestrictions.CarUxRestrictionsInfo int restrictions) { in setUxRestrictions()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java18 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH;
22 import android.car.drivingstate.CarUxRestrictions;
23 import android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo;
51 private CarUxRestrictions mCarUxRestrictions = getDefaultRestrictions();
87 private static CarUxRestrictions getDefaultRestrictions() { in getDefaultRestrictions()
88 return new CarUxRestrictions.Builder( in getDefaultRestrictions()
89 true, CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, 0) in getDefaultRestrictions()
96 void onRestrictionsChanged(@NonNull CarUxRestrictions carUxRestrictions); in onRestrictionsChanged()
125 public CarUxRestrictions getCurrentRestrictions() { in getCurrentRestrictions()
134 @CarUxRestrictionsInfo int restrictionFlags, @Nullable CarUxRestrictions uxr) { in isRestricted()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DCarUxRestrictionsUtil.java18 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH;
22 import android.car.drivingstate.CarUxRestrictions;
23 import android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo;
50 private CarUxRestrictions mCarUxRestrictions = getDefaultRestrictions();
87 private CarUxRestrictions getDefaultRestrictions() { in getDefaultRestrictions()
88 return new CarUxRestrictions.Builder(true, in getDefaultRestrictions()
89 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, 0).build(); in getDefaultRestrictions()
99 void onRestrictionsChanged(@NonNull CarUxRestrictions carUxRestrictions); in onRestrictionsChanged()
135 @Nullable CarUxRestrictions uxr) { in isRestricted()
143 public static String complyString(Context context, String str, CarUxRestrictions uxr) { in complyString()
DUxrButton.java20 import android.car.drivingstate.CarUxRestrictions;
45 private CarUxRestrictions mActiveCarUxRestrictions;
48 @CarUxRestrictions.CarUxRestrictionsInfo
93 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in init()
137 private void updateActiveCarUxRestrictions(CarUxRestrictions carUxRestrictions) { in updateActiveCarUxRestrictions()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java33 import android.car.drivingstate.CarUxRestrictions;
144 private Map<Byte, CarUxRestrictions> mCurrentUxRestrictions;
401 public synchronized CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions()
402 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions()
416 public synchronized CarUxRestrictions getCurrentUxRestrictions() { in getCurrentUxRestrictions()
689 public void dispatchEventToClients(CarUxRestrictions event) { in dispatchEventToClients()
705 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump()
816 Map<Byte, CarUxRestrictions> newUxRestrictions = new HashMap<>(); in handleDispatchUxRestrictions()
823 CarUxRestrictions uxRestrictions = config.getUxRestrictions( in handleDispatchUxRestrictions()
844 CarUxRestrictions uxRestrictions = newUxRestrictions.get(port); in handleDispatchUxRestrictions()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItem.java18 import android.car.drivingstate.CarUxRestrictions;
57 @CarUxRestrictions.CarUxRestrictionsInfo
60 private CarUxRestrictions mCurrentRestrictions;
212 public void setUxRestrictions(@CarUxRestrictions.CarUxRestrictionsInfo int uxRestrictions) { in setUxRestrictions()
219 @CarUxRestrictions.CarUxRestrictionsInfo
240 /* package */ void setCarUxRestrictions(CarUxRestrictions restrictions) { in setCarUxRestrictions()
332 @CarUxRestrictions.CarUxRestrictionsInfo
333 private int mUxRestrictions = CarUxRestrictions.UX_RESTRICTIONS_BASELINE;
515 @CarUxRestrictions.CarUxRestrictionsInfo int restrictions) { in setUxRestrictions()
553 setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP); in setToSettings()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DBaseTestActivity.java19 import android.car.drivingstate.CarUxRestrictions;
41 private CarUxRestrictions mRestrictionInfo = new CarUxRestrictions.Builder(/* reqOpt= */ true,
42 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build();
105 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions()
109 public void setCarUxRestrictions(CarUxRestrictions restrictionInfo) { in setCarUxRestrictions()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java23 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE;
24 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED;
25 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO;
29 import android.car.drivingstate.CarUxRestrictions;
97 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
101 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
578 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
597 CarUxRestrictions passenger = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode()
601 CarUxRestrictions baseline = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode()
615 CarUxRestrictions passenger = config.getUxRestrictions( in testGetUxRestrictions_WithUndefinedMode_FallbackToBaseline()
[all …]
/packages/services/Car/car-lib/api/
Dcurrent.txt296 public final class CarUxRestrictions implements android.os.Parcelable {
297 ctor public CarUxRestrictions(android.car.drivingstate.CarUxRestrictions);
299 …method @android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo public int getActiveRestr…
304 method public boolean isSameRestrictions(android.car.drivingstate.CarUxRestrictions);
306 …lic static final android.os.Parcelable.Creator<android.car.drivingstate.CarUxRestrictions> CREATOR;
320 public static class CarUxRestrictions.Builder {
321 …ctor public CarUxRestrictions.Builder(boolean, @android.car.drivingstate.CarUxRestrictions.CarUxRe…
322 method public android.car.drivingstate.CarUxRestrictions build();
323 method public android.car.drivingstate.CarUxRestrictions.Builder setMaxContentDepth(int);
324 …method public android.car.drivingstate.CarUxRestrictions.Builder setMaxCumulativeContentItems(int);
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceController.java19 import android.car.drivingstate.CarUxRestrictions;
144 private CarUxRestrictions mUxRestrictions;
153 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in PreferenceController()
190 protected final CarUxRestrictions getUxRestrictions() { in getUxRestrictions()
228 public final void onUxRestrictionsChanged(CarUxRestrictions uxRestrictions) { in onUxRestrictionsChanged()
448 protected void onApplyUxRestrictions(CarUxRestrictions uxRestrictions) { in onApplyUxRestrictions()
DBaseCarSettingsActivity.java19 import android.car.drivingstate.CarUxRestrictions;
52 private CarUxRestrictions mCarUxRestrictions = new CarUxRestrictions.Builder(
54 CarUxRestrictions.UX_RESTRICTIONS_BASELINE,
155 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
166 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions()
DCarUxRestrictionsHelper.java21 import android.car.drivingstate.CarUxRestrictions;
92 public static boolean isNoSetup(CarUxRestrictions carUxRestrictions) { in isNoSetup()
94 & CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP) in isNoSetup()
95 == CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP; in isNoSetup()
DPreferenceControllerListHelper.java24 import android.car.drivingstate.CarUxRestrictions;
61 CarUxRestrictions uxRestrictions) { in getPreferenceControllersFromXml()
91 CarUxRestrictions restrictionInfo) { in createInstance()
95 FragmentController.class, CarUxRestrictions.class); in createInstance()
DBaseFragment.java19 import android.car.drivingstate.CarUxRestrictions;
56 protected final CarUxRestrictions getCurrentRestrictions() { in getCurrentRestrictions()
64 protected boolean canBeShown(@NonNull CarUxRestrictions carUxRestrictions) { in canBeShown()
69 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarUxRestrictionManagerWrapper.java20 import android.car.drivingstate.CarUxRestrictions;
49 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
104 public CarUxRestrictions getCurrentCarUxRestrictions() throws CarNotConnectedException { in getCurrentCarUxRestrictions()

1234567891011