Home
last modified time | relevance | path

Searched refs:CarPropertyManager (Results 1 – 25 of 84) sorted by relevance

1234

/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DCarPropertyErrorCodesUnitTest.java23 import android.car.hardware.property.CarPropertyManager;
55 CarPropertyManager.STATUS_ERROR_INTERNAL_ERROR, NO_ERROR, NO_ERROR); in testCarPropertyErrorCodesStatusInternalError()
58 .isEqualTo(CarPropertyManager.STATUS_ERROR_INTERNAL_ERROR); in testCarPropertyErrorCodesStatusInternalError()
68 CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE, NO_ERROR, NO_ERROR); in testCarPropertyErrorCodesStatusNotAvailable()
71 .isEqualTo(CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE); in testCarPropertyErrorCodesStatusNotAvailable()
81 CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE, in testCarPropertyErrorCodesStatusNotAvailableSpeedLow()
86 .isEqualTo(CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE); in testCarPropertyErrorCodesStatusNotAvailableSpeedLow()
96 CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE, in testCarPropertyErrorCodesStatusNotAvailableVendorError()
101 .isEqualTo(CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE); in testCarPropertyErrorCodesStatusNotAvailableVendorError()
124 CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE); in testConvertHalToCarPropertyManagerErrorStatus()
[all …]
DCarPropertyManagerUnitTest.java26 import static android.car.hardware.property.CarPropertyManager.GetPropertyResult;
27 import static android.car.hardware.property.CarPropertyManager.PropertyAsyncError;
28 import static android.car.hardware.property.CarPropertyManager.SENSOR_RATE_ONCHANGE;
29 import static android.car.hardware.property.CarPropertyManager.SetPropertyRequest;
30 import static android.car.hardware.property.CarPropertyManager.SetPropertyResult;
152 private CarPropertyManager.CarPropertyEventCallback mCarPropertyEventCallback;
154 private CarPropertyManager.CarPropertyEventCallback mCarPropertyEventCallback2;
156 private CarPropertyManager.GetPropertyCallback mGetPropertyCallback;
158 private CarPropertyManager.SetPropertyCallback mSetPropertyCallback;
178 private CarPropertyManager mCarPropertyManager;
[all …]
/packages/services/Car/tests/common_utils/src/com/android/car/test/
DTestPropertyAsyncCallback.java20 import android.car.hardware.property.CarPropertyManager;
30 public final class TestPropertyAsyncCallback implements CarPropertyManager.GetPropertyCallback,
31 CarPropertyManager.SetPropertyCallback {
39 private final List<CarPropertyManager.GetPropertyResult<?>> mGetResultList =
42 private final List<CarPropertyManager.SetPropertyResult> mSetResultList = new ArrayList<>();
44 private final List<CarPropertyManager.PropertyAsyncError> mErrorList = new ArrayList<>();
53 public void onSuccess(@NonNull CarPropertyManager.GetPropertyResult<?> getPropertyResult) { in onSuccess()
68 public void onSuccess(@NonNull CarPropertyManager.SetPropertyResult setPropertyResult) { in onSuccess()
83 public void onFailure(@NonNull CarPropertyManager.PropertyAsyncError propertyAsyncError) { in onFailure()
117 public List<CarPropertyManager.GetPropertyResult<?>> getGetResultList() { in getGetResultList()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DSubscription.java65 return CarPropertyManager.SENSOR_RATE_UI; in getUpdateRateUi()
74 return CarPropertyManager.SENSOR_RATE_NORMAL; in getUpdateRateNormal()
83 return CarPropertyManager.SENSOR_RATE_FAST; in getUpdateRateFast()
92 return CarPropertyManager.SENSOR_RATE_FASTEST; in getUpdateRateFastest()
151 private float mBuilderUpdateRateHz = CarPropertyManager.SENSOR_RATE_ONCHANGE;
193 mBuilderUpdateRateHz = CarPropertyManager.SENSOR_RATE_UI; in setUpdateRateUi()
203 mBuilderUpdateRateHz = CarPropertyManager.SENSOR_RATE_NORMAL; in setUpdateRateNormal()
213 mBuilderUpdateRateHz = CarPropertyManager.SENSOR_RATE_FAST; in setUpdateRateFast()
223 mBuilderUpdateRateHz = CarPropertyManager.SENSOR_RATE_FASTEST; in setUpdateRateFastest()
DCarPropertyEvent.java42 private final @CarPropertyManager.CarSetPropertyErrorCode int mErrorCode;
94 mErrorCode = CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_UNKNOWN; in CarPropertyEvent()
102 @CarPropertyManager.CarSetPropertyErrorCode int errorCode) { in CarPropertyEvent()
117 @CarPropertyManager.CarSetPropertyErrorCode int errorCode) { in createErrorEventWithErrorCode()
127 public @CarPropertyManager.CarSetPropertyErrorCode int getErrorCode() { in getErrorCode()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java29 import android.car.hardware.property.CarPropertyManager;
30 import android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback;
155 private void setPropertyAndWaitForValueChange(CarPropertyManager propMgr, in setPropertyAndWaitForValueChange()
202 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in testHvacActionsFromAndroid()
229 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in testHvacHardButtonOperations()
263 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in testStaticInfoOperations()
281 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in testMixedTypeProperty()
323 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in testPropertyEventOutOfOrder()
330 CarPropertyManager.SENSOR_RATE_ONCHANGE); in testPropertyEventOutOfOrder()
348 CarPropertyManager propMgr = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in checkVendorPropertyPermission()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyManagerTest.java29 import android.car.hardware.property.CarPropertyManager;
65 private CarPropertyManager mCarPropertyManager;
74 mCarPropertyManager = (CarPropertyManager) getCar().getCarManager(Car.PROPERTY_SERVICE); in setUp()
169 List<CarPropertyManager.SetPropertyRequest<?>> setPropertyRequests = new ArrayList<>(); in testSetPropertiesAsyncWithLargeNumberRequests()
172 CarPropertyManager.SetPropertyRequest setRequest = in testSetPropertiesAsyncWithLargeNumberRequests()
186 List<CarPropertyManager.SetPropertyResult> results = callback.getSetResultList(); in testSetPropertiesAsyncWithLargeNumberRequests()
214 List<CarPropertyManager.GetPropertyRequest> getPropertyRequests = new ArrayList<>(); in testGetPropertiesAsyncWithLargeNumberRequests()
217 CarPropertyManager.GetPropertyRequest getRequest = in testGetPropertiesAsyncWithLargeNumberRequests()
230 List<CarPropertyManager.GetPropertyResult<?>> results = callback.getGetResultList(); in testGetPropertiesAsyncWithLargeNumberRequests()
/packages/services/Car/car-lib/api/
Dlint-baseline.txt10 CallbackInterface: android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback:
18 ConcreteCollection: android.car.hardware.property.CarPropertyManager#getPropertyList(android.util.A…
38 …on: android.car.hardware.property.CarPropertyManager#registerCallback(android.car.hardware.propert…
138 MissingNullability: android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback#onCha…
1442 UnflaggedApi: android.car.hardware.property.CarPropertyManager:
1443 New API must be flagged with @FlaggedApi: class android.car.hardware.property.CarPropertyManager
1444 UnflaggedApi: android.car.hardware.property.CarPropertyManager#ASYNC_GET_DEFAULT_TIMEOUT_MS:
1445 …t be flagged with @FlaggedApi: field android.car.hardware.property.CarPropertyManager.ASYNC_GET_DE…
1446 UnflaggedApi: android.car.hardware.property.CarPropertyManager#CAR_SET_PROPERTY_ERROR_CODE_ACCESS_D…
1447 …t be flagged with @FlaggedApi: field android.car.hardware.property.CarPropertyManager.CAR_SET_PROP…
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DStatusBarSensorInfoManager.java26 import android.car.hardware.property.CarPropertyManager;
55 private CarPropertyManager mCarPropertyManager;
60 private final CarPropertyManager.CarPropertyEventCallback mPropertyEventCallback =
61 new CarPropertyManager.CarPropertyEventCallback() {
81 (CarPropertyManager) car.getCarManager(Car.PROPERTY_SERVICE);
131 CarPropertyManager.SENSOR_RATE_ONCHANGE); in registerHvacPropertyEventListeners()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/calmmode/
DTemperatureViewModel.java25 import android.car.hardware.property.CarPropertyManager;
40 implements CarPropertyManager.CarPropertyEventCallback {
44 private CarPropertyManager mPropertyManager;
53 mPropertyManager = mCar.getCarManager(CarPropertyManager.class); in TemperatureViewModel()
56 CarPropertyManager.SENSOR_RATE_ONCHANGE); in TemperatureViewModel()
58 CarPropertyManager.SENSOR_RATE_ONCHANGE); in TemperatureViewModel()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyEventTest.java23 import android.car.hardware.property.CarPropertyManager;
43 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG;
70 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_UNKNOWN); in testCreateErrorEvent()
73 .isEqualTo(CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_UNKNOWN); in testCreateErrorEvent()
132 int differentErrorCode = CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_UNKNOWN; in equals_returnsFalseForDifferentErrorCodes()
150 int differentErrorCode = CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_UNKNOWN; in hashCode_returnsDifferentValueForDifferentCarPropertyEvent()
DCarPropertyManagerTest.java19 import static android.car.hardware.property.CarPropertyManager.STATUS_ERROR_INTERNAL_ERROR;
20 import static android.car.hardware.property.CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE;
21 import static android.car.hardware.property.CarPropertyManager.STATUS_ERROR_TIMEOUT;
35 import android.car.hardware.property.CarPropertyManager;
36 import android.car.hardware.property.CarPropertyManager.GetPropertyRequest;
37 import android.car.hardware.property.CarPropertyManager.GetPropertyResult;
38 import android.car.hardware.property.CarPropertyManager.PropertyAsyncError;
39 import android.car.hardware.property.CarPropertyManager.SetPropertyRequest;
40 import android.car.hardware.property.CarPropertyManager.SetPropertyResult;
233 private CarPropertyManager mManager;
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyErrorCodes.java22 import android.car.hardware.property.CarPropertyManager;
66 CarPropertyManager.STATUS_ERROR_INTERNAL_ERROR,
67 CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE,
68 CarPropertyManager.STATUS_ERROR_TIMEOUT,
132 carPropertyManagerErrorCode = CarPropertyManager.STATUS_ERROR_NOT_AVAILABLE; in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
138 carPropertyManagerErrorCode = CarPropertyManager.STATUS_ERROR_INTERNAL_ERROR; in convertVhalStatusCodeToCarPropertyManagerErrorCodes()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsBasePreferenceController.java23 import android.car.hardware.property.CarPropertyManager;
45 public void handleServiceConnected(CarPropertyManager carPropertyManager) {
49 getPropertyId(), CarPropertyManager.SENSOR_RATE_ONCHANGE);
75 protected final CarPropertyManager.CarPropertyEventCallback mCarPropertyEventCallback =
76 new CarPropertyManager.CarPropertyEventCallback() {
DCarUnitsManager.java25 import android.car.hardware.property.CarPropertyManager;
41 private CarPropertyManager mCarPropertyManager;
48 (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in CarUnitsManager()
167 void handleServiceConnected(CarPropertyManager carPropertyManager); in handleServiceConnected()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyTestFragment.java30 import android.car.hardware.property.CarPropertyManager;
31 import android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback;
32 import android.car.hardware.property.CarPropertyManager.GetPropertyCallback;
33 import android.car.hardware.property.CarPropertyManager.GetPropertyRequest;
34 import android.car.hardware.property.CarPropertyManager.GetPropertyResult;
94 private CarPropertyManager mMgr;
120 public void onFailure(@NonNull CarPropertyManager.PropertyAsyncError propertyAsyncError) {
128 private CarPropertyManager.SetPropertyCallback mSetPropertyCallback =
129 new CarPropertyManager.SetPropertyCallback() {
132 @NonNull CarPropertyManager.SetPropertyResult setPropertyResult) {
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java22 import android.car.hardware.property.CarPropertyManager;
23 import android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback;
49 private final CarPropertyManager mPropertyManager;
88 mPropertyManager = new CarPropertyManager(car, mCarPropertyService); in CarVendorExtensionManager()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vehiclectrl/
DVehicleCtrlFragment.java27 import android.car.hardware.property.CarPropertyManager;
61 private CarPropertyManager mPropMgr;
64 private final CarPropertyManager.CarPropertyEventCallback mPropCb =
65 new CarPropertyManager.CarPropertyEventCallback() {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/
DCarPropertyEventCallbackControllerUnitTest.java29 import android.car.hardware.property.CarPropertyManager;
94 private CarPropertyManager.CarPropertyEventCallback mCarPropertyEventCallback;
350 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG)); in testOnEvent_errorEvent_forwardsToCallback()
355 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG); in testOnEvent_errorEvent_forwardsToCallback()
367 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG)); in testOnEvent_errorEvent_forwardsToMultipleProperties()
371 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG)); in testOnEvent_errorEvent_forwardsToMultipleProperties()
376 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG); in testOnEvent_errorEvent_forwardsToMultipleProperties()
378 CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_INVALID_ARG); in testOnEvent_errorEvent_forwardsToMultipleProperties()
/packages/services/Car/tests/carservice_unit_test/src/android/car/hardware/property/
DSubscriptionTest.java111 .isEqualTo(CarPropertyManager.SENSOR_RATE_UI); in testSetRateUI()
126 .isEqualTo(CarPropertyManager.SENSOR_RATE_NORMAL); in testSetRateNormal()
141 .isEqualTo(CarPropertyManager.SENSOR_RATE_FAST); in testSetRateFast()
156 .isEqualTo(CarPropertyManager.SENSOR_RATE_FASTEST); in testSetRateFastest()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkHelperImpl.java25 import android.car.hardware.property.CarPropertyManager;
52 private CarPropertyManager mPropertyManager;
94 public CarPropertyManager getPropertyManager() { in getPropertyManager()
97 mPropertyManager = (CarPropertyManager) mCarApi.getCarManager( in getPropertyManager()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterViewModel.java30 import android.car.hardware.property.CarPropertyManager;
76 private CarPropertyManager mCarPropertyManager;
114 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
126 private CarPropertyManager.CarPropertyEventCallback mCarPropertyEventCallback =
127 new CarPropertyManager.CarPropertyEventCallback() {
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java25 import android.car.hardware.property.CarPropertyManager;
26 import android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback;
50 private final CarPropertyManager mCarPropertyMgr;
315 mCarPropertyMgr = new CarPropertyManager(car, mCarPropertyService); in CarHvacManager()
/packages/services/Car/libs/backported-car-property-helper-lib/src/com/android/car/property/backported/
DCarPropertyHelper.java24 import android.car.hardware.property.CarPropertyManager;
38 private final CarPropertyManager mCarPropertyManager;
88 public CarPropertyHelper(CarPropertyManager carPropertyManager) { in CarPropertyHelper()
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/calmmode/
DTemperatureViewModelTest.java37 import android.car.hardware.property.CarPropertyManager;
63 private CarPropertyManager mCarPropertyManager;
73 when(mCar.getCarManager(CarPropertyManager.class)).thenReturn(mCarPropertyManager); in setUp()
111 when(mCar.getCarManager(CarPropertyManager.class)).thenReturn(null); in newTemperatureViewModel_nullCarPropertyManager_throwsException()

1234