/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParserTest.java | 27 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 …]
|
D | CarDrivingRestrictionsTest.java | 28 import android.car.drivingstate.CarUxRestrictions; 53 private static final int UX_RESTRICTIONS_MOVING = CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD 54 | CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING 55 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH 56 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD 57 | CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO 58 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT 59 | CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP 60 | CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE; 91 CarUxRestrictions restrictions; in testDrivingStateChange() [all …]
|
D | CarUxRestrictionsManagerServiceTest.java | 22 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE; 44 import android.car.drivingstate.CarUxRestrictions; 334 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(unknownDisplayId); in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() 335 CarUxRestrictions expected = new CarUxRestrictions.Builder( in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() 337 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, in testGetCurrentUxRestrictions_UnknownDisplayId_ReturnsFullRestrictions() 353 int defaultPortRestrictions = CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD; in testGetCurrentUxRestrictions_UnreportedVirtualDisplay_UseDefaultDisplayRestriction() 367 CarUxRestrictions restrictions = mService.getCurrentUxRestrictions(virtualDisplayId); in testGetCurrentUxRestrictions_UnreportedVirtualDisplay_UseDefaultDisplayRestriction() 368 CarUxRestrictions expected = new CarUxRestrictions.Builder( in testGetCurrentUxRestrictions_UnreportedVirtualDisplay_UseDefaultDisplayRestriction() 407 int port2Restrictions = CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD; in testGetCurrentUxRestrictions_ReportedVirtualDisplay_ReturnsRestrictionsForPort() 410 CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD); in testGetCurrentUxRestrictions_ReportedVirtualDisplay_ReturnsRestrictionsForPort() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | BaseCarSettingsActivityTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 62 CarUxRestrictions noSetupRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 63 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* time= */ 0).build(); in setUp() 97 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 99 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 103 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 105 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 123 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 125 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 129 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() [all …]
|
D | PreferenceControllerTest.java | 33 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 …]
|
D | SettingsFragmentTest.java | 31 import android.car.drivingstate.CarUxRestrictions; 95 CarUxRestrictions uxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in onUxRestrictionsChanged_propagatesToControllers() 96 CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, /* timestamp= */ 0).build(); in onUxRestrictionsChanged_propagatesToControllers() 106 CarUxRestrictions uxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in onUxRestrictedPreferenceTapped_showToast() 107 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); in onUxRestrictedPreferenceTapped_showToast()
|
D | PreferenceControllerTestHelper.java | 33 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()
|
D | PreferenceControllerListHelperTest.java | 24 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-ui-lib/tests/robotests/src/com/android/car/ui/utils/ |
D | CarUxRestrictionsUtilTest.java | 21 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/ |
D | CarUxRestrictions.java | 64 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 …]
|
D | CarUxRestrictionsManager.java | 92 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo); in onUxRestrictionsChanged() 184 public CarUxRestrictions getCurrentCarUxRestrictions() { in getCurrentCarUxRestrictions() 192 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions() 312 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 327 private void handleUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in handleUxRestrictionsChanged() 349 mgr.dispatchUxRChangeToClient((CarUxRestrictions) msg.obj); in handleMessage() 360 private void dispatchUxRChangeToClient(CarUxRestrictions restrictionInfo) { in dispatchUxRChangeToClient()
|
D | CarUxRestrictionsConfiguration.java | 114 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/ |
D | CarUxRestrictionsUtil.java | 18 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH; 21 import android.car.drivingstate.CarUxRestrictions; 22 import android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo; 56 private CarUxRestrictions mCarUxRestrictions = getDefaultRestrictions(); 109 private static CarUxRestrictions getDefaultRestrictions() { in getDefaultRestrictions() 110 return new CarUxRestrictions.Builder( in getDefaultRestrictions() 111 true, CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED, 0) in getDefaultRestrictions() 118 void onRestrictionsChanged(@NonNull CarUxRestrictions carUxRestrictions); in onRestrictionsChanged() 147 public CarUxRestrictions getCurrentRestrictions() { in getCurrentRestrictions() 156 @CarUxRestrictionsInfo int restrictionFlags, @Nullable CarUxRestrictions uxr) { in isRestricted() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarUxRestrictionsManagerService.java | 33 import android.car.drivingstate.CarUxRestrictions; 165 private Map<Byte, CarUxRestrictions> mCurrentUxRestrictions; 420 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions() 421 CarUxRestrictions restrictions; in getCurrentUxRestrictions() 438 public CarUxRestrictions getCurrentUxRestrictions() { in getCurrentUxRestrictions() 691 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump() 818 Map<Byte, CarUxRestrictions> newUxRestrictions = new HashMap<>(); in handleDispatchUxRestrictionsLocked() 825 CarUxRestrictions uxRestrictions = config.getUxRestrictions( in handleDispatchUxRestrictionsLocked() 846 CarUxRestrictions uxRestrictions = newUxRestrictions.get(port); in handleDispatchUxRestrictionsLocked() 865 private void dispatchRestrictionsToClients(Map<Byte, CarUxRestrictions> displayRestrictions, in dispatchRestrictionsToClients() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 32 import android.car.drivingstate.CarUxRestrictions; 202 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_hasRestrictions_buttonHidden() 203 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_hasRestrictions_buttonHidden() 215 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_buttonShown() 216 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_restrictionToggled_buttonShown() 219 CarUxRestrictions noRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_buttonShown() 220 true, CarUxRestrictions.UX_RESTRICTIONS_BASELINE, 0).build(); in onUxRestrictionsChanged_restrictionToggled_buttonShown()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarUxRestrictionsManagerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 70 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in getRestrictions_noRestrictionsSet_noRestrictionsPresent() 75 mCarUxRestrictionsController.setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 78 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 84 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in clearUxRestrictions_restrictionsCleared() 88 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in clearUxRestrictions_restrictionsCleared() 107 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE); in setUxRestrictions_listenerRegistered_listenerTriggered()
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/ |
D | MenuItem.java | 18 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/ |
D | BaseTestActivity.java | 19 import android.car.drivingstate.CarUxRestrictions; 37 private CarUxRestrictions mRestrictionInfo = new CarUxRestrictions.Builder(/* reqOpt= */ true, 38 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 71 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions() 75 public void setCarUxRestrictions(CarUxRestrictions restrictionInfo) { in setCarUxRestrictions()
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarUxRestrictionsService.java | 19 import static android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE; 21 import android.car.drivingstate.CarUxRestrictions; 45 private CarUxRestrictions mCarUxRestrictions; 52 private static CarUxRestrictions createCarUxRestrictions(int activeRestrictions) { in createCarUxRestrictions() 53 return new CarUxRestrictions.Builder( in createCarUxRestrictions() 82 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 23 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; 33 import android.car.drivingstate.CarUxRestrictions; 100 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction() 105 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction() 553 CarUxRestrictions restrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testSetUxRestrictions_UnspecifiedModeDefaultsToBaseline() 573 CarUxRestrictions passenger = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode() 577 CarUxRestrictions baseline = config.getUxRestrictions( in testSetUxRestrictions_PassengerMode() 591 CarUxRestrictions passenger = config.getUxRestrictions( in testGetUxRestrictions_WithUndefinedMode_FallbackToBaseline() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | PreferenceController.java | 19 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()
|
D | BaseCarSettingsActivity.java | 19 import android.car.drivingstate.CarUxRestrictions; 50 private CarUxRestrictions mCarUxRestrictions = new CarUxRestrictions.Builder( 52 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, 123 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 134 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions()
|
D | CarUxRestrictionsHelper.java | 21 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()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | UxrButton.java | 19 import android.car.drivingstate.CarUxRestrictions; 48 private CarUxRestrictions mActiveCarUxRestrictions; 51 @CarUxRestrictions.CarUxRestrictionsInfo 96 CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in init() 140 private void updateActiveCarUxRestrictions(CarUxRestrictions carUxRestrictions) { in updateActiveCarUxRestrictions()
|
/packages/services/Car/car-lib/api/ |
D | lint-baseline.txt | 124 MissingNullability: android.car.drivingstate.CarUxRestrictions#CREATOR: 125 … Missing nullability on field `CREATOR` in class `class android.car.drivingstate.CarUxRestrictions` 126 …ullability: android.car.drivingstate.CarUxRestrictions#CarUxRestrictions(android.car.drivingstate.… 127 Missing nullability on parameter `uxRestrictions` in method `CarUxRestrictions` 128 …ullability: android.car.drivingstate.CarUxRestrictions#isSameRestrictions(android.car.drivingstate… 130 MissingNullability: android.car.drivingstate.CarUxRestrictions#writeToParcel(android.os.Parcel, int… 132 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#build(): 134 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#setMaxContentDepth(int): 136 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#setMaxCumulativeContentItems… 138 MissingNullability: android.car.drivingstate.CarUxRestrictions.Builder#setMaxStringLength(int): [all …]
|