/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 41 import android.content.pm.ShortcutInfo; 86 () -> new ShortcutInfo.Builder(getTestContext()).build()); in testShortcutInfoMissingMandatoryFields() 91 () -> new ShortcutInfo.Builder(getTestContext(), null)); in testShortcutInfoMissingMandatoryFields() 96 () -> new ShortcutInfo.Builder(getTestContext(), "")); in testShortcutInfoMissingMandatoryFields() 101 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(null)); in testShortcutInfoMissingMandatoryFields() 106 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(new Intent())); in testShortcutInfoMissingMandatoryFields() 111 () -> new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields() 117 () -> new ShortcutInfo.Builder(getTestContext(), "id").setActivity(null)); in testShortcutInfoMissingMandatoryFields() 122 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel(null)); in testShortcutInfoMissingMandatoryFields() 127 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel("")); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerTest12.java | 21 import android.content.pm.ShortcutInfo; 85 List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testSetDynamicShortcuts_PersistsShortcutsToDisk() 89 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testSetDynamicShortcuts_PersistsShortcutsToDisk() 113 final List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 117 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testAddDynamicShortcuts_PersistsShortcutsToDisk() 137 List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testPushDynamicShortcuts_PersistsShortcutsToDisk() 141 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testPushDynamicShortcuts_PersistsShortcutsToDisk() 158 shortcutIds = shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testPushDynamicShortcuts_PersistsShortcutsToDisk() 182 final List<ShortcutInfo> shortcuts = getAllPersistedShortcuts(); in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk() 186 shortcuts.stream().map(ShortcutInfo::getId).collect(Collectors.toSet()); in testRemoveDynamicShortcuts_RemovesShortcutsFromDisk() [all …]
|
D | BaseShortcutManagerTest.java | 70 import android.content.pm.ShortcutInfo; 370 void injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) { in injectValidateIconResPackage() 571 public boolean setDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) { in setDynamicShortcuts() 578 public boolean addDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) { in addDynamicShortcuts() 584 public boolean updateShortcuts(List<ShortcutInfo> shortcutInfoList) { in updateShortcuts() 1073 entryName = ShortcutInfo.getResourceEntryName(entryName); in setUpAppResources() 1434 protected void lookupAndFillInResourceNames(ShortcutInfo si) { in lookupAndFillInResourceNames() 1534 protected ShortcutInfo makeShortcutIdOnly(String id) { in makeShortcutIdOnly() 1535 return new ShortcutInfo.Builder(mClientContext, id).build(); in makeShortcutIdOnly() 1541 protected ShortcutInfo makeShortcut(String id) { in makeShortcut() [all …]
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 45 import android.content.pm.ShortcutInfo; 455 public static List<ShortcutInfo> filter(List<ShortcutInfo> list, Predicate<ShortcutInfo> p) { in filter() 456 final ArrayList<ShortcutInfo> ret = new ArrayList<>(list); in filter() 461 public static List<ShortcutInfo> filterByActivity(List<ShortcutInfo> list, in filterByActivity() 468 public static List<ShortcutInfo> changedSince(List<ShortcutInfo> list, long time) { in changedSince() 511 public static List<ShortcutInfo> assertShortcutIds(List<ShortcutInfo> actualShortcuts, in assertShortcutIds() 515 for (ShortcutInfo s : actualShortcuts) { in assertShortcutIds() 524 public static List<ShortcutInfo> assertShortcutIdsOrdered(List<ShortcutInfo> actualShortcuts, in assertShortcutIdsOrdered() 528 for (ShortcutInfo s : actualShortcuts) { in assertShortcutIdsOrdered() 535 public static List<ShortcutInfo> assertAllHaveIntents( in assertAllHaveIntents() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackage.java | 44 import android.content.pm.ShortcutInfo; 167 private final ArrayMap<String, ShortcutInfo> mShortcuts = new ArrayMap<>(); 174 private final ArrayMap<String, ShortcutInfo> mTransientShortcuts = new ArrayMap<>(0); 253 AppSearchShortcutInfo.KEY_FLAGS, ShortcutInfo.FLAG_SHADOW, in onRestored() 256 if (restoreBlockReason == ShortcutInfo.DISABLED_REASON_NOT_DISABLED in onRestored() 257 && !si.hasFlags(ShortcutInfo.FLAG_SHADOW) in onRestored() 261 si.clearFlags(ShortcutInfo.FLAG_SHADOW); in onRestored() 264 if (restoreBlockReason != ShortcutInfo.DISABLED_REASON_NOT_DISABLED) { in onRestored() 265 si.addFlags(ShortcutInfo.FLAG_DISABLED); in onRestored() 277 public ShortcutInfo findShortcutById(@Nullable final String id) { in findShortcutById() [all …]
|
D | ShortcutBitmapSaver.java | 20 import android.content.pm.ShortcutInfo; 86 public final ShortcutInfo shortcut; 94 private PendingItem(ShortcutInfo shortcut, byte[] bytes) { in PendingItem() 137 public String getBitmapPathMayWaitLocked(ShortcutInfo shortcut) { in getBitmapPathMayWaitLocked() 146 public void removeIcon(ShortcutInfo shortcut) { in removeIcon() 153 shortcut.clearFlags(ShortcutInfo.FLAG_HAS_ICON_FILE | in removeIcon() 154 ShortcutInfo.FLAG_ADAPTIVE_BITMAP | ShortcutInfo.FLAG_HAS_ICON_RES | in removeIcon() 155 ShortcutInfo.FLAG_ICON_FILE_PENDING_SAVE | ShortcutInfo.FLAG_HAS_ICON_URI); in removeIcon() 158 public void saveBitmapLocked(ShortcutInfo shortcut, in saveBitmapLocked() 201 ShortcutInfo.FLAG_HAS_ICON_FILE | ShortcutInfo.FLAG_ICON_FILE_PENDING_SAVE); in saveBitmapLocked() [all …]
|
D | ShortcutRequestPinProcessor.java | 27 import android.content.pm.ShortcutInfo; 70 public ShortcutInfo getShortcutInfo() { in getShortcutInfo() 176 public final ShortcutInfo shortcutOriginal; 182 public final ShortcutInfo shortcutForLauncher; 189 ShortcutInfo shortcutOriginal, ShortcutInfo shortcutForLauncher, in PinShortcutRequestInner() 201 public ShortcutInfo getShortcutInfo() { in getShortcutInfo() 231 public boolean requestPinItemLocked(ShortcutInfo inShortcut, AppWidgetProviderInfo inAppWidget, in requestPinItemLocked() 276 public Intent createShortcutResultIntent(@NonNull ShortcutInfo inShortcut, int userId) { in createShortcutResultIntent() 299 private PinItemRequest requestPinShortcutLocked(ShortcutInfo inShortcut, in requestPinShortcutLocked() 304 final ShortcutInfo existing = ps.findShortcutById(inShortcut.getId()); in requestPinShortcutLocked() [all …]
|
D | ShortcutService.java | 60 import android.content.pm.ShortcutInfo; 1498 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut) in openIconFileForWrite() 1523 void saveIconAndFixUpShortcutLocked(ShortcutPackage p, ShortcutInfo shortcut) { in saveIconAndFixUpShortcutLocked() 1545 shortcut.addFlags(ShortcutInfo.FLAG_HAS_ICON_RES); in saveIconAndFixUpShortcutLocked() 1550 shortcut.addFlags(ShortcutInfo.FLAG_HAS_ICON_URI); in saveIconAndFixUpShortcutLocked() 1554 shortcut.addFlags(ShortcutInfo.FLAG_HAS_ICON_URI in saveIconAndFixUpShortcutLocked() 1555 | ShortcutInfo.FLAG_ADAPTIVE_BITMAP); in saveIconAndFixUpShortcutLocked() 1568 throw ShortcutInfo.getInvalidIconException(); in saveIconAndFixUpShortcutLocked() 1583 void injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) { in injectValidateIconResPackage() 1624 void fixUpShortcutResourceNamesAndValues(ShortcutInfo si) { in fixUpShortcutResourceNamesAndValues() [all …]
|
D | ShortcutPackageInfo.java | 22 import android.content.pm.ShortcutInfo; 68 private long mVersionCode = ShortcutInfo.VERSION_CODE_UNKNOWN; 69 private long mBackupSourceVersionCode = ShortcutInfo.VERSION_CODE_UNKNOWN; 93 return new ShortcutPackageInfo(ShortcutInfo.VERSION_CODE_UNKNOWN, /* last update time =*/ 0, in newEmpty() 148 return ShortcutInfo.DISABLED_REASON_SIGNATURE_MISMATCH; in canRestoreTo() 153 return ShortcutInfo.DISABLED_REASON_BACKUP_NOT_SUPPORTED; in canRestoreTo() 159 return ShortcutInfo.DISABLED_REASON_VERSION_LOWER; in canRestoreTo() 161 return ShortcutInfo.DISABLED_REASON_NOT_DISABLED; in canRestoreTo() 244 ShortcutInfo.VERSION_CODE_UNKNOWN); in loadFromXml() 256 ATTR_BACKUP_SOURCE_VERSION, ShortcutInfo.VERSION_CODE_UNKNOWN); in loadFromXml() [all …]
|
D | ShortcutParser.java | 25 import android.content.pm.ShortcutInfo; 64 public static List<ShortcutInfo> parseShortcuts(ShortcutService service, String packageName, in parseShortcuts() 76 List<ShortcutInfo> result = null; in parseShortcuts() 105 private static List<ShortcutInfo> parseShortcutsOneFile( in parseShortcutsOneFile() 108 List<ShortcutInfo> result, @NonNull List<ShareTargetInfo> outShareTargets) in parseShortcutsOneFile() 134 ShortcutInfo currentShortcut = null; in parseShortcutsOneFile() 161 final ShortcutInfo si = currentShortcut; in parseShortcutsOneFile() 249 final ShortcutInfo si = parseShortcutAttributes( in parseShortcutsOneFile() 369 private static ShortcutInfo parseShortcutAttributes(ShortcutService service, in parseShortcutAttributes() 419 private static ShortcutInfo createShortcutFromManifest(ShortcutService service, in createShortcutFromManifest() [all …]
|
D | ShortcutPackageItem.java | 21 import android.content.pm.ShortcutInfo; 126 long currentVersionCode = ShortcutInfo.VERSION_CODE_UNKNOWN; in attemptToRestoreIfNeededAndSave() 131 restoreBlockReason = ShortcutInfo.DISABLED_REASON_SIGNATURE_MISMATCH; in attemptToRestoreIfNeededAndSave() 141 ShortcutInfo.getDisabledReasonDebugString(restoreBlockReason), in attemptToRestoreIfNeededAndSave() 237 public void saveBitmap(ShortcutInfo shortcut, in saveBitmap() 248 public String getBitmapPathMayWait(ShortcutInfo shortcut) { in getBitmapPathMayWait() 254 public void removeIcon(ShortcutInfo shortcut) { in removeIcon()
|
/frameworks/base/core/tests/coretests/src/android/app/people/ |
D | PeopleSpaceTileTest.java | 36 import android.content.pm.ShortcutInfo; 80 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testId() 84 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testId() 96 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testUserName() 100 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserName() 112 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setUserIcon( in testUserIcon() 124 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setContactUri( in testContactUri() 133 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserHandle() 143 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testPackageName() 148 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setPackageName( in testPackageName() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ShortcutHelperTest.java | 33 import android.content.pm.ShortcutInfo; 87 ShortcutInfo mShortcutInfo; 225 List<ShortcutInfo> shortcutInfos = new ArrayList<>(); in testListenerNotifiedOnShortcutRemoved() 243 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_nullShortcut() 254 ShortcutInfo si = mock(ShortcutInfo.class); in testGetValidShortcutInfo_notLongLived() 260 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notLongLived() 272 ShortcutInfo si = mock(ShortcutInfo.class); in testGetValidShortcutInfo_notSharingShortcut() 278 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notSharingShortcut() 289 ShortcutInfo si = mock(ShortcutInfo.class); in testGetValidShortcutInfo_notEnabled() 295 ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in testGetValidShortcutInfo_notEnabled() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 73 import android.content.pm.ShortcutInfo; 186 private ShortcutInfo mShortcutInfo; 369 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testReportAppTargetEvent_directSharing() 391 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testReportAppTargetEvent_directSharing_createConversation() 439 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testContactsChanged() 463 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testNotificationPosted() 478 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testNotificationOpened() 480 shortcut.setCached(ShortcutInfo.FLAG_CACHED_NOTIFICATIONS); in testNotificationOpened() 506 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, shortcutId, in testUncacheShortcutsWhenNotificationsDismissed() 508 shortcut.setCached(ShortcutInfo.FLAG_CACHED_NOTIFICATIONS); in testUncacheShortcutsWhenNotificationsDismissed() [all …]
|
/frameworks/base/core/java/android/app/people/ |
D | ConversationChannel.java | 22 import android.content.pm.ShortcutInfo; 37 private ShortcutInfo mShortcutInfo; 58 public ConversationChannel(ShortcutInfo shortcutInfo, int uid, in ConversationChannel() 70 public ConversationChannel(ShortcutInfo shortcutInfo, int uid, in ConversationChannel() 86 …mShortcutInfo = in.readParcelable(ShortcutInfo.class.getClassLoader(), android.content.pm.Shortcut… in ConversationChannel() 115 public ShortcutInfo getShortcutInfo() { in getShortcutInfo()
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutManager.java | 148 public boolean setDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) { in setDynamicShortcuts() 168 public List<ShortcutInfo> getDynamicShortcuts() { in getDynamicShortcuts() 188 public List<ShortcutInfo> getManifestShortcuts() { in getManifestShortcuts() 217 public List<ShortcutInfo> getShortcuts(@ShortcutMatchFlags int matchFlags) { in getShortcuts() 240 public boolean addDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) { in addDynamicShortcuts() 301 public List<ShortcutInfo> getPinnedShortcuts() { in getPinnedShortcuts() 323 public boolean updateShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) { in updateShortcuts() 598 public boolean requestPinShortcut(@NonNull ShortcutInfo shortcut, in requestPinShortcut() 628 public Intent createShortcutResultIntent(@NonNull ShortcutInfo shortcut) { in createShortcutResultIntent() 694 private final ShortcutInfo mShortcutInfo; [all …]
|
D | IShortcutChangeCallback.aidl | 20 import android.content.pm.ShortcutInfo; 32 void onShortcutsAddedOrUpdated(String packageName, in List<ShortcutInfo> shortcuts, in onShortcutsAddedOrUpdated() 35 void onShortcutsRemoved(String packageName, in List<ShortcutInfo> shortcuts, in onShortcutsRemoved()
|
D | AppSearchShortcutInfo.java | 334 public static AppSearchShortcutInfo instance(@NonNull final ShortcutInfo shortcutInfo) { in instance() 362 public ShortcutInfo toShortcutInfo(@UserIdInt int userId) { in toShortcutInfo() 419 : ShortcutInfo.DISABLED_REASON_NOT_DISABLED; in toShortcutInfo() 422 return new ShortcutInfo( in toShortcutInfo() 426 ShortcutInfo.RANK_NOT_SET, extras, getCreationTimestampMillis(), flags, iconResId, in toShortcutInfo() 436 @NonNull final Collection<ShortcutInfo> shortcuts) { in toGenericDocuments() 438 for (ShortcutInfo si : shortcuts) { in toGenericDocuments() 604 public Builder setFlags(@ShortcutInfo.ShortcutFlags final int flags) { in setFlags() 644 public Builder setDisabledReason(@ShortcutInfo.DisabledReason final int disabledReason) { in setDisabledReason() 731 private static String[] flattenFlags(@ShortcutInfo.ShortcutFlags final int flags) { in flattenFlags() [all …]
|
D | IShortcutService.aidl | 22 import android.content.pm.ShortcutInfo; 41 void requestPinShortcut(String packageName, in ShortcutInfo shortcut, in requestPinShortcut() 44 void createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId, in createShortcutResultIntent() 81 void pushDynamicShortcut(String packageName, in ShortcutInfo shortcut, int userId); in pushDynamicShortcut()
|
D | IPinItemRequest.aidl | 20 import android.content.pm.ShortcutInfo; 28 ShortcutInfo getShortcutInfo(); in getShortcutInfo()
|
/frameworks/base/core/java/android/service/notification/ |
D | ConversationChannelWrapper.java | 21 import android.content.pm.ShortcutInfo; 36 private ShortcutInfo mShortcutInfo; 46 …mShortcutInfo = in.readParcelable(ShortcutInfo.class.getClassLoader(), android.content.pm.Shortcut… in ConversationChannelWrapper() 105 public ShortcutInfo getShortcutInfo() { in getShortcutInfo() 109 public void setShortcutInfo(ShortcutInfo shortcutInfo) { in setShortcutInfo()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/ |
D | ISplitScreen.aidl | 21 import android.content.pm.ShortcutInfo; 107 oneway void startShortcutAndTask(in ShortcutInfo shortcutInfo, in Bundle options1, int taskId, in startShortcutAndTask() 128 oneway void startShortcutAndTaskWithLegacyTransition(in ShortcutInfo shortcutInfo, in startShortcutAndTaskWithLegacyTransition() 136 in ShortcutInfo shortcutInfo1, in Bundle options1, in PendingIntent pendingIntent2, in startIntentsWithLegacyTransition() 137 int userId2, in ShortcutInfo shortcutInfo2, in Bundle options2, int splitPosition, in startIntentsWithLegacyTransition() 144 in ShortcutInfo shortcutInfo1, in Bundle options1, in PendingIntent pendingIntent2, in startIntents() 145 int userId2, in ShortcutInfo shortcutInfo2, in Bundle options2, int splitPosition, in startIntents()
|
/frameworks/base/core/java/android/app/prediction/ |
D | AppTarget.java | 22 import android.content.pm.ShortcutInfo; 42 private final ShortcutInfo mShortcutInfo; 67 public AppTarget(@NonNull AppTargetId id, @NonNull ShortcutInfo shortcutInfo, in AppTarget() 79 ShortcutInfo shortcutInfo, String className, int rank) { in AppTarget() 90 mShortcutInfo = parcel.readTypedObject(ShortcutInfo.CREATOR); in AppTarget() 138 public ShortcutInfo getShortcutInfo() { in getShortcutInfo() 208 private ShortcutInfo mShortcutInfo; 244 public Builder(@NonNull AppTargetId id, @NonNull ShortcutInfo info) { in Builder() 272 public Builder setTarget(@NonNull ShortcutInfo info) { in setTarget()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/shortcut/ |
D | BubbleShortcutHelper.kt | 20 import android.content.pm.ShortcutInfo 30 fun createShortcut(context: Context, icon: Icon): ShortcutInfo { in createShortcut() 31 return ShortcutInfo.Builder(context, SHORTCUT_ID) in createShortcut()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ShortcutHelper.java | 27 import android.content.pm.ShortcutInfo; 104 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { 175 ShortcutInfo shortcutInfo, ShortcutServiceInternal mShortcutServiceInternal, in isConversationShortcut() 192 ShortcutInfo getValidShortcutInfo(String shortcutId, String packageName, UserHandle user) { in getValidShortcutInfo() 207 List<ShortcutInfo> shortcuts = mLauncherAppsService.getShortcuts(query, user); in getValidShortcutInfo() 208 ShortcutInfo info = shortcuts != null && shortcuts.size() > 0 in getValidShortcutInfo() 223 void cacheShortcut(ShortcutInfo shortcutInfo, UserHandle user) { in cacheShortcut() 227 shortcutInfo.getUserId(), ShortcutInfo.FLAG_CACHED_NOTIFICATIONS); in cacheShortcut()
|