aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-07-17 02:13:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-07-17 02:13:22 +0000
commit8ee9436e5478a237bd75a74071dd96914b71f6a2 (patch)
tree93def9404b30cf015f77b2c0f9ac27e5c600e0a4
parent1b7f18054aa87929a5a2216c54e0f1c0fa8cc791 (diff)
parente00905370b1bbcc9e1904b8be0808f6b95e26d08 (diff)
downloadCar-8ee9436e5478a237bd75a74071dd96914b71f6a2.tar.gz
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 0000000000..55f74f9e84
--- /dev/null
+++ b/car-lib/src/android/car/VehicleLightState.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package android.car;
+
+/**
+ * Used by Lights state properties to enumerate the current state of the lights.
+ * Use getProperty and setProperty in {@link android.car.hardware.property.CarPropertyManager} to
+ * set and get this VHAL property.
+ * @hide
+ */
+public final class VehicleLightState {
+ public static final int OFF = 0;
+ public static final int ON = 1;
+ public static final int DAYTIME_RUNNING = 2;
+
+ private VehicleLightState() {}
+
+}
diff --git a/car-lib/src/android/car/VehicleLightSwitch.java b/car-lib/src/android/car/VehicleLightSwitch.java
new file mode 100644
index 0000000000..03780bb61d
--- /dev/null
+++ b/car-lib/src/android/car/VehicleLightSwitch.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package android.car;
+
+/**
+ * Used by lights switch properties to enumerate user selected switch setting.
+ * Use getProperty and setProperty in {@link android.car.hardware.property.CarPropertyManager} to
+ * set and get this VHAL property.
+ * @hide
+ */
+public final class VehicleLightSwitch {
+ public static final int OFF = 0;
+ public static final int ON = 1;
+ public static final int DAYTIME_RUNNING = 2;
+ public static final int AUTOMATIC = 0x100;
+
+ private VehicleLightSwitch() {}
+}