diff options
author | TreeHugger Robot | 2018-07-13 19:26:22 -0500 |
---|---|---|
committer | Android (Google) Code Review | 2018-07-13 19:26:22 -0500 |
commit | 1b7f18054aa87929a5a2216c54e0f1c0fa8cc791 (patch) | |
tree | fcfa5440029255e29874c9b52c1c05ccce51fe6d | |
parent | 575f76483bd040272b07fa9ce833640fe7cc6080 (diff) | |
parent | 075297b9f18f3c6174d6615a8985194c2560c784 (diff) | |
download | platform-packages-services-car-1b7f18054aa87929a5a2216c54e0f1c0fa8cc791.tar.gz platform-packages-services-car-1b7f18054aa87929a5a2216c54e0f1c0fa8cc791.tar.xz platform-packages-services-car-1b7f18054aa87929a5a2216c54e0f1c0fa8cc791.zip |
Merge "Expose accessIds in car-lib" into pi-dev
-rw-r--r-- | car-lib/api/system-current.txt | 7 | ||||
-rw-r--r-- | car-lib/src/android/car/VehiclePropertyAccess.java | 35 |
2 files changed, 42 insertions, 0 deletions
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt index d6119326..725967d4 100644 --- a/car-lib/api/system-current.txt +++ b/car-lib/api/system-current.txt | |||
@@ -112,6 +112,13 @@ package android.car { | |||
112 | field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000 | 112 | field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000 |
113 | } | 113 | } |
114 | 114 | ||
115 | public final class VehiclePropertyAccess { | ||
116 | field public static final int NONE = 0; // 0x0 | ||
117 | field public static final int READ = 1; // 0x1 | ||
118 | field public static final int READ_WRITE = 3; // 0x3 | ||
119 | field public static final int WRITE = 2; // 0x2 | ||
120 | } | ||
121 | |||
115 | } | 122 | } |
116 | 123 | ||
117 | package android.car.cluster { | 124 | 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 00000000..22801de4 --- /dev/null +++ b/car-lib/src/android/car/VehiclePropertyAccess.java | |||
@@ -0,0 +1,35 @@ | |||
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 | */ | ||
16 | package android.car; | ||
17 | |||
18 | import android.annotation.SystemApi; | ||
19 | |||
20 | /** | ||
21 | * Define value for getAccess() in {@link android.car.hardware.CarPropertyConfig} | ||
22 | * @hide | ||
23 | */ | ||
24 | @SystemApi | ||
25 | public final class VehiclePropertyAccess { | ||
26 | /** | ||
27 | * List of VehiclePropertyAccess from VHAL | ||
28 | */ | ||
29 | public static final int NONE = 0x00; | ||
30 | public static final int READ = 0x01; | ||
31 | public static final int WRITE = 0x02; | ||
32 | public static final int READ_WRITE = 0x03; | ||
33 | |||
34 | private VehiclePropertyAccess() {} | ||
35 | } | ||