diff options
author | Selim Gurun | 2019-01-31 16:54:30 -0600 |
---|---|---|
committer | Selim Gurun | 2019-02-01 20:45:06 -0600 |
commit | 6a5c1b5cdd1c4ce64143023fa7dbdf7fc7d06a22 (patch) | |
tree | 665ec690675b21d9b1436f00891f1219ee9eb209 | |
parent | 28ad67a72fe3a2d0f4af6d0e8c617caacb3a9a04 (diff) | |
download | platform-packages-services-car-6a5c1b5cdd1c4ce64143023fa7dbdf7fc7d06a22.tar.gz platform-packages-services-car-6a5c1b5cdd1c4ce64143023fa7dbdf7fc7d06a22.tar.xz platform-packages-services-car-6a5c1b5cdd1c4ce64143023fa7dbdf7fc7d06a22.zip |
Add an empty 3.txt to prevent last-released-api check errors
There is work going on to re-enable linter checks for errors from last
api release. Android automotive APIs are going through an intentional
set of breaking changes. This change adds an empty released API
file to prevent the linter check to detect breaking changes as errors.
This CL also fixes some warning cases.
Test: make android.car-stubs-docs-check-last-released-api
Change-Id: I1a28d20ace58283fd360a26e4233805808723727
-rw-r--r-- | car-lib/api/released/3.txt | 0 | ||||
-rw-r--r-- | car-lib/src/android/car/Car.java | 3 | ||||
-rw-r--r-- | car-lib/src/android/car/CarInfoManager.java | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/car-lib/api/released/3.txt b/car-lib/api/released/3.txt new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/car-lib/api/released/3.txt | |||
diff --git a/car-lib/src/android/car/Car.java b/car-lib/src/android/car/Car.java index c1bf5027..8eef0a8c 100644 --- a/car-lib/src/android/car/Car.java +++ b/car-lib/src/android/car/Car.java | |||
@@ -18,6 +18,8 @@ package android.car; | |||
18 | 18 | ||
19 | import android.annotation.IntDef; | 19 | import android.annotation.IntDef; |
20 | import android.annotation.Nullable; | 20 | import android.annotation.Nullable; |
21 | import android.annotation.SdkConstant; | ||
22 | import android.annotation.SdkConstant.SdkConstantType; | ||
21 | import android.annotation.SystemApi; | 23 | import android.annotation.SystemApi; |
22 | import android.car.cluster.CarInstrumentClusterManager; | 24 | import android.car.cluster.CarInstrumentClusterManager; |
23 | import android.car.content.pm.CarPackageManager; | 25 | import android.car.content.pm.CarPackageManager; |
@@ -439,6 +441,7 @@ public final class Car { | |||
439 | * package name of the media app which user wants to play media on. | 441 | * package name of the media app which user wants to play media on. |
440 | * <p>Output: nothing. | 442 | * <p>Output: nothing. |
441 | */ | 443 | */ |
444 | @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) | ||
442 | public static final String CAR_INTENT_ACTION_MEDIA_TEMPLATE = | 445 | public static final String CAR_INTENT_ACTION_MEDIA_TEMPLATE = |
443 | "android.car.intent.action.MEDIA_TEMPLATE"; | 446 | "android.car.intent.action.MEDIA_TEMPLATE"; |
444 | 447 | ||
diff --git a/car-lib/src/android/car/CarInfoManager.java b/car-lib/src/android/car/CarInfoManager.java index d90883b6..b3a29332 100644 --- a/car-lib/src/android/car/CarInfoManager.java +++ b/car-lib/src/android/car/CarInfoManager.java | |||
@@ -148,8 +148,8 @@ public final class CarInfoManager implements CarManagerBase{ | |||
148 | * @return Unique identifier for the car. This is not VIN, and vehicle id is | 148 | * @return Unique identifier for the car. This is not VIN, and vehicle id is |
149 | * persistent until user resets it. This ID is guaranteed to be always | 149 | * persistent until user resets it. This ID is guaranteed to be always |
150 | * available. | 150 | * available. |
151 | * TODO: BASIC_INFO_KEY_VEHICLE_ID property? | ||
152 | */ | 151 | */ |
152 | // TODO: BASIC_INFO_KEY_VEHICLE_ID property? | ||
153 | public String getVehicleId() throws CarNotConnectedException { | 153 | public String getVehicleId() throws CarNotConnectedException { |
154 | return ""; | 154 | return ""; |
155 | } | 155 | } |