Searched refs:ShortcutInfo (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/content/pm/
H A DShortcutInfo.aidl18 parcelable ShortcutInfo;
H A DShortcutManager.java38 * compose activity. The {@link ShortcutInfo} class contains information about each of the
213 * See {@link ShortcutInfo.Builder#setShortLabel(CharSequence)}.
220 * See {@link ShortcutInfo.Builder#setLongLabel(CharSequence)}.
243 * {@link ShortcutInfo#SHORTCUT_CATEGORY_CONVERSATION} is defined in the framework.
260 *ShortcutInfo shortcut = new ShortcutInfo.Builder(this, "id1")
279 * <p>The {@link ShortcutInfo.Builder#setIntents(Intent[])} method can be used instead of
280 * {@link ShortcutInfo.Builder#setIntent(Intent)} with {@link android.app.TaskStackBuilder}
327 * (if {@link ShortcutInfo#isDeclaredInManifest()} is {@code true}),
328 * and then show dynamic shortcuts (if {@link ShortcutInfo#isDynami
[all...]
H A DIShortcutService.aidl19 import android.content.pm.ShortcutInfo;
H A DShortcutInfo.java53 public final class ShortcutInfo implements Parcelable { class in inherits:Parcelable
227 private ShortcutInfo(Builder b) { method in class:ShortcutInfo
330 private ShortcutInfo(ShortcutInfo source, @CloneFlags int cloneFlags) { method in class:ShortcutInfo
591 * Copy a {@link ShortcutInfo}, optionally removing fields.
594 public ShortcutInfo clone(@CloneFlags int cloneFlags) {
595 return new ShortcutInfo(this, cloneFlags);
601 public void ensureUpdatableWith(ShortcutInfo source) {
606 Preconditions.checkState(!isImmutable(), "Target ShortcutInfo is immutable");
610 * Copy non-null/zero fields from another {@link ShortcutInfo}
1601 private ShortcutInfo(Parcel source) { method in class:ShortcutInfo
1842 public ShortcutInfo( method in class:ShortcutInfo
[all...]
H A DShortcutServiceInternal.java41 public abstract List<ShortcutInfo>
H A DLauncherApps.java177 * {@link ShortcutInfo#hasKeyFieldsOnly()}.
183 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) {
227 * Requests "key" fields only. See {@link ShortcutInfo#hasKeyFieldsOnly()}'s javadoc to
237 * The application can then check {@link ShortcutInfo#getLastChangedTimestamp()} for each
302 * {@link ShortcutInfo}s whose {@link ShortcutInfo#getActivity()} are equal
508 * Returns {@link ShortcutInfo}s that match {@code query}.
516 * @return the IDs of {@link ShortcutInfo}s that match the query.
523 public List<ShortcutInfo> getShortcuts(@NonNull ShortcutQuery query,
540 public List<ShortcutInfo> getShortcutInf
[all...]
H A DILauncherApps.aidl26 import android.content.pm.ShortcutInfo;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest2.java37 import android.content.pm.ShortcutInfo;
69 // ShortcutInfo tests
81 () -> new ShortcutInfo.Builder(getTestContext()).build());
86 () -> new ShortcutInfo.Builder(getTestContext(), null));
91 () -> new ShortcutInfo.Builder(getTestContext(), ""));
96 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(null));
101 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(new Intent()));
106 () -> new ShortcutInfo.Builder(getTestContext(), "id")
112 () -> new ShortcutInfo.Builder(getTestContext(), "id").setActivity(null));
117 () -> new ShortcutInfo
[all...]
H A DBaseShortcutManagerTest.java58 import android.content.pm.ShortcutInfo;
287 void injectValidateIconResPackage(ShortcutInfo shortcut, Icon icon) {
433 public boolean setDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) {
440 public boolean addDynamicShortcuts(@NonNull List<ShortcutInfo> shortcutInfoList) {
446 public boolean updateShortcuts(List<ShortcutInfo> shortcutInfoList) {
803 entryName = ShortcutInfo.getResourceEntryName(entryName);
1113 protected void lookupAndFillInResourceNames(ShortcutInfo si) {
1213 protected ShortcutInfo makeShortcut(String id) {
1219 protected ShortcutInfo makeShortcutWithTitle(String id, String title) {
1228 protected ShortcutInfo makeShortcutWithTimestam
[all...]
H A DShortcutManagerTest1.java74 import android.content.pm.ShortcutInfo;
248 final ShortcutInfo si1 = makeShortcut(
257 final ShortcutInfo si2 = makeShortcut(
264 final ShortcutInfo si3 = makeShortcut("shortcut3");
306 final ShortcutInfo si1 = makeShortcut("shortcut1");
307 final ShortcutInfo si2 = makeShortcut("shortcut2");
308 final ShortcutInfo si3 = makeShortcut("shortcut3");
358 final ShortcutInfo si1 = new ShortcutInfo.Builder(mClientContext, "si1")
362 final ShortcutInfo si
[all...]
H A DShortcutManagerTest3.java22 import android.content.pm.ShortcutInfo;
45 private ShortcutInfo shortcut(String id, ComponentName activity, int rank) {
49 private ShortcutInfo shortcut(String id, ComponentName activity) {
50 return makeShortcutWithActivityAndRank(id, activity, ShortcutInfo.RANK_NOT_SET);
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java39 import android.content.pm.ShortcutInfo;
376 public static List<ShortcutInfo> filter(List<ShortcutInfo> list, Predicate<ShortcutInfo> p) {
377 final ArrayList<ShortcutInfo> ret = new ArrayList<>(list);
382 public static List<ShortcutInfo> filterByActivity(List<ShortcutInfo> list,
389 public static List<ShortcutInfo> changedSince(List<ShortcutInfo> list, long time) {
432 public static List<ShortcutInfo> assertShortcutId
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackage.java24 import android.content.pm.ShortcutInfo;
109 final private ArrayMap<String, ShortcutInfo> mShortcuts = new ArrayMap<>();
170 public ShortcutInfo findShortcutById(String id) {
174 private void ensureNotImmutable(@Nullable ShortcutInfo shortcut) {
192 public void ensureImmutableShortcutsNotIncluded(@NonNull List<ShortcutInfo> shortcuts) {
198 private ShortcutInfo deleteShortcutInner(@NonNull String id) {
199 final ShortcutInfo shortcut = mShortcuts.remove(id);
202 shortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_PINNED
203 | ShortcutInfo
[all...]
H A DShortcutParser.java24 import android.content.pm.ShortcutInfo;
60 public static List<ShortcutInfo> parseShortcuts(ShortcutService service,
71 List<ShortcutInfo> result = null;
99 private static List<ShortcutInfo> parseShortcutsOneFile(
102 List<ShortcutInfo> result) throws IOException, XmlPullParserException {
125 // We instantiate ShortcutInfo at <shortcut>, but we add it to the list at </shortcut>,
127 ShortcutInfo currentShortcut = null;
144 final ShortcutInfo si = currentShortcut;
206 final ShortcutInfo si = parseShortcutAttributes(
287 private static ShortcutInfo parseShortcutAttribute
[all...]
H A DShortcutService.java45 import android.content.pm.ShortcutInfo;
1202 void removeIcon(@UserIdInt int userId, ShortcutInfo shortcut) {
1207 shortcut.clearFlags(ShortcutInfo.FLAG_HAS_ICON_FILE | ShortcutInfo.FLAG_HAS_ICON_RES);
1292 FileOutputStreamWithPath openIconFileForWrite(@UserIdInt int userId, ShortcutInfo shortcut)
1317 void saveIconAndFixUpShortcut(@UserIdInt int userId, ShortcutInfo shortcut) {
1339 shortcut.addFlags(ShortcutInfo.FLAG_HAS_ICON_RES);
1349 throw ShortcutInfo.getInvalidIconException();
1372 shortcut.addFlags(ShortcutInfo.FLAG_HAS_ICON_FILE);
1395 void injectValidateIconResPackage(ShortcutInfo shortcu
[all...]
H A DShortcutLauncher.java21 import android.content.pm.ShortcutInfo;
129 final ShortcutInfo si = packageShortcuts.findShortcutById(id);
H A DLauncherAppsService.java38 import android.content.pm.ShortcutInfo;
387 // TODO(b/29399275): Eclipse compiler requires explicit List<ShortcutInfo> cast below.
388 return new ParceledListSlice<>((List<ShortcutInfo>)
812 final List<ShortcutInfo> list =
/frameworks/base/services/core/java/com/android/server/policy/
H A DShortcutManager.java55 private final SparseArray<ShortcutInfo> mShortcuts = new SparseArray<>();
56 private final SparseArray<ShortcutInfo> mShiftShortcuts = new SparseArray<>();
81 ShortcutInfo shortcut = null;
85 SparseArray<ShortcutInfo> shortcutMap = isShiftOn ? mShiftShortcuts : mShortcuts;
175 ShortcutInfo shortcut = new ShortcutInfo(title, intent);
189 private static final class ShortcutInfo { class in class:ShortcutManager
193 public ShortcutInfo(String title, Intent intent) { method in class:ShortcutManager.ShortcutInfo
/frameworks/base/
H A DAndroid.mk690 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \

Completed in 446 milliseconds