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.java25 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;
89 CarUxRestrictionsConfiguration config = new Builder().build(); in testUnspecifiedDrivingStateUsesDefaultRestriction()
101 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
143 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
347 CarUxRestrictionsConfiguration config = in testJsonSerialization_DefaultConstructor()
354 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_RestrictionParameters()
364 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_NonMovingStateRestrictions()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java32 import android.car.drivingstate.CarUxRestrictionsConfiguration;
33 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
109 CarUxRestrictionsConfiguration config = createEmptyConfig(); in testSaveConfig_WriteStagedFile()
119 CarUxRestrictionsConfiguration spyConfig = spy(createEmptyConfig()); in testSaveConfig_ReturnFalseOnException()
132 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
139 List<CarUxRestrictionsConfiguration> expected = in testLoadConfig_UseXml()
143 List<CarUxRestrictionsConfiguration> actual = mService.loadConfig(); in testLoadConfig_UseXml()
150 CarUxRestrictionsConfiguration expected = createEmptyConfig(); in testLoadConfig_UseProdConfig()
153 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_UseProdConfig()
160 CarUxRestrictionsConfiguration expected = createEmptyConfig(); in testLoadConfig_PromoteStagedFileWhenParked()
[all …]
DCarUxRestrictionsConfigurationXmlParserTest.java29 import android.car.drivingstate.CarUxRestrictionsConfiguration;
59 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingParameters()
70 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingNonMovingState()
83 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_NoSpeedRange()
94 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_SingleSpeedRange()
105 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_MultiSpeedRange()
119 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingPassengerState()
138 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
160 List<CarUxRestrictionsConfiguration> configs = in testParsingMultipleConfigurations()
170 for (CarUxRestrictionsConfiguration config: configs) { in testParsingMultipleConfigurations()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java33 import android.car.drivingstate.CarUxRestrictionsConfiguration;
126 private Map<Byte, CarUxRestrictionsConfiguration> mCarUxRestrictionsConfigurations;
175 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
193 synchronized List<CarUxRestrictionsConfiguration> loadConfig() { in loadConfig()
195 List<CarUxRestrictionsConfiguration> configs; in loadConfig()
230 private List<CarUxRestrictionsConfiguration> readXmlConfig() { in readXmlConfig()
401 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
411 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
461 private boolean persistConfig(List<CarUxRestrictionsConfiguration> configs, String filename) { in persistConfig()
474 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.java55 public final class CarUxRestrictionsConfiguration implements Parcelable { class
94 private CarUxRestrictionsConfiguration(CarUxRestrictionsConfiguration.Builder builder) { in CarUxRestrictionsConfiguration() method in CarUxRestrictionsConfiguration
324 public static CarUxRestrictionsConfiguration readJson(JsonReader reader) throws IOException { in readJson()
456 if (!(obj instanceof CarUxRestrictionsConfiguration)) { in equals()
460 CarUxRestrictionsConfiguration other = (CarUxRestrictionsConfiguration) obj; in equals()
471 public boolean hasSameParameters(CarUxRestrictionsConfiguration other) { in hasSameParameters()
541 public static final Parcelable.Creator<CarUxRestrictionsConfiguration> CREATOR =
542 new Parcelable.Creator<CarUxRestrictionsConfiguration>() {
545 public CarUxRestrictionsConfiguration createFromParcel(Parcel source) {
546 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.java196 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
268 CarUxRestrictionsConfiguration config) { in saveUxRestrictionsConfigurationForNextBoot()
287 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
303 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
DCarUxRestrictionsConfiguration.aidl19 parcelable CarUxRestrictionsConfiguration;
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java30 import android.car.drivingstate.CarUxRestrictionsConfiguration;
31 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
213 CarUxRestrictionsConfiguration config = new CarUxRestrictionsConfiguration.Builder() in onConfirm()
240 CarUxRestrictionsConfiguration stagedConfig = in showStagedUxRestrictionsConfig()
263 CarUxRestrictionsConfiguration prodConfig = in showProdUxRestrictionsConfig()