Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java86 () -> new ShortcutInfo.Builder(getTestContext()).build()); in testShortcutInfoMissingMandatoryFields()
91 () -> new ShortcutInfo.Builder(getTestContext(), null)); in testShortcutInfoMissingMandatoryFields()
96 () -> new ShortcutInfo.Builder(getTestContext(), "")); in testShortcutInfoMissingMandatoryFields()
101 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(null)); in testShortcutInfoMissingMandatoryFields()
106 () -> new ShortcutInfo.Builder(getTestContext(), "id").setIntent(new Intent())); in testShortcutInfoMissingMandatoryFields()
111 () -> new ShortcutInfo.Builder(getTestContext(), "id") in testShortcutInfoMissingMandatoryFields()
117 () -> new ShortcutInfo.Builder(getTestContext(), "id").setActivity(null)); in testShortcutInfoMissingMandatoryFields()
122 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel(null)); in testShortcutInfoMissingMandatoryFields()
127 () -> new ShortcutInfo.Builder(getTestContext(), "id").setShortLabel("")); in testShortcutInfoMissingMandatoryFields()
132 () -> new ShortcutInfo.Builder(getTestContext(), "id").setLongLabel(null)); in testShortcutInfoMissingMandatoryFields()
[all …]
DShortcutManagerTest5.java62 mShortcutService = new ShortcutService(getTestContext(), Looper.getMainLooper(), in setUp()
65 mMyPackage = getTestContext().getPackageName(); in setUp()
121 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
129 XmlResourceParser meta = ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
DShortcutManagerTest9.java89 assertEquals(className, actualRequest.getAppWidgetProviderInfo(getTestContext()) in assertPinItemRequest()
153 PendingIntent.getActivity(getTestContext(), 0, in testRequestPinAppWidget_withCallback()
154 new Intent().setPackage(getTestContext().getPackageName()), in testRequestPinAppWidget_withCallback()
DShortcutManagerTest10.java154 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); in setupMockActivityInfo()
155 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver(); in setupMockActivityInfo()
159 new ComponentName(getTestContext(), "a.ShortcutConfigActivity")); in setupMockActivityInfo()
DShortcutManagerTest1.java290 final Icon icon1 = Icon.createWithResource(getTestContext(), R.drawable.icon1); in testSetDynamicShortcuts()
292 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts()
294 getTestContext().getResources(), R.drawable.icon2)); in testSetDynamicShortcuts()
824 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testIcons()
825 final Icon res64x64 = Icon.createWithResource(getTestContext(), R.drawable.black_64x64); in testIcons()
826 final Icon res512x512 = Icon.createWithResource(getTestContext(), R.drawable.black_512x512); in testIcons()
829 getTestContext().getResources(), R.drawable.black_32x32)); in testIcons()
831 getTestContext().getResources(), R.drawable.black_64x64)); in testIcons()
833 getTestContext().getResources(), R.drawable.black_512x512)); in testIcons()
1043 getTestContext().getResources(), R.drawable.black_32x32)); in testCleanupDanglingBitmaps()
[all …]
DShortcutManagerTest7.java73 getTestContext().getCacheDir()); in callShellCommand()
288 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
347 mService.mPackageMonitor.onReceive(getTestContext(), in testGetShortcuts()
DShortcutManagerTest8.java258 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in checkRequestPinShortcut()
330 return PendingIntent.getActivity(getTestContext(), 0, in makeResultIntent()
331 new Intent().setPackage(getTestContext().getPackageName()), in makeResultIntent()
481 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists()
596 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_alreadyPinned()
1047 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_titleWontChange()
DShortcutManagerTest3.java79 mService.mPackageMonitor.onReceive(getTestContext(), in publishManifestShortcuts()
520 mService.mPackageMonitor.onReceive(getTestContext(), in testGetSharingShortcutCount()
DBaseShortcutManagerTest.java164 return getTestContext().getSystemService(name); in getSystemService()
171 return getTestContext().getOpPackageName(); in getOpPackageName()
176 return getTestContext().getSystemServiceName(serviceClass); in getSystemServiceName()
186 return getTestContext().getResources(); in getResources()
915 mInjectedFilePathRoot = new File(getTestContext().getCacheDir(), "test-files"); in setUp()
1095 protected Context getTestContext() { in getTestContext() method in BaseShortcutManagerTest
1365 return getTestContext().getResources().getXml(resId); in injectXmlMetaData()
2404 getTestContext().getResources().getAssets().open(assetPath)))) {
2496 mService.mPackageMonitor.onReceive(getTestContext(),
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTestCase.java58 final DisplayManager dm = getTestContext().getSystemService(DisplayManager.class); in setUpContext()
59 mContext = getTestContext().createDisplayContext(dm.getDisplay(DEFAULT_DISPLAY)); in setUpContext()
65 mWindowManager = getTestContext().getSystemService(WindowManager.class); in setUpWindowManager()
69 protected TestableContext getTestContext() { in getTestContext() method in OneHandedTestCase
DOneHandedTutorialHandlerTest.java68 mDisplayLayout = new DisplayLayout(getTestContext().getApplicationContext(), mDisplay); in setUp()
/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();