/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() 118 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata() 126 XmlResourceParser meta = ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
|
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 | ShortcutManagerTest1.java | 266 final Icon icon1 = Icon.createWithResource(getTestContext(), R.drawable.icon1); in testSetDynamicShortcuts() 268 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts() 270 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts() 608 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testIcons() 609 final Icon res64x64 = Icon.createWithResource(getTestContext(), R.drawable.black_64x64); in testIcons() 610 final Icon res512x512 = Icon.createWithResource(getTestContext(), R.drawable.black_512x512); in testIcons() 613 getTestContext().getResources(), R.drawable.black_32x32)); in testIcons() 615 getTestContext().getResources(), R.drawable.black_64x64)); in testIcons() 617 getTestContext().getResources(), R.drawable.black_512x512)); in testIcons() 772 getTestContext().getResources(), R.drawable.black_32x32)); in testCleanupDanglingBitmaps() [all …]
|
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 | ShortcutManagerTest3.java | 76 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts() 517 mService.mPackageMonitor.onReceive(getTestContext(), in testGetSharingShortcutCount()
|
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 | 155 return getTestContext().getSystemServiceName(serviceClass); in getSystemServiceName() 165 return getTestContext().getResources(); in getResources() 799 mInjectedFilePathRoot = new File(getTestContext().getCacheDir(), "test-files"); in setUp() 967 protected Context getTestContext() { in getTestContext() method in BaseShortcutManagerTest 1237 return getTestContext().getResources().getXml(resId); in injectXmlMetaData() 2176 getTestContext().getResources().getAssets().open(assetPath)))) { 2253 mService.mPackageMonitor.onReceive(getTestContext(),
|
/frameworks/base/test-base/src/android/test/ |
D | AndroidTestCase.java | 82 public Context getTestContext() { in getTestContext() method in AndroidTestCase
|
/frameworks/base/test-base/api/ |
D | current.txt | 10 method @Deprecated public android.content.Context getTestContext();
|