/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 81 () -> new ShortcutInfo.Builder(getTestContext()).build()); in testShortcutInfoMissingMandatoryFields() 86 () -> new ShortcutInfo.Builder(getTestContext(), null)); in testShortcutInfoMissingMandatoryFields() 91 () -> new ShortcutInfo.Builder(getTestContext(), "")); in testShortcutInfoMissingMandatoryFields() 96 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(null)); in testShortcutInfoMissingMandatoryFields() 101 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(new Intent())); in testShortcutInfoMissingMandatoryFields() 106 () -> new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields() 112 () -> new ShortcutInfo.Builder(getTestContext(), "id").setActivity(null)); in testShortcutInfoMissingMandatoryFields() 117 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel(null)); in testShortcutInfoMissingMandatoryFields() 122 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel("")); in testShortcutInfoMissingMandatoryFields() 127 () -> new ShortcutInfo.Builder(getTestContext(), "id").setLongLabel(null)); in testShortcutInfoMissingMandatoryFields() [all …]
|
D | ShortcutManagerTest5.java | 59 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(), in setUp() 62 mMyPackage = getTestContext().getPackageName(); in setUp() 116 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata() 124 XmlResourceParser meta = ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
|
D | ShortcutManagerTest1.java | 249 final Icon icon1 = Icon.createWithResource(getTestContext(), R.drawable.icon1); in testSetDynamicShortcuts() 251 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts() 253 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts() 560 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testIcons() 561 final Icon res64x64 = Icon.createWithResource(getTestContext(), R.drawable.black_64x64); in testIcons() 562 final Icon res512x512 = Icon.createWithResource(getTestContext(), R.drawable.black_512x512); in testIcons() 565 getTestContext().getResources(), R.drawable.black_32x32)); in testIcons() 567 getTestContext().getResources(), R.drawable.black_64x64)); in testIcons() 569 getTestContext().getResources(), R.drawable.black_512x512)); in testIcons() 724 getTestContext().getResources(), R.drawable.black_32x32)); in testCleanupDanglingBitmaps() [all …]
|
D | ShortcutManagerTest10.java | 157 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); in setupMockActivityInfo() 158 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver(); in setupMockActivityInfo() 162 new ComponentName(getTestContext(), "a.ShortcutConfigActivity")); in setupMockActivityInfo()
|
D | ShortcutManagerTest9.java | 86 assertEquals(className, actualRequest.getAppWidgetProviderInfo(getTestContext()) in assertPinItemRequest() 150 PendingIntent.getActivity(getTestContext(), 0, new Intent(), 0); in testRequestPinAppWidget_withCallback()
|
D | ShortcutManagerTest7.java | 64 getTestContext().getCacheDir()); in callShellCommand() 291 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
|
D | ShortcutManagerTest8.java | 255 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in checkRequestPinShortcut() 327 return PendingIntent.getActivity(getTestContext(), 0, new Intent(), 0).getIntentSender(); in makeResultIntent() 476 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists() 591 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_alreadyPinned() 1042 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_titleWontChange()
|
D | BaseShortcutManagerTest.java | 146 return getTestContext().getSystemServiceName(serviceClass); in getSystemServiceName() 156 return getTestContext().getResources(); in getResources() 753 mInjectedFilePathRoot = new File(getTestContext().getCacheDir(), "test-files"); in setUp() 915 protected Context getTestContext() { in getTestContext() method in BaseShortcutManagerTest 1174 return getTestContext().getResources().getXml(resId); in injectXmlMetaData() 2070 getTestContext().getResources().getAssets().open(assetPath)))) { 2139 mService.mPackageMonitor.onReceive(getTestContext(),
|
D | ShortcutManagerTest3.java | 69 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts()
|
/frameworks/base/legacy-test/src/android/test/ |
D | AndroidTestCase.java | 83 public Context getTestContext() { in getTestContext() method in AndroidTestCase
|