[Media TTT] Add @SystemApis for new states of receiver devices

Adds SystemApi annotation to two new states that indicates if the transfer for receiver is
succeeded or failed. (ag/16730985) is a good reference.

Bug: 257301489
Test: atest MediaTttChipControllerReceiverTest
Change-Id: Ia0b44ef1188d37cf13f1adb38ccd9422b5703d36
This commit is contained in:
Michael Mikhail
2022-12-15 16:35:28 +00:00
parent 547898c811
commit 2415dead92
2 changed files with 4 additions and 0 deletions

View File

@@ -1007,6 +1007,8 @@ package android.app {
method @RequiresPermission(android.Manifest.permission.MEDIA_CONTENT_CONTROL) public void updateMediaTapToTransferSenderDisplay(int, @NonNull android.media.MediaRoute2Info, @Nullable java.util.concurrent.Executor, @Nullable Runnable);
field public static final int MEDIA_TRANSFER_RECEIVER_STATE_CLOSE_TO_SENDER = 0; // 0x0
field public static final int MEDIA_TRANSFER_RECEIVER_STATE_FAR_FROM_SENDER = 1; // 0x1
field public static final int MEDIA_TRANSFER_RECEIVER_STATE_TRANSFER_TO_RECEIVER_FAILED = 3; // 0x3
field public static final int MEDIA_TRANSFER_RECEIVER_STATE_TRANSFER_TO_RECEIVER_SUCCEEDED = 2; // 0x2
field public static final int MEDIA_TRANSFER_SENDER_STATE_ALMOST_CLOSE_TO_END_CAST = 1; // 0x1
field public static final int MEDIA_TRANSFER_SENDER_STATE_ALMOST_CLOSE_TO_START_CAST = 0; // 0x0
field public static final int MEDIA_TRANSFER_SENDER_STATE_FAR_FROM_RECEIVER = 8; // 0x8

View File

@@ -516,6 +516,7 @@ public class StatusBarManager {
*
* @hide
*/
@SystemApi
public static final int MEDIA_TRANSFER_RECEIVER_STATE_TRANSFER_TO_RECEIVER_SUCCEEDED = 2;
/**
@@ -523,6 +524,7 @@ public class StatusBarManager {
*
* @hide
*/
@SystemApi
public static final int MEDIA_TRANSFER_RECEIVER_STATE_TRANSFER_TO_RECEIVER_FAILED = 3;
/** @hide */