/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/ |
D | CarPropertyErrorCodesUnitTest.java | 23 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 …]
|
D | CarPropertyManagerUnitTest.java | 26 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/ |
D | TestPropertyAsyncCallback.java | 20 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/ |
D | Subscription.java | 65 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()
|
D | CarPropertyEvent.java | 42 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/ |
D | CarPropertyTest.java | 29 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/ |
D | CarPropertyManagerTest.java | 29 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/ |
D | lint-baseline.txt | 10 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/ |
D | StatusBarSensorInfoManager.java | 26 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/ |
D | TemperatureViewModel.java | 25 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/ |
D | CarPropertyEventTest.java | 23 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()
|
D | CarPropertyManagerTest.java | 19 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/ |
D | CarPropertyErrorCodes.java | 22 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/ |
D | UnitsBasePreferenceController.java | 23 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() {
|
D | CarUnitsManager.java | 25 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/ |
D | PropertyTestFragment.java | 30 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/ |
D | CarVendorExtensionManager.java | 22 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/ |
D | VehicleCtrlFragment.java | 27 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/ |
D | CarPropertyEventCallbackControllerUnitTest.java | 29 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/ |
D | SubscriptionTest.java | 111 .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/ |
D | KitchenSinkHelperImpl.java | 25 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/ |
D | ClusterViewModel.java | 30 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/ |
D | CarHvacManager.java | 25 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/ |
D | CarPropertyHelper.java | 24 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/ |
D | TemperatureViewModelTest.java | 37 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()
|