Home
last modified time | relevance | path

Searched refs:getTestContext (Results 1 – 12 of 12) 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.java150 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); in setupMockActivityInfo()
151 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver(); in setupMockActivityInfo()
155 new ComponentName(getTestContext(), "a.ShortcutConfigActivity")); in setupMockActivityInfo()
DShortcutManagerTest1.java285 final Icon icon1 = Icon.createWithResource(getTestContext(), R.drawable.icon1); in testSetDynamicShortcuts()
287 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts()
289 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts()
768 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testIcons()
769 final Icon res64x64 = Icon.createWithResource(getTestContext(), R.drawable.black_64x64); in testIcons()
770 final Icon res512x512 = Icon.createWithResource(getTestContext(), R.drawable.black_512x512); in testIcons()
773 getTestContext().getResources(), R.drawable.black_32x32)); in testIcons()
775 getTestContext().getResources(), R.drawable.black_64x64)); in testIcons()
777 getTestContext().getResources(), R.drawable.black_512x512)); in testIcons()
987 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(), PendingIntent.FLAG_MUTABLE_UNAUDITED); in testRequestPinAppWidget_withCallback()
DShortcutManagerTest7.java70 getTestContext().getCacheDir()); in callShellCommand()
285 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
344 mService.mPackageMonitor.onReceive(getTestContext(), in testGetShortcuts()
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(), PendingIntent.FLAG_MUTABLE_UNA… 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.java175 return getTestContext().getSystemService(name); in getSystemService()
182 return getTestContext().getOpPackageName(); in getOpPackageName()
187 return getTestContext().getSystemServiceName(serviceClass); in getSystemServiceName()
197 return getTestContext().getResources(); in getResources()
1152 mInjectedFilePathRoot = new File(getTestContext().getCacheDir(), "test-files"); in setUp()
1323 protected Context getTestContext() { in getTestContext() method in BaseShortcutManagerTest
1593 return getTestContext().getResources().getXml(resId); in injectXmlMetaData()
2597 getTestContext().getResources().getAssets().open(assetPath)))) {
2689 mService.mPackageMonitor.onReceive(getTestContext(),
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTestCase.java56 final DisplayManager dm = getTestContext().getSystemService(DisplayManager.class); in setUpContext()
57 mContext = getTestContext().createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in setUpContext()
63 mWindowManager = getTestContext().getSystemService(WindowManager.class); in setUpWindowManager()
67 protected TestableContext getTestContext() { in getTestContext() method in OneHandedTestCase
/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();