Home
last modified time | relevance | path

Searched refs:getTestContext (Results 1 – 10 of 10) 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.java249 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 …]
DShortcutManagerTest10.java157 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()
DShortcutManagerTest9.java86 assertEquals(className, actualRequest.getAppWidgetProviderInfo(getTestContext()) in assertPinItemRequest()
150 PendingIntent.getActivity(getTestContext(), 0, new Intent(), 0); in testRequestPinAppWidget_withCallback()
DShortcutManagerTest7.java64 getTestContext().getCacheDir()); in callShellCommand()
291 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
DShortcutManagerTest8.java255 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()
DBaseShortcutManagerTest.java146 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(),
DShortcutManagerTest3.java69 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts()
/frameworks/base/legacy-test/src/android/test/
DAndroidTestCase.java83 public Context getTestContext() { in getTestContext() method in AndroidTestCase