Home
last modified time | relevance | path

Searched refs:CarUxRestrictionsConfiguration (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java26 import static android.car.drivingstate.CarUxRestrictionsConfiguration.Builder.SpeedRange.MAX_SPEED;
30 import android.car.drivingstate.CarUxRestrictionsConfiguration;
31 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
32 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
95 CarUxRestrictionsConfiguration config = new Builder().build(); in testUnspecifiedDrivingStateUsesDefaultRestriction()
107 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
149 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
353 CarUxRestrictionsConfiguration config = in testJsonSerialization_DefaultConstructor()
360 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_RestrictionParameters()
370 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_NonMovingStateRestrictions()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java41 import android.car.drivingstate.CarUxRestrictionsConfiguration;
42 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
125 CarUxRestrictionsConfiguration config = createEmptyConfig(); in testSaveConfig_WriteStagedFile()
143 CarUxRestrictionsConfiguration spyConfig = spy(createEmptyConfig()); in testSaveConfig_ReturnFalseOnException()
156 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
163 List<CarUxRestrictionsConfiguration> expected = in testLoadConfig_UseXml()
167 List<CarUxRestrictionsConfiguration> actual = mService.loadConfig(); in testLoadConfig_UseXml()
174 CarUxRestrictionsConfiguration expected = createEmptyConfig(); in testLoadConfig_UseProdConfig()
177 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_UseProdConfig()
196 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_SupportsLegacyV1()
[all …]
DCarUxRestrictionsConfigurationXmlParserTest.java28 import android.car.drivingstate.CarUxRestrictionsConfiguration;
61 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingParameters()
72 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingNonMovingState()
85 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_NoSpeedRange()
96 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_SingleSpeedRange()
107 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_MultiSpeedRange()
121 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingPassengerState()
140 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
162 List<CarUxRestrictionsConfiguration> configs = in testParsingMultipleConfigurations()
172 for (CarUxRestrictionsConfiguration config : configs) { in testParsingMultipleConfigurations()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java34 import android.car.drivingstate.CarUxRestrictionsConfiguration;
143 private Map<Byte, CarUxRestrictionsConfiguration> mCarUxRestrictionsConfigurations;
191 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
210 synchronized List<CarUxRestrictionsConfiguration> loadConfig() { in loadConfig()
212 List<CarUxRestrictionsConfiguration> configs; in loadConfig()
247 private List<CarUxRestrictionsConfiguration> readXmlConfig() { in readXmlConfig()
422 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
432 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
488 private boolean persistConfig(List<CarUxRestrictionsConfiguration> configs, String filename) { in persistConfig()
504 for (CarUxRestrictionsConfiguration config : configs) { in persistConfig()
[all …]
DCarUxRestrictionsConfigurationXmlParser.java25 import android.car.drivingstate.CarUxRestrictionsConfiguration;
26 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
27 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
62 private final List<CarUxRestrictionsConfiguration.Builder> mConfigBuilders = new ArrayList<>();
74 public static List<CarUxRestrictionsConfiguration> parse( in parse()
81 private List<CarUxRestrictionsConfiguration> parse(@XmlRes int xmlResource) in parse()
100 List<CarUxRestrictionsConfiguration> configs = new ArrayList<>(); in parse()
101 for (CarUxRestrictionsConfiguration.Builder builder : mConfigBuilders) { in parse()
131 mConfigBuilders.add(new CarUxRestrictionsConfiguration.Builder()); in traverseUntilEndOfDocument()
178 byte port = CarUxRestrictionsConfiguration.Builder.validatePort(portValue); in mapDrivingStateToRestrictions()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java53 public final class CarUxRestrictionsConfiguration implements Parcelable { class
84 private CarUxRestrictionsConfiguration(CarUxRestrictionsConfiguration.Builder builder) { in CarUxRestrictionsConfiguration() method in CarUxRestrictionsConfiguration
318 public static CarUxRestrictionsConfiguration readJson(@NonNull JsonReader reader, in readJson()
528 if (!(obj instanceof CarUxRestrictionsConfiguration)) { in equals()
532 CarUxRestrictionsConfiguration other = (CarUxRestrictionsConfiguration) obj; in equals()
542 public boolean hasSameParameters(@NonNull CarUxRestrictionsConfiguration other) { in hasSameParameters()
612 public static final Parcelable.Creator<CarUxRestrictionsConfiguration> CREATOR =
613 new Parcelable.Creator<CarUxRestrictionsConfiguration>() {
616 public CarUxRestrictionsConfiguration createFromParcel(Parcel source) {
617 return new CarUxRestrictionsConfiguration(source);
[all …]
DICarUxRestrictionsManager.aidl20 import android.car.drivingstate.CarUxRestrictionsConfiguration;
34 …boolean saveUxRestrictionsConfigurationForNextBoot(in List<CarUxRestrictionsConfiguration> configs…
35 List<CarUxRestrictionsConfiguration> getStagedConfigs() = 4; in getStagedConfigs()
36 List<CarUxRestrictionsConfiguration> getConfigs() = 5; in getConfigs()
DCarUxRestrictionsManager.java168 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
256 CarUxRestrictionsConfiguration config) { in saveUxRestrictionsConfigurationForNextBoot()
274 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
289 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
DCarUxRestrictionsConfiguration.aidl19 parcelable CarUxRestrictionsConfiguration;
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java29 import android.car.drivingstate.CarUxRestrictionsConfiguration;
30 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
213 CarUxRestrictionsConfiguration config = new CarUxRestrictionsConfiguration.Builder() in onConfirm()
240 CarUxRestrictionsConfiguration stagedConfig = in showStagedUxRestrictionsConfig()
263 CarUxRestrictionsConfiguration prodConfig = in showProdUxRestrictionsConfig()