Home
last modified time | relevance | path

Searched refs:CarUxRestrictionsConfiguration (Results 1 – 11 of 11) 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;
34 import android.car.drivingstate.CarUxRestrictionsConfiguration;
35 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
36 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
98 CarUxRestrictionsConfiguration config = new Builder().build(); in testUnspecifiedDrivingStateUsesDefaultRestriction()
113 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
149 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
324 CarUxRestrictionsConfiguration config = in testJsonSerialization_DefaultConstructor()
332 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_RestrictionParameters()
343 CarUxRestrictionsConfiguration config = new Builder() in testJsonSerialization_NonMovingStateRestrictions()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java45 import android.car.drivingstate.CarUxRestrictionsConfiguration;
46 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
152 CarUxRestrictionsConfiguration config = createEmptyConfig(); in testSaveConfig_WriteStagedFile()
170 CarUxRestrictionsConfiguration spyConfig = spy(createEmptyConfig()); in testSaveConfig_ReturnFalseOnException()
183 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
190 List<CarUxRestrictionsConfiguration> expected = in testLoadConfig_UseXml()
194 List<CarUxRestrictionsConfiguration> actual = mService.loadConfig(); in testLoadConfig_UseXml()
201 CarUxRestrictionsConfiguration expected = createEmptyConfig(); in testLoadConfig_UseProdConfig()
204 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_UseProdConfig()
223 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;
162 private Map<Integer, CarUxRestrictionsConfiguration> mCarUxRestrictionsConfigurations;
228 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
249 List<CarUxRestrictionsConfiguration> loadConfig() { in loadConfig()
251 List<CarUxRestrictionsConfiguration> configs; in loadConfig()
288 private List<CarUxRestrictionsConfiguration> readXmlConfig() { in readXmlConfig()
447 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
457 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
517 private boolean persistConfig(List<CarUxRestrictionsConfiguration> configs, String filename) { in persistConfig()
540 void writeJson(JsonWriter jsonWriter, List<CarUxRestrictionsConfiguration> configs) in writeJson()
[all …]
DCarUxRestrictionsConfigurationXmlParser.java25 import android.car.drivingstate.CarUxRestrictionsConfiguration;
26 import android.car.drivingstate.CarUxRestrictionsConfiguration.Builder;
27 import android.car.drivingstate.CarUxRestrictionsConfiguration.DrivingStateRestrictions;
63 private final List<CarUxRestrictionsConfiguration.Builder> mConfigBuilders = new ArrayList<>();
75 public static List<CarUxRestrictionsConfiguration> parse( in parse()
82 private List<CarUxRestrictionsConfiguration> parse(@XmlRes int xmlResource) in parse()
101 List<CarUxRestrictionsConfiguration> configs = new ArrayList<>(); in parse()
102 for (CarUxRestrictionsConfiguration.Builder builder : mConfigBuilders) { in parse()
132 mConfigBuilders.add(new CarUxRestrictionsConfiguration.Builder()); in traverseUntilEndOfDocument()
179 int 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;
35 …boolean saveUxRestrictionsConfigurationForNextBoot(in List<CarUxRestrictionsConfiguration> configs…
36 List<CarUxRestrictionsConfiguration> getStagedConfigs() = 4; in getStagedConfigs()
37 List<CarUxRestrictionsConfiguration> getConfigs() = 5; in getConfigs()
DCarUxRestrictionsManager.java170 List<CarUxRestrictionsConfiguration> configs) { in saveUxRestrictionsConfigurationForNextBoot()
258 CarUxRestrictionsConfiguration config) { in saveUxRestrictionsConfigurationForNextBoot()
276 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
291 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
DCarUxRestrictionsConfiguration.aidl19 parcelable CarUxRestrictionsConfiguration;
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCarUxRestrictionsService.java22 import android.car.drivingstate.CarUxRestrictionsConfiguration;
89 public List<CarUxRestrictionsConfiguration> getStagedConfigs() { in getStagedConfigs()
94 public List<CarUxRestrictionsConfiguration> getConfigs() { in getConfigs()
126 List<CarUxRestrictionsConfiguration> config) { in saveUxRestrictionsConfigurationForNextBoot()
/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;
242 CarUxRestrictionsConfiguration config = new CarUxRestrictionsConfiguration.Builder() in onConfirm()
273 CarUxRestrictionsConfiguration stagedConfig = in showStagedUxRestrictionsConfig()
296 CarUxRestrictionsConfiguration prodConfig = in showProdUxRestrictionsConfig()