Merge "[API Review] Expose sendOrderedBroadcast"
This commit is contained in:
@@ -9775,7 +9775,6 @@ package android.content {
|
|||||||
method public abstract void sendOrderedBroadcast(@RequiresPermission android.content.Intent, @Nullable String);
|
method public abstract void sendOrderedBroadcast(@RequiresPermission android.content.Intent, @Nullable String);
|
||||||
method public abstract void sendOrderedBroadcast(@NonNull @RequiresPermission android.content.Intent, @Nullable String, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
method public abstract void sendOrderedBroadcast(@NonNull @RequiresPermission android.content.Intent, @Nullable String, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
||||||
method public void sendOrderedBroadcast(@NonNull android.content.Intent, @Nullable String, @Nullable String, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
method public void sendOrderedBroadcast(@NonNull android.content.Intent, @Nullable String, @Nullable String, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
||||||
method public void sendOrderedBroadcast(@NonNull @RequiresPermission android.content.Intent, @Nullable String, @Nullable String, @Nullable android.os.Bundle, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
|
||||||
method @RequiresPermission("android.permission.INTERACT_ACROSS_USERS") public abstract void sendOrderedBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle, @Nullable String, android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
method @RequiresPermission("android.permission.INTERACT_ACROSS_USERS") public abstract void sendOrderedBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle, @Nullable String, android.content.BroadcastReceiver, @Nullable android.os.Handler, int, @Nullable String, @Nullable android.os.Bundle);
|
||||||
method @Deprecated @RequiresPermission(android.Manifest.permission.BROADCAST_STICKY) public abstract void sendStickyBroadcast(@RequiresPermission android.content.Intent);
|
method @Deprecated @RequiresPermission(android.Manifest.permission.BROADCAST_STICKY) public abstract void sendStickyBroadcast(@RequiresPermission android.content.Intent);
|
||||||
method @Deprecated @RequiresPermission(allOf={"android.permission.INTERACT_ACROSS_USERS", android.Manifest.permission.BROADCAST_STICKY}) public abstract void sendStickyBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle);
|
method @Deprecated @RequiresPermission(allOf={"android.permission.INTERACT_ACROSS_USERS", android.Manifest.permission.BROADCAST_STICKY}) public abstract void sendStickyBroadcastAsUser(@RequiresPermission android.content.Intent, android.os.UserHandle);
|
||||||
@@ -9980,6 +9979,7 @@ package android.content {
|
|||||||
method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String);
|
method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String);
|
||||||
method public void sendOrderedBroadcast(android.content.Intent, String);
|
method public void sendOrderedBroadcast(android.content.Intent, String);
|
||||||
method public void sendOrderedBroadcast(android.content.Intent, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
|
method public void sendOrderedBroadcast(android.content.Intent, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
|
||||||
|
method public void sendOrderedBroadcast(@NonNull @RequiresPermission android.content.Intent, int, @Nullable String, @Nullable String, @Nullable android.content.BroadcastReceiver, @Nullable android.os.Handler, @Nullable String, @Nullable android.os.Bundle, @Nullable android.os.Bundle);
|
||||||
method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
|
method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle);
|
||||||
method @Deprecated public void sendStickyBroadcast(android.content.Intent);
|
method @Deprecated public void sendStickyBroadcast(android.content.Intent);
|
||||||
method @Deprecated public void sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle);
|
method @Deprecated public void sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle);
|
||||||
|
|||||||
@@ -1351,9 +1351,9 @@ class ContextImpl extends Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendOrderedBroadcast(Intent intent, String receiverPermission, String receiverAppOp,
|
public void sendOrderedBroadcast(Intent intent, int initialCode, String receiverPermission,
|
||||||
Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode,
|
String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler,
|
||||||
String initialData, @Nullable Bundle initialExtras) {
|
String initialData, @Nullable Bundle initialExtras, Bundle options) {
|
||||||
int intAppOp = AppOpsManager.OP_NONE;
|
int intAppOp = AppOpsManager.OP_NONE;
|
||||||
if (!TextUtils.isEmpty(receiverAppOp)) {
|
if (!TextUtils.isEmpty(receiverAppOp)) {
|
||||||
intAppOp = AppOpsManager.strOpToOp(receiverAppOp);
|
intAppOp = AppOpsManager.strOpToOp(receiverAppOp);
|
||||||
|
|||||||
@@ -2470,12 +2470,13 @@ public abstract class Context {
|
|||||||
*
|
*
|
||||||
* @see #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)
|
* @see #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)
|
||||||
* @see android.app.BroadcastOptions
|
* @see android.app.BroadcastOptions
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void sendOrderedBroadcast(@RequiresPermission @NonNull Intent intent,
|
public void sendOrderedBroadcast(@RequiresPermission @NonNull Intent intent, int initialCode,
|
||||||
@Nullable String receiverPermission, @Nullable String receiverAppOp,
|
@Nullable String receiverPermission, @Nullable String receiverAppOp,
|
||||||
@Nullable Bundle options, @Nullable BroadcastReceiver resultReceiver,
|
@Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler,
|
||||||
@Nullable Handler scheduler, int initialCode, @Nullable String initialData,
|
@Nullable String initialData, @Nullable Bundle initialExtras,
|
||||||
@Nullable Bundle initialExtras) {
|
@Nullable Bundle options) {
|
||||||
throw new RuntimeException("Not implemented. Must override in a subclass.");
|
throw new RuntimeException("Not implemented. Must override in a subclass.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -583,13 +583,13 @@ public class ContextWrapper extends Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendOrderedBroadcast(@RequiresPermission @NonNull Intent intent,
|
public void sendOrderedBroadcast(@RequiresPermission @NonNull Intent intent, int initialCode,
|
||||||
@Nullable String receiverPermission, @Nullable String receiverAppOp,
|
@Nullable String receiverPermission, @Nullable String receiverAppOp,
|
||||||
@Nullable Bundle options, @Nullable BroadcastReceiver resultReceiver,
|
@Nullable BroadcastReceiver resultReceiver, @Nullable Handler scheduler,
|
||||||
@Nullable Handler scheduler, int initialCode, @Nullable String initialData,
|
@Nullable String initialData, @Nullable Bundle initialExtras,
|
||||||
@Nullable Bundle initialExtras) {
|
@Nullable Bundle options) {
|
||||||
mBase.sendOrderedBroadcast(intent, receiverPermission, receiverAppOp, options,
|
mBase.sendOrderedBroadcast(intent, initialCode, receiverPermission, receiverAppOp,
|
||||||
resultReceiver, scheduler, initialCode, initialData, initialExtras);
|
resultReceiver, scheduler, initialData, initialExtras, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -469,10 +469,11 @@ public class MockContext extends Context {
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @hide */
|
||||||
@Override
|
@Override
|
||||||
public void sendOrderedBroadcast(Intent intent, String receiverPermission, String receiverAppOp,
|
public void sendOrderedBroadcast(Intent intent, int initialCode, String receiverPermission,
|
||||||
Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode,
|
String receiverAppOp, BroadcastReceiver resultReceiver, Handler scheduler,
|
||||||
String initialData, Bundle initialExtras) {
|
String initialData, Bundle initialExtras, Bundle options) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user