Searched refs:TEST_INTENT (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | TimeSpentInAppPreferenceControllerTest.java | 53 private static final Intent TEST_INTENT = new Intent( field in TimeSpentInAppPreferenceControllerTest 87 mController.setPackageName(TEST_INTENT.getStringExtra(EXTRA_PACKAGE_NAME)); in noIntentHandler_shouldBeDisabled() 95 mPackageManager.addResolveInfoForIntent(TEST_INTENT, new ResolveInfo()); in hasIntentHandler_notSystemApp_shouldBeDisabled() 96 mController.setPackageName(TEST_INTENT.getStringExtra(EXTRA_PACKAGE_NAME)); in hasIntentHandler_notSystemApp_shouldBeDisabled() 108 mPackageManager.addResolveInfoForIntent(TEST_INTENT, info); in hasIntentHandler_resolvedToSystemApp_shouldBeAvailable() 109 mController.setPackageName(TEST_INTENT.getStringExtra(EXTRA_PACKAGE_NAME)); in hasIntentHandler_resolvedToSystemApp_shouldBeAvailable() 116 assertThat(intent.getAction()).isEqualTo(TEST_INTENT.getAction()); in hasIntentHandler_resolvedToSystemApp_shouldBeAvailable() 118 .isEqualTo(TEST_INTENT.getStringExtra(EXTRA_PACKAGE_NAME)); in hasIntentHandler_resolvedToSystemApp_shouldBeAvailable()
|
D | AppSettingPreferenceControllerTest.java | 44 private static final Intent TEST_INTENT = field in AppSettingPreferenceControllerTest 112 .isEqualTo(TEST_INTENT.getComponent()); in clickPreference_hasAppSetting_shouldLaunchIntent()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerEntryBasePreferenceControllerTest.java | 54 private static final Intent TEST_INTENT = new Intent(Settings.ACTION_SETTINGS); field in DefaultAppsPickerEntryBasePreferenceControllerTest 115 TEST_INTENT, resolveInfo); in refreshUi_hasSettingIntentButNoResolvableActivity_actionButtonIsNotVisible() 116 mController.setSettingIntent(TEST_INTENT); in refreshUi_hasSettingIntentButNoResolvableActivity_actionButtonIsNotVisible() 130 TEST_INTENT, resolveInfo); in refreshUi_hasSettingIntentButNoVisibleActivity_actionButtonIsVisible() 131 mController.setSettingIntent(TEST_INTENT); in refreshUi_hasSettingIntentButNoVisibleActivity_actionButtonIsVisible() 140 mController.setSettingIntent(TEST_INTENT); in refreshUi_hasSettingIntent_actionButtonIsVisible() 153 mController.setSettingIntent(TEST_INTENT); in performButtonClick_launchesIntent() 158 "android", TEST_INTENT, 0, null); in performButtonClick_launchesIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 66 private static final Intent TEST_INTENT = field in TrustAgentsPreferenceControllerTest 100 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_noTrustAgent_shouldNotAddPreference() 117 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 122 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 136 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 142 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 155 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 174 mPackageManager.setResolveInfosForIntent(TEST_INTENT, availableAgents); in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 41 private static final Intent TEST_INTENT = new Intent("test_action"); field in DataUsageSummaryPreferenceTest 136 mDataUsageSummaryPreference.setManageSubscriptionIntent(TEST_INTENT); in onBindViewHolder_hasManagePlanIntent_isVisible() 144 mDataUsageSummaryPreference.setManageSubscriptionIntent(TEST_INTENT); in onButtonClick_hasManagePlanIntent_startsActivity() 149 assertThat(actual.getAction()).isEqualTo(TEST_INTENT.getAction()); in onButtonClick_hasManagePlanIntent_startsActivity()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | DpcReceivedSuccessReceiverTest.java | 55 private static final Intent TEST_INTENT = new Intent(ACTION_PROFILE_PROVISIONING_COMPLETE); field in DpcReceivedSuccessReceiverTest 77 receiver.onReceive(mContext, TEST_INTENT); in testNoAccountMigration() 138 receiver.onReceive(mContext, TEST_INTENT); in invokeOnReceiveAndVerifyIntent()
|