public class ShortcutService
extends IShortcutService.Stub
Modifier and Type | Class and Description |
---|---|
static class |
ShortcutService.Lifecycle
System service lifecycle.
|
Constructor and Description |
---|
ShortcutService(Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDynamicShortcuts(String packageName,
ParceledListSlice shortcutInfoList,
int userId) |
void |
applyRestore(byte[] payload,
int userId) |
void |
cleanupBitmapsForPackage(int userId,
String packageName) |
void |
disableShortcuts(String packageName,
List shortcutIds,
CharSequence disabledMessage,
int disabledMessageResId,
int userId) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
enableShortcuts(String packageName,
List shortcutIds,
int userId) |
byte[] |
getBackupPayload(int userId) |
ParceledListSlice<ShortcutInfo> |
getDynamicShortcuts(String packageName,
int userId) |
int |
getIconMaxDimensions(String packageName,
int userId) |
ParceledListSlice<ShortcutInfo> |
getManifestShortcuts(String packageName,
int userId) |
int |
getMaxShortcutCountPerActivity(String packageName,
int userId) |
ParceledListSlice<ShortcutInfo> |
getPinnedShortcuts(String packageName,
int userId) |
long |
getRateLimitResetTime(String packageName,
int userId) |
int |
getRemainingCallCount(String packageName,
int userId) |
String |
injectGetLocaleTagsForUser(int userId) |
protected boolean |
isUserUnlockedL(int userId) |
void |
onApplicationActive(String packageName,
int userId) |
void |
onShellCommand(FileDescriptor in,
FileDescriptor out,
FileDescriptor err,
String[] args,
ResultReceiver resultReceiver) |
void |
removeAllDynamicShortcuts(String packageName,
int userId) |
void |
removeDynamicShortcuts(String packageName,
List shortcutIds,
int userId) |
void |
reportShortcutUsed(String packageName,
String shortcutId,
int userId) |
void |
resetThrottling()
Reset all throttling, for developer options and command line.
|
boolean |
setDynamicShortcuts(String packageName,
ParceledListSlice shortcutInfoList,
int userId) |
boolean |
updateShortcuts(String packageName,
ParceledListSlice shortcutInfoList,
int userId) |
public ShortcutService(Context context)
public String injectGetLocaleTagsForUser(int userId)
protected boolean isUserUnlockedL(int userId)
public void cleanupBitmapsForPackage(int userId, String packageName)
public boolean setDynamicShortcuts(String packageName, ParceledListSlice shortcutInfoList, int userId)
public boolean updateShortcuts(String packageName, ParceledListSlice shortcutInfoList, int userId)
public boolean addDynamicShortcuts(String packageName, ParceledListSlice shortcutInfoList, int userId)
public void disableShortcuts(String packageName, List shortcutIds, CharSequence disabledMessage, int disabledMessageResId, int userId)
public void removeDynamicShortcuts(String packageName, List shortcutIds, int userId)
public void removeAllDynamicShortcuts(String packageName, int userId)
public ParceledListSlice<ShortcutInfo> getDynamicShortcuts(String packageName, int userId)
public ParceledListSlice<ShortcutInfo> getManifestShortcuts(String packageName, int userId)
public ParceledListSlice<ShortcutInfo> getPinnedShortcuts(String packageName, int userId)
public int getMaxShortcutCountPerActivity(String packageName, int userId) throws RemoteException
RemoteException
public int getRemainingCallCount(String packageName, int userId)
public long getRateLimitResetTime(String packageName, int userId)
public int getIconMaxDimensions(String packageName, int userId)
public void reportShortcutUsed(String packageName, String shortcutId, int userId)
public void resetThrottling()
public void onApplicationActive(String packageName, int userId)
public byte[] getBackupPayload(int userId)
public void applyRestore(byte[] payload, int userId)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err, String[] args, ResultReceiver resultReceiver) throws RemoteException
RemoteException