/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
ShortcutManagerLauncherApiTest.java | 45 runWithCallerWithStrictMode(mPackageContext1, () -> { 88 mPackageContext1.getPackageName(), 95 runWithCallerWithStrictMode(mPackageContext1, () -> { 109 runWithCallerWithStrictMode(mPackageContext1, () -> { 147 runWithCallerWithStrictMode(mPackageContext1, () -> { 161 runWithCallerWithStrictMode(mPackageContext1, () -> { 179 mPackageContext1.getPackageName(), 187 mPackageContext1.getPackageName(), 195 mPackageContext1.getPackageName(), 204 mPackageContext1.getPackageName() [all...] |
ShortcutManagerFakingPublisherTest.java | 74 runWithCaller(mPackageContext1, () -> { 77 assertShortcutPackageMismatch("setDynamicShortcuts1", mPackageContext1, () -> { 82 assertShortcutPackageMismatch("setDynamicShortcuts2A", mPackageContext1, () -> { 88 assertShortcutPackageMismatch("setDynamicShortcuts2B", mPackageContext1, () -> { 97 runWithCaller(mPackageContext1, () -> { 100 assertShortcutPackageMismatch("addDynamicShortcuts1", mPackageContext1, () -> { 105 assertShortcutPackageMismatch("addDynamicShortcuts2A", mPackageContext1, () -> { 111 assertShortcutPackageMismatch("addDynamicShortcuts2B", mPackageContext1, () -> { 120 runWithCaller(mPackageContext1, () -> { 123 assertShortcutPackageMismatch("updateShortcuts1", mPackageContext1, () -> [all...] |
ShortcutManagerLauncherCallbackTest.java | 141 final MyCallback c = new MyCallback(mPackageContext1.getPackageName()); 164 runWithCaller(mPackageContext1, () -> { 171 c.assertCalled(mPackageContext1) 178 runWithCaller(mPackageContext1, () -> { 184 c.assertCalled(mPackageContext1) 191 runWithCaller(mPackageContext1, () -> { 197 c.assertCalled(mPackageContext1) 204 runWithCaller(mPackageContext1, () -> { 210 c.assertCalled(mPackageContext1) 217 runWithCaller(mPackageContext1, () -> [all...] |
ShortcutManagerStartShortcutTest.java | 106 runWithCallerWithStrictMode(mPackageContext1, () -> { 113 List<Intent> launched = launchShortcutAndGetIntents(mLauncherContext1, mPackageContext1, 141 runWithCallerWithStrictMode(mPackageContext1, () -> { 148 List<Intent> launched = launchShortcutAndGetIntents(mLauncherContext1, mPackageContext1, 181 assertShortcutStarts(mLauncherContext2, mPackageContext1, "s1", 185 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s1", 198 runWithCallerWithStrictMode(mPackageContext1, () -> { 204 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s1", 214 runWithCallerWithStrictMode(mPackageContext1, () -> { 223 assertShortcutCantStart(mLauncherContext1, mPackageContext1, "s2" [all...] |
ShortcutManagerClientApiTest.java | 248 runWithCallerWithStrictMode(mPackageContext1, () -> { 255 runWithCallerWithStrictMode(mPackageContext1, () -> { 296 runWithCallerWithStrictMode(mPackageContext1, () -> { 316 runWithCallerWithStrictMode(mPackageContext1, () -> { 321 runWithCallerWithStrictMode(mPackageContext1, () -> { 335 runWithCallerWithStrictMode(mPackageContext1, () -> { 339 runWithCallerWithStrictMode(mPackageContext1, () -> { 369 final Icon icon3 = loadPackageDrawableIcon(mPackageContext1, "black_64x16"); 370 final Icon icon4 = loadPackageDrawableIcon(mPackageContext1, "black_64x64"); 375 runWithCallerWithStrictMode(mPackageContext1, () -> [all...] |
ShortcutManagerUsageTest.java | 81 runWithCallerWithStrictMode(mPackageContext1, () -> { 95 runWithCallerWithStrictMode(mPackageContext1, () -> { 121 runWithCallerWithStrictMode(mPackageContext1, () -> getManager().reportShortcutUsed(id1)); 126 mPackageContext1.getPackageName(), id1), "Events weren't populated"); 130 runWithCallerWithStrictMode(mPackageContext1, () -> getManager().reportShortcutUsed(idNonexistance)); 131 runWithCallerWithStrictMode(mPackageContext1, () -> getManager().reportShortcutUsed(idManifest)); 136 mPackageContext1.getPackageName(), idManifest), "Events weren't populated"); 139 mPackageContext1.getPackageName(), idNonexistance));
|
ShortcutManagerMultiLauncherTest.java | 40 runWithCaller(mPackageContext1, () -> { 90 mPackageContext1.getPackageName(), 101 mPackageContext1.getPackageName(), 108 runWithCaller(mPackageContext1, () -> { 181 mPackageContext1.getPackageName())) 186 mPackageContext1.getPackageName())) 191 mPackageContext1.getPackageName())) 231 mPackageContext1.getPackageName())) 236 mPackageContext1.getPackageName())) 241 mPackageContext1.getPackageName()) [all...] |
ShortcutManagerRequestPinTest.java | 53 runWithCaller(mPackageContext1, () -> { 60 runWithCaller(mPackageContext1, () -> { 73 runWithCallerWithStrictMode(mPackageContext1, () -> { 101 .setPackage(mPackageContext1.getPackageName()) 121 runWithCaller(mPackageContext1, () -> { 143 runWithCallerWithStrictMode(mPackageContext1, () -> { 165 .setPackage(mPackageContext1.getPackageName()) 203 runWithCallerWithStrictMode(mPackageContext1, () -> { 227 .setPackage(mPackageContext1.getPackageName()) 253 runWithCallerWithStrictMode(mPackageContext1, () -> [all...] |
ShortcutManagerMaxCountTest.java | 35 runWithCallerWithStrictMode(mPackageContext1, () -> { 127 runWithCallerWithStrictMode(mPackageContext1, () -> { 136 runWithCallerWithStrictMode(mPackageContext1, () -> { 160 runWithCallerWithStrictMode(mPackageContext1, () -> { 199 runWithCallerWithStrictMode(mPackageContext1, () -> { 229 runWithCallerWithStrictMode(mPackageContext1, () -> { 313 runWithCallerWithStrictMode(mPackageContext1, () -> { 331 getLauncherApps().pinShortcuts(mPackageContext1.getPackageName(), 336 runWithCallerWithStrictMode(mPackageContext1, () -> {
|
ShortcutManagerNegativeTest.java | 138 runWithCaller(mPackageContext1, () -> { 145 mPackageContext1.getPackageName())); 148 runWithCaller(mPackageContext1, () -> { 159 mPackageContext1.getPackageName(), /* user-id*/ 10);
|
ShortcutManagerSpoofingTest.java | 37 * Make sure switching between mPackageContext1..3 and mLauncherContext1..3 will work as intended. 45 runWithCaller(mPackageContext1, () -> { 58 runWithCaller(mPackageContext1, () -> { 107 runWithCaller(mPackageContext1, () -> { 116 mPackageContext1.getPackageName(), "s1")
|
ShortcutManagerSpoofDetectionTest.java | 100 mPackageContext1.getPackageName(), list(), getUserHandle()); 107 getLauncherApps().startShortcut(mPackageContext1.getPackageName(), "s1",
|
ShortcutManagerCtsTestsBase.java | 82 protected Context mPackageContext1; 133 mPackageContext1 = new SpoofingContext(getTestContext(), 155 clearShortcuts(getInstrumentation(), mUserId, mPackageContext1.getPackageName()); 160 setCurrentCaller(mPackageContext1); 205 return list(mPackageContext1, mPackageContext2, mPackageContext3); 215 mPackageContext1, mPackageContext2, mPackageContext3, mPackageContext4,
|
ShortcutManagerConfigActivityTest.java | 121 runWithCallerWithStrictMode(mPackageContext1, () -> {
|