Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/tests/common/java/android/net/
DOemNetworkPreferencesTest.java46 private static final String TEST_PACKAGE = "com.google.apps.contacts"; field in OemNetworkPreferencesTest
65 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue()
71 assertTrue(networkPreferences.containsKey(TEST_PACKAGE)); in testGetNetworkPreferenceReturnsCorrectValue()
77 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue()
86 () -> networkPreferences.remove(TEST_PACKAGE)); in testGetNetworkPreferenceReturnsUnmodifiableValue()
92 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue()
97 assertTrue(networkPreferencesString.contains(TEST_PACKAGE)); in testToStringReturnsCorrectValue()
102 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable()
112 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testAddNetworkPreferenceOverwritesPriorPreference()
116 assertTrue(networkPreferences.containsKey(TEST_PACKAGE)); in testAddNetworkPreferenceOverwritesPriorPreference()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsUtilsTest.java48 private static final String TEST_PACKAGE = "com.test.android.Package"; field in DomainUrlsUtilsTest
64 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE, USER_ID)) in getDomainsSummary_domainStatusSetToNever_showNoneText()
67 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSetToNever_showNoneText()
74 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE, USER_ID)) in getDomainsSummary_domainStatusSet_noDomains_showNoneText()
77 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_noDomains_showNoneText()
84 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE, USER_ID)) in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
89 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_oneDomain_showSingleDomain()
97 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE, USER_ID)) in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
103 assertThat(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE, USER_ID, in getDomainsSummary_domainStatusSet_multipleDomain_showMultipleDomains()
113 IntentFilterVerificationInfo info = new IntentFilterVerificationInfo(TEST_PACKAGE, domains); in getHandledDomains_includeIntentFilterVerificationInfoDomains()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DPackageUserKeyTest.java40 private static final String TEST_PACKAGE = "com.android.test.package"; field in PackageUserKeyTest
47 new PackageItemInfo(TEST_PACKAGE, UserHandle.CURRENT)); in fromPackageItemInfo_shouldCreateExpectedObject()
49 assertThat(packageUserKey.mPackageName).isEqualTo(TEST_PACKAGE); in fromPackageItemInfo_shouldCreateExpectedObject()
56 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in constructor_packageNameAndUserHandle_shouldCreateExpectedObject()
58 assertThat(packageUserKey.mPackageName).isEqualTo(TEST_PACKAGE); in constructor_packageNameAndUserHandle_shouldCreateExpectedObject()
74 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_sameObject_shouldReturnTrue()
82 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue()
83 PackageUserKey otherPackageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue()
90 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_compareAgainstNull_shouldReturnFalse()
97 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentPackage_shouldReturnFalse()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAlarmsAndRemindersBridgeTest.java46 private static final String TEST_PACKAGE = "com.example.test.1"; field in AppStateAlarmsAndRemindersBridgeTest
135 doReturn(true).when(mAlarmManager).hasScheduleExactAlarm(TEST_PACKAGE, in createPermissionState_SeaGrantedNoUeaNoAllowlist()
138 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_SeaGrantedNoUeaNoAllowlist()
139 doReturn(false).when(mPowerExemptionManager).isAllowListed(TEST_PACKAGE, true); in createPermissionState_SeaGrantedNoUeaNoAllowlist()
142 bridge.createPermissionState(TEST_PACKAGE, TEST_UID); in createPermissionState_SeaGrantedNoUeaNoAllowlist()
155 doReturn(false).when(mAlarmManager).hasScheduleExactAlarm(TEST_PACKAGE, in createPermissionState_requestsBothSeaDeniedNoAllowlist()
160 .when(mPackageManager).getPackageInfoAsUser(eq(TEST_PACKAGE), anyInt(), anyInt()); in createPermissionState_requestsBothSeaDeniedNoAllowlist()
161 doReturn(false).when(mPowerExemptionManager).isAllowListed(TEST_PACKAGE, true); in createPermissionState_requestsBothSeaDeniedNoAllowlist()
164 bridge.createPermissionState(TEST_PACKAGE, TEST_UID); in createPermissionState_requestsBothSeaDeniedNoAllowlist()
177 doReturn(false).when(mAlarmManager).hasScheduleExactAlarm(TEST_PACKAGE, in createPermissionState_requestsNoneNoAllowlist()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java122 private static final String TEST_PACKAGE = "com.android.server.sdksandbox.tests"; field in SdkSandboxManagerServiceUnitTest
243 mCallingInfo = new CallingInfo(mClientAppUid, TEST_PACKAGE); in setup()
306 TEST_PACKAGE, in testRegisterAndGetAppOwnedSdkSandboxInterfaceSuccess()
313 mService.getAppOwnedSdkSandboxInterfaces(TEST_PACKAGE, mSandboxLatencyInfo); in testRegisterAndGetAppOwnedSdkSandboxInterfaceSuccess()
325 TEST_PACKAGE, in testRegisterAppOwnedSdkSandboxInterfaceAlreadyRegistered()
336 TEST_PACKAGE, in testRegisterAppOwnedSdkSandboxInterfaceAlreadyRegistered()
347 TEST_PACKAGE, in testUnregisterAppOwnedSdkSandboxInterface()
354 TEST_PACKAGE, APP_OWNED_SDK_SANDBOX_INTERFACE_NAME, mSandboxLatencyInfo); in testUnregisterAppOwnedSdkSandboxInterface()
356 assertThat(mService.getAppOwnedSdkSandboxInterfaces(TEST_PACKAGE, mSandboxLatencyInfo)) in testUnregisterAppOwnedSdkSandboxInterface()
366 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, mSandboxLatencyInfo, new Bundle(), callback); in testLoadSdkIsSuccessful()
[all …]
DSdkSandboxStatsdMetricsUnitTest.java83 private static final String TEST_PACKAGE = "com.android.server.sdksandbox.tests"; field in SdkSandboxStatsdMetricsUnitTest
257 TEST_PACKAGE, in testLatencyMetrics_LoadSdk()
293 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnMultiLoad()
306 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnMultiLoad()
332 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_InvalidSdkName()
366 mService.loadSdk(TEST_PACKAGE, null, SDK_NAME, sandboxLatencyInfo, new Bundle(), callback); in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnAppDeath()
387 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_NoInternet()
416 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_LoadSandboxFailure()
444 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_SandboxDisabled()
478 TEST_PACKAGE, in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_SandboxThrowsDeadObjectException()
[all …]
DSdkSandboxRestrictionManagerUnitTest.java43 private static final String TEST_PACKAGE = "com.android.server.sdksandbox.tests"; field in SdkSandboxRestrictionManagerUnitTest
78 Mockito.when(mPackageManagerHelper.getSdkSharedLibraryInfo(TEST_PACKAGE)) in testGetEffectiveTargetSdkVersion_default_noAdSdk_currentSdkLevelLessThanDefaultValue()
88 Mockito.when(mPackageManagerHelper.getSdkSharedLibraryInfo(TEST_PACKAGE)) in testGetEffectiveTargetSdkVersion_noAdSdk_currentSdkLevelSameAsDefaultValue()
97 Mockito.when(mPackageManagerHelper.getSdkSharedLibraryInfo(TEST_PACKAGE)) in testGetEffectiveTargetSdkVersion_noAdSdk_equalToCurrentSdkLevel()
141 String packageName2 = TEST_PACKAGE + "_1"; in testGetEffectiveTargetSdkVersion_sharedUid()
142 List<String> packageNames = List.of(TEST_PACKAGE, packageName2); in testGetEffectiveTargetSdkVersion_sharedUid()
150 TEST_PACKAGE, in testGetEffectiveTargetSdkVersion_sharedUid()
175 .getSdkSharedLibraryInfo(TEST_PACKAGE); in testGetEffectiveTargetSdkVersion_sharedUid()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java83 private static final String TEST_PACKAGE = "test.package"; field in CrossProfileAppsPregrantControllerTest
103 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
104 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
106 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onPrimaryProfile_noManagedProfile_doesNotPregrant()
111 .getInteractAcrossProfilesAppOp(TEST_PACKAGE)) in onPrimaryProfile_noManagedProfile_doesNotPregrant()
118 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
119 setConfigurablePackages(Collections.singleton(TEST_PACKAGE)); in onManagedProfile_doesNotPregrant()
121 mCrossProfileApps.setInteractAcrossProfilesAppOp(TEST_PACKAGE, AppOpsManager.MODE_DEFAULT); in onManagedProfile_doesNotPregrant()
126 .getInteractAcrossProfilesAppOp(TEST_PACKAGE)) in onManagedProfile_doesNotPregrant()
133 setWhitelistedPackages(Collections.singleton(TEST_PACKAGE)); in defaultConfigurablePackage_doesPregrant()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DDefaultLayoutProviderTest.java20 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
69 .putApp(TEST_PACKAGE, TEST_ACTIVITY)); in testCustomProfileLoaded_with_icon_on_hotseat()
81 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder()
82 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder()
83 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder()
96 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder_custom_title()
97 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder_custom_title()
98 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_folder_custom_title()
136 .putShortcut(TEST_PACKAGE, "shortcut2")); in testCustomProfileLoaded_with_shortcut_on_hotseat()
149 .addApp(TEST_PACKAGE, TEST_ACTIVITY) in testCustomProfileLoaded_with_shortcut_in_folder()
[all …]
DAsyncBindingTest.kt36 import com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE in <lambda>()
91 .putApp(TEST_PACKAGE, TEST_PACKAGE) in <lambda>()
93 .putApp(TEST_PACKAGE, TEST_PACKAGE) in <lambda>()
95 .putApp(TEST_PACKAGE, TEST_PACKAGE) in <lambda>()
97 .putApp(TEST_PACKAGE, TEST_PACKAGE) in <lambda>()
99 .putApp(TEST_PACKAGE, TEST_PACKAGE) in <lambda>()
DCacheDataUpdatedTaskTest.java9 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
52 private static final String PENDING_APP_1 = TEST_PACKAGE + ".pending1";
53 private static final String PENDING_APP_2 = TEST_PACKAGE + ".pending2";
69 .addApp(TEST_PACKAGE, TEST_ACTIVITY) // 2 in setup()
70 .addApp(TEST_PACKAGE, TEST_ACTIVITY2) // 3 in setup()
71 .addApp(TEST_PACKAGE, TEST_ACTIVITY3) // 4 in setup()
106 newTask(CacheDataUpdatedTask.OP_CACHE_UPDATE, TEST_PACKAGE)); in testCacheUpdate_update_apps()
121 newTask(CacheDataUpdatedTask.OP_SESSION_UPDATE, TEST_PACKAGE)); in testSessionUpdate_ignores_normal_apps()
DPackageInstallStateChangedTaskTest.java7 import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE;
35 private static final String PENDING_APP_1 = TEST_PACKAGE + ".pending1";
36 private static final String PENDING_APP_2 = TEST_PACKAGE + ".pending2";
48 .atWorkspace(0, 0, 1).putApp(TEST_PACKAGE, TEST_ACTIVITY) // 1 in setup()
49 .atWorkspace(0, 0, 2).putApp(TEST_PACKAGE, TEST_ACTIVITY2) // 2 in setup()
50 .atWorkspace(0, 0, 3).putApp(TEST_PACKAGE, TEST_ACTIVITY3) // 3 in setup()
83 mModelHelper.getModel().enqueueModelUpdateTask(newTask(TEST_PACKAGE, 30)); in testSessionUpdate_ignore_installed()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java146 private static final String TEST_PACKAGE = "com.android.test"; field in PasspointManagerTest
453 eq(mWifiCarrierInfoManager), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE), in addTestProvider()
457 config, TEST_CREATOR_UID, TEST_PACKAGE, isSuggestion, true, false)); in addTestProvider()
570 assertFalse(mManager.addOrUpdateProvider(null, TEST_CREATOR_UID, TEST_PACKAGE, in addProviderWithNullConfig()
584 TEST_PACKAGE, false, true, false)); in addProviderWithEmptyConfig()
601 assertFalse(mManager.addOrUpdateProvider(config, TEST_CREATOR_UID, TEST_PACKAGE, in addProviderWithInvalidCredential()
620 when(provider.getPackageName()).thenReturn(TEST_PACKAGE); in addProviderWithBackgroundUser()
622 eq(mWifiCarrierInfoManager), anyLong(), eq(TEST_CREATOR_UID), eq(TEST_PACKAGE), in addProviderWithBackgroundUser()
625 TEST_PACKAGE, false, true, false)); in addProviderWithBackgroundUser()
641 when(provider.getPackageName()).thenReturn(TEST_PACKAGE); in addRemoveSavedProviderWithValidUserCredential()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java66 private static final String TEST_PACKAGE = "com.android.car.settings.testutils"; field in DefaultVoiceInputPickerEntryPreferenceControllerTest
107 new ComponentName(TEST_PACKAGE, TEST_ASSIST)); in setUp()
109 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in setUp()
122 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
124 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
133 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneWrite()
135 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneWrite()
145 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneRead()
147 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneRead()
157 new ComponentName(TEST_PACKAGE, TEST_VOICE)); in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneHidden()
[all …]
DVoiceInputUtilsTest.java34 private static final String TEST_PACKAGE = "test.package"; field in VoiceInputUtilsTest
60 ComponentName interaction = new ComponentName(TEST_PACKAGE, TEST_CLASS_1); in getCurrentService_hasInteraction_returnsInteraction()
61 ComponentName recognition = new ComponentName(TEST_PACKAGE, TEST_CLASS_2); in getCurrentService_hasInteraction_returnsInteraction()
71 ComponentName recognition = new ComponentName(TEST_PACKAGE, TEST_CLASS_2); in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DHighPowerDetailTest.java48 private static final String TEST_PACKAGE = "com.test.package"; field in HighPowerDetailTest
67 mFragment.mPackageName = TEST_PACKAGE; in setUp()
92 when(mPowerAllowlistBackend.isAllowlisted(TEST_PACKAGE, TEST_UID)).thenReturn(false); in onClick_appAddedToDozeAllowlist_getsUnrestricted()
95 .setForceAppStandby(TEST_UID, TEST_PACKAGE, AppOpsManager.MODE_ALLOWED); in onClick_appAddedToDozeAllowlist_getsUnrestricted()
100 doReturn(true).when(mPowerAllowlistBackend).isDefaultActiveApp(TEST_PACKAGE, TEST_UID); in getSummary_defaultActivePackage_returnUnavailable()
104 mContext, mPowerAllowlistBackend, TEST_PACKAGE, TEST_UID)) in getSummary_defaultActivePackage_returnUnavailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DFullScreenIntentPermissionPreferenceControllerTest.kt246 whenever(packageManager.getPackageInfo(TEST_PACKAGE, GET_PERMISSIONS)).thenReturn( in setPermissionRequestedInManifest()
248 packageName = TEST_PACKAGE in setPermissionRequestedInManifest()
249 applicationInfo = ApplicationInfo().apply { packageName = TEST_PACKAGE } in setPermissionRequestedInManifest()
255 whenever(packageManager.getPackageInfo(TEST_PACKAGE, GET_PERMISSIONS)).thenThrow( in setPackageInfoNotFound()
256 NameNotFoundException(TEST_PACKAGE) in setPackageInfoNotFound()
261 ShadowPermissionChecker.setResult(TEST_PACKAGE, USE_FULL_SCREEN_INTENT, result) in setPermissionResult()
279 TEST_PACKAGE, in verifySetPermissionUserSetFlag()
307 private fun makeTestAppRow() = AppRow().apply { pkg = TEST_PACKAGE; uid = TEST_UID } in makeTestChannel()
314 const val TEST_PACKAGE = "test.package.name" in makeTestUserHandle() constant
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DAppWidgetsRestoredReceiverTest.kt15 import com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE
51 `package` = TEST_PACKAGE in When AppWidgetsRestoredReceiver gets valid broadcast it sets old and new app widget ids()
74 `package` = TEST_PACKAGE in AppWidgetsRestoredReceiver does not set widget ids when Intent action is invalid()
96 `package` = TEST_PACKAGE in AppWidgetsRestoredReceiver does not set widget ids when Intent host id is not Launcher()
118 `package` = TEST_PACKAGE in AppWidgetsRestoredReceiver does not set ids when new and old ids differ in length()
139 `package` = TEST_PACKAGE in AppWidgetsRestoredReceiver does not set widget ids when old ids not set()
159 `package` = TEST_PACKAGE in AppWidgetsRestoredReceiver does not set widget ids when new ids not set()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DExternalPnoScanRequestManagerTest.java67 private static final String TEST_PACKAGE = "TestPackage"; field in ExternalPnoScanRequestManagerTest
104 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testSetRequest_success()
110 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testSetRequest_success()
115 assertFalse(mExternalPnoScanRequestManager.setRequest(TEST_UID + 1, TEST_PACKAGE, in testSetRequest_success()
135 assertFalse(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testSetRequest_linkToDeathFailed()
151 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testRemoveRequest_explicit()
175 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testRemoveRequest_afterDelivery()
210 assertEquals(TEST_PACKAGE, intentArgumentCaptor.getValue().getPackage()); in testRemoveRequest_afterDelivery()
225 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testRemoveRequest_noDeliveryIfNoMatch()
259 assertTrue(mExternalPnoScanRequestManager.setRequest(TEST_UID, TEST_PACKAGE, mIBinder, in testKeepRequest_afterBinderDeath()
DNetworkSuggestionNominatorTest.java79 private static final String TEST_PACKAGE = "com.test"; field in NetworkSuggestionNominatorTest
171 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatch()
211 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
259 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatch()
305 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
354 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityFromEachPriorityGroupWins()
402 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
457 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER, in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestionsHighPriorityWins()
505 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchButInToWifiConfigManager()
556 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
[all …]
DWifiShellCommandTest.java87 private static final String TEST_PACKAGE = "com.android.test"; field in WifiShellCommandTest
317 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "yes"}); in testNetworkSuggestionsSetUserApproved()
327 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "yes"}); in testNetworkSuggestionsSetUserApproved()
330 eq(true), anyInt(), eq(TEST_PACKAGE)); in testNetworkSuggestionsSetUserApproved()
334 new String[]{"network-suggestions-set-user-approved", TEST_PACKAGE, "no"}); in testNetworkSuggestionsSetUserApproved()
337 eq(false), anyInt(), eq(TEST_PACKAGE)); in testNetworkSuggestionsSetUserApproved()
345 new String[]{"network-suggestions-has-user-approved", TEST_PACKAGE}); in testNetworkSuggestionsHasUserApproved()
351 when(mWifiNetworkSuggestionsManager.hasUserApprovedForApp(TEST_PACKAGE)) in testNetworkSuggestionsHasUserApproved()
355 new String[]{"network-suggestions-has-user-approved", TEST_PACKAGE}); in testNetworkSuggestionsHasUserApproved()
356 verify(mWifiNetworkSuggestionsManager).hasUserApprovedForApp(TEST_PACKAGE); in testNetworkSuggestionsHasUserApproved()
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DAppOpsPolicyHandlerTest.java52 public static final String TEST_PACKAGE = "test-package"; field in AppOpsPolicyHandlerTest
67 bundle.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in setUp()
101 eq(TEST_PACKAGE), eq(true), any(Executor.class), any()); in onProvisioned_shouldExemptBackgroundStartAndKioskApp()
136 eq(TEST_PACKAGE), eq(false), any(Executor.class), any()); in onCleared_shouldResetDlcAndKioskAppExemptions()
146 eq(TEST_PACKAGE), eq(true), any(Executor.class), any()); in onLocked_shouldExemptBackgroundStartAndKioskApp()
157 eq(TEST_PACKAGE), eq(true), any(Executor.class), any()); in onUnlocked_shouldExemptKioskAppNotBackgroundStart()
DUserRestrictionsPolicyHandlerTest.java58 private static final String TEST_PACKAGE = "test.package1"; field in UserRestrictionsPolicyHandlerTest
107 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onProvisionInProgressDebug_withSetExpectedUserRestrictions()
131 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onProvisionInProgress_withSetExpectedUserRestrictions()
155 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onProvisionInProgress_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
180 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onProvisionInProgress_withDisallowUnknownSourcesShouldSetExpectedUserRestrictions()
206 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onProvisionInProgress_withDebuggingAllowed_shouldNotDisallowDebuggingFeatures()
227 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onLockedDebug_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
254 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onLocked_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
304 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onLocked_withDebuggingAllowed_shouldNotDisallowDebuggingFeatures()
405 preferences.putString(EXTRA_KIOSK_PACKAGE, TEST_PACKAGE); in onUnlockedDebug_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/helpers/
DPackageManagerHelperUnitTest.java41 private static final String TEST_PACKAGE = "com.android.server.sdksandbox.tests"; field in PackageManagerHelperUnitTest
67 mPackageManagerHelper.getSdkSharedLibraryInfo(TEST_PACKAGE); in testSdkSharedLibraryInfo()
81 mPackageManagerHelper.getSdkSharedLibraryInfoForSdk(TEST_PACKAGE, SDK_NAMES.get(0)); in testGetSdkSharedLibraryInfoForSdk()
107 TEST_PACKAGE, SDK_NAMES.get(0)); in testGetApplicationInfoForSharedLibrary()
125 assertThat(packageNames.get(0)).isEqualTo(TEST_PACKAGE); in testGetPackageNamesForUid()
/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 …]

123