Home
last modified time | relevance | path

Searched refs:VehiclePropertyIds (Results 1 – 25 of 53) sorted by relevance

123

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehiclePropertyIdsTest.java18 import android.car.VehiclePropertyIds;
57 List<String> vehiclePropertyIdNames = getListOfConstantNames(VehiclePropertyIds.class); in testMatchingVehiclePropertyNamesInVehicleHal()
71 List<Integer> vehiclePropertyIds = getListOfConstantValues(VehiclePropertyIds.class); in testMatchingVehiclePropertyValuesInVehicleHal()
89 assertEquals("INVALID", VehiclePropertyIds.toString(VehiclePropertyIds.INVALID)); in testToString()
90 assertEquals("INFO_VIN", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_VIN)); in testToString()
91 assertEquals("INFO_MAKE", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MAKE)); in testToString()
92 assertEquals("INFO_MODEL", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MODEL)); in testToString()
94 VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MODEL_YEAR)); in testToString()
96 VehiclePropertyIds.toString(VehiclePropertyIds.INFO_FUEL_CAPACITY)); in testToString()
98 VehiclePropertyIds.toString(VehiclePropertyIds.INFO_FUEL_TYPE)); in testToString()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/
DPropertyPermissionMapping.java21 import android.car.VehiclePropertyIds;
38 VehiclePropertyIds.DOOR_POS, in PropertyPermissionMapping()
39 VehiclePropertyIds.DOOR_MOVE, in PropertyPermissionMapping()
40 VehiclePropertyIds.DOOR_LOCK); in PropertyPermissionMapping()
42 VehiclePropertyIds.MIRROR_Z_POS, in PropertyPermissionMapping()
43 VehiclePropertyIds.MIRROR_Z_MOVE, in PropertyPermissionMapping()
44 VehiclePropertyIds.MIRROR_Y_POS, in PropertyPermissionMapping()
45 VehiclePropertyIds.MIRROR_Y_MOVE, in PropertyPermissionMapping()
46 VehiclePropertyIds.MIRROR_LOCK, in PropertyPermissionMapping()
47 VehiclePropertyIds.MIRROR_FOLD); in PropertyPermissionMapping()
[all …]
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/
DCarPropertyManagerPublicPermissionTest.java23 import android.car.VehiclePropertyIds;
71 mProps.add(VehiclePropertyIds.DOOR_POS); in initAllPropertyIds()
72 mProps.add(VehiclePropertyIds.DOOR_MOVE); in initAllPropertyIds()
73 mProps.add(VehiclePropertyIds.DOOR_LOCK); in initAllPropertyIds()
74 mProps.add(VehiclePropertyIds.MIRROR_Z_POS); in initAllPropertyIds()
75 mProps.add(VehiclePropertyIds.MIRROR_Z_MOVE); in initAllPropertyIds()
76 mProps.add(VehiclePropertyIds.MIRROR_Y_POS); in initAllPropertyIds()
77 mProps.add(VehiclePropertyIds.MIRROR_Y_MOVE); in initAllPropertyIds()
78 mProps.add(VehiclePropertyIds.MIRROR_LOCK); in initAllPropertyIds()
79 mProps.add(VehiclePropertyIds.MIRROR_FOLD); in initAllPropertyIds()
[all …]
/packages/services/Car/car-lib/api/
Dbaseline.txt2 MissingPermission: android.car.VehiclePropertyIds#ABS_ACTIVE:
3 …Permission Car.PERMISSION_CAR_DYNAMICS_STATE required by field VehiclePropertyIds.ABS_ACTIVE is hi…
4 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_BOOTUP_REASON:
5 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_BOOTUP_REASON is…
6 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_STATE_REPORT:
7 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REPORT is …
8 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_STATE_REQ:
9 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REQ is hid…
10 MissingPermission: android.car.VehiclePropertyIds#DISPLAY_BRIGHTNESS:
11 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.DISPLAY_BRIGHTNESS is hid…
[all …]
Dtest-baseline.txt2 MissingPermission: android.car.VehiclePropertyIds#ABS_ACTIVE:
3 …Permission Car.PERMISSION_CAR_DYNAMICS_STATE required by field VehiclePropertyIds.ABS_ACTIVE is hi…
4 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_BOOTUP_REASON:
5 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_BOOTUP_REASON is…
6 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_STATE_REPORT:
7 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REPORT is …
8 MissingPermission: android.car.VehiclePropertyIds#AP_POWER_STATE_REQ:
9 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REQ is hid…
10 MissingPermission: android.car.VehiclePropertyIds#DISPLAY_BRIGHTNESS:
11 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.DISPLAY_BRIGHTNESS is hid…
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java22 import android.car.VehiclePropertyIds;
68 VehiclePropertyIds.PERF_VEHICLE_SPEED,
69 VehiclePropertyIds.ENGINE_RPM,
70 VehiclePropertyIds.PERF_ODOMETER,
71 VehiclePropertyIds.FUEL_LEVEL,
72 VehiclePropertyIds.FUEL_DOOR_OPEN,
73 VehiclePropertyIds.IGNITION_STATE,
74 VehiclePropertyIds.PARKING_BRAKE_ON,
75 VehiclePropertyIds.GEAR_SELECTION,
76 VehiclePropertyIds.NIGHT_MODE,
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPropertyHalServiceIdsTest.java24 import android.car.VehiclePropertyIds;
63 private static final int[] SYSTEM_PROPERTY_IDS = {VehiclePropertyIds.ENGINE_OIL_LEVEL,
64 VehiclePropertyIds.CURRENT_GEAR, VehiclePropertyIds.NIGHT_MODE,
65 VehiclePropertyIds.HVAC_FAN_SPEED, VehiclePropertyIds.DOOR_LOCK};
112 CONFIG_ARRAY_INVALID.add(VehiclePropertyIds.CURRENT_GEAR); in setUp()
123 assertThat(mPropertyHalServiceIds.getReadPermission(VehiclePropertyIds.ENGINE_OIL_LEVEL)) in checkPermissionForSystemProperty()
125 assertThat(mPropertyHalServiceIds.getWritePermission(VehiclePropertyIds.ENGINE_OIL_LEVEL)) in checkPermissionForSystemProperty()
127 assertThat(mPropertyHalServiceIds.getReadPermission(VehiclePropertyIds.HVAC_FAN_SPEED)) in checkPermissionForSystemProperty()
129 assertThat(mPropertyHalServiceIds.getWritePermission(VehiclePropertyIds.HVAC_FAN_SPEED)) in checkPermissionForSystemProperty()
131 assertThat(mPermissionMapping.getReadPermission(VehiclePropertyIds.HVAC_FAN_SPEED)) in checkPermissionForSystemProperty()
[all …]
DClusterHalServiceTest.java19 import static android.car.VehiclePropertyIds.CLUSTER_DISPLAY_STATE;
20 import static android.car.VehiclePropertyIds.CLUSTER_NAVIGATION_STATE;
21 import static android.car.VehiclePropertyIds.CLUSTER_REPORT_STATE;
22 import static android.car.VehiclePropertyIds.CLUSTER_REQUEST_DISPLAY;
23 import static android.car.VehiclePropertyIds.CLUSTER_SWITCH_UI;
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java26 import android.car.VehiclePropertyIds;
159 VehiclePropertyIds.INITIAL_USER_INFO,
160 VehiclePropertyIds.SWITCH_USER,
161 VehiclePropertyIds.CREATE_USER,
162 VehiclePropertyIds.REMOVE_USER,
163 VehiclePropertyIds.USER_IDENTIFICATION_ASSOCIATION
205 case VehiclePropertyIds.HVAC_TEMPERATURE_SET: in testMixedPropertyConfigs()
218 case VehiclePropertyIds.INFO_VIN: in testMixedPropertyConfigs()
348 VehiclePropertyIds.HVAC_TEMPERATURE_SET); in testGetPermission()
351 VehiclePropertyIds.HVAC_TEMPERATURE_SET); in testGetPermission()
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/sensors/
DSensors.java18 import android.car.VehiclePropertyIds;
51 "Fuel", VehiclePropertyIds.FUEL_LEVEL, GLOBAL_AREA_ID, VehiclePropertyType.FLOAT,
55 "Fuel Capacity", VehiclePropertyIds.INFO_FUEL_CAPACITY, GLOBAL_AREA_ID,
60 "RPM", VehiclePropertyIds.ENGINE_RPM, GLOBAL_AREA_ID,
65 "Fuel Range", VehiclePropertyIds.RANGE_REMAINING, GLOBAL_AREA_ID,
70 "Speed", VehiclePropertyIds.PERF_VEHICLE_SPEED, GLOBAL_AREA_ID,
75 "Gear", VehiclePropertyIds.GEAR_SELECTION, GLOBAL_AREA_ID, VehiclePropertyType.INT32,
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/sensors/
DSensors.java20 import android.car.VehiclePropertyIds;
47 "Fuel", VehiclePropertyIds.FUEL_LEVEL, VEHICLE_AREA_TYPE_GLOBAL,
52 "Fuel Capacity", VehiclePropertyIds.INFO_FUEL_CAPACITY, VEHICLE_AREA_TYPE_GLOBAL,
57 "RPM", VehiclePropertyIds.ENGINE_RPM, VEHICLE_AREA_TYPE_GLOBAL,
62 "Fuel Range", VehiclePropertyIds.RANGE_REMAINING, VEHICLE_AREA_TYPE_GLOBAL,
67 "Speed", VehiclePropertyIds.PERF_VEHICLE_SPEED, VEHICLE_AREA_TYPE_GLOBAL,
72 "Gear", VehiclePropertyIds.GEAR_SELECTION, VEHICLE_AREA_TYPE_GLOBAL,
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsSettingsFragment.java20 import android.car.VehiclePropertyIds;
70 VehiclePropertyIds.VEHICLE_SPEED_DISPLAY_UNITS)) {
77 if (isValidVehicleProperty(VehiclePropertyIds.DISTANCE_DISPLAY_UNITS)) {
84 if (isValidVehicleProperty(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS)) {
95 if (isValidVehicleProperty(VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS)) {
103 VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS)) {
111 VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS)) {
/packages/services/Car/service/src/com/android/car/
DBluetoothDeviceConnectionPolicy.java23 import android.car.VehiclePropertyIds;
151 mCarPropertyService.registerListener(VehiclePropertyIds.SEAT_OCCUPANCY, in init()
158 mCarPropertyService.unregisterListener(VehiclePropertyIds.SEAT_OCCUPANCY, in release()
201 && (value.getPropertyId() == VehiclePropertyIds.SEAT_OCCUPANCY) in onSeatOccupancyCarPropertyEvent()
229 VehiclePropertyIds.INFO_DRIVER_SEAT, VehicleAreaType.VEHICLE_AREA_TYPE_GLOBAL); in getDriverSeatLocationFromVhal()
235 new int[] {VehiclePropertyIds.INFO_DRIVER_SEAT}); in getDriverSeatLocationFromVhal()
/packages/services/Car/service/src/com/android/car/hal/
DClusterHalService.java19 import static android.car.VehiclePropertyIds.CLUSTER_DISPLAY_STATE;
20 import static android.car.VehiclePropertyIds.CLUSTER_NAVIGATION_STATE;
21 import static android.car.VehiclePropertyIds.CLUSTER_REPORT_STATE;
22 import static android.car.VehiclePropertyIds.CLUSTER_REQUEST_DISPLAY;
23 import static android.car.VehiclePropertyIds.CLUSTER_SWITCH_UI;
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleActivity.java29 import android.car.VehiclePropertyIds;
76 VehiclePropertyIds.CLUSTER_REPORT_STATE);
78 VehiclePropertyIds.CLUSTER_SWITCH_UI);
80 VehiclePropertyIds.CLUSTER_NAVIGATION_STATE);
82 VehiclePropertyIds.CLUSTER_REQUEST_DISPLAY);
84 VehiclePropertyIds.CLUSTER_DISPLAY_STATE);
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java28 import android.car.VehiclePropertyIds;
941 case VehiclePropertyIds.INITIAL_USER_INFO: in checkSupportedProperty()
942 case VehiclePropertyIds.SWITCH_USER: in checkSupportedProperty()
943 case VehiclePropertyIds.CREATE_USER: in checkSupportedProperty()
944 case VehiclePropertyIds.REMOVE_USER: in checkSupportedProperty()
945 case VehiclePropertyIds.USER_IDENTIFICATION_ASSOCIATION: in checkSupportedProperty()
947 + VehiclePropertyIds.toString(propId) + " (" + propId + ")"); in checkSupportedProperty()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vehiclectrl/
DVehicleCtrlFragment.java23 import android.car.VehiclePropertyIds;
109 mPropMgr.registerCallback(mPropCb, VehiclePropertyIds.WINDOW_POS, 10); in subscribeProps()
117 if (prop.getPropertyId() == VehiclePropertyIds.WINDOW_POS) { in onPropertyEvent()
133 mPropMgr.setIntProperty(VehiclePropertyIds.WINDOW_MOVE, windowId, speed); in moveWindow()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisher.java19 import android.car.VehiclePropertyIds;
85 "Vehicle property " + VehiclePropertyIds.toString(propertyId) + " not found."); in onDataSubscriberAdded()
90 "No access. Cannot read " + VehiclePropertyIds.toString(propertyId) + "."); in onDataSubscriberAdded()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothDeviceConnectionPolicyTest.java38 import android.car.VehiclePropertyIds;
157 .getPropertySafe(eq(VehiclePropertyIds.INFO_DRIVER_SEAT), anyInt())) in setUp()
158 .thenReturn(new CarPropertyValue<Integer>(VehiclePropertyIds.INFO_DRIVER_SEAT, in setUp()
226 VehiclePropertyIds.SEAT_OCCUPANCY, seat, in sendSeatOnOccupied()
581 .getPropertySafe(eq(VehiclePropertyIds.INFO_DRIVER_SEAT), anyInt())) in testGetDriverSeatLocationNull_policyCreated()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsTemperaturePreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
103 VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
DUnitsPressurePreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
91 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
104 VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
DUnitsDistancePreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.DISTANCE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
102 verify(mCarUnitsManager).setUnitUsedByProperty(VehiclePropertyIds.DISTANCE_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
DUnitsFuelConsumptionPreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
106 VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
DUnitsVolumePreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
102 verify(mCarUnitsManager).setUnitUsedByProperty(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
DUnitsEnergyConsumptionPreferenceControllerTest.java25 import android.car.VehiclePropertyIds;
91 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
107 VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS, in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()

123