/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/DocumentsUI/app-perf-tests/src/com/android/documentsui/ |
D | FilesAppPerfTest.java | 60 private Instrumentation mInstrumentation; field in FilesAppPerfTest 67 mInstrumentation = getInstrumentation(); in setUp() 68 mContext = mInstrumentation.getContext(); in setUp() 73 mLauncherActivity = (LauncherActivity) mInstrumentation.startActivitySync( in setUp() 112 mInstrumentation.getUiAutomation().syncInputTransactions(); in runFilesStartPerformanceTest() 131 mInstrumentation.sendStatus(Activity.RESULT_OK, status); in reportMetrics() 146 final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); in waitUntilDocumentsUiActivityRemoved()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningViewModelTest.java | 55 private final Instrumentation mInstrumentation = field in PreProvisioningViewModelTest 83 mInstrumentation.runOnMainSync( in onReturnFromProvisioning_stateIsProvisioningFinalized() 94 mInstrumentation.runOnMainSync( in onAdminIntegratedFlowInitiated_stateIsGettingProvisioningMode() 104 mInstrumentation.runOnMainSync( in onShowUserConsent_stateIsShowingUserConsent() 115 mInstrumentation.runOnMainSync( in onProvisioningStartedAfterUserConsent_stateIsProvisioningStarted() 126 mInstrumentation.runOnMainSync( in onProvisioningInitiated_stateIsProvisioningInitialized() 197 mInstrumentation.runOnMainSync( in onRoleHolderUpdateInitiated_works() 208 mInstrumentation.runOnMainSync( in onRoleHolderProvisioningInitiated_works()
|
D | DownloadRoleHolderViewModelTest.java | 56 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in DownloadRoleHolderViewModelTest 74 mInstrumentation.getContext()); in connectToNetworkAndDownloadRoleHolder_goesToDownloadingState() 106 mInstrumentation.runOnMainSync( in getError_withMessageResId_works() 120 mInstrumentation.runOnMainSync( in getError_errorStateFollowedByNonErrorState_isNull() 124 mViewModel.connectToNetworkAndDownloadRoleHolder(mInstrumentation.getContext()); in getError_errorStateFollowedByNonErrorState_isNull() 132 mInstrumentation.runOnMainSync( in getError_withMessageText_isNotNull()
|
D | WebActivityTest.java | 46 private Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in WebActivityTest 50 Intent intent = WebActivity.createIntent(mInstrumentation.getTargetContext(), null); in testNoUrl() 61 WebActivity.createIntent(mInstrumentation.getTargetContext(), in testUrlLaunched()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverButtonPreferenceControllerComponentTest.java | 54 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in BatterySaverButtonPreferenceControllerComponentTest 56 (PowerManager) mInstrumentation.getTargetContext().getSystemService( 66 mInstrumentation.getUiAutomation().executeShellCommand("dumpsys battery unplug"); in setUp() 67 mInstrumentation.getUiAutomation().executeShellCommand("settings get global low_power 0"); in setUp() 96 mInstrumentation.getUiAutomation().executeShellCommand("settings get global low_power 0"); in tearDown() 97 mInstrumentation.getUiAutomation().executeShellCommand("dumpsys battery reset"); in tearDown()
|
/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/componenttests/src/com/android/settings/network/ |
D | AirplaneModePreferenceControllerComponentTest.java | 43 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in AirplaneModePreferenceControllerComponentTest 52 Settings.Global.putInt(mInstrumentation.getTargetContext().getContentResolver(), in setUp() 65 new AirplaneModePreferenceController(mInstrumentation.getTargetContext(), in test_on_off_airplane_mode_multiple_times() 83 mInstrumentation.getTargetContext().getContentResolver(), in is_airplane_mode_on() 90 Settings.Global.putInt(mInstrumentation.getTargetContext().getContentResolver(), in tearDown()
|
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/ |
D | CarLauncherViewModelTest.java | 45 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in CarLauncherViewModelTest 46 private final Context mContext = mInstrumentation.getContext(); 91 mInstrumentation.waitForIdleSync(); in testViewModelOnCleared_clearsRemoteCarTaskView() 101 mInstrumentation.waitForIdleSync(); in createCarLauncherViewModel() 109 mInstrumentation.waitForIdleSync(); in triggerActivityRecreation()
|
/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/legacy_unit/src/com/android/settings/notification/ |
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()
|
D | AppBubbleNotificationSettingsTest.java | 48 private Instrumentation mInstrumentation; field in AppBubbleNotificationSettingsTest 52 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 53 mTargetContext = mInstrumentation.getTargetContext(); in setUp() 66 mInstrumentation.startActivitySync(intent); in launchBubbleNotificationSetting_shouldNotCrash()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionViewModelTest.java | 146 private final Instrumentation mInstrumentation = field in EstablishNetworkConnectionViewModelTest 169 mViewModel.connectToNetwork(mInstrumentation.getContext(), PARAMS); in connectToNetwork_updatesSharedPreference() 182 mViewModel.connectToNetwork(mInstrumentation.getContext(), PARAMS); in connectToNetwork_goesToConnectingState() 191 mInstrumentation.getContext(), PARAMS_WITHOUT_NETWORK_DATA); in connectToNetwork_noNetworkDataProvided_goesToPickNetworkState() 224 mInstrumentation.runOnMainSync( in getError_withMessageResId_works() 238 mInstrumentation.runOnMainSync( in getError_errorStateFollowedByNonErrorState_isNull() 242 mViewModel.connectToNetwork(mInstrumentation.getContext(), PARAMS); in getError_errorStateFollowedByNonErrorState_isNull() 250 mInstrumentation.runOnMainSync( in getError_withMessageText_isNotNull()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | SimImportActivityTest.java | 100 private Instrumentation mInstrumentation; field in SimImportActivityTest 108 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 111 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 126 mInstrumentation.waitForIdleSync(); in tearDown() 143 mActivity = mInstrumentation.startActivitySync(new Intent(mContext, SimImportActivity.class) in shouldDisplaySimContacts() 159 mInstrumentation.startActivitySync(new Intent(mContext, SimImportActivity.class) in shouldHaveEmptyState() 171 mActivity = mInstrumentation.startActivitySync( in smokeRotateInEmptyState() 189 mActivity = mInstrumentation.startActivitySync( in smokeRotateInNonEmptyState() 261 mActivity = mInstrumentation.startActivitySync( in selectionsAreImportedAndDisabledOnSubsequentImports() 323 mActivity = mInstrumentation.startActivitySync( in selectionsAreImportedAndDisabledOnSubsequentImports()
|
/packages/modules/Virtualization/tests/ComposBenchmarkApp/src/java/com/android/compos/benchmark/ |
D | ComposBenchmark.java | 64 private Instrumentation mInstrumentation; field in ComposBenchmark 68 mInstrumentation = getInstrumentation(); in setup() 69 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setup() 74 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown() 140 String output = runInShellWithStderr(TAG, mInstrumentation.getUiAutomation(), command); in testGuestCompileTime() 191 mInstrumentation.sendStatus(0, bundle); in reportMetric() 200 return runInShell(TAG, mInstrumentation.getUiAutomation(), command); in executeCommand()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/wifi/ |
D | WifiSettings2ActivityTest.java | 63 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in WifiSettings2ActivityTest 68 mInstrumentation.getTargetContext().startActivity( in test_connect_to_wifi() 73 mInstrumentation.runOnMainSync(() -> { in test_connect_to_wifi() 91 mInstrumentation.runOnMainSync(() -> { in test_connect_to_wifi() 115 (ConnectivityManager) mInstrumentation.getTargetContext().getSystemService( in test_connect_to_wifi()
|
/packages/services/Car/tests/CarFrameworkPackageStubsTest/src/com/android/car/frameworkpackagestubs/test/ |
D | StubsTest.java | 63 private Instrumentation mInstrumentation; field in StubsTest 71 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() 72 mContext = mInstrumentation.getTargetContext(); in setUp() 162 GetResultActivity.startActivitySync(mContext, mInstrumentation); in startActivityForResult() 163 mInstrumentation.waitForIdleSync(); in startActivityForResult()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/network/telephony/ |
D | MobileDataPreferenceControllerComponentTest.java | 74 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in MobileDataPreferenceControllerComponentTest 76 (WifiManager) mInstrumentation.getTargetContext().getSystemService( 79 (TelephonyManager) mInstrumentation.getTargetContext().getSystemService( 82 (TelecomManager) mInstrumentation.getTargetContext().getSystemService( 133 mInstrumentation.getTargetContext(), "mobile_data", mLifecycle, in test_disable_mobile_network()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | MoveContactsToDefaultAccountActivityTest.java | 94 private final Instrumentation mInstrumentation = getInstrumentation(); field in MoveContactsToDefaultAccountActivityTest 101 mInstrumentation.getUiAutomation() in setUp() 104 mDevice = UiDevice.getInstance(mInstrumentation); in setUp() 136 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_eligibleAccount_clickConfirm() 172 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_eligibleAccount_clickCancel() 207 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_noDefaultAccount_dontShowDialog() 231 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_noCloudAccount_dontShowDialog() 255 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_flagOff_dontShowDialog() 278 (TestMoveContactsToDefaultAccountActivity) mInstrumentation.startActivitySync( in testMoveLocalContactsDialog_noMovableContacts_dontShowDialog()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/privacy/ |
D | EnabledContentCapturePreferenceControllerComponentTest.java | 37 private Instrumentation mInstrumentation; field in EnabledContentCapturePreferenceControllerComponentTest 43 if (null == mInstrumentation) { in setUp() 44 mInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
|
/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()
|
/packages/apps/Settings/tests/legacy_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()
|
/packages/services/Car/tests/CarHiddenApiTest/src/android/car/hiddenapitest/ |
D | GrammaticalInflectionManagerTest.java | 48 private final Instrumentation mInstrumentation = field in GrammaticalInflectionManagerTest 50 private final Context mContext = mInstrumentation.getContext(); 51 private final UiAutomation mUiAutomation = mInstrumentation.getUiAutomation();
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/homepage/ |
D | HomepageComponentTest.java | 44 private final Instrumentation mInstrumentation = InstrumentationRegistry.getInstrumentation(); field in HomepageComponentTest 80 new Intent(mInstrumentation.getTargetContext(), Class.forName( in test_launch_all_settings_in_home() 127 mInstrumentation.getTargetContext() in test_launch_all_settings_in_home()
|