Promote System APIs to also be Test APIs for Content Capture Data
Sharing. This is to be able to test them with CTS suite. Bug: 145205247 Test: built Android, CTS is coming. Change-Id: I28cc804be06ee3adbfd1e139803eed2ab10715ca
This commit is contained in:
@@ -339,6 +339,7 @@ public abstract class ContentCaptureService extends Service {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public void onDataShareRequest(@NonNull DataShareRequest request,
|
||||
@NonNull DataShareCallback callback) {
|
||||
if (sVerbose) Log.v(TAG, "onDataShareRequest()");
|
||||
|
||||
@@ -19,6 +19,7 @@ package android.service.contentcapture;
|
||||
import android.annotation.CallbackExecutor;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
@@ -32,6 +33,7 @@ import java.util.concurrent.Executor;
|
||||
* @hide
|
||||
**/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public interface DataShareCallback {
|
||||
|
||||
/** Accept the data share.
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.service.contentcapture;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
|
||||
/**
|
||||
@@ -27,6 +28,7 @@ import android.os.ParcelFileDescriptor;
|
||||
* @hide
|
||||
**/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public interface DataShareReadAdapter {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user