Merge \"Start shortcuts as if publisher apps did using PendingIntent\" into nyc-mr1-dev

am: 60efbf2586

Change-Id: If43a09cd1580edb318404f56459b8557b69b7d5a
This commit is contained in:
Makoto Onuki
2016-06-30 21:55:18 +00:00
committed by android-build-merger
5 changed files with 84 additions and 9 deletions

View File

@@ -19,7 +19,9 @@ package android.app;
import android.annotation.NonNull;
import android.content.ComponentName;
import android.content.IIntentSender;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.IBinder;
import android.service.voice.IVoiceInteractionSession;
@@ -161,4 +163,11 @@ public abstract class ActivityManagerInternal {
*/
public abstract void updatePersistentConfigurationForUser(@NonNull Configuration values,
int userId);
/**
* Create an {@link IIntentSender} to start an activity, as if {@code packageName} on
* user {@code userId} created it.
*/
public abstract IIntentSender getActivityIntentSenderAsPackage(String packageName,
int userId, int requestCode, Intent intent, int flags, Bundle bOptions);
}

View File

@@ -51,7 +51,7 @@ interface ILauncherApps {
in List shortcutIds, in ComponentName componentName, int flags, in UserHandle user);
void pinShortcuts(String callingPackage, String packageName, in List<String> shortcutIds,
in UserHandle user);
boolean startShortcut(String callingPackage, String packageName, String id,
void startShortcut(String callingPackage, String packageName, String id,
in Rect sourceBounds, in Bundle startActivityOptions, int userId);
int getShortcutIconResId(String callingPackage, String packageName, String id,