/packages/services/Car/service/src/com/android/car/ |
D | CarDiagnosticService.java | 22 import android.car.diagnostic.CarDiagnosticEvent; 100 private CarDiagnosticEvent setInitialLiveFrame() { in setInitialLiveFrame() 101 CarDiagnosticEvent liveFrame = null; in setInitialLiveFrame() 121 private CarDiagnosticEvent setRecentmostLiveFrame(final CarDiagnosticEvent event) { in setRecentmostLiveFrame() 129 private CarDiagnosticEvent setRecentmostFreezeFrame(final CarDiagnosticEvent event) { in setRecentmostFreezeFrame() 152 private void processDiagnosticData(List<CarDiagnosticEvent> events) { in processDiagnosticData() 153 ArrayMap<CarDiagnosticService.DiagnosticClient, List<CarDiagnosticEvent>> eventsByClient = in processDiagnosticData() 159 for (CarDiagnosticEvent event : events) { in processDiagnosticData() 177 List<CarDiagnosticEvent> clientEvents = eventsByClient.computeIfAbsent(client, in processDiagnosticData() 185 for (ArrayMap.Entry<CarDiagnosticService.DiagnosticClient, List<CarDiagnosticEvent>> entry : in processDiagnosticData() [all …]
|
/packages/services/Car/tests/CarDiagnosticVerifier/src/com/google/android/car/diagnosticverifier/ |
D | DiagnosticVerifier.java | 18 import android.car.diagnostic.CarDiagnosticEvent; 65 private final List<CarDiagnosticEvent> mTruthEventList = new ArrayList<>(); 69 private final List<CarDiagnosticEvent> mReceivedEventList = new ArrayList<>(); 105 public DiagnosticVerifier(List<CarDiagnosticEvent> truthEvents) { in DiagnosticVerifier() 107 for (CarDiagnosticEvent event : truthEvents) { in DiagnosticVerifier() 108 CarDiagnosticEvent canonicalEvent = canonicalize(event); in DiagnosticVerifier() 114 public void receiveEvent(CarDiagnosticEvent event) { in receiveEvent() 115 CarDiagnosticEvent newEvent = canonicalize(event); in receiveEvent() 182 CarDiagnosticEvent trueEvent = mTruthEventList.get(i - 1); in calculateDiffOperations() 183 CarDiagnosticEvent receivedEvent = mReceivedEventList.get(j - 1); in calculateDiffOperations() [all …]
|
D | DiagnosticJsonConverter.java | 18 import android.car.diagnostic.CarDiagnosticEvent; 33 public static List<CarDiagnosticEvent> readFromJson(InputStream in) throws IOException { in readFromJson() 43 private static List<CarDiagnosticEvent> readEventsArray(JsonReader reader) throws IOException { in readEventsArray() 44 List<CarDiagnosticEvent> events = new ArrayList<>(); in readEventsArray() 54 public static CarDiagnosticEvent readEventAndCanonicalize(InputStream in) throws IOException { in readEventAndCanonicalize() 63 private static CarDiagnosticEvent readEventAndCanonicalize(JsonReader reader) in readEventAndCanonicalize() 67 CarDiagnosticEvent.Builder builder = "freeze".equals(diagnosticJson.type) ? in readEventAndCanonicalize() 68 CarDiagnosticEvent.Builder.newFreezeFrameBuilder() : in readEventAndCanonicalize() 69 CarDiagnosticEvent.Builder.newLiveFrameBuilder(); in readEventAndCanonicalize()
|
D | MainActivity.java | 21 import android.car.diagnostic.CarDiagnosticEvent; 112 public void onDiagnosticEvent(CarDiagnosticEvent carDiagnosticEvent) { in onDiagnosticEvent() 167 List<CarDiagnosticEvent> events; in onCreate()
|
/packages/services/Car/car-lib/src/android/car/diagnostic/ |
D | CarDiagnosticEvent.java | 38 public class CarDiagnosticEvent implements Parcelable { class 66 public CarDiagnosticEvent(Parcel in) { in CarDiagnosticEvent() method in CarDiagnosticEvent 167 public static final Parcelable.Creator<CarDiagnosticEvent> CREATOR = 168 new Parcelable.Creator<CarDiagnosticEvent>() { 169 public CarDiagnosticEvent createFromParcel(Parcel in) { 170 return new CarDiagnosticEvent(in); 173 public CarDiagnosticEvent[] newArray(int size) { 174 return new CarDiagnosticEvent[size]; 178 private CarDiagnosticEvent( in CarDiagnosticEvent() method in CarDiagnosticEvent 241 public CarDiagnosticEvent build() { in build() [all …]
|
D | CarDiagnosticManager.java | 73 private final SingleMessageHandler<CarDiagnosticEvent> mHandlerCallback; 82 mHandlerCallback = new SingleMessageHandler<CarDiagnosticEvent>(handler.getLooper(), in CarDiagnosticManager() 85 protected void handleEvent(CarDiagnosticEvent event) { in CarDiagnosticManager() 114 void onDiagnosticEvent(final CarDiagnosticEvent carDiagnosticEvent); in onDiagnosticEvent() 226 CarDiagnosticEvent getLatestLiveFrame() throws CarNotConnectedException { in getLatestLiveFrame() 269 CarDiagnosticEvent getFreezeFrame(long timestamp) in getFreezeFrame() 377 List<CarDiagnosticEvent> events) { in handleOnDiagnosticEvents() 382 public void onDiagnosticEvents(List<CarDiagnosticEvent> events) { in onDiagnosticEvents() 395 void onDiagnosticEvent(final CarDiagnosticEvent event) { in onDiagnosticEvent() 404 final CarDiagnosticEvent eventToDispatch = hasVendorExtensionPermission ? in onDiagnosticEvent()
|
D | ICarDiagnostic.aidl | 19 import android.car.diagnostic.CarDiagnosticEvent; 33 CarDiagnosticEvent getLatestLiveFrame() = 2; in getLatestLiveFrame() 43 CarDiagnosticEvent getFreezeFrame(long timestamp) = 4; in getFreezeFrame()
|
D | ICarDiagnosticEventListener.aidl | 19 import android.car.diagnostic.CarDiagnosticEvent; 25 void onDiagnosticEvents(in List<CarDiagnosticEvent> events) = 0;
|
D | CarDiagnosticEvent.aidl | 19 parcelable CarDiagnosticEvent;
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarDiagnosticManagerTest.java | 22 import android.car.diagnostic.CarDiagnosticEvent; 23 import android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus; 24 import android.car.diagnostic.CarDiagnosticEvent.FuelType; 25 import android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors; 26 import android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors; 27 import android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors; 28 import android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus; 234 CarDiagnosticEvent liveFrame = mCarDiagnosticManager.getLatestLiveFrame(); in testLiveFrameRead() 281 CarDiagnosticEvent liveFrame = listener.getLastEvent(); in testLiveFrameEvent() 300 CarDiagnosticEvent liveFrame = listener.getLastEvent(); in testMissingSensorRead() [all …]
|
D | CarDiagnosticConstantsTest.java | 142 android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.class); in testFuelSystemStatus() 147 android.car.diagnostic.CarDiagnosticEvent.FuelType.class); in testFuelType() 152 android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.class); in testSecondaryAirStatus() 157 android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors.class); in testIgnitionMonitors() 160 android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors.class); in testIgnitionMonitors() 163 android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors.class); in testIgnitionMonitors()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | DiagnosticHalService.java | 20 import android.car.diagnostic.CarDiagnosticEvent; 154 private CarDiagnosticEvent createCarDiagnosticEvent(VehiclePropValue value) { in createCarDiagnosticEvent() 160 CarDiagnosticEvent.Builder builder = in createCarDiagnosticEvent() 162 ? CarDiagnosticEvent.Builder.newFreezeFrameBuilder() in createCarDiagnosticEvent() 163 : CarDiagnosticEvent.Builder.newLiveFrameBuilder()) in createCarDiagnosticEvent() 195 void onDiagnosticEvents(List<CarDiagnosticEvent> events); in onDiagnosticEvents() 199 private final LinkedList<CarDiagnosticEvent> mEventsToDispatch = new LinkedList<>(); 204 CarDiagnosticEvent event = createCarDiagnosticEvent(value); in handleHalEvents() 267 public CarDiagnosticEvent getCurrentLiveFrame() { in getCurrentLiveFrame() 300 public CarDiagnosticEvent getFreezeFrame(long timestamp) { in getFreezeFrame()
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 360 public class CarDiagnosticEvent implements android.os.Parcelable { 361 ctor public CarDiagnosticEvent(android.os.Parcel); 365 …method public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors… 379 …blic static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR; 385 public static class CarDiagnosticEvent.Builder { 386 method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long); 387 method public android.car.diagnostic.CarDiagnosticEvent build(); 388 method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder(); 389 method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder(); 390 method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(java.lang.String); [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDiagnosticManagerTest.java | 20 import android.car.diagnostic.CarDiagnosticEvent; 85 CarDiagnosticEvent liveFrame = mCarDiagnosticManager.getLatestLiveFrame(); in testLiveFrame() 101 CarDiagnosticEvent freezeFrame = mCarDiagnosticManager.getFreezeFrame(timestamp); in testFreezeFrames()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/diagnostic/ |
D | DiagnosticTestFragment.java | 21 import android.car.diagnostic.CarDiagnosticEvent; 54 public void onDiagnosticEvent(CarDiagnosticEvent carDiagnosticEvent) { in onDiagnosticEvent()
|