Home
last modified time | relevance | path

Searched refs:TEST_PACKAGE (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/Connectivity/tests/common/java/android/net/
DOemNetworkPreferencesTest.java44 private static final String TEST_PACKAGE = "com.google.apps.contacts"; field in OemNetworkPreferencesTest
63 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue()
69 assertTrue(networkPreferences.containsKey(TEST_PACKAGE)); in testGetNetworkPreferenceReturnsCorrectValue()
75 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue()
84 () -> networkPreferences.remove(TEST_PACKAGE)); in testGetNetworkPreferenceReturnsUnmodifiableValue()
90 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue()
95 assertTrue(networkPreferencesString.contains(TEST_PACKAGE)); in testToStringReturnsCorrectValue()
100 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable()
110 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference()
114 assertTrue(networkPreferences.containsKey(TEST_PACKAGE)); in testAddNetworkPreferenceOverwritesPriorPreference()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsUtilsTest.java47 private static final String TEST_PACKAGE = "com.test.android.Package"; field in DomainUrlsUtilsTest
59 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE, in getDomainsSummary_domainStatusSetToNever_showNoneText()
62 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSetToNever_showNoneText()
68 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE, in getDomainsSummary_domainStatusSet_noDomains_showNoneText()
71 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_noDomains_showNoneText()
77 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE, in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
82 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
89 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE, in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
95 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
106 IntentFilterVerificationInfo info = new IntentFilterVerificationInfo(TEST_PACKAGE, domains); in getHandledDomains_includeIntentFilterVerificationInfoDomains()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDefaultLayoutProviderTest.java19 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
62 .addActivityIfNotPresent(new ComponentName(TEST_PACKAGE, TEST_PACKAGE)); in setUp()
68 .putApp(TEST_PACKAGE, TEST_PACKAGE)); in testCustomProfileLoaded_with_icon_on_hotseat()
80 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder()
81 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder()
82 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder()
95 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder_custom_title()
96 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder_custom_title()
97 .addApp(TEST_PACKAGE, TEST_PACKAGE) in testCustomProfileLoaded_with_folder_custom_title()
DModelMultiCallbacksTest.java19 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
71 mModelHelper.installApp(TEST_PACKAGE); in setUp()
129 cb1.verifyApps(TEST_PACKAGE); in testTwoCallbacks_receiveUpdates()
130 cb2.verifyApps(TEST_PACKAGE); in testTwoCallbacks_receiveUpdates()
137 cb1.verifyApps(TEST_PACKAGE, pkg1); in testTwoCallbacks_receiveUpdates()
138 cb2.verifyApps(TEST_PACKAGE, pkg1); in testTwoCallbacks_receiveUpdates()
145 cb1.verifyApps(TEST_PACKAGE, pkg1, pkg2); in testTwoCallbacks_receiveUpdates()
146 cb2.verifyApps(TEST_PACKAGE, pkg1, pkg2); in testTwoCallbacks_receiveUpdates()
152 cb1.verifyApps(TEST_PACKAGE, pkg2); in testTwoCallbacks_receiveUpdates()
153 cb2.verifyApps(TEST_PACKAGE, pkg2); in testTwoCallbacks_receiveUpdates()
[all …]
DLoaderCursorTest.java36 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
120 ComponentName cn = new ComponentName(TEST_PACKAGE, TEST_PACKAGE); in getAppShortcutInfo_dontAllowMissing_validComponent()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java80 private static final String TEST_PACKAGE = "test.package"; field in CrossProfileAppsPregrantControllerTest
96 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
97 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
99 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
104 .getInteractAcrossProfilesAppOp(TEST_PACKAGE)) in onPrimaryProfile_noManagedProfile_doesNotPregrant()
111 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
112 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
114 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onManagedProfile_doesNotPregrant()
119 .getInteractAcrossProfilesAppOp(TEST_PACKAGE)) in onManagedProfile_doesNotPregrant()
126 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java139 private static final String TEST_PACKAGE = "com.android.test"; field in PasspointManagerTest
414 eq(mWifiCarrierInfoManager), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE), in addTestProvider()
418 config, TEST_CREATOR_UID, TEST_PACKAGE, isSuggestion, true)); in addTestProvider()
530 assertFalse(mManager.addOrUpdateProvider(null, TEST_CREATOR_UID, TEST_PACKAGE, in addProviderWithNullConfig()
544 TEST_PACKAGE, false, true)); in addProviderWithEmptyConfig()
561 assertFalse(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID, TEST_PACKAGE, in addProviderWithInvalidCredential()
579 when(provider.getPackageName()).thenReturn(TEST_PACKAGE); in addProviderWithBackgroundUser()
581 eq(mWifiCarrierInfoManager), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE), in addProviderWithBackgroundUser()
584 TEST_PACKAGE, false, true)); in addProviderWithBackgroundUser()
600 when(provider.getPackageName()).thenReturn(TEST_PACKAGE); in addRemoveSavedProviderWithValidUserCredential()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/ui/
DLauncherUIScrollTest.java17 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
75 mModelHelper.installApp(TEST_PACKAGE); in setup()
78 .atWorkspace(0, mIdp.numRows - 1, 0).putApp(TEST_PACKAGE, TEST_PACKAGE) in setup()
79 .atWorkspace(0, mIdp.numRows - 1, 1).putApp(TEST_PACKAGE, TEST_PACKAGE) in setup()
80 .atWorkspace(0, mIdp.numRows - 1, 2).putApp(TEST_PACKAGE, TEST_PACKAGE); in setup()
99 mModelHelper.installApp(TEST_PACKAGE + i); in testAllAppsScroll()
119 mModelHelper.installCustomShortcut(TEST_PACKAGE + i, "shortcutProvider"); in testWidgetsListScroll()
140 fb.addApp(TEST_PACKAGE, TEST_PACKAGE); in testFolderPageScroll()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java63 private static final String TEST_PACKAGE = "com.android.car.settings.testutils"; field in DefaultVoiceInputPickerEntryPreferenceControllerTest
93 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
94 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
108 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_ASSIST)); in getAvailabilityStatus_differentComponents_returnsAvailable()
109 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_differentComponents_returnsAvailable()
117 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_assistNull_returnsAvailable()
124 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_ASSIST)); in getAvailabilityStatus_voiceInputNull_returnsAvailable()
148 setCurrentVoiceService(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in onChange_changeRegisteredSetting_callsRefreshUi()
153 setCurrentAssistant(new ComponentName(TEST_PACKAGE, TEST_VOICE)); in onChange_changeRegisteredSetting_callsRefreshUi()
168 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getCurrentDefaultAppInfo_providerHasCurrentService_returnsValidDefaultAppInfo()
[all …]
DVoiceInputUtilsTest.java39 private static final String TEST_PACKAGE = "test.package"; field in VoiceInputUtilsTest
71 ComponentName interaction = new ComponentName(TEST_PACKAGE, TEST_CLASS_1); in getCurrentService_hasInteraction_returnsInteraction()
72 ComponentName recognition = new ComponentName(TEST_PACKAGE, TEST_CLASS_2); in getCurrentService_hasInteraction_returnsInteraction()
82 ComponentName recognition = new ComponentName(TEST_PACKAGE, TEST_CLASS_2); in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
DVoiceInputInfoProviderTest.java41 private static final String TEST_PACKAGE = "test.package"; field in VoiceInputInfoProviderTest
61 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getInteractionInfoList_hasElement()
77 otherInfo.serviceInfo.packageName = TEST_PACKAGE; in getRecognitionInfoList_hasElement()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java75 private static final String TEST_PACKAGE = "com.android.test"; field in WifiShellCommandTest
313 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "yes"}); in testNetworkSuggestionsSetUserApproved()
322 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "yes"}); in testNetworkSuggestionsSetUserApproved()
324 eq(true), anyInt(), eq(TEST_PACKAGE)); in testNetworkSuggestionsSetUserApproved()
328 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "no"}); in testNetworkSuggestionsSetUserApproved()
330 eq(false), anyInt(), eq(TEST_PACKAGE)); in testNetworkSuggestionsSetUserApproved()
338 new String[]{"network-suggestions-has-user-approved", TEST_PACKAGE}); in testNetworkSuggestionsHasUserApproved()
344 when(mWifiNetworkSuggestionsManager.hasUserApprovedForApp(TEST_PACKAGE)) in testNetworkSuggestionsHasUserApproved()
348 new String[]{"network-suggestions-has-user-approved", TEST_PACKAGE}); in testNetworkSuggestionsHasUserApproved()
349 verify(mWifiNetworkSuggestionsManager).hasUserApprovedForApp(TEST_PACKAGE); in testNetworkSuggestionsHasUserApproved()
[all …]
DNetworkSuggestionNominatorTest.java63 private static final String TEST_PACKAGE = "com.test"; field in NetworkSuggestionNominatorTest
151 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatch()
190 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
237 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatch()
282 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
330 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityFromEachPriorityGroupWins()
377 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
431 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER, in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins()
478 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchButInToWifiConfigManager()
528 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
[all …]
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java123 private static final String TEST_PACKAGE = "test.package"; field in RebootReadinessUnitTest
202 mService.cancelPendingReboot(TEST_PACKAGE); in teardown()
213 mService.markRebootPending(TEST_PACKAGE); in testCallingPackages()
214 assertThat(mService.getCallingPackages().valueAt(0)).contains(TEST_PACKAGE); in testCallingPackages()
215 mService.cancelPendingReboot(TEST_PACKAGE); in testCallingPackages()
226 mService.markRebootPending(TEST_PACKAGE); in testRegisteredListenerIsCalled()
233 mService.markRebootPending(TEST_PACKAGE); in testCorrectIntentsSent()
256 assertThat(readyIntent.getPackage()).isEqualTo(TEST_PACKAGE); in testCorrectIntentsSent()
263 assertThat(notReadyIntent.getPackage()).isEqualTo(TEST_PACKAGE); in testCorrectIntentsSent()
272 mService.markRebootPending(TEST_PACKAGE); in testSecondClientReceivesBroadcastImmediately()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DHighPowerDetailTest.java48 private static final String TEST_PACKAGE = "com.test.package"; field in HighPowerDetailTest
69 mFragment.mPackageName = TEST_PACKAGE; in setUp()
88 when(mPowerAllowlistBackend.isAllowlisted(TEST_PACKAGE)).thenReturn(false); in onClick_appAddedToDozeAllowlist_getsUnrestricted()
90 verify(mBatteryUtils).setForceAppStandby(TEST_UID, TEST_PACKAGE, in onClick_appAddedToDozeAllowlist_getsUnrestricted()
96 doReturn(true).when(mPowerAllowlistBackend).isDefaultActiveApp(TEST_PACKAGE); in getSummary_defaultActivePackage_returnUnavailable()
98 assertThat(HighPowerDetail.getSummary(mContext, mPowerAllowlistBackend, TEST_PACKAGE)) in getSummary_defaultActivePackage_returnUnavailable()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceControllerTest.java53 private static final String TEST_PACKAGE = "com.android.car.settings.testutils"; field in DefaultAssistantPickerEntryPreferenceControllerTest
57 new ComponentName(TEST_PACKAGE, TEST_CLASS).flattenToString();
110 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
135 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasAssistant_supportsAssist_noSettingsActivity_returnsNull()
159 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
177 new ComponentName(TEST_PACKAGE, TEST_SETTINGS_CLASS)); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
DDefaultAutofillPickerEntryPreferenceControllerTest.java61 private static final String TEST_PACKAGE = "com.android.car.settings.testutils"; field in DefaultAutofillPickerEntryPreferenceControllerTest
65 new ComponentName(TEST_PACKAGE, TEST_CLASS).flattenToString();
164 resolveInfo.serviceInfo.packageName = TEST_PACKAGE; in getSettingIntent_hasServiceInterface_returnsIntent()
179 new ComponentName(TEST_PACKAGE, TEST_OTHER_CLASS)); in getSettingIntent_hasServiceInterface_returnsIntent()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java55 private static final String TEST_PACKAGE = "com.google.test"; field in WidgetsTableUtilsTest
157 info.provider = ComponentName.createRelative(TEST_PACKAGE, in initTestWidgets()
178 ComponentName.createRelative(TEST_PACKAGE, ".shortcut1"), UserHandle.CURRENT), in initTestShortcuts()
181 ComponentName.createRelative(TEST_PACKAGE, ".shortcut2"), UserHandle.CURRENT), in initTestShortcuts()
184 ComponentName.createRelative(TEST_PACKAGE, ".shortcut3"), UserHandle.CURRENT), in initTestShortcuts()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallDiagnosticServiceControllerTest.java62 private static final String TEST_PACKAGE = "com.android.telecom.calldiagnosticservice"; field in CallDiagnosticServiceControllerTest
65 private static final ComponentName TEST_COMPONENT = new ComponentName(TEST_PACKAGE, TEST_CLASS);
70 TEST_RESOLVE_INFO.serviceInfo.packageName = TEST_PACKAGE;
112 TEST_PACKAGE, mLock); in setUp()
156 assertEquals(TEST_PACKAGE, intentCaptor.getValue().getPackage()); in testAddSimCallCausesBind()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAmbientDisplayAlwaysOnPreferenceControllerTest.java51 private static final String TEST_PACKAGE = "com.android.test"; field in AmbientDisplayAlwaysOnPreferenceControllerTest
77 when(mContext.getString(R.string.config_defaultWellbeingPackage)).thenReturn(TEST_PACKAGE); in setUp()
81 TEST_PACKAGE, /* flag= */0); in setUp()
172 when(mPackageManager.getApplicationInfo(TEST_PACKAGE, /* flag= */0)).thenThrow( in isAodSuppressedByBedtime_notFoundWellbeingPackage_returnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonDialogFragmentTest.java51 private static final String TEST_PACKAGE = "testPackage"; field in InstantAppButtonDialogFragmentTest
60 mFragment = spy(InstantAppButtonDialogFragment.newInstance(TEST_PACKAGE)); in setUp()
73 .deletePackageAsUser(eq(TEST_PACKAGE), any(), anyInt(), anyInt()); in onClick_shouldDeleteApp()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/secondarydisplay/
DSDWorkModeTest.java18 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
70 mModelHelper.installApp(TEST_PACKAGE); in setup()
111 mModelHelper.installApp(TEST_PACKAGE + i); in loadLauncher()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DButtonSelectionStateControllerTest.java52 private static final String TEST_PACKAGE = "com.android.car.dialer"; field in ButtonSelectionStateControllerTest
95 mComponentName = new ComponentName(TEST_PACKAGE, TEST_PACKAGE_CLASS); in onTaskChanged_buttonDetectableByPackage_selectsAssociatedButton()
111 mComponentName = new ComponentName(TEST_PACKAGE, TEST_PACKAGE_CLASS); in onTaskChanged_deselectsPreviouslySelectedButton()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListHeaderViewHolderBinderTest.java66 private static final String TEST_PACKAGE = "com.google.test"; field in WidgetsListHeaderViewHolderBinderTest
128 TEST_PACKAGE, in bindViewHolder_appWith3Widgets_shouldShowTheCorrectAppNameAndSubtitle()
145 TEST_PACKAGE, in bindViewHolder_shouldAttachOnHeaderClickListener()
DWidgetsListSearchHeaderViewHolderBinderTest.java66 private static final String TEST_PACKAGE = "com.google.test"; field in WidgetsListSearchHeaderViewHolderBinderTest
128 TEST_PACKAGE, in bindViewHolder_appWith3Widgets_shouldShowTheCorrectAppNameAndSubtitle()
146 TEST_PACKAGE, in bindViewHolder_shouldAttachOnHeaderClickListener()

12