diff options
author | Kai <kwangsudo@google.com> | 2018-07-13 15:07:53 -0700 |
---|---|---|
committer | Kai <kwangsudo@google.com> | 2018-07-13 15:25:57 -0700 |
commit | 075297b9f18f3c6174d6615a8985194c2560c784 (patch) | |
tree | 13eda69ce063cd77e102674e4d8996182823dc59 | |
parent | f26773ed52ce972b3abf0b46b5ff1c7c3e23e29f (diff) | |
download | Car-075297b9f18f3c6174d6615a8985194c2560c784.tar.gz |
Expose accessIds in car-lib
Expose accessIds in car-lib.
Bug: 111372110
Test: make and flash into Mojave
Change-Id: I7a9315efc331006197fc45c82bd3b56e0c59ba03
-rw-r--r-- | car-lib/api/system-current.txt | 7 | ||||
-rw-r--r-- | car-lib/src/android/car/VehiclePropertyAccess.java | 35 | ||||
-rw-r--r-- | car-support-lib/proguard-release.flags | 8 |
3 files changed, 48 insertions, 2 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() {} +} diff --git a/car-support-lib/proguard-release.flags b/car-support-lib/proguard-release.flags index 91cab7ea24..4f5f917879 100644 --- a/car-support-lib/proguard-release.flags +++ b/car-support-lib/proguard-release.flags @@ -7201,6 +7201,7 @@ public int enabledSetting; public int flags; public int fullBackupContent; + public boolean hiddenUntilInstalled; public int installLocation; public int largestWidthLimitDp; public long longVersionCode; @@ -7646,6 +7647,8 @@ public abstract java.lang.String[] setPackagesSuspendedAsUser(java.lang.String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, java.lang.String, java.lang.String, int); public abstract void setPermissionEnforced(java.lang.String, boolean); public abstract boolean setRequiredForSystemUser(java.lang.String, boolean); + public abstract void setSystemAppHiddenUntilInstalled(java.lang.String, boolean); + public abstract boolean setSystemAppInstallState(java.lang.String, boolean, int); public abstract void setUpdateAvailable(java.lang.String, boolean); public abstract boolean shouldShowRequestPermissionRationale(java.lang.String, java.lang.String, int); public abstract void systemReady(); @@ -8589,6 +8592,7 @@ public static int MATCH_DISABLED_UNTIL_USED_COMPONENTS; public static int MATCH_EXPLICITLY_VISIBLE_ONLY; public static int MATCH_FACTORY_ONLY; + public static int MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS; public static int MATCH_INSTANT; public static int MATCH_KNOWN_PACKAGES; public static int MATCH_STATIC_SHARED_LIBRARIES; @@ -17003,8 +17007,8 @@ public boolean equals(java.lang.Object); public static android.view.DisplayCutout fromBoundingRect(int, int, int, int); - public static android.view.DisplayCutout fromBounds(android.graphics.Path); - public static android.view.DisplayCutout fromResources(android.content.res.Resources, int, int); + public static android.view.DisplayCutout fromBounds(android.graphics.Region); + public static android.view.DisplayCutout fromResourcesRectApproximation(android.content.res.Resources, int, int); public static android.view.DisplayCutout fromSpec(java.lang.String, int, int, float); public java.util.List getBoundingRects(); public android.graphics.Region getBounds(); |