Merge \"Start shortcuts as if publisher apps did using PendingIntent\" into nyc-mr1-dev
am: 60efbf2586
Change-Id: If43a09cd1580edb318404f56459b8557b69b7d5a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user