From fc6239e5b57f981a8ca296a1556d53a55f7faaad Mon Sep 17 00:00:00 2001 From: Md Shahriar Hossain Sajib Date: Wed, 19 Jan 2022 15:37:26 +0800 Subject: [framework] Migration of hidden APIs to System APIs Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Merged-In: Ib0a205bc575e4cc3cf97eac539cd303acd878134 Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134 --- .../android/bluetooth/BluetoothStatusCodes.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'framework/java/android/bluetooth/BluetoothStatusCodes.java') diff --git a/framework/java/android/bluetooth/BluetoothStatusCodes.java b/framework/java/android/bluetooth/BluetoothStatusCodes.java index 9dafa073ab..c6f6cde44e 100644 --- a/framework/java/android/bluetooth/BluetoothStatusCodes.java +++ b/framework/java/android/bluetooth/BluetoothStatusCodes.java @@ -95,6 +95,14 @@ public final class BluetoothStatusCodes { */ public static final int ERROR_FEATURE_NOT_SUPPORTED = 10; + /** + * Error code indicating that the requested operation timed out. + * + * @hide + */ + @SystemApi + public static final int ERROR_TIMEOUT = 15; + /** * A GATT writeCharacteristic request is not permitted on the remote device. */ @@ -105,6 +113,22 @@ public final class BluetoothStatusCodes { */ public static final int ERROR_GATT_WRITE_REQUEST_BUSY = 102; + /** + * Indicates that the operation is allowed. + * + * @hide + */ + @SystemApi + public static final int ALLOWED = 400; + + /** + * Indicates that the operation is not allowed. + * + * @hide + */ + @SystemApi + public static final int NOT_ALLOWED = 401; + /** * If another application has already requested {@link OobData} then another fetch will be * disallowed until the callback is removed. -- cgit v1.2.3