/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
D | LiveChannelsTestController.java | 57 private Instrumentation mInstrumentation; field in LiveChannelsTestController 83 return mInstrumentation.getUiAutomation(flags); in getUiAutomation() 85 return mInstrumentation.getUiAutomation(); in getUiAutomation() 91 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in before() 92 Context context = mInstrumentation.getContext(); in before() 95 mDevice = UiDevice.getInstance(mInstrumentation); in before() 96 mTargetResources = mInstrumentation.getTargetContext().getResources(); in before() 105 mInstrumentation.getContext().unbindService(mConnection); in after() 181 UiDevice.getInstance(mInstrumentation).waitForIdle(); in pressDPadCenter() 229 mInstrumentation.waitForIdleSync(); in waitForIdleSync()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/ |
D | WifiTetherSettingsTest.java | 48 private Instrumentation mInstrumentation; field in WifiTetherSettingsTest 54 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 55 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 57 .setClassName(mInstrumentation.getTargetContext().getPackageName(), in setUp() 59 .setPackage(mInstrumentation.getTargetContext().getPackageName()) in setUp() 76 mInstrumentation.startActivitySync(mTetherActivityIntent); in launchWifiTetherActivity()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 98 private Instrumentation mInstrumentation; field in SimImportActivityTest 106 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 109 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 124 mInstrumentation.waitForIdleSync(); in tearDown() 141 mActivity = mInstrumentation.startActivitySync(new Intent(mContext, SimImportActivity.class) in shouldDisplaySimContacts() 157 mInstrumentation.startActivitySync(new Intent(mContext, SimImportActivity.class) in shouldHaveEmptyState() 169 mActivity = mInstrumentation.startActivitySync( in smokeRotateInEmptyState() 187 mActivity = mInstrumentation.startActivitySync( in smokeRotateInNonEmptyState() 259 mActivity = mInstrumentation.startActivitySync( in selectionsAreImportedAndDisabledOnSubsequentImports() 320 mActivity = mInstrumentation.startActivitySync( in selectionsAreImportedAndDisabledOnSubsequentImports()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
D | ViewInfoActivityTest.java | 50 private Instrumentation mInstrumentation; field in ViewInfoActivityTest 58 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 59 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 60 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 202 mInstrumentation.addMonitor(EditInfoActivity.class.getName(), in testCanGoToEditInfoActivityFromMenu() 208 mInstrumentation.waitForMonitorWithTimeout(activityMonitor, 1000 /* timeOut */); in testCanGoToEditInfoActivityFromMenu() 210 assertThat(mInstrumentation.checkMonitorHit(activityMonitor, 1 /* minHits */)).isTrue(); in testCanGoToEditInfoActivityFromMenu() 226 return (ViewInfoActivity) mInstrumentation.startActivitySync(viewActivityIntent); in startViewInfoActivity()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
D | AppNotificationSettingsTest.java | 63 private Instrumentation mInstrumentation; field in AppNotificationSettingsTest 75 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 76 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 101 mInstrumentation.startActivitySync(intent); in launchNotificationSetting_shouldNotHaveAppInfoLink() 113 mInstrumentation.startActivitySync(intent); in launchNotificationSetting_showGroupsWithMultipleChannels() 127 mInstrumentation.startActivitySync(intent); in launchNotificationSetting_showUngroupedChannels() 137 mInstrumentation.startActivitySync(intent); in launchNotificationSetting_showGroupsWithOneChannel()
|
D | ChannelNotificationSettingsTest.java | 56 private Instrumentation mInstrumentation; field in ChannelNotificationSettingsTest 62 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 63 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 81 mInstrumentation.startActivitySync(intent); in launchNotificationSetting_shouldNotCrash() 103 mInstrumentation.startActivitySync(intent); in launchNotificationSettings_blockedChannel()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/password/ |
D | ChooseLockPasswordTest.java | 54 private Instrumentation mInstrumentation; field in ChooseLockPasswordTest 59 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 60 mContext = mInstrumentation.getTargetContext(); in setUp() 66 mInstrumentation.startActivitySync(new Intent(mContext, ChooseLockPassword.class) in clearIsNotShown_when_activityLaunchedInitially() 77 mInstrumentation.startActivitySync(new Intent(mContext, ChooseLockPassword.class)); in clearIsNotShown_when_nothingEntered() 89 mInstrumentation.startActivitySync(new Intent(mContext, ChooseLockPassword.class)); in clearIsShown_when_somethingEnteredToConfirm()
|
D | ConfirmLockPasswordTest.java | 43 private Instrumentation mInstrumentation; field in ConfirmLockPasswordTest 48 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 49 mContext = mInstrumentation.getTargetContext(); in setUp() 54 mInstrumentation.startActivitySync( in enterWrongPin_shouldShowErrorMessage() 63 mInstrumentation.startActivitySync( in enterWrongPin_darkTheme_shouldShowErrorMessage()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | RegulatoryInfoDisplayActivityTest.java | 40 private Instrumentation mInstrumentation; field in RegulatoryInfoDisplayActivityTest 46 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 50 .setPackage(mInstrumentation.getTargetContext().getPackageName()); in setUp() 56 final Context context = mInstrumentation.getTargetContext(); in resolveRegulatoryInfoIntent_intentShouldMatchConfig() 60 final ResolveInfo resolveInfo = mInstrumentation.getTargetContext().getPackageManager() in resolveRegulatoryInfoIntent_intentShouldMatchConfig()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
D | WifiCallingSettingUiTest.java | 74 private Instrumentation mInstrumentation; field in WifiCallingSettingUiTest 94 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 95 mContext = mInstrumentation.getTargetContext(); in setUp() 96 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 142 mInstrumentation.startActivitySync(createActivityIntent()); in testSingleSimUi() 187 Activity activity = mInstrumentation.startActivitySync(createActivityIntent()); in testNoValidSub() 206 Activity activity = mInstrumentation.startActivitySync(createActivityIntent()); in testWfcDisabled() 226 mInstrumentation.startActivitySync(createActivityIntent()); in testDualSimUi()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSettingsTest.java | 40 private Instrumentation mInstrumentation; field in CellBroadcastSettingsTest 46 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 47 mContext = mInstrumentation.getTargetContext(); in setUp() 48 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 61 mInstrumentation.startActivitySync(createActivityIntent()); in testRotate_alertReminderDialogOpen_shouldNotCrash()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/ |
D | EditMedicalInfoActivityTest.java | 41 private Instrumentation mInstrumentation; field in EditMedicalInfoActivityTest 48 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 49 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 50 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 78 (EditMedicalInfoActivity) mInstrumentation.startActivitySync(editActivityIntent); in testRotate_editNameDialogOpen_shouldNotCrash()
|
D | EditInfoActivityTest.java | 58 private Instrumentation mInstrumentation; field in EditInfoActivityTest 63 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 64 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 230 mInstrumentation.addMonitor(intentFilter, null, true /* block */); in testAddContactPreference() 234 assertThat(mInstrumentation.checkMonitorHit(activityMonitor, 1 /* minHits */)).isTrue(); in testAddContactPreference() 239 return (EditInfoActivity) mInstrumentation.startActivitySync(editActivityIntent); in startEditInfoActivity()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/inputmethods/ |
D | SpellCheckerSettingsUITest.java | 39 private Instrumentation mInstrumentation; field in SpellCheckerSettingsUITest 45 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 46 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp() 54 mInstrumentation.getContext().startActivity(mIntent); in launchSettings_hasSwitchBar()
|
D | DataSaverSummaryUITest.java | 39 private Instrumentation mInstrumentation; field in DataSaverSummaryUITest 45 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 46 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp() 62 mInstrumentation.getContext().startActivity(mIntent); in launchDataSaverSettings()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 131 private final Instrumentation mInstrumentation; field in LauncherInstrumentation 140 mInstrumentation = instrumentation; in LauncherInstrumentation() 150 final String targetPackage = mInstrumentation.getTargetContext().getPackageName(); in LauncherInstrumentation() 193 return mInstrumentation.getContext(); in getContext() 205 final Context baseContext = mInstrumentation.getTargetContext(); in getNavigationModel() 397 mInstrumentation.getUiAutomation().executeAndWaitForEvent( in executeAndWaitForEvent() 727 return mInstrumentation.getTargetContext().getResources().getDisplayMetrics().density; in getDisplayDensity() 758 mInstrumentation.getUiAutomation().injectInputEvent(event, true); in sendPointer() 814 final Context context = mInstrumentation.getTargetContext().createPackageContext( in getEdgeSensitivityWidth()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreferenceTest.java | 58 private Instrumentation mInstrumentation; field in EmergencyContactsPreferenceTest 71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 72 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 123 (EditInfoActivity) mInstrumentation.startActivitySync(editActivityIntent); in startActivityAndGetEmergencyContactsPreference()
|
D | EmergencyListPreferenceTest.java | 43 private Instrumentation mInstrumentation; field in EmergencyListPreferenceTest 48 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 49 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 153 return (EditInfoActivity) mInstrumentation.startActivitySync(editActivityIntent); in startEditInfoActivity()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/ |
D | PreferenceThemeTest.java | 45 private Instrumentation mInstrumentation; field in PreferenceThemeTest 51 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 52 mTargetContext = mInstrumentation.getTargetContext(); in setUp()
|
D | UiBlockerControllerTest.java | 42 private Instrumentation mInstrumentation; field in UiBlockerControllerTest 47 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | AboutPhoneSettingsTests.java | 61 private Instrumentation mInstrumentation; field in AboutPhoneSettingsTests 65 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 66 mDevice = UiDevice.getInstance(mInstrumentation); in setUp()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/ |
D | IntegrationTestUtils.java | 45 private final Instrumentation mInstrumentation; field in IntegrationTestUtils 50 mInstrumentation = instrumentation; in IntegrationTestUtils() 91 mInstrumentation.waitForIdle(future);
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | ToggleFeaturePreferenceFragmentTest.java | 50 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in ToggleFeaturePreferenceFragmentTest 61 mInstrumentation.runOnMainSync(() -> { in setUp()
|
D | AccessibilityShortcutPreferenceFragmentTest.java | 58 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in AccessibilityShortcutPreferenceFragmentTest 84 mInstrumentation.runOnMainSync(() -> { in startFragment()
|