Home
last modified time | relevance | path

Searched refs:CarPropertyEvent (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/property/
DCarPropertyServiceClientUnitTest.java18 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_ERROR;
19 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE;
32 import android.car.hardware.property.CarPropertyEvent;
109 private ArgumentCaptor<List<CarPropertyEvent>> mCarPropertyEventListCaptor;
192 List<CarPropertyEvent> events = List.of( in testOnEvent_listenerNotCalledIfNoPropertyAdded()
193 new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE, GOOD_CAR_PROPERTY_VALUE)); in testOnEvent_listenerNotCalledIfNoPropertyAdded()
202 List<CarPropertyEvent> events = List.of( in testOnEvent_listenerNotCalledIfBinderDead()
203 new CarPropertyEvent(PROPERTY_EVENT_ERROR, ERROR_CAR_PROPERTY_VALUE)); in testOnEvent_listenerNotCalledIfBinderDead()
214 List<CarPropertyEvent> events = List.of( in testOnEvent_listenerCalledForErrorEvents()
215 new CarPropertyEvent(PROPERTY_EVENT_ERROR, ERROR_CAR_PROPERTY_VALUE)); in testOnEvent_listenerCalledForErrorEvents()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/
DCarPropertyEventCallbackControllerUnitTest.java28 import android.car.hardware.property.CarPropertyEvent;
199 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_doesNothingIfNoPropertiesAdded()
212 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_forwardsToCallback()
227 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_forwardsMultipleEvents()
230 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_forwardsMultipleEvents()
244 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_skipsStaleCarPropertyValues()
247 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_skipsStaleCarPropertyValues()
261 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_skipsCarPropertyValuesWithNonZeroUpdateRate()
264 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_skipsCarPropertyValuesWithNonZeroUpdateRate()
278 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testOnEvent_changeEvent_forwardsFreshCarPropertyValues()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyEvent.java31 public class CarPropertyEvent implements Parcelable { class
75 public static final Parcelable.Creator<CarPropertyEvent> CREATOR =
76 new Parcelable.Creator<CarPropertyEvent>() {
79 public CarPropertyEvent createFromParcel(Parcel in) {
80 return new CarPropertyEvent(in);
84 public CarPropertyEvent[] newArray(int size) {
85 return new CarPropertyEvent[size];
92 public CarPropertyEvent(int eventType, @NonNull CarPropertyValue<?> carPropertyValue) { in CarPropertyEvent() method in CarPropertyEvent
101 public CarPropertyEvent(int eventType, @NonNull CarPropertyValue<?> carPropertyValue, in CarPropertyEvent() method in CarPropertyEvent
116 public static CarPropertyEvent createErrorEventWithErrorCode(int propertyId, int areaId, in createErrorEventWithErrorCode()
[all …]
DICarPropertyEventListener.aidl19 import android.car.hardware.property.CarPropertyEvent;
31 void onEvent(in List<CarPropertyEvent> events) = 0;
DCarPropertyEvent.aidl19 parcelable CarPropertyEvent;
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyEventTest.java22 import android.car.hardware.property.CarPropertyEvent;
41 private static final int EVENT_TYPE = CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE;
44 private static final CarPropertyEvent CAR_PROPERTY_EVENT = new CarPropertyEvent(EVENT_TYPE,
68 CarPropertyEvent carPropertyEvent = CarPropertyEvent in testCreateErrorEvent()
75 CarPropertyEvent.PROPERTY_EVENT_ERROR); in testCreateErrorEvent()
83 CarPropertyEvent carPropertyEvent = new CarPropertyEvent( in testWriteAndReadEvent()
84 CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, value); in testWriteAndReadEvent()
87 CarPropertyEvent eventReadFromParcel = readFromParcel(); in testWriteAndReadEvent()
96 .isEqualTo(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE); in testWriteAndReadEvent()
116 int differentEventType = CarPropertyEvent.PROPERTY_EVENT_ERROR; in equals_returnsFalseForDifferentEventTypes()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisherTest.java19 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE;
37 import android.car.hardware.property.CarPropertyEvent;
78 private static final CarPropertyEvent PROP_STRING_EVENT =
79 new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE,
81 private static final CarPropertyEvent PROP_BOOLEAN_EVENT =
82 new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE,
84 private static final CarPropertyEvent PROP_INT_EVENT =
85 new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE,
87 private static final CarPropertyEvent PROP_INT_VEC_EVENT =
88 new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE,
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyEventCallbackController.java22 import android.car.hardware.property.CarPropertyEvent;
54 public void onEvent(CarPropertyEvent carPropertyEvent) { in onEvent()
64 CarPropertyEvent updatedCarPropertyEvent; in onEvent()
66 updatedCarPropertyEvent = new CarPropertyEvent(carPropertyEvent.getEventType(), in onEvent()
72 case CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE: in onEvent()
75 case CarPropertyEvent.PROPERTY_EVENT_ERROR: in onEvent()
DCarPropertyEventController.java23 import android.car.hardware.property.CarPropertyEvent;
159 CarPropertyEvent carPropertyEvent) { in getCarPropertyValueIfCallbackRequired()
172 if (carPropertyEvent.getEventType() == CarPropertyEvent.PROPERTY_EVENT_ERROR) { in getCarPropertyValueIfCallbackRequired()
/packages/services/Car/service/src/com/android/car/property/
DCarPropertyServiceClient.java21 import android.car.hardware.property.CarPropertyEvent;
165 public void onEvent(List<CarPropertyEvent> events) throws RemoteException { in onEvent()
166 List<CarPropertyEvent> filteredEvents = new ArrayList<>(); in onEvent()
172 CarPropertyEvent event = events.get(i); in onEvent()
178 CarPropertyEvent updatedEvent = in onEvent()
179 new CarPropertyEvent(event.getEventType(), carPropertyValue, in onEvent()
196 public void onFilteredEvents(List<CarPropertyEvent> events) throws RemoteException { in onFilteredEvents()
/packages/services/Car/service/src/com/android/car/
DCarNightService.java28 import android.car.hardware.property.CarPropertyEvent;
76 public void onEvent(List<CarPropertyEvent> events) throws RemoteException {
78 for (CarPropertyEvent event : events) {
105 private void onNightModeCarPropertyEventLocked(CarPropertyEvent event) { in onNightModeCarPropertyEventLocked()
109 if (event.getEventType() == CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE) { in onNightModeCarPropertyEventLocked()
DCarPropertyService.java40 import android.car.hardware.property.CarPropertyEvent;
558 List<CarPropertyEvent> events = new ArrayList<>(); in getAndDispatchPropertyInitValue()
592 CarPropertyEvent event = new CarPropertyEvent( in getAndDispatchPropertyInitValue()
593 CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, carPropertyValue); in getAndDispatchPropertyInitValue()
930 public void onPropertyChange(List<CarPropertyEvent> events) { in onPropertyChange()
931 Map<CarPropertyServiceClient, List<CarPropertyEvent>> eventsToDispatch = new ArrayMap<>(); in onPropertyChange()
934 CarPropertyEvent event = events.get(i); in onPropertyChange()
947 List<CarPropertyEvent> eventsForClient = eventsToDispatch.get(client); in onPropertyChange()
949 eventsToDispatch.put(client, new ArrayList<CarPropertyEvent>()); in onPropertyChange()
989 List<CarPropertyEvent> eventList = new ArrayList<>(); in onPropertySetError()
[all …]
DCarDrivingStateService.java32 import android.car.hardware.property.CarPropertyEvent;
339 public void onEvent(List<CarPropertyEvent> events) throws RemoteException {
341 for (CarPropertyEvent event : events) {
354 void handlePropertyEventLocked(CarPropertyEvent event) { in handlePropertyEventLocked()
355 if (event.getEventType() != CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE) { in handlePropertyEventLocked()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicy.java33 import android.car.hardware.property.CarPropertyEvent;
143 public void onEvent(List<CarPropertyEvent> events) throws RemoteException {
144 for (CarPropertyEvent event : events) {
166 private void onSeatOccupancyCarPropertyEvent(CarPropertyEvent event) { in onSeatOccupancyCarPropertyEvent()
168 || (event.getEventType() != CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE)) { in onSeatOccupancyCarPropertyEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java37 import android.car.hardware.property.CarPropertyEvent;
230 CarPropertyEvent event = new CarPropertyEvent( in sendSeatOnOccupied()
231 CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, value); in sendSeatOnOccupied()
/packages/services/Car/tools/GenericCarApiBuilder/scripts/
Dtracked_hidden_apis.txt12 android.car.hardware.property CarPropertyEvent boolean equals(Object )
13 android.car.hardware.property CarPropertyEvent int hashCode()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java19 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE;
29 import android.car.hardware.property.CarPropertyEvent;
242 List<CarPropertyEvent> events = new ArrayList<>(); in sendEvent()
243 events.add(new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE, v)); in sendEvent()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisher.java30 import android.car.hardware.property.CarPropertyEvent;
68 public void onEvent(List<CarPropertyEvent> events) throws RemoteException {
73 for (CarPropertyEvent event : events) {
200 private void onVehicleEvent(@NonNull CarPropertyEvent event) { in onVehicleEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java51 import android.car.hardware.property.CarPropertyEvent;
440 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testInitService_NoDeadlockWithCarDrivingStateService()
530 new CarPropertyEvent(CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE, in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService()
DCarPropertyServiceUnitTest.java49 import android.car.hardware.property.CarPropertyEvent;
107 private ArgumentCaptor<List<CarPropertyEvent>> mPropertyEventCaptor;
786 List<CarPropertyEvent> eventList = mPropertyEventCaptor.getValue(); in testRegisterListenerWithSubscription()
1176 List<CarPropertyEvent> events = mPropertyEventCaptor.getValue(); in testOnPropertySetError()
1177 assertThat(events).containsExactly(CarPropertyEvent.createErrorEventWithErrorCode( in testOnPropertySetError()
1208 private List<CarPropertyEvent> mEvents;
1216 public void onEvent(List<CarPropertyEvent> events) throws RemoteException { in onEvent()
1238 List<CarPropertyEvent> getEvents() throws Exception { in getEvents()
1258 List<CarPropertyEvent> events = List.of(new CarPropertyEvent(0, value)); in testOnEventCallback_MustNotHaveDeadLock()
1261 List<CarPropertyEvent> actualEvents = listener.getEvents(); in testOnEventCallback_MustNotHaveDeadLock()
[all …]
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt419 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_PROPERTY_CHANGE
420 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_ERROR
421 android.car.hardware.property CarPropertyEvent Parcelable.Creator<CarPropertyEvent> CREATOR
422 android.car.hardware.property CarPropertyEvent CarPropertyEvent CarPropertyEvent(int eventType, Car…
423 android.car.hardware.property CarPropertyEvent CarPropertyEvent CarPropertyEvent(int eventType, Car…
424 android.car.hardware.property CarPropertyEvent int getEventType()
425 android.car.hardware.property CarPropertyEvent CarPropertyValue<?> getCarPropertyValue()
426 android.car.hardware.property CarPropertyEvent int describeContents()
427 android.car.hardware.property CarPropertyEvent void writeToParcel(Parcel dest, int flags)
428 android.car.hardware.property CarPropertyEvent CarPropertyEvent createErrorEventWithErrorCode(int p…
[all …]
Dcar_hidden_apis.txt469 android.car.hardware.property CarPropertyEvent CarPropertyEvent createErrorEventWithErrorCode(int p…
470 android.car.hardware.property CarPropertyEvent CarPropertyValue<?> getCarPropertyValue()
471 android.car.hardware.property CarPropertyEvent Parcelable.Creator<CarPropertyEvent> CREATOR
472 android.car.hardware.property CarPropertyEvent String toString()
473 android.car.hardware.property CarPropertyEvent boolean equals(Object object)
474 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_ERROR
475 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_PROPERTY_CHANGE
476 android.car.hardware.property CarPropertyEvent int describeContents()
477 android.car.hardware.property CarPropertyEvent int getErrorCode()
478 android.car.hardware.property CarPropertyEvent int getEventType()
[all …]
Dcar_hidden_apis_release_33.2.txt380 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_PROPERTY_CHANGE
381 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_ERROR
382 android.car.hardware.property CarPropertyEvent Parcelable.Creator<CarPropertyEvent> CREATOR
383 android.car.hardware.property CarPropertyEvent int getEventType()
384 android.car.hardware.property CarPropertyEvent CarPropertyValue<?> getCarPropertyValue()
385 android.car.hardware.property CarPropertyEvent int describeContents()
386 android.car.hardware.property CarPropertyEvent void writeToParcel(Parcel dest, int flags)
387 android.car.hardware.property CarPropertyEvent CarPropertyEvent createErrorEventWithErrorCode(int p…
388 android.car.hardware.property CarPropertyEvent int getErrorCode()
389 android.car.hardware.property CarPropertyEvent String toString()
Dcar_hidden_apis_release_33.1.txt380 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_PROPERTY_CHANGE
381 android.car.hardware.property CarPropertyEvent int PROPERTY_EVENT_ERROR
382 android.car.hardware.property CarPropertyEvent Parcelable.Creator<CarPropertyEvent> CREATOR
383 android.car.hardware.property CarPropertyEvent int getEventType()
384 android.car.hardware.property CarPropertyEvent CarPropertyValue<?> getCarPropertyValue()
385 android.car.hardware.property CarPropertyEvent int describeContents()
386 android.car.hardware.property CarPropertyEvent void writeToParcel(Parcel dest, int flags)
387 android.car.hardware.property CarPropertyEvent CarPropertyEvent createErrorEventWithErrorCode(int p…
388 android.car.hardware.property CarPropertyEvent int getErrorCode()
389 android.car.hardware.property CarPropertyEvent String toString()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DCarEvsServiceUnitTest.java30 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_ERROR;
31 import static android.car.hardware.property.CarPropertyEvent.PROPERTY_EVENT_PROPERTY_CHANGE;
62 import android.car.hardware.property.CarPropertyEvent;
651 CarPropertyEvent event = new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE, in testCarPropertyEvent()
667 CarPropertyEvent event = new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE, in testCarPropertyEventWithInvalidEvsCameraActivity()
739 CarPropertyEvent event = new CarPropertyEvent(PROPERTY_EVENT_ERROR, in testNonPropertyChangeEvent()
759 CarPropertyEvent event = new CarPropertyEvent(PROPERTY_EVENT_PROPERTY_CHANGE, in testNonGearSelectionProperty()

12