summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot2018-07-16 21:13:22 -0500
committerAndroid (Google) Code Review2018-07-16 21:13:22 -0500
commit8ee9436e5478a237bd75a74071dd96914b71f6a2 (patch)
tree93def9404b30cf015f77b2c0f9ac27e5c600e0a4
parent1b7f18054aa87929a5a2216c54e0f1c0fa8cc791 (diff)
parente00905370b1bbcc9e1904b8be0808f6b95e26d08 (diff)
downloadplatform-packages-services-car-8ee9436e5478a237bd75a74071dd96914b71f6a2.tar.gz
platform-packages-services-car-8ee9436e5478a237bd75a74071dd96914b71f6a2.tar.xz
platform-packages-services-car-8ee9436e5478a237bd75a74071dd96914b71f6a2.zip
Merge "Expose VehicleLightState and VehicleLightSwitch" into pi-dev
-rw-r--r--car-lib/src/android/car/VehicleLightState.java31
-rw-r--r--car-lib/src/android/car/VehicleLightSwitch.java31
2 files changed, 62 insertions, 0 deletions
diff --git a/car-lib/src/android/car/VehicleLightState.java b/car-lib/src/android/car/VehicleLightState.java
new file mode 100644
index 00000000..55f74f9e
--- /dev/null
+++ b/car-lib/src/android/car/VehicleLightState.java
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package android.car;
17
18/**
19 * Used by Lights state properties to enumerate the current state of the lights.
20 * Use getProperty and setProperty in {@link android.car.hardware.property.CarPropertyManager} to
21 * set and get this VHAL property.
22 * @hide
23 */
24public final class VehicleLightState {
25 public static final int OFF = 0;
26 public static final int ON = 1;
27 public static final int DAYTIME_RUNNING = 2;
28
29 private VehicleLightState() {}
30
31}
diff --git a/car-lib/src/android/car/VehicleLightSwitch.java b/car-lib/src/android/car/VehicleLightSwitch.java
new file mode 100644
index 00000000..03780bb6
--- /dev/null
+++ b/car-lib/src/android/car/VehicleLightSwitch.java
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package android.car;
17
18/**
19 * Used by lights switch properties to enumerate user selected switch setting.
20 * Use getProperty and setProperty in {@link android.car.hardware.property.CarPropertyManager} to
21 * set and get this VHAL property.
22 * @hide
23 */
24public final class VehicleLightSwitch {
25 public static final int OFF = 0;
26 public static final int ON = 1;
27 public static final int DAYTIME_RUNNING = 2;
28 public static final int AUTOMATIC = 0x100;
29
30 private VehicleLightSwitch() {}
31}