/packages/apps/Contacts/tests/src/com/android/contacts/ |
H A D | NoPermissionsLaunchSmokeTest.java | 47 private Context mTargetContext; field in class:NoPermissionsLaunchSmokeTest 51 mTargetContext = InstrumentationRegistry.getTargetContext(); 52 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.READ_CONTACTS)); 53 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.WRITE_CONTACTS)); 54 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.GET_ACCOUNTS)); 55 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.READ_PHONE_STATE)); 56 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.READ_CALL_LOG)); 57 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.CALL_PHONE)); 61 DynamicShortcuts.reset(mTargetContext); 83 final PackageManager packageManager = mTargetContext [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/ |
H A D | DefaultAppSettingsTest.java | 38 private Context mTargetContext; field in class:DefaultAppSettingsTest 45 mTargetContext = getInstrumentation().getTargetContext(); 46 mTargetPackage = mTargetContext.getPackageName(); 52 final String titleHomeApp = mTargetContext.getResources().getString(R.string.home_app); 67 final String titleApps = mTargetContext.getResources().getString( 70 final String titleAdvance = mTargetContext.getResources().getString( 73 final String titleDefaultApps = mTargetContext.getResources().getString(
|
H A D | SpecialAppAccessSettingsTest.java | 40 private Context mTargetContext; field in class:SpecialAppAccessSettingsTest 47 mTargetContext = getInstrumentation().getTargetContext(); 48 mTargetPackage = mTargetContext.getPackageName(); 55 mTargetContext.getResources().getString(R.string.picture_in_picture_title); 74 final String titleApps = mTargetContext.getResources().getString( 77 final String titleAdvance = mTargetContext.getResources().getString( 80 final String titleSpecialApps = mTargetContext.getResources().getString( 87 new UiSelector().packageName(mTargetContext.getPackageName()).scrollable(true));
|
/packages/apps/Settings/tests/unit/src/com/android/settings/development/ |
H A D | BluetoothMaxConnectedAudioDevicesPreferenceControllerInstrumentationTest.java | 38 private Context mTargetContext; field in class:BluetoothMaxConnectedAudioDevicesPreferenceControllerInstrumentationTest 45 mTargetContext = InstrumentationRegistry.getTargetContext(); 47 mListValues = mTargetContext.getResources() 49 mListEntries = mTargetContext.getResources() 51 mDefaultMaxConnectedAudioDevices = String.valueOf(mTargetContext.getResources()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/display/ |
H A D | NightDisplaySettingsActivityTest.java | 40 private Context mTargetContext; field in class:NightDisplaySettingsActivityTest 45 mTargetContext = instrumentation.getTargetContext(); 50 final boolean nightDisplayAvailable = mTargetContext.getResources().getBoolean( 52 final PackageManager pm = mTargetContext.getPackageManager(); 58 Assert.assertEquals(mTargetContext.getPackageName(), ri.activityInfo.packageName);
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/ |
H A D | PbapParserTest.java | 49 private Context mTargetContext; field in class:PbapParserTest 55 mTargetContext = InstrumentationRegistry.getTargetContext(); 57 mTargetContext.getResources().getBoolean(R.bool.profile_supported_pbapclient)); 59 mTargetContext.getString(com.android.bluetooth.R.string.pbap_account_type)); 61 mTestResources = mTargetContext.getPackageManager() 80 new CallLogPullRequest(mTargetContext, PbapClientConnectionHandler.MCH_PATH, 102 new CallLogPullRequest(mTargetContext, PbapClientConnectionHandler.MCH_PATH, 123 new CallLogPullRequest(mTargetContext, PbapClientConnectionHandler.MCH_PATH, 145 PhonebookPullRequest processor = new PhonebookPullRequest(mTargetContext, mAccount); 153 mTargetContext [all...] |
H A D | PbapClientServiceTest.java | 44 private Context mTargetContext; field in class:PbapClientServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_pbapclient)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_pbapclient)) {
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
H A D | EmergencyContactsPreferenceTest.java | 57 private Context mTargetContext; field in class:EmergencyContactsPreferenceTest 70 mTargetContext = mInstrumentation.getTargetContext(); 73 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); 77 mTargetContext.getContentResolver(), NAME, PHONE_NUMBER); 78 PreferenceManager.getDefaultSharedPreferences(mTargetContext) 90 mTargetContext.getContentResolver(), NAME, PHONE_NUMBER)).isTrue(); 91 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); 119 final Intent editActivityIntent = new Intent(mTargetContext, EditInfoActivity.class);
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/ |
H A D | A2dpSinkServiceTest.java | 44 private Context mTargetContext; field in class:A2dpSinkServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_a2dp_sink)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_a2dp_sink)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
H A D | AvrcpControllerServiceTest.java | 44 private Context mTargetContext; field in class:AvrcpControllerServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources() 68 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_avrcp_controller)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hdp/ |
H A D | HealthServiceTest.java | 44 private Context mTargetContext; field in class:HealthServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_hdp)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_hdp)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/ |
H A D | HeadsetClientServiceTest.java | 45 private Context mTargetContext; field in class:HeadsetClientServiceTest 53 mTargetContext = InstrumentationRegistry.getTargetContext(); 55 mTargetContext.getResources().getBoolean(R.bool.profile_supported_hfpclient)); 69 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_hfpclient)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
H A D | HidHostServiceTest.java | 44 private Context mTargetContext; field in class:HidHostServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_hid_host)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_hid_host)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/ |
H A D | BluetoothMapServiceTest.java | 44 private Context mTargetContext; field in class:BluetoothMapServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_map)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_map)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppServiceTest.java | 44 private Context mTargetContext; field in class:BluetoothOppServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_opp)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_opp)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pan/ |
H A D | PanServiceTest.java | 44 private Context mTargetContext; field in class:PanServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_pan)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_pan)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapServiceTest.java | 44 private Context mTargetContext; field in class:BluetoothPbapServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_pbap)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_pbap)) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sap/ |
H A D | SapServiceTest.java | 44 private Context mTargetContext; field in class:SapServiceTest 52 mTargetContext = InstrumentationRegistry.getTargetContext(); 54 mTargetContext.getResources().getBoolean(R.bool.profile_supported_sap)); 67 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_sap)) {
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
H A D | AbstractLauncherUiTest.java | 73 protected Context mTargetContext; field in class:AbstractLauncherUiTest 79 mTargetContext = InstrumentationRegistry.getTargetContext(); 80 mTargetPackage = mTargetContext.getPackageName(); 110 By.desc(mTargetContext.getString(R.string.all_apps_button_label))), 122 By.text(mTargetContext.getString(R.string.widget_button_text) 157 int distanceToMove = mTargetContext.getResources().getDimensionPixelSize( 211 LauncherSettings.Settings.call(mTargetContext.getContentResolver(), 213 LauncherSettings.Settings.call(mTargetContext.getContentResolver(), 223 LauncherAppState.getInstance(mTargetContext).getModel().forceReload(); 253 return AppWidgetManagerCompat.getInstance(mTargetContext) [all...] |
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/ |
H A D | EditInfoActivityTest.java | 61 private Context mTargetContext; field in class:EditInfoActivityTest 66 mTargetContext = mInstrumentation.getTargetContext(); 68 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); 73 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); 93 final PackageManager packageManager = mTargetContext.getPackageManager(); 94 final String packageName = mTargetContext.getPackageName(); 104 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( 106 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( 108 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().putString( 110 PreferenceManager.getDefaultSharedPreferences(mTargetContext) [all...] |
H A D | EditMedicalInfoActivityTest.java | 42 private Context mTargetContext; field in class:EditMedicalInfoActivityTest 49 mTargetContext = mInstrumentation.getTargetContext(); 76 final Intent editActivityIntent = new Intent(mTargetContext, EditMedicalInfoActivity.class);
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
H A D | ViewInfoActivityTest.java | 50 private Context mTargetContext; field in class:ViewInfoActivityTest 58 mTargetContext = mInstrumentation.getTargetContext(); 81 PreferenceManager.getDefaultSharedPreferences(mTargetContext).edit().clear().commit(); 101 PreferenceManager.getDefaultSharedPreferences(mTargetContext) 123 PreferenceManager.getDefaultSharedPreferences(mTargetContext) 143 ContactTestUtils.createContact(mTargetContext.getContentResolver(), 145 PreferenceManager.getDefaultSharedPreferences(mTargetContext) 161 ContactTestUtils.deleteContact(mTargetContext.getContentResolver(), "John", "123")) 168 ContactTestUtils.createContact(mTargetContext.getContentResolver(), 170 PreferenceManager.getDefaultSharedPreferences(mTargetContext) [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
H A D | ChannelNotificationSettingsTest.java | 51 private Context mTargetContext; field in class:ChannelNotificationSettingsTest 59 mTargetContext = mInstrumentation.getTargetContext(); 61 mNm = (NotificationManager) mTargetContext.getSystemService(Context.NOTIFICATION_SERVICE); 70 .putExtra(Settings.EXTRA_APP_PACKAGE, mTargetContext.getPackageName()) 88 mTargetContext.getPackageName(), Process.myUid(), blocked); 91 .putExtra(Settings.EXTRA_APP_PACKAGE, mTargetContext.getPackageName())
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/gatt/ |
H A D | GattServiceTest.java | 32 private Context mTargetContext; field in class:GattServiceTest 41 mTargetContext = InstrumentationRegistry.getTargetContext(); 43 mTargetContext.getResources().getBoolean(R.bool.profile_supported_gatt)); 53 if (!mTargetContext.getResources().getBoolean(R.bool.profile_supported_gatt)) {
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
H A D | TestUtils.java | 38 public final Context mTargetContext; field in class:TestUtils 43 mTargetContext = targetContext; 53 "}.zip", mTargetContext.getCacheDir()); 65 "}.zip", mTargetContext.getCacheDir());
|