/packages/services/Car/tests/carservice_test/src/com/android/car/pm/ |
D | CarPackageManagerServiceTest.java | 132 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/ |
D | ContactsDatabaseMigrationTest.java | 37 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()
|
D | CallLogInsertionHelperTest.java | 32 this.getTestContext(), new MockCountryMonitor(this.getTestContext()));
|
D | CallLogMigrationTest.java | 49 final Context context = getTestContext(); in writeAssetFileToDisk() 79 getTestContext(), null); in testPhoneAccountMigrationMarkingOnUpgrade()
|
D | FixedAndroidTestCase.java | 29 public Context getTestContext() { in getTestContext() method in FixedAndroidTestCase
|
D | PhotoProcessorTest.java | 39 final Drawable source = getTestContext().getResources().getDrawable( in testTransparency()
|
D | PhotoLoadingTestCase.java | 92 final Resources resources = getTestContext().getResources(); in loadPhotoFromResource()
|
D | ContactsDatabaseHelperUpgradeTest.java | 147 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/ |
D | CarActivityServiceTaskMonitorUnitTest.java | 104 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/ |
D | ConversationInputManagerTest.java | 61 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/ |
D | GetOrCreateConversationActionTest.java | 148 mContext = new FakeContext(getTestContext()); in setUp() 168 FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
|
D | ReadWriteDraftMessageActionTest.java | 461 final FakeContext context = new FakeContext(getTestContext()); in setUp() 477 FakeFactory.registerWithFakeContext(getTestContext(), context) in setUp()
|
D | ActionTest.java | 50 FakeFactory.register(getTestContext()) in setUp()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ |
D | BugleTestCase.java | 56 public Context getTestContext() { in getTestContext() method in BugleTestCase
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | ParticipantRefreshTest.java | 54 mContext = new FakeContext(getTestContext()); in setUp() 61 mFakeFactory = FakeFactory.registerWithFakeContext(getTestContext(), mContext) in setUp()
|
D | DataModelTest.java | 40 dataModel = new DataModelImpl(getTestContext()); in setUp()
|
D | BitmapPoolTest.java | 45 FakeFactory.register(getTestContext()) in setUp()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyConnectionServiceTest.java | 1277 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/ |
D | ConversationMessageDataTest.java | 30 FakeFactory.register(getTestContext()); in setUp()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
D | ImageRequestTest.java | 46 FakeFactory.register(getTestContext()) in setUp()
|
D | MediaResourceManagerTest.java | 38 FakeFactory.register(getTestContext()) in setUp()
|
/packages/services/Telephony/tests/src/com/android/ |
D | TelephonyTestBase.java | 178 protected TestContext getTestContext() { in getTestContext() method in TelephonyTestBase
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 295 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/ |
D | ContactUtilTest.java | 49 FakeFactory.registerWithoutFakeContext(getTestContext()); in setUp()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/ |
D | ClusterHomeManagerTest.java | 154 DisplayManager displayManager = getTestContext().getSystemService(DisplayManager.class); in getClusterDisplayPort()
|