OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CarSensorManager
(Results
1 - 19
of
19
) sorted by null
/cts/tests/tests/car/src/android/car/cts/
CarSensorManagerTest.java
21
import android.car.hardware.
CarSensorManager
;
25
private
CarSensorManager
mCarSensorManager;
30
mCarSensorManager = (
CarSensorManager
) getCar().getCarManager(Car.SENSOR_SERVICE);
38
if (sensor ==
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS) {
45
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
46
assertTrue(
CarSensorManager
.isSensorSupported(supportedSensors,
47
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
49
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
CarSensorManagerTest.java
25
import android.support.car.hardware.
CarSensorManager
;
38
private
CarSensorManager
mCarSensorManager;
78
(
CarSensorManager
) mCar.getCarManager(Car.SENSOR_SERVICE);
92
if (sensor ==
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS) {
99
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
100
assertTrue(
CarSensorManager
.isSensorSupported(supportedSensors,
101
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
103
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
108
assertEquals(android.car.hardware.
CarSensorManager
.SENSOR_TYPE_CAR_SPEED,
109
CarSensorManager
.SENSOR_TYPE_CAR_SPEED)
[
all
...]
CarTest.java
23
import android.support.car.hardware.
CarSensorManager
;
78
CarSensorManager
carSensorManager
=
79
(
CarSensorManager
) car.getCarManager(Car.SENSOR_SERVICE);
80
assertNotNull(
carSensorManager
);
81
CarSensorManager
carSensorManager2 =
82
(
CarSensorManager
) car.getCarManager(Car.SENSOR_SERVICE);
83
assertEquals(
carSensorManager
, carSensorManager2);
/packages/services/Car/service/src/com/android/car/
DrivingStatePolicy.java
21
import android.car.hardware.
CarSensorManager
;
47
private static final int[] SUPPORTED_SENSORS = {
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS };
74
CarSensorManager
.SENSOR_TYPE_CAR_SPEED,
CarSensorManager
.SENSOR_RATE_FASTEST);
80
CarSensorManager
.SENSOR_TYPE_PARKING_BRAKE,
CarSensorManager
.SENSOR_RATE_FASTEST);
81
boolean hasGear = subscribeIfSupportedLocked(sensorList,
CarSensorManager
.SENSOR_TYPE_GEAR,
82
CarSensorManager
.SENSOR_RATE_FASTEST);
95
if (sensorType !=
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS) {
139
if (!
CarSensorManager
.isSensorSupported(sensorList, sensorType))
[
all
...]
CarNightService.java
23
import android.car.hardware.
CarSensorManager
;
55
if (event.sensorType ==
CarSensorManager
.SENSOR_TYPE_NIGHT) {
83
mCarSensorService.registerOrUpdateSensorListener(
CarSensorManager
.SENSOR_TYPE_NIGHT,
84
CarSensorManager
.SENSOR_RATE_NORMAL, mICarSensorEventListener);
86
CarSensorManager
.SENSOR_TYPE_NIGHT);
DayNightModePolicy.java
21
import android.car.hardware.
CarSensorManager
;
95
CarSensorEvent event = new CarSensorEvent(
CarSensorManager
.SENSOR_TYPE_NIGHT,
CarSensorService.java
22
import android.car.hardware.
CarSensorManager
;
25
import android.car.hardware.
CarSensorManager
.CarSensorEventListener;
64
* upper layer. Currently {@link
CarSensorManager
#SENSOR_TYPE_NIGHT} and
65
* {@link
CarSensorManager
#SENSOR_TYPE_DRIVING_STATUS} falls into this category.
141
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
145
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
148
addNewSensorRecordLocked(
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS, event);
154
event = mSensorHal.getCurrentSensorValue(
CarSensorManager
.SENSOR_TYPE_NIGHT);
157
event = DayNightModePolicy.getDefaultValue(
CarSensorManager
.SENSOR_TYPE_NIGHT);
160
addNewSensorRecordLocked(
CarSensorManager
.SENSOR_TYPE_NIGHT, event)
[
all
...]
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
CarSensorManagerTest.java
25
import android.car.hardware.
CarSensorManager
;
39
private
CarSensorManager
mCarSensorManager;
69
(
CarSensorManager
) mCar.getCarManager(Car.SENSOR_SERVICE);
83
if (sensor ==
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS) {
90
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
91
assertTrue(
CarSensorManager
.isSensorSupported(supportedSensors,
92
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
94
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
CarTest.java
20
import android.car.hardware.
CarSensorManager
;
69
CarSensorManager
carSensorManager
=
70
(
CarSensorManager
) car.getCarManager(Car.SENSOR_SERVICE);
71
assertNotNull(
carSensorManager
);
72
CarSensorManager
carSensorManager2 =
73
(
CarSensorManager
) car.getCarManager(Car.SENSOR_SERVICE);
74
assertEquals(
carSensorManager
, carSensorManager2);
/packages/services/Car/service/src/com/android/car/hal/
SensorHalService.java
20
import android.car.hardware.
CarSensorManager
;
206
case
CarSensorManager
.SENSOR_RATE_FASTEST:
207
case
CarSensorManager
.SENSOR_RATE_FAST:
210
case
CarSensorManager
.SENSOR_RATE_UI:
243
return
CarSensorManager
.SENSOR_TYPE_CAR_SPEED;
245
return
CarSensorManager
.SENSOR_TYPE_GEAR;
247
return
CarSensorManager
.SENSOR_TYPE_NIGHT;
249
return
CarSensorManager
.SENSOR_TYPE_PARKING_BRAKE;
251
return
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS;
253
return
CarSensorManager
.SENSOR_TYPE_FUEL_LEVEL
[
all
...]
/packages/services/Car/car-lib/src/android/car/hardware/
CarSensorEvent.java
37
* Index in {@link #floatValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
42
* Index in {@link #floatValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
47
* Index in {@link #intValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
53
* GEAR_* represents meaning of intValues[0] for {@link
CarSensorManager
#SENSOR_TYPE_GEAR}
112
* Index for {@link
CarSensorManager
#SENSOR_TYPE_ENVIRONMENT} in floatValues.
117
* Index for {@link
CarSensorManager
#SENSOR_TYPE_ENVIRONMENT} in floatValues.
124
/** Sensor type for this event like {@link
CarSensorManager
#SENSOR_TYPE_CAR_SPEED}. */
210
* object with type {@link
CarSensorManager
#SENSOR_TYPE_ENVIRONMENT}.
217
checkType(
CarSensorManager
.SENSOR_TYPE_ENVIRONMENT);
234
* object with type {@link
CarSensorManager
#SENSOR_TYPE_NIGHT}
[
all
...]
CarSensorManager.java
44
public class
CarSensorManager
implements CarManagerBase {
189
public
CarSensorManager
(IBinder service, Context context, Looper looper) {
426
private final WeakReference<
CarSensorManager
> mManager;
428
public CarSensorEventListenerToService(
CarSensorManager
manager) {
429
mManager = new WeakReference<
CarSensorManager
>(manager);
434
CarSensorManager
manager = mManager.get();
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
CarSensorManagerEmbedded.java
26
public class CarSensorManagerEmbedded extends
CarSensorManager
{
28
private final android.car.hardware.
CarSensorManager
mManager;
32
mManager = (android.car.hardware.
CarSensorManager
) manager;
143
android.car.hardware.
CarSensorManager
.CarSensorEventListener {
CarSensorEvent.java
44
* Index in {@link #floatValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
49
* Index in {@link #floatValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
54
* Index in {@link #intValues} for {@link
CarSensorManager
#SENSOR_TYPE_FUEL_LEVEL} type of
60
* GEAR_* represents meaning of intValues[0] for {@link
CarSensorManager
#SENSOR_TYPE_GEAR}
118
* Index for {@link
CarSensorManager
#SENSOR_TYPE_LOCATION} in floatValues.
132
* Index for {@link
CarSensorManager
#SENSOR_TYPE_ENVIRONMENT} in floatValues.
137
* Index for {@link
CarSensorManager
#SENSOR_TYPE_ENVIRONMENT} in floatValues.
143
* Indices for {@link
CarSensorManager
#SENSOR_TYPE_COMPASS} in floatValues.
151
* Indices for {@link
CarSensorManager
#SENSOR_TYPE_ACCELEROMETER} in floatValues.
159
* Indices for {@link
CarSensorManager
#SENSOR_TYPE_GYROSCOPE} in floatValues
[
all
...]
CarSensorManager.java
29
public abstract class
CarSensorManager
implements CarManagerBase {
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
CarSensorManagerTest.java
25
import android.support.car.hardware.
CarSensorManager
;
38
private
CarSensorManager
mCarSensorManager;
78
(
CarSensorManager
) mCar.getCarManager(Car.SENSOR_SERVICE);
92
if (sensor ==
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS) {
99
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
100
assertTrue(
CarSensorManager
.isSensorSupported(supportedSensors,
101
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS));
103
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
KitchenSinkActivity.java
36
import android.support.car.hardware.
CarSensorManager
;
66
private
CarSensorManager
mCarSensorManager;
79
private final
CarSensorManager
.CarSensorEventListener mListener =
80
new
CarSensorManager
.CarSensorEventListener() {
84
case
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS:
173
mCarSensorManager = (
CarSensorManager
) mCarApi.getCarManager(Car.SENSOR_SERVICE);
175
CarSensorManager
.SENSOR_TYPE_DRIVING_STATUS,
176
CarSensorManager
.SENSOR_RATE_NORMAL);
/packages/services/Car/car-lib/src/android/car/
Car.java
23
import android.car.hardware.
CarSensorManager
;
55
/** Service name for {@link
CarSensorManager
}, to be used in {@link #getCarManager(String)}. */
475
manager = new
CarSensorManager
(binder, mContext, mLooper);
/packages/services/Car/car-support-lib/src/android/support/car/
Car.java
29
import android.support.car.hardware.
CarSensorManager
;
51
/** Service name for {@link
CarSensorManager
}, to be used in {@link #getCarManager(String)}. */
Completed in 469 milliseconds