Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_test/src/com/android/car/pm/
DCarPackageManagerServiceTest.java132 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_doTemplateActivity_isNotBlocked()
142 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_multipleDoTemplateActivity_notBlocked()
147 .setPackage(getTestContext().getPackageName())); in testBlockingActivity_multipleDoTemplateActivity_notBlocked()
156 startActivity(toComponentName(getTestContext(), CarAppActivity.class)); in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
162 getTestContext().getPackageName(), in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
167 .setPackage(getTestContext().getPackageName())); in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
172 getTestContext().getPackageName(), in testBlockingActivity_doTemplateActivity_showingDialog_isBlocked()
289 ComponentName nonDoActivity = toComponentName(getTestContext(), NonDoActivity.class); in testIsActivityBackedBySafeActivity_notMoving_nonDoActivity_returnsTrue()
299 ComponentName nonDoActivity = toComponentName(getTestContext(), NonDoActivity.class); in testIsActivityBackedBySafeActivity_moving_rootNonDoActivity_returnsFalse()
310 ComponentName nonDoActivity = toComponentName(getTestContext(), NonDoActivity.class); in testIsActivityBackedBySafeActivity_moving_nonDoActivityBackedByDo_returnsTrue()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseMigrationTest.java37 final Context context = getTestContext(); in writeAssetFileToDisk()
57 final File sourceDbFile = getTestContext().getDatabasePath("contacts2.db"); in testPhoneAccountHandleMigrationMarkingOnUpgrade()
66 getTestContext(), "contacts2.db", true, /* isTestInstance=*/ false); in testPhoneAccountHandleMigrationMarkingOnUpgrade()
98 getTestContext(), null, true, /* isTestInstance=*/ false); in testPhoneAccountHandleMigrationOnCreate()
DCallLogInsertionHelperTest.java32 this.getTestContext(), new MockCountryMonitor(this.getTestContext()));
DCallLogMigrationTest.java49 final Context context = getTestContext(); in writeAssetFileToDisk()
79 getTestContext(), null); in testPhoneAccountMigrationMarkingOnUpgrade()
DFixedAndroidTestCase.java29 public Context getTestContext() { in getTestContext() method in FixedAndroidTestCase
DPhotoProcessorTest.java39 final Drawable source = getTestContext().getResources().getDrawable( in testTransparency()
DPhotoLoadingTestCase.java92 final Resources resources = getTestContext().getResources(); in loadPhotoFromResource()
DContactsDatabaseHelperUpgradeTest.java147 executeSqlFromAssetFile(getTestContext(), mDb, "upgradeTest/pre_upgrade1201.sql"); in upgradeTo1201()
199 executeSqlFromAssetFile(getTestContext(), mDb, "upgradeTest/pre_upgrade1600.sql"); in upgradeTo1600()
312 executeSqlFromAssetFile(getTestContext(), db, CONTACTS2_DB_1108_ASSET_NAME); in create1108()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DCarActivityServiceTaskMonitorUnitTest.java104 private final ComponentName mActivityA = new ComponentName(getTestContext(), ActivityA.class);
105 private final ComponentName mActivityB = new ComponentName(getTestContext(), ActivityB.class);
106 private final ComponentName mActivityC = new ComponentName(getTestContext(), ActivityC.class);
108 getTestContext(), BlockingActivity.class);
205 getTestContext().startActivity(intent); in launchHomeScreenUsingIntent()
292 getTestContext(), /* isPrivate= */ false).getDisplayId(); in testGetTopTasksOnMultiDisplay()
485 private static Context getTestContext() { in getTestContext() method in CarActivityServiceTaskMonitorUnitTest
557 if (taskInfo.topActivity != null && !getTestContext().getPackageName().equals( in isActivityOutsideTestPackage()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationInputManagerTest.java61 FakeFactory.register(getTestContext()) in setUp()
70 .thenReturn(new SimSelectorView(getTestContext(), null)); in initNewInputManager()
73 .thenReturn(new EditText(getTestContext())); in initNewInputManager()
90 final ConversationInputManager inputManager = new ConversationInputManager(getTestContext(), in initNewInputManager()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DGetOrCreateConversationActionTest.java148 mContext = new FakeContext(getTestContext()); in setUp()
168 FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
DReadWriteDraftMessageActionTest.java461 final FakeContext context = new FakeContext(getTestContext()); in setUp()
477 FakeFactory.registerWithFakeContext(getTestContext(), context) in setUp()
DActionTest.java50 FakeFactory.register(getTestContext()) in setUp()
/packages/apps/Messaging/tests/src/com/android/messaging/
DBugleTestCase.java56 public Context getTestContext() { in getTestContext() method in BugleTestCase
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DParticipantRefreshTest.java54 mContext = new FakeContext(getTestContext()); in setUp()
61 mFakeFactory = FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
DDataModelTest.java40 dataModel = new DataModelImpl(getTestContext()); in setUp()
DBitmapPoolTest.java45 FakeFactory.register(getTestContext()) in setUp()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java1277 getTestContext().getCarrierConfig(0 /*subId*/).putStringArray( in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
1280 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
1283 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
1578 getTestContext().getCarrierConfig(0 /*subId*/).putStringArray( in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1581 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1584 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1602 getTestContext().getCarrierConfig(0 /*subId*/).putStringArray( in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1605 getTestContext().getCarrierConfig(0 /*subId*/).putInt( in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1608 getTestContext().getCarrierConfig(0 /*subId*/).putString( in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1626 getTestContext().getCarrierConfig(0 /*subId*/).putStringArray( in testCreateOutgoingEmergencyConnection_delayDial_roaming_nocarrierconfig()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DConversationMessageDataTest.java30 FakeFactory.register(getTestContext()); in setUp()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java46 FakeFactory.register(getTestContext()) in setUp()
DMediaResourceManagerTest.java38 FakeFactory.register(getTestContext()) in setUp()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java178 protected TestContext getTestContext() { in getTestContext() method in TelephonyTestBase
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java295 protected Context getTestContext() { in getTestContext() method in MockedCarTestBase
300 ComponentName cn = new ComponentName(getTestContext(), cls); in getFlattenComponent()
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DContactUtilTest.java49 FakeFactory.registerWithoutFakeContext(getTestContext()); in setUp()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java154 DisplayManager displayManager = getTestContext().getSystemService(DisplayManager.class); in getClusterDisplayPort()

12