Home
last modified time | relevance | path

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

1234567891011

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java28 import android.car.drivingstate.CarUxRestrictions;
62 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters()
73 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState()
76 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState()
78 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingNonMovingState()
86 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
88 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_NoSpeedRange()
97 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
99 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_SingleSpeedRange()
108 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 …]
DCarUxRestrictionsManagerServiceTest.java31 import android.car.drivingstate.CarUxRestrictions;
215 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(/* displayId= */ 10); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions()
216 CarUxRestrictions expected = new CarUxRestrictions.Builder( in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions()
218 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions()
/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.java32 import android.car.drivingstate.CarUxRestrictions;
59 private static final CarUxRestrictions LIMIT_STRINGS_UX_RESTRICTIONS =
60 new CarUxRestrictions.Builder(/* reqOpt= */ true,
61 CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, /* timestamp= */
63 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS =
64 new CarUxRestrictions.Builder(/* reqOpt= */ true,
65 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build();
67 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS =
68 new CarUxRestrictions.Builder(/* reqOpt= */ true,
69 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();
DCarSettingActivityTest.java24 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()
/packages/apps/Car/libs/car-apps-common/tests/robotests/src/com/android/car/apps/common/
DCarUxRestrictionsUtilTest.java21 import android.car.drivingstate.CarUxRestrictions;
39 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, in setUp()
40 CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
41 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD in setUp()
42 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, in setUp()
43 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED in setUp()
49 CarUxRestrictions activeRestrictions = null; in testNullActiveRestriction()
60 CarUxRestrictions activeRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */true, in testOneActiveRestriction()
61 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, /* timestamp= */0).build(); in testOneActiveRestriction()
72 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 …]
DCarUxRestrictionsConfiguration.java125 public CarUxRestrictions getUxRestrictions( in getUxRestrictions()
141 public CarUxRestrictions getUxRestrictions(@CarDrivingState int drivingState, in getUxRestrictions()
199 private CarUxRestrictions createDefaultUxRestrictionsEvent() { in createDefaultUxRestrictionsEvent()
201 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in createDefaultUxRestrictionsEvent()
207 private CarUxRestrictions createUxRestrictionsEvent(boolean requiresOpt, in createUxRestrictionsEvent()
208 @CarUxRestrictions.CarUxRestrictionsInfo int uxr) { in createUxRestrictionsEvent()
212 if (uxr != CarUxRestrictions.UX_RESTRICTIONS_BASELINE) { in createUxRestrictionsEvent()
215 CarUxRestrictions.Builder builder = new CarUxRestrictions.Builder(requiresOpt, uxr, in createUxRestrictionsEvent()
405 int restrictions = CarUxRestrictions.UX_RESTRICTIONS_BASELINE; in readRestrictions()
659 @CarUxRestrictions.CarUxRestrictionsInfo int restrictions) { in setUxRestrictions()
[all …]
DCarUxRestrictionsManager.java117 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo); in onUxRestrictionsChanged()
210 public CarUxRestrictions getCurrentCarUxRestrictions() { in getCurrentCarUxRestrictions()
218 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions()
338 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
353 private void handleUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in handleUxRestrictionsChanged()
375 mgr.dispatchUxRChangeToClient((CarUxRestrictions) msg.obj); in handleMessage()
386 private void dispatchUxRChangeToClient(CarUxRestrictions restrictionInfo) { in dispatchUxRChangeToClient()
/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;
48 private CarUxRestrictions mCarUxRestrictions = getDefaultRestrictions();
85 private CarUxRestrictions getDefaultRestrictions() { in getDefaultRestrictions()
86 return new CarUxRestrictions.Builder(true, in getDefaultRestrictions()
87 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, 0).build(); in getDefaultRestrictions()
97 void onRestrictionsChanged(@NonNull CarUxRestrictions carUxRestrictions); in onRestrictionsChanged()
133 @Nullable CarUxRestrictions uxr) { in isRestricted()
141 public static String complyString(Context context, String str, CarUxRestrictions uxr) { in complyString()
DUxrButton.java20 import android.car.drivingstate.CarUxRestrictions;
42 private CarUxRestrictions mActiveCarUxRestrictions;
45 @CarUxRestrictions.CarUxRestrictionsInfo
90 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in init()
126 private void updateActiveCarUxRestrictions(CarUxRestrictions carUxRestrictions) { in updateActiveCarUxRestrictions()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java32 import android.car.drivingstate.CarUxRestrictions;
127 private Map<Byte, CarUxRestrictions> mCurrentUxRestrictions;
380 public synchronized CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions()
381 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions()
395 public synchronized CarUxRestrictions getCurrentUxRestrictions() { in getCurrentUxRestrictions()
585 public void dispatchEventToClients(CarUxRestrictions event) { in dispatchEventToClients()
601 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump()
707 Map<Byte, CarUxRestrictions> newUxRestrictions = new HashMap<>(); in handleDispatchUxRestrictions()
714 CarUxRestrictions uxRestrictions = config.getUxRestrictions( in handleDispatchUxRestrictions()
735 CarUxRestrictions uxRestrictions = newUxRestrictions.get(port); in handleDispatchUxRestrictions()
[all …]
/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/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/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java22 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE;
23 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED;
24 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO;
29 import android.car.drivingstate.CarUxRestrictions;
91 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
95 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
504 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline()
523 CarUxRestrictions passenger = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode()
527 CarUxRestrictions baseline = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode()
546 CarUxRestrictions passenger = config.getUxRestrictions( in testPassengerModeFallbackToBaseline()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceController.java19 import android.car.drivingstate.CarUxRestrictions;
138 private CarUxRestrictions mUxRestrictions;
147 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in PreferenceController()
184 protected final CarUxRestrictions getUxRestrictions() { in getUxRestrictions()
222 public final void onUxRestrictionsChanged(CarUxRestrictions uxRestrictions) { in onUxRestrictionsChanged()
436 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()
DBaseFragment.java19 import android.car.drivingstate.CarUxRestrictions;
54 protected final CarUxRestrictions getCurrentRestrictions() { in getCurrentRestrictions()
62 protected boolean canBeShown(@NonNull CarUxRestrictions carUxRestrictions) { in canBeShown()
67 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged()
DPreferenceControllerListHelper.java24 import android.car.drivingstate.CarUxRestrictions;
61 CarUxRestrictions uxRestrictions) { in getPreferenceControllersFromXml()
91 CarUxRestrictions restrictionInfo) { in createInstance()
95 FragmentController.class, CarUxRestrictions.class); in createInstance()
/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()
DCarNotificationViewAdapter.java19 import android.car.drivingstate.CarUxRestrictions;
65 private CarUxRestrictions mCarUxRestrictions;
394 & CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT) != 0) { in getItemCount()
456 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions()
517 public void setCarUxRestrictions(CarUxRestrictions carUxRestrictions) { in setCarUxRestrictions()
529 & CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE) != 0; in shouldRestrictMessagePreview()

1234567891011