Home
last modified time | relevance | path

Searched refs:getTestContext (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java81 () -> 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 …]
DShortcutManagerTest5.java59 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()
DShortcutManagerTest1.java244 final Icon icon1 = Icon.createWithResource(getTestContext(), R.drawable.icon1); in testSetDynamicShortcuts()
246 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts()
547 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testIcons()
548 final Icon res64x64 = Icon.createWithResource(getTestContext(), R.drawable.black_64x64); in testIcons()
549 final Icon res512x512 = Icon.createWithResource(getTestContext(), R.drawable.black_512x512); in testIcons()
552 getTestContext().getResources(), R.drawable.black_32x32)); in testIcons()
554 getTestContext().getResources(), R.drawable.black_64x64)); in testIcons()
556 getTestContext().getResources(), R.drawable.black_512x512)); in testIcons()
702 getTestContext().getResources(), R.drawable.black_32x32)); in testCleanupDanglingBitmaps()
858 getTestContext().getResources(), resId), in checkShrinkBitmap()
[all …]
DShortcutManagerTest7.java63 getTestContext().getCacheDir()); in callShellCommand()
290 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
DBaseShortcutManagerTest.java140 return getTestContext().getSystemServiceName(serviceClass); in getSystemServiceName()
150 return getTestContext().getResources(); in getResources()
690 mInjectedFilePathRoot = new File(getTestContext().getCacheDir(), "test-files"); in setUp()
825 protected Context getTestContext() { in getTestContext() method in BaseShortcutManagerTest
1065 return getTestContext().getResources().getXml(resId); in injectXmlMetaData()
1907 getTestContext().getResources().getAssets().open(assetPath)))) {
DShortcutManagerTest3.java69 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts()
/frameworks/base/core/java/android/test/
DAndroidTestCase.java83 public Context getTestContext() { in getTestContext() method in AndroidTestCase