Home
last modified time | relevance | path

Searched refs:getTestContext (Results 1 – 11 of 11) 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()
118 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
126 XmlResourceParser meta = ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
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()
DShortcutManagerTest1.java266 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 …]
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()
DShortcutManagerTest3.java76 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts()
517 mService.mPackageMonitor.onReceive(getTestContext(), in testGetSharingShortcutCount()
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.java155 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/
DAndroidTestCase.java82 public Context getTestContext() { in getTestContext() method in AndroidTestCase
/frameworks/base/test-base/api/
Dcurrent.txt10 method @Deprecated public android.content.Context getTestContext();