Add @TestApi to Context.updateDeviceId

CTS tests have already been added in DeviceAssociationTest, but
that CL missed adding the annotation in the method.

This method, even if @hide, is necessary for key framework
behaviors to allow for implicit device associations to work well.

Bug: 266091657
Test: atest DeviceAssociationTest
Change-Id: I171b14379a21f88f3111206e665c8af41a6957e0
This commit is contained in:
Marco Loaiza
2023-01-13 17:17:36 +00:00
parent 47fddf4dd2
commit b5a25c14e2
2 changed files with 2 additions and 0 deletions

View File

@@ -758,6 +758,7 @@ package android.content {
method public int getUserId();
method public void setAutofillOptions(@Nullable android.content.AutofillOptions);
method public void setContentCaptureOptions(@Nullable android.content.ContentCaptureOptions);
method public void updateDeviceId(int);
field public static final String ATTENTION_SERVICE = "attention";
field public static final String CONTENT_CAPTURE_MANAGER_SERVICE = "content_capture";
field public static final String DEVICE_IDLE_CONTROLLER = "deviceidle";

View File

@@ -7330,6 +7330,7 @@ public abstract class Context {
* @see #createDeviceContext(int)
* @hide
*/
@TestApi
public void updateDeviceId(int deviceId) {
throw new RuntimeException("Not implemented. Must override in a subclass.");
}