diff options
-rw-r--r-- | car-lib/src/android/car/VehicleLightState.java | 31 | ||||
-rw-r--r-- | car-lib/src/android/car/VehicleLightSwitch.java | 31 |
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() {} +} |