aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-07-14 00:26:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-07-14 00:26:22 +0000
commit1b7f18054aa87929a5a2216c54e0f1c0fa8cc791 (patch)
treefcfa5440029255e29874c9b52c1c05ccce51fe6d
parent575f76483bd040272b07fa9ce833640fe7cc6080 (diff)
parent075297b9f18f3c6174d6615a8985194c2560c784 (diff)
downloadCar-1b7f18054aa87929a5a2216c54e0f1c0fa8cc791.tar.gz
Merge "Expose accessIds in car-lib" into pi-dev
-rw-r--r--car-lib/api/system-current.txt7
-rw-r--r--car-lib/src/android/car/VehiclePropertyAccess.java35
2 files changed, 42 insertions, 0 deletions
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt
index d6119326d5..725967d46b 100644
--- a/car-lib/api/system-current.txt
+++ b/car-lib/api/system-current.txt
@@ -112,6 +112,13 @@ package android.car {
field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000
}
+ public final class VehiclePropertyAccess {
+ field public static final int NONE = 0; // 0x0
+ field public static final int READ = 1; // 0x1
+ field public static final int READ_WRITE = 3; // 0x3
+ field public static final int WRITE = 2; // 0x2
+ }
+
}
package android.car.cluster {
diff --git a/car-lib/src/android/car/VehiclePropertyAccess.java b/car-lib/src/android/car/VehiclePropertyAccess.java
new file mode 100644
index 0000000000..22801de41b
--- /dev/null
+++ b/car-lib/src/android/car/VehiclePropertyAccess.java
@@ -0,0 +1,35 @@
+/*
+ * 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;
+
+import android.annotation.SystemApi;
+
+/**
+ * Define value for getAccess() in {@link android.car.hardware.CarPropertyConfig}
+ * @hide
+ */
+@SystemApi
+public final class VehiclePropertyAccess {
+ /**
+ * List of VehiclePropertyAccess from VHAL
+ */
+ public static final int NONE = 0x00;
+ public static final int READ = 0x01;
+ public static final int WRITE = 0x02;
+ public static final int READ_WRITE = 0x03;
+
+ private VehiclePropertyAccess() {}
+}