Home
last modified time | relevance | path

Searched refs:intValues (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tools/emulator/
Ddiagjson.example5 "intValues": [
49 "intValues": [
93 "intValues": [
137 "intValues": [
181 "intValues": [
225 "intValues": [
269 "intValues": [
313 "intValues": [
357 "intValues": [
401 "intValues": [
[all …]
Dobd2_to_diagjson.py118 self.store.intValues = []
122 self.store.intValues.append(d)
125 def intValues(self): member in Event
128 for value in self.store.intValues:
151 for intValue in json.intValues:
162 for id, value in self.intValues():
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java52 private final SparseIntArray intValues; field in CarDiagnosticEvent
77 intValues = new SparseIntArray(len); in CarDiagnosticEvent()
81 intValues.put(key, value); in CarDiagnosticEvent()
102 dest.writeInt(intValues.size()); in writeToParcel()
103 for (int i = 0; i < intValues.size(); ++i) { in writeToParcel()
104 int key = intValues.keyAt(i); in writeToParcel()
106 dest.writeInt(intValues.get(key)); in writeToParcel()
143 for (int i = 0; i < intValues.size(); ++i) { in writeToJson()
145 jsonWriter.name("id").value(intValues.keyAt(i)); in writeToJson()
146 jsonWriter.name("value").value(intValues.valueAt(i)); in writeToJson()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorEvent.java115 public final int[] intValues; field in CarSensorEvent
135 intValues = new int[intValueSize]; in CarSensorEvent()
149 public CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument
154 this.intValues = (intValues == null) ? EMPTY_INT_ARRAY : intValues; in CarSensorEvent()
175 this.intValues = EMPTY_INT_ARRAY; in CarSensorEvent()
177 this.intValues = new int[byteValues.length]; in CarSensorEvent()
179 this.intValues[i] = byteValues[i]; in CarSensorEvent()
261 return new ParkingBrakeData(timestamp, (intValues[0] == 1)); in getParkingBrakeData()
290 return new NightData(timestamp, (intValues[0] == 1)); in getNightData()
369 return new DrivingStatusData(timestamp, intValues[0]); in getDrivingStatusData()
[all …]
DCarSensorsProxy.java382 event.intValues[CarSensorEvent.INDEX_LOCATION_LATITUDE_INTS] = in populateLocationCarSensorEvent()
386 event.intValues[CarSensorEvent.INDEX_LOCATION_LATITUDE_INTS] = in populateLocationCarSensorEvent()
410 event.intValues[0] = present; in populateLocationCarSensorEvent()
434 event.intValues[CarSensorEvent.INDEX_GPS_SATELLITE_NUMBER_IN_USE] = numberInUse; in createGpsStatusCarSensorEvent()
435 event.intValues[CarSensorEvent.INDEX_GPS_SATELLITE_NUMBER_IN_VIEW] = numberInView; in createGpsStatusCarSensorEvent()
450 event.intValues[iInt] = satellite.usedInFix() ? 1 : 0; in createGpsStatusCarSensorEvent()
DCarSensorManagerEmbedded.java186 event.intValues, event.longValues); in convert()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java167 public final int[] intValues; field in CarSensorEvent
179 intValues = new int[len]; in CarSensorEvent()
180 in.readIntArray(intValues); in CarSensorEvent()
198 dest.writeInt(intValues.length); in writeToParcel()
199 dest.writeIntArray(intValues); in writeToParcel()
221 intValues = new int[intValueSize]; in CarSensorEvent()
226 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument
231 this.intValues = intValues; in CarSensorEvent()
298 data.isNightMode = intValues[0] == 1; in getNightData()
326 data.gear = intValues[0]; in getGearData()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DRadioHalService.java259 Integer intValues[] = new Integer[4]; in createCarRadioEvent() local
260 v.value.int32Values.toArray(intValues); in createCarRadioEvent()
263 if (!isValidPresetNumber(intValues[0]) && !isValidBand(intValues[1])) { in createCarRadioEvent()
268 new CarRadioPreset(intValues[0], intValues[1], intValues[2], intValues[3]); in createCarRadioEvent()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticJson.java31 public final SparseArray<Integer> intValues; field in DiagnosticJson
38 SparseArray<Integer> intValues, in DiagnosticJson() argument
43 this.intValues = Objects.requireNonNull(intValues); in DiagnosticJson()
49 new SparseArrayIterator<>(intValues) in build()
/packages/services/Car/service/src/com/android/car/
DDrivingStatePolicy.java184 return event.intValues[0] == 1; in isParkingBrakeApplied()
188 int gear = event.intValues[0]; in isGearInParkingOrNeutral()
194 int gear = event.intValues[0]; in isGearInParking()
209 event.intValues[0] = drivingState; in createEvent()
DCarSensorEventFactory.java28 event.intValues[0] = value ? 1 : 0; in createBooleanEvent()
34 event.intValues[0] = value; in createIntEvent()
56 event.intValues[i] = v.value.int32Values.get(i); in createComplexEvent()
DDayNightModePolicy.java90 event.intValues[0] = isNight ? 1 : 0; in createEvent()
DCarNightService.java67 if (event.intValues[0] == 1) { in handleSensorEvent()
DCarSensorService.java176 + ((event == null) ? "not ready" : + event.intValues[0])); in getInitialNightMode()
196 "not ready" : " 0x" + Integer.toHexString(event.intValues[0]))); in getInitialDrivingStatus()
DBluetoothDeviceConnectionPolicy.java637 Log.d(TAG, "Sensor value : " + event.intValues[0]); in onSensorChanged()
639 if (event.intValues[0] == CarSensorEvent.IGNITION_STATE_START) { in onSensorChanged()
/packages/services/Car/tests/CarDiagnosticVerifier/src/com/google/android/car/diagnosticverifier/
DDiagnosticJsonConverter.java72 for (int i = 0; i < diagnosticJson.intValues.size(); i++) { in readEventAndCanonicalize()
73 builder.withIntValue(diagnosticJson.intValues.keyAt(i), in readEventAndCanonicalize()
74 diagnosticJson.intValues.valueAt(i)); in readEventAndCanonicalize()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarSensorManagerTest.java239 assertEquals(CarSensorEvent.IGNITION_STATE_ACC, event.intValues[0]); in testIgnitionState()
278 assertEquals(mgrIgnitionState, eventReceived.intValues[0]); in injectIgnitionStateAndAssert()
336 assertEquals(CarSensorEvent.GEAR_NINTH, event.intValues[0]); in testGear()
352 assertEquals(carSensorValue, event.intValues[0]); in injectGearEventAndAssert()
DCarDiagnosticManagerTest.java536 .intValues in testDiagnosticJson()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java173 Log.d(TAG, "driving status:" + event.intValues[0]);
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java845 mLatestDrivingState = lastEvent.intValues[0]; in resetState()
/packages/services/Car/car-support-lib/api/
Dcurrent.txt109 field public final int[] intValues;
/packages/services/Car/car-lib/api/
D1.txt211 field public final int[] intValues;
D2.txt217 field public final int[] intValues;
Dcurrent.txt225 field public final int[] intValues;
Dsystem-2.txt456 field public final int[] intValues;

12