/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParserTest.java | 30 import android.car.drivingstate.CarUxRestrictions; 67 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters() 78 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState() 81 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState() 83 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, idling.getActiveRestrictions()); in testParsingNonMovingState() 91 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange() 93 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_NoSpeedRange() 102 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange() 104 assertEquals(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, r.getActiveRestrictions()); in testParsingMovingState_SingleSpeedRange() 113 CarUxRestrictions slow = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_MultiSpeedRange() [all …]
|
/packages/services/Car/car-lib/api/ |
D | removed.txt | 12 …CarUxRestrictions.UX_RESTRICTIONS_BASELINE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICT…
|
/packages/services/Car/car-lib-module/api/ |
D | removed.txt | 12 …CarUxRestrictions.UX_RESTRICTIONS_BASELINE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICT…
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictions.java | 69 public final class CarUxRestrictions implements Parcelable { class 222 public CarUxRestrictions build() { in build() 223 return new CarUxRestrictions(this); in build() 343 public static final Parcelable.Creator<CarUxRestrictions> CREATOR = 344 new Parcelable.Creator<CarUxRestrictions>() { 346 public CarUxRestrictions createFromParcel(Parcel in) { 347 return new CarUxRestrictions(in); 351 public CarUxRestrictions[] newArray(int size) { 352 return new CarUxRestrictions[size]; 356 public CarUxRestrictions(CarUxRestrictions uxRestrictions) { in CarUxRestrictions() method in CarUxRestrictions [all …]
|
D | CarUxRestrictionsManager.java | 101 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo); in onUxRestrictionsChanged() 211 public CarUxRestrictions getCurrentCarUxRestrictions() { in getCurrentCarUxRestrictions() 220 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions() 346 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 361 private void handleUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in handleUxRestrictionsChanged() 383 mgr.dispatchUxRChangeToClient((CarUxRestrictions) msg.obj); in handleMessage() 394 private void dispatchUxRChangeToClient(CarUxRestrictions restrictionInfo) { in dispatchUxRChangeToClient()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarDrivingRestrictionsTest.java | 27 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; 61 private static final int UX_RESTRICTIONS_IDLE = CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO; [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | DualPaneBaseCarSettingsActivityTest.java | 22 import android.car.drivingstate.CarUxRestrictions; 70 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 72 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 76 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 78 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onUxRestrictionsChanged_topFragmentInBackStackHasUpdatedUxRestrictions() 102 CarUxRestrictions oldUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 104 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 108 CarUxRestrictions newUxRestrictions = new CarUxRestrictions.Builder( in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions() 110 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, in onBackStackChanged_uxRestrictionsChanged_currentFragmentHasUpdatedUxRestrictions()
|
D | ExtraSettingsPreferenceControllerTest.java | 32 import android.car.drivingstate.CarUxRestrictions; 67 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS = 68 new CarUxRestrictions.Builder(/* reqOpt= */ true, 69 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); 71 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS = 72 new CarUxRestrictions.Builder(/* reqOpt= */ true, 73 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 75 private static final CarUxRestrictions NO_UX_RESTRICTIONS = 76 new CarUxRestrictions.Builder(/* reqOpt= */ false, 77 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); [all …]
|
D | PreferenceControllerTest.java | 35 import android.car.drivingstate.CarUxRestrictions; 63 private static final CarUxRestrictions LIMIT_STRINGS_UX_RESTRICTIONS = 64 new CarUxRestrictions.Builder(/* reqOpt= */ true, 65 CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, /* timestamp= */ 67 private static final CarUxRestrictions NO_SETUP_UX_RESTRICTIONS = 68 new CarUxRestrictions.Builder(/* reqOpt= */ true, 69 CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, /* timestamp= */ 0).build(); 71 private static final CarUxRestrictions BASELINE_UX_RESTRICTIONS = 72 new CarUxRestrictions.Builder(/* reqOpt= */ true, 73 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 33 import android.car.drivingstate.CarUxRestrictions; 84 private CarUxRestrictions mCarUxRestrictions; 122 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 123 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 306 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 307 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 328 CarUxRestrictions restrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 329 true, CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, 0).build(); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 332 CarUxRestrictions noRestrictions = new CarUxRestrictions.Builder( in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 333 true, CarUxRestrictions.UX_RESTRICTIONS_BASELINE, 0).build(); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | BaseTestActivity.java | 21 import android.car.drivingstate.CarUxRestrictions; 40 private CarUxRestrictions mRestrictionInfo = new CarUxRestrictions.Builder(/* reqOpt= */ true, 41 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); 79 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions() 83 public void setCarUxRestrictions(CarUxRestrictions restrictionInfo) { in setCarUxRestrictions()
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarUxRestrictionsManagerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 82 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in getRestrictions_noRestrictionsSet_noRestrictionsPresent() 87 mCarUxRestrictionsController.setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 90 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO); in setUxRestrictions_restrictionsRegistered() 96 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED); in clearUxRestrictions_restrictionsCleared() 100 .isEqualTo(CarUxRestrictions.UX_RESTRICTIONS_BASELINE); in clearUxRestrictions_restrictionsCleared() 119 .setUxRestrictions(CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE); in setUxRestrictions_listenerRegistered_listenerTriggered()
|
/packages/services/Car/libs/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; 44 private CarUxRestrictions mCarUxRestrictions; 51 private static CarUxRestrictions createCarUxRestrictions(int activeRestrictions) { in createCarUxRestrictions() 52 return new CarUxRestrictions.Builder( in createCarUxRestrictions() 81 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | CarUxRestrictionsHelper.java | 20 import android.car.drivingstate.CarUxRestrictions; 86 public static boolean isNoSetup(CarUxRestrictions carUxRestrictions) { in isNoSetup() 88 & CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP) in isNoSetup() 89 == CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP; in isNoSetup() 95 public CarUxRestrictions getCarUxRestrictions() { in getCarUxRestrictions()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
D | BaseTestSettingsFragment.java | 19 import android.car.drivingstate.CarUxRestrictions; 25 private CarUxRestrictions mCarUxRestrictions; 33 public void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo) { in onUxRestrictionsChanged() 37 public CarUxRestrictions getUxRestrictions() { in getUxRestrictions()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParser.java | 28 import android.car.drivingstate.CarUxRestrictions; 486 return CarUxRestrictions.UX_RESTRICTIONS_FULLY_RESTRICTED; in getRestrictions() 495 | CarUxRestrictions.UX_RESTRICTIONS_BASELINE; in getRestrictions() 499 | CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD; in getRestrictions() 503 | CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING; in getRestrictions() 507 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH; in getRestrictions() 511 | CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD; in getRestrictions() 515 | CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO; in getRestrictions() 519 | CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT; in getRestrictions() 523 | CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP; in getRestrictions() [all …]
|
D | CarUxRestrictionsManagerService.java | 45 import android.car.drivingstate.CarUxRestrictions; 221 private SparseArray<CarUxRestrictions> mCurrentUxRestrictions; 268 CarUxRestrictions unrestrictedRestrictions = createUnrestrictedRestrictions(); 337 CarUxRestrictions unrestrictedRestrictions = createUnrestrictedRestrictions(); in init() 553 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions() 554 CarUxRestrictions restrictions = null; in getCurrentUxRestrictions() 583 public CarUxRestrictions getCurrentUxRestrictions() { in getCurrentUxRestrictions() 1009 SparseArray<CarUxRestrictions> updatedUxRestrictions = new SparseArray<>( in handleDispatchUxRestrictionsLocked() 1020 CarUxRestrictions uxRestrictions; in handleDispatchUxRestrictionsLocked() 1058 CarUxRestrictions currentUxRestrictions = mCurrentUxRestrictions.get(displayId); in handleDispatchUxRestrictionsLocked() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ProfileDetailsBasePreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 51 private CarUxRestrictions mCarUxRestrictions; 67 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 68 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 105 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestProfileDetailsBasePreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | NetworkBasePreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 53 private CarUxRestrictions mCarUxRestrictions; 78 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 79 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 104 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestNetworkBasePreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageSizeBasePreferenceControllerTest.java | 24 import android.car.drivingstate.CarUxRestrictions; 49 private CarUxRestrictions mCarUxRestrictions; 60 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestStorageSizeBasePreferenceController() 75 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 76 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
D | StorageUsageBasePreferenceControllerTest.java | 23 import android.car.drivingstate.CarUxRestrictions; 51 private CarUxRestrictions mCarUxRestrictions; 60 FragmentController fragmentController, CarUxRestrictions uxRestrictions) { in TestStorageUsageBasePreferenceController() 76 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 77 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
D | StorageMediaCategoryPreferenceControllerTest.java | 22 import android.car.drivingstate.CarUxRestrictions; 48 private CarUxRestrictions mCarUxRestrictions; 58 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 59 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | KernelVersionPreferenceControllerTest.java | 21 import android.car.drivingstate.CarUxRestrictions; 46 private CarUxRestrictions mCarUxRestrictions; 55 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 56 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|
D | HardwareInfoPreferenceControllerTest.java | 25 import android.car.drivingstate.CarUxRestrictions; 54 private CarUxRestrictions mCarUxRestrictions; 65 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 66 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp() 99 CarUxRestrictions uxRestrictions) { in TestHardwareInfoPreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/hardwareinfo/ |
D | HardwareRevisionPreferenceControllerTest.java | 21 import android.car.drivingstate.CarUxRestrictions; 47 private CarUxRestrictions mCarUxRestrictions; 56 mCarUxRestrictions = new CarUxRestrictions.Builder(/* reqOpt= */ true, in setUp() 57 CarUxRestrictions.UX_RESTRICTIONS_BASELINE, /* timestamp= */ 0).build(); in setUp()
|