Methods Summary |
---|
public java.util.concurrent.Future | nextBroadcastIntent(java.lang.String action)
return nextBroadcastIntent(new IntentFilter(action));
|
public java.util.concurrent.Future | nextBroadcastIntent(android.content.IntentFilter filter)
final BroadcastInterceptor interceptor = new BroadcastInterceptor(null, filter);
synchronized (mInterceptors) {
mInterceptors.add(interceptor);
}
return interceptor;
|
public android.content.Intent | registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter)
synchronized (mInterceptors) {
mInterceptors.add(new BroadcastInterceptor(receiver, filter));
}
return null;
|
public android.content.Intent | registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter, java.lang.String broadcastPermission, android.os.Handler scheduler)
return registerReceiver(receiver, filter);
|
public void | removeStickyBroadcast(android.content.Intent intent)
// ignored
|
public void | sendBroadcast(android.content.Intent intent)
synchronized (mInterceptors) {
final Iterator<BroadcastInterceptor> i = mInterceptors.iterator();
while (i.hasNext()) {
final BroadcastInterceptor interceptor = i.next();
if (interceptor.dispatchBroadcast(intent)) {
i.remove();
}
}
}
|
public void | sendBroadcast(android.content.Intent intent, java.lang.String receiverPermission)
sendBroadcast(intent);
|
public void | sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle user, java.lang.String receiverPermission)
sendBroadcast(intent);
|
public void | sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle user)
sendBroadcast(intent);
|
public void | sendStickyBroadcast(android.content.Intent intent)
sendBroadcast(intent);
|
public void | sendStickyBroadcastAsUser(android.content.Intent intent, android.os.UserHandle user)
sendBroadcast(intent);
|
public void | unregisterReceiver(android.content.BroadcastReceiver receiver)
synchronized (mInterceptors) {
final Iterator<BroadcastInterceptor> i = mInterceptors.iterator();
while (i.hasNext()) {
final BroadcastInterceptor interceptor = i.next();
if (receiver.equals(interceptor.mReceiver)) {
i.remove();
}
}
}
|