当前位置: 首页>>代码示例>>Java>>正文


Java ComponentUtils.redirectBroadcastIntent方法代码示例

本文整理汇总了Java中com.lody.virtual.helper.utils.ComponentUtils.redirectBroadcastIntent方法的典型用法代码示例。如果您正苦于以下问题:Java ComponentUtils.redirectBroadcastIntent方法的具体用法?Java ComponentUtils.redirectBroadcastIntent怎么用?Java ComponentUtils.redirectBroadcastIntent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.lody.virtual.helper.utils.ComponentUtils的用法示例。


在下文中一共展示了ComponentUtils.redirectBroadcastIntent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleIntent

import com.lody.virtual.helper.utils.ComponentUtils; //导入方法依赖的package包/类
private Intent handleIntent(final Intent intent) {
    final String action = intent.getAction();
    if ("android.intent.action.CREATE_SHORTCUT".equals(action)
            || "com.android.launcher.action.INSTALL_SHORTCUT".equals(action)) {

        return StubManifest.ENABLE_INNER_SHORTCUT ? handleInstallShortcutIntent(intent) : null;

    } else if ("com.android.launcher.action.UNINSTALL_SHORTCUT".equals(action)) {

        handleUninstallShortcutIntent(intent);

    } else {
        return ComponentUtils.redirectBroadcastIntent(intent, VUserHandle.myUserId());
    }
    return intent;
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:17,代码来源:MethodProxies.java

示例2: handleIntent

import com.lody.virtual.helper.utils.ComponentUtils; //导入方法依赖的package包/类
private Intent handleIntent(final Intent intent) {
    final String action = intent.getAction();
    if ("android.intent.action.CREATE_SHORTCUT".equals(action)
            || "com.android.launcher.action.INSTALL_SHORTCUT".equals(action)) {

        return VASettings.ENABLE_INNER_SHORTCUT ? handleInstallShortcutIntent(intent) : null;

    } else if ("com.android.launcher.action.UNINSTALL_SHORTCUT".equals(action)) {

        handleUninstallShortcutIntent(intent);

    } else if (BadgerManager.handleBadger(intent)) {
        return null;
    } else {
        return ComponentUtils.redirectBroadcastIntent(intent, VUserHandle.myUserId());
    }
    return intent;
}
 
开发者ID:coding-dream,项目名称:TPlayer,代码行数:19,代码来源:MethodProxies.java

示例3: onReceive

import com.lody.virtual.helper.utils.ComponentUtils; //导入方法依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
    Intent realIntent = intent.getParcelableExtra("_VA_|_intent_");
    int userId = intent.getIntExtra("_VA_|_user_id_", VUserHandle.USER_ALL);
    if (realIntent != null) {
        VLog.d("IntentSender", "onReceive's realIntent =" + realIntent + ",extra=" + VLog.toString(realIntent.getExtras()));
        Intent newIntent = ComponentUtils.redirectBroadcastIntent(realIntent, userId);
        if (newIntent != null) {
            context.sendBroadcast(newIntent);
        }
    }
}
 
开发者ID:codehz,项目名称:container,代码行数:13,代码来源:StubPendingReceiver.java

示例4: onReceive

import com.lody.virtual.helper.utils.ComponentUtils; //导入方法依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
            Intent realIntent = intent.getParcelableExtra("_VA_|_intent_");
    int userId = intent.getIntExtra("_VA_|_user_id_", VUserHandle.USER_ALL);
    if (realIntent != null) {
        Intent newIntent = ComponentUtils.redirectBroadcastIntent(realIntent, userId);
        if (newIntent != null) {
            context.sendBroadcast(newIntent);
        }
    }
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:12,代码来源:StubPendingReceiver.java

示例5: sendBroadcast

import com.lody.virtual.helper.utils.ComponentUtils; //导入方法依赖的package包/类
public void sendBroadcast(Intent intent, int userId) {
    Intent newIntent = ComponentUtils.redirectBroadcastIntent(intent, userId);
    if (newIntent != null) {
        VirtualCore.get().getContext().sendBroadcast(newIntent);
    }
}
 
开发者ID:7763sea,项目名称:VirtualHook,代码行数:7,代码来源:VActivityManager.java


注:本文中的com.lody.virtual.helper.utils.ComponentUtils.redirectBroadcastIntent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。