Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest2.java243 si = new ShortcutInfo.Builder(getTestContext()) in testShortcutInfoParcel()
303 si = new ShortcutInfo.Builder(getTestContext()) in testShortcutInfoParcel_resId()
2211 final Resources res = getTestContext().getResources(); in testLookUpResourceName_systemResources()
2222 getTestContext().getPackageName())); in testLookUpResourceName_systemResources()
2226 final Resources res = getTestContext().getResources(); in testLookUpResourceName_appResources()
2245 getTestContext().getPackageName())); in testLookUpResourceId_systemResources()
2248 getTestContext().getPackageName())); in testLookUpResourceId_systemResources()
2261 getTestContext().getPackageName())); in testLookUpResourceId_appResources()
2265 getTestContext().getPackageName())); in testLookUpResourceId_appResources()
2269 getTestContext().getPackageName())); in testLookUpResourceId_appResources()
[all …]
H A 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()
H A 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()
H A DShortcutManagerTest1.java1479 mService.mPackageMonitor.onReceive(getTestContext(), in testShortcutManagerGetShortcuts_shortcutTypes()
1950 mService.mPackageMonitor.onReceive(getTestContext(), in testGetShortcuts_shortcutKinds()
1969 mService.mPackageMonitor.onReceive(getTestContext(), in testGetShortcuts_shortcutKinds()
3682 mService.mPackageMonitor.onReceive(getTestContext(), in testLauncherCallback()
4287 mService.mPackageMonitor.onReceive(getTestContext(), in testCleanupPackage_republishManifests()
4304 mService.mPackageMonitor.onReceive(getTestContext(), in testCleanupPackage_republishManifests()
4714 mService.mPackageMonitor.onReceive(getTestContext(), in checkHandlePackageDeleteInner()
4865 mService.mPackageMonitor.onReceive(getTestContext(), in testHandlePackageClearData()
4884 mService.mPackageMonitor.onReceive(getTestContext(), in testHandlePackageClearData()
4911 mService.mPackageMonitor.onReceive(getTestContext(), in testHandlePackageClearData_manifestRepublished()
[all …]
H A DShortcutManagerTest9.java86 assertEquals(className, actualRequest.getAppWidgetProviderInfo(getTestContext()) in assertPinItemRequest()
150 …PendingIntent.getActivity(getTestContext(), 0, new Intent(), PendingIntent.FLAG_MUTABLE_UNAUDITED); in testRequestPinAppWidget_withCallback()
H A DShortcutManagerTest7.java70 getTestContext().getCacheDir()); in callShellCommand()
285 mService.mPackageMonitor.onReceive(getTestContext(), in testClearShortcuts()
344 mService.mPackageMonitor.onReceive(getTestContext(), in testGetShortcuts()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DSystemActivityMonitoringServiceTest.java75 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testActivityLaunch()
81 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testActivityLaunch()
90 ComponentName denyListedActivity = toComponentName(getTestContext(), ActivityC.class); in testActivityBlocking()
91 ComponentName blockingActivity = toComponentName(getTestContext(), BlockingActivity.class); in testActivityBlocking()
111 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testRemovesFromTopTasks()
129 ComponentName activityA = toComponentName(getTestContext(), ActivityA.class); in testGetTopTasksOnMultiDisplay()
136 ComponentName activityB = toComponentName(getTestContext(), ActivityB.class); in testGetTopTasksOnMultiDisplay()
185 private Context getTestContext() { in getTestContext() method in SystemActivityMonitoringServiceTest
231 if (!getTestContext().getPackageName().equals(topTask.topActivity.getPackageName())) { in onActivityLaunch()
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/pm/
H A DActivityBlockingActivityTest.java106 startActivity(toComponentName(getTestContext(), DoActivity.class)); in testBlockingActivity_doActivity_isNotBlocked()
118 intent.setComponent(toComponentName(getTestContext(), DoActivity.class)); in testBlockingActivity_doActivity_showingDialog_isNotBlocked()
129 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_doTemplateActivity_isNotBlocked()
139 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_multipleDoTemplateActivity_notBlocked()
152 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
158 getTestContext().getPackageName(), in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
169 getTestContext().getPackageName(), in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
216 startActivity(toComponentName(getTestContext(), NonDoNoHistoryActivity.class)); in testBlockingActivity_nonDoNoHistory_isBlocked()
241 ComponentName activity = toComponentName(getTestContext(), NonDoActivity.class); in startNonDoActivity()
361 private Context getTestContext() { in getTestContext() method in ActivityBlockingActivityTest
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
H A 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
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DCallLogMigrationTest.java33 final Context context = getTestContext(); in writeAssetFileToDisk()
50 final File sourceDbFile = new File(getTestContext().getCacheDir(), "contacts2src.db"); in testMigration()
63 new CallLogDatabaseHelperTestable(getTestContext(), sourceDb); in testMigration()
H A DFixedAndroidTestCase.java29 public Context getTestContext() { in getTestContext() method in FixedAndroidTestCase
H A DPhotoProcessorTest.java39 final Drawable source = getTestContext().getResources().getDrawable( in testTransparency()
H A DPhotoLoadingTestCase.java91 final Resources resources = getTestContext().getResources(); in loadPhotoFromResource()
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/
H A DTelephonyConnectionServiceTest.java958 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
961 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
1039 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1042 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1063 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1066 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1087 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_roaming_nocarrierconfig()
1090 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_roaming_nocarrierconfig()
1116 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_roamingcarrierconfig()
1119 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_roamingcarrierconfig()
[all …]
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
H A DConversationInputManagerTest.java60 FakeFactory.register(getTestContext()) in setUp()
69 .thenReturn(new SimSelectorView(getTestContext(), null)); in initNewInputManager()
72 .thenReturn(new EditText(getTestContext())); in initNewInputManager()
89 final ConversationInputManager inputManager = new ConversationInputManager(getTestContext(), in initNewInputManager()
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/
H A DBugleTestCase.java56 public Context getTestContext() { in getTestContext() method in BugleTestCase
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
H A DGetOrCreateConversationActionTest.java147 mContext = new FakeContext(getTestContext()); in setUp()
167 FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
H A DParticipantRefreshTest.java53 mContext = new FakeContext(getTestContext()); in setUp()
60 mFakeFactory = FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
H A DDataModelTest.java40 dataModel = new DataModelImpl(getTestContext()); in setUp()
H A DBitmapPoolTest.java44 FakeFactory.register(getTestContext()) in setUp()
/aosp12/packages/services/Telephony/tests/src/com/android/
H A DTelephonyTestBase.java109 protected TestContext getTestContext() { in getTestContext() method in TelephonyTestBase
/aosp12/frameworks/base/test-base/src/android/test/
H A DAndroidTestCase.java82 public Context getTestContext() { in getTestContext() method in AndroidTestCase
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
H A DImageRequestTest.java45 FakeFactory.register(getTestContext()) in setUp()
H A DMediaResourceManagerTest.java38 FakeFactory.register(getTestContext()) in setUp()
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
H A DConversationMessageDataTest.java32 FakeFactory.register(getTestContext()); in setUp()

12