本文整理汇总了Java中android.content.IIntentReceiver类的典型用法代码示例。如果您正苦于以下问题:Java IIntentReceiver类的具体用法?Java IIntentReceiver怎么用?Java IIntentReceiver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IIntentReceiver类属于android.content包,在下文中一共展示了IIntentReceiver类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: broadcastIntent
import android.content.IIntentReceiver; //导入依赖的package包/类
public final int broadcastIntent(IApplicationThread caller,
Intent intent, String resolvedType, IIntentReceiver resultTo,
int resultCode, String resultData, Bundle resultExtras,
String[] requiredPermissions, int appOp, Bundle bOptions,
boolean serialized, boolean sticky, int userId) {
try {
PreventRunningUtils.setSender(caller);
int res = broadcastIntent$Pr(caller,
intent, resolvedType, resultTo,
resultCode, resultData, resultExtras,
requiredPermissions, appOp, bOptions,
serialized, sticky, userId);
if (res == 0) {
PreventRunningUtils.onBroadcastIntent(intent);
}
return res;
} finally {
PreventRunningUtils.clearSender();
}
}
开发者ID:brevent,项目名称:prevent,代码行数:21,代码来源:ActivityManagerService.java
示例2: performReceive
import android.content.IIntentReceiver; //导入依赖的package包/类
public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean ordered,
boolean sticky, int sendingUser) throws RemoteException {
if (!accept(intent)) {
return;
}
if (intent.hasExtra("_VA_|_intent_")) {
intent = intent.getParcelableExtra("_VA_|_intent_");
}
SpecialComponentList.unprotectIntent(intent);
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
IIntentReceiverJB.performReceive.call(mOld, intent, resultCode, data, extras, ordered, sticky, sendingUser);
} else {
mirror.android.content.IIntentReceiver.performReceive.call(mOld, intent, resultCode, data, extras, ordered, sticky);
}
}
开发者ID:coding-dream,项目名称:TPlayer,代码行数:16,代码来源:MethodProxies.java
示例3: call
import android.content.IIntentReceiver; //导入依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
MethodParameterUtils.replaceFirstAppPkg(args);
args[IDX_RequiredPermission] = null;
IntentFilter filter = (IntentFilter) args[IDX_IntentFilter];
SpecialComponentList.protectIntentFilter(filter);
if (args.length > IDX_IIntentReceiver && IIntentReceiver.class.isInstance(args[IDX_IIntentReceiver])) {
final IInterface old = (IInterface) args[IDX_IIntentReceiver];
if (!IIntentReceiverProxy.class.isInstance(old)) {
final IBinder token = old.asBinder();
if (token != null) {
token.linkToDeath(new IBinder.DeathRecipient() {
@Override
public void binderDied() {
token.unlinkToDeath(this, 0);
mProxyIIntentReceivers.remove(token);
}
}, 0);
IIntentReceiver proxyIIntentReceiver = mProxyIIntentReceivers.get(token);
if (proxyIIntentReceiver == null) {
proxyIIntentReceiver = new IIntentReceiverProxy(old);
mProxyIIntentReceivers.put(token, proxyIIntentReceiver);
}
WeakReference mDispatcher = LoadedApk.ReceiverDispatcher.InnerReceiver.mDispatcher.get(old);
if (mDispatcher != null) {
LoadedApk.ReceiverDispatcher.mIIntentReceiver.set(mDispatcher.get(), proxyIIntentReceiver);
args[IDX_IIntentReceiver] = proxyIIntentReceiver;
}
}
}
}
return method.invoke(who, args);
}
开发者ID:7763sea,项目名称:VirtualHook,代码行数:34,代码来源:MethodProxies.java
示例4: broadcastIntent
import android.content.IIntentReceiver; //导入依赖的package包/类
/**
* @deprecated since api-23
*/
@Deprecated
int broadcastIntent(IApplicationThread caller, Intent intent,
String resolvedType, IIntentReceiver resultTo, int resultCode,
String resultData, Bundle map, String requiredPermissions,
int appOp, boolean serialized, boolean sticky, int userId)
throws RemoteException;
开发者ID:brevent,项目名称:Brevent,代码行数:10,代码来源:IActivityManager.java
示例5: UnsupportedOperationException
import android.content.IIntentReceiver; //导入依赖的package包/类
public final int broadcastIntent$Pr(IApplicationThread caller,
Intent intent, String resolvedType, IIntentReceiver resultTo,
int resultCode, String resultData, Bundle resultExtras,
String[] requiredPermissions, int appOp, Bundle bOptions,
boolean serialized, boolean sticky, int userId) {
throw new UnsupportedOperationException();
}
开发者ID:brevent,项目名称:prevent,代码行数:8,代码来源:ActivityManagerService.java
示例6: call
import android.content.IIntentReceiver; //导入依赖的package包/类
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
HookUtils.replaceFirstAppPkg(args);
args[IDX_RequiredPermission] = null;
IntentFilter filter = (IntentFilter) args[IDX_IntentFilter];
IntentFilter backupFilter = new IntentFilter(filter);
protectIntentFilter(filter);
if (args.length > IDX_IIntentReceiver && IIntentReceiver.class.isInstance(args[IDX_IIntentReceiver])) {
final IInterface old = (IInterface) args[IDX_IIntentReceiver];
if (!IIntentReceiverProxy.class.isInstance(old)) {
final IBinder token = old.asBinder();
if (token != null) {
token.linkToDeath(new IBinder.DeathRecipient() {
@Override
public void binderDied() {
token.unlinkToDeath(this, 0);
mProxyIIntentReceivers.remove(token);
}
}, 0);
IIntentReceiver proxyIIntentReceiver = mProxyIIntentReceivers.get(token);
if (proxyIIntentReceiver == null) {
proxyIIntentReceiver = new IIntentReceiverProxy(old);
mProxyIIntentReceivers.put(token, proxyIIntentReceiver);
}
WeakReference mDispatcher = LoadedApk.ReceiverDispatcher.InnerReceiver.mDispatcher.get(old);
if (mDispatcher != null) {
LoadedApk.ReceiverDispatcher.mIIntentReceiver.set(mDispatcher.get(), proxyIIntentReceiver);
args[IDX_IIntentReceiver] = proxyIIntentReceiver;
}
}
}
}
Object res = method.invoke(who, args);
Intent intent = VActivityManager.get().dispatchStickyBroadcast(backupFilter);
if (intent != null) {
return intent;
}
return res;
}
开发者ID:codehz,项目名称:container,代码行数:40,代码来源:RegisterReceiver.java
示例7: performReceive
import android.content.IIntentReceiver; //导入依赖的package包/类
public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean ordered,
boolean sticky, int sendingUser) throws RemoteException {
if (!accept(intent)) {
return;
}
if (intent.hasExtra("_VA_|_intent_")) {
intent = intent.getParcelableExtra("_VA_|_intent_");
}
SpecialComponentList.unprotectIntent(intent);
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
IIntentReceiverJB.performReceive.call(old, intent, resultCode, data, extras, ordered, sticky, sendingUser);
} else {
mirror.android.content.IIntentReceiver.performReceive.call(old, intent, resultCode, data, extras, ordered, sticky);
}
}
开发者ID:codehz,项目名称:container,代码行数:16,代码来源:RegisterReceiver.java
示例8: scheduleRegisteredReceiver
import android.content.IIntentReceiver; //导入依赖的package包/类
public void scheduleRegisteredReceiver(IIntentReceiver receiver, Intent intent,
int resultCode, String dataStr, Bundle extras, boolean ordered,
boolean sticky, int sendingUser, int processState) throws RemoteException {
updateProcessState(processState, false);
receiver.performReceive(intent, resultCode, dataStr, extras, ordered,
sticky, sendingUser);
}
开发者ID:cuplv,项目名称:droidel,代码行数:8,代码来源:ActivityThread.java
示例9: getReceiverDispatcher
import android.content.IIntentReceiver; //导入依赖的package包/类
public IIntentReceiver getReceiverDispatcher(final BroadcastReceiver r, final Context context, final Handler handler, final Instrumentation instrumentation, final boolean registered) {
throw new RuntimeException("Stub!");
}
开发者ID:didi,项目名称:VirtualAPK,代码行数:4,代码来源:LoadedApk.java
示例10: forgetReceiverDispatcher
import android.content.IIntentReceiver; //导入依赖的package包/类
public IIntentReceiver forgetReceiverDispatcher(final Context context, final BroadcastReceiver r) {
throw new RuntimeException("Stub!");
}
开发者ID:didi,项目名称:VirtualAPK,代码行数:4,代码来源:LoadedApk.java
注:本文中的android.content.IIntentReceiver类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论