Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 50) sorted by relevance

12

/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java49 final ShortcutInfo shortcut = request.getShortcutInfo(); in onCreate() local
50 if (shortcut == null) { in onCreate()
55 replyAction = shortcut.getExtras().getString(Constants.EXTRA_REPLY_ACTION); in onCreate()
67 if (shortcut.getExtras().getBoolean(Constants.IGNORE)) { in onCreate()
75 final boolean expectPinned = shortcut.getExtras().getBoolean(Constants.ALREADY_PINNED); in onCreate()
76 if (shortcut.isPinned() != expectPinned) { in onCreate()
81 final String expectLabel = shortcut.getExtras().getString(Constants.LABEL); in onCreate()
82 if (!Objects.equals(expectLabel, shortcut.getShortLabel())) { in onCreate()
85 + shortcut.getShortLabel() + "'"); in onCreate()
89 shortcut, DisplayMetrics.DENSITY_DEFAULT); in onCreate()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerRequestPinTest.java82 final ShortcutInfo shortcut = makeShortcutBuilder(SHORTCUT_ID) in testRequestPinShortcut()
93 assertTrue(getManager().updateShortcuts(list(shortcut))); in testRequestPinShortcut()
96 assertTrue(getManager().requestPinShortcut(shortcut, /* intent sender */ null)); in testRequestPinShortcut()
150 final ShortcutInfo shortcut = makeShortcutBuilder(SHORTCUT_ID) in testRequestPinShortcut_multiLaunchers()
157 assertTrue(getManager().updateShortcuts(list(shortcut))); in testRequestPinShortcut_multiLaunchers()
160 assertTrue(getManager().requestPinShortcut(shortcut, /* intent sender */ null)); in testRequestPinShortcut_multiLaunchers()
193 ShortcutInfo shortcut = makeShortcutBuilder(SHORTCUT_ID) in testRequestPinShortcut_multiLaunchers_withDynamic() local
197 assertTrue(getManager().setDynamicShortcuts(list(shortcut))); in testRequestPinShortcut_multiLaunchers_withDynamic()
362 final ShortcutInfo shortcut = makeShortcutBuilder(HIDDEN_SHORTCUT_ID) in testRequestPinShortcutExcludedFromLauncher_ThrowsException()
369 assertTrue(getManager().requestPinShortcut(shortcut, /* intent sender */ null)); in testRequestPinShortcutExcludedFromLauncher_ThrowsException()
/cts/hostsidetests/shortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.publisher2;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DShortcutManagerPreBackup2Test.java16 package android.content.pm.cts.shortcut.backup.publisher2;
24 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
/cts/hostsidetests/shortcuts/deviceside/backup/launcher4old/src/android/content/pm/cts/shortcut/backup/launcher4/
DShortcutManagerPreBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher4;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
/cts/hostsidetests/shortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.publisher3;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.publisher3;
/cts/hostsidetests/shortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher3;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DShortcutManagerPreBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher3;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.launcher3;
/cts/hostsidetests/shortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.publisher1;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.publisher1;
/cts/hostsidetests/shortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/
DShortcutManagerPreBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher2;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher2;
21 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.launcher2;
/cts/hostsidetests/shortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/
DShortcutManagerPreBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher1;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DShortcutManagerPostBackupTest.java16 package android.content.pm.cts.shortcut.backup.launcher1;
21 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.launcher1;
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchTargetTest.java105 ShortcutInfo shortcut = new ShortcutInfo.Builder(getContext(), ID2).build(); in testBuilderShortcutInfo() local
107 .setPackageName(shortcut.getPackage()) in testBuilderShortcutInfo()
109 .setShortcutInfo(shortcut) in testBuilderShortcutInfo()
111 assertThat(target.getShortcutInfo()).isEqualTo(shortcut); in testBuilderShortcutInfo()
113 assertThat(clone.getShortcutInfo().getId()).isEqualTo(shortcut.getId()); in testBuilderShortcutInfo()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40092/src/android/security/cts/CVE_2023_40092/
DDeviceTest.java77 ShortcutInfo shortcut = in testPocCVE_2023_40092() local
87 UserIdField.set(shortcut, testUserId); in testPocCVE_2023_40092()
96 shortcutManager.pushDynamicShortcut(shortcut); in testPocCVE_2023_40092()
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/
DShortcutManagerPostUpgradeTest.java16 package android.content.pm.cts.shortcut.upgrade;
20 import android.content.pm.cts.shortcut.device.common.ShortcutManagerDeviceTestBase;
DMainActivity.java16 package android.content.pm.cts.shortcut.upgrade;
DConsts.java16 package android.content.pm.cts.shortcut.upgrade;
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DConsts.java16 package android.content.pm.cts.shortcut.multiuser;
/cts/hostsidetests/shortcuts/deviceside/backup/publisher4old/src/android/content/pm/cts/shortcut/backup/publisher4/
DMainActivity.java16 package android.content.pm.cts.shortcut.backup.publisher4;

12