[API Review] Expose sendOrderedBroadcast

with appOp as String and options as Bundle

Bug: 139077993
Bug: 146423958
Test: Build
Change-Id: I5325e08d60016741139251813a5df9b42f2efc82
Merged-In: I5325e08d60016741139251813a5df9b42f2efc82
This commit is contained in:
Peter Wang
2020-01-29 16:07:37 +08:00
parent 710401a657
commit 2361687bec
5 changed files with 19 additions and 18 deletions

View File

@@ -17,7 +17,6 @@
package android.test.mock;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.app.IApplicationThread;
import android.app.IServiceConnection;
@@ -480,10 +479,11 @@ public class MockContext extends Context {
throw new UnsupportedOperationException();
}
/** @hide */
@Override
public void sendOrderedBroadcast(Intent intent, String receiverPermission, String receiverAppOp,
Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode,
String initialData, Bundle initialExtras) {
public void sendOrderedBroadcast(Intent intent, int initialCode, String receiverPermission,
String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler,
String initialData, Bundle initialExtras, Bundle options) {
throw new UnsupportedOperationException();
}