/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 92 private static final String TEST_PACKAGE_NAME = "com.google.somePackage"; field in WifiPermissionsUtilTest 188 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 210 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 227 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResult_AppNotAllowed() 255 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testenforceCanAccessScanResults_UserOrProfileNotCurrent() 276 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 301 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testLegacyForegroundAppWithOtherPermissionsDenied() 328 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testLegacyAppHasLocationAndAllPermissions() 349 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoCoarseLocationPermission() 378 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_LocationModeDisabled() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 226 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiServiceImplTest 486 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 630 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME, in testRemoveNetworkFailureAppBelowQSdk() 637 boolean succeeded = mWifiServiceImpl.removeNetwork(0, TEST_PACKAGE_NAME); in testRemoveNetworkFailureAppBelowQSdk() 687 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsPrivilegedApp() 689 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsPrivilegedApp() 706 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 713 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 714 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 725 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement() [all …]
|
D | ScoredNetworkNominatorTest.java | 68 private static final String TEST_PACKAGE_NAME = "name.package.test"; field in ScoredNetworkNominatorTest 116 when(mPackageManager.getApplicationInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp() 119 .thenReturn(TEST_PACKAGE_NAME); in setUp() 277 eq(TEST_PACKAGE_NAME), any(), eq(TEST_UID), nullable(String.class)); in testUpdate_externalScorerNotPermittedToSeeScanResults() 300 eq(TEST_PACKAGE_NAME), any(), eq(TEST_UID), nullable(String.class)); in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException() 327 when(mWifiConfigManager.addOrUpdateNetwork(any(), eq(TEST_UID), eq(TEST_PACKAGE_NAME))) in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
|
D | DppManagerTest.java | 114 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in DppManagerTest 199 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 229 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorFailAddPeer() 282 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorFailStart() 329 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk() 355 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae() 380 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorFailOpenNetwork() 405 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorFailEapNetwork() 447 mDppManager.startDppAsConfiguratorInitiator(0, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest() 457 mDppManager.startDppAsConfiguratorInitiator(1, TEST_PACKAGE_NAME, TEST_INTERFACE_NAME, in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerPreferenceControllerTest.java | 50 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in DefaultVoiceInputPickerPreferenceControllerTest 78 resolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_voiceInteractionService_hasOneElement() 91 resolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_voiceRecognitionService_hasOneElement() 104 interactionInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_oneIsSameAsAssistant_hasTwoElements() 113 interactionInfo2.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_oneIsSameAsAssistant_hasTwoElements() 120 ComponentName voiceInteraction = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCandidates_oneIsSameAsAssistant_hasTwoElements() 133 interactionInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 142 interactionInfo2.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 149 ComponentName voiceInteraction = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 157 if (info.componentName.equals(new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE))) { in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() [all …]
|
D | AssistConfigBasePreferenceControllerTest.java | 87 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in AssistConfigBasePreferenceControllerTest 115 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in getAvailabilityStatus_hasAssistComponent_isAvailable() 129 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in onStart_registersObserver() 143 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in onStop_unregistersObserver() 158 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in onChange_changeRegisteredSetting_callsRefreshUi()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreferenceTest.java | 34 private static final String TEST_PACKAGE_NAME = "com.package.mcpackageface"; field in AppDeletionPreferenceTest 53 .setPackageName(TEST_PACKAGE_NAME) in testPreferenceSummary() 60 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testPreferenceSummary() 72 .setPackageName(TEST_PACKAGE_NAME) in testTwoDayPreferenceSummary() 79 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTwoDayPreferenceSummary() 91 .setPackageName(TEST_PACKAGE_NAME) in testYesterdayPreferenceSummary() 98 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testYesterdayPreferenceSummary() 110 .setPackageName(TEST_PACKAGE_NAME) in testTodayPreferenceSummary() 117 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTodayPreferenceSummary() 129 .setPackageName(TEST_PACKAGE_NAME) in testNeverUsedPreferenceSummary() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceControllerTest.java | 57 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in ClearDefaultsPreferenceControllerTest 82 info.packageName = TEST_PACKAGE_NAME; in setUp() 103 ComponentName name = new ComponentName(TEST_PACKAGE_NAME, TEST_ACTIVITY); in refreshUi_hasPreferredActivities_hasSummary() 113 mContext.getPackageManager().setDefaultBrowserPackageNameAsUser(TEST_PACKAGE_NAME, mUserId); in refreshUi_isDefaultBrowser_hasSummary() 121 when(mIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(true); in refreshUi_hasUsbDefaults_hasSummary() 138 ComponentName name = new ComponentName(TEST_PACKAGE_NAME, TEST_ACTIVITY); in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 141 TEST_PACKAGE_NAME)).isTrue(); in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 146 TEST_PACKAGE_NAME)).isFalse(); in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 151 mContext.getPackageManager().setDefaultBrowserPackageNameAsUser(TEST_PACKAGE_NAME, mUserId); in performClick_hasUsbManager_isDefaultBrowser_clearsDefaultBrowser() 163 when(mIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(true); in performClick_hasUsbDefaults_clearsUsbDefaults() [all …]
|
D | AppLinkStatePreferenceControllerTest.java | 55 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in AppLinkStatePreferenceControllerTest 84 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isBrowserApp_isDisabled() 104 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_noDomainUrls_isDisabled() 125 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_hasDomainUrls_isEnabled() 146 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_hasDomainUrls_defaultState_entrySetToAsk() 168 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_hasDomainUrls_askState_entrySetToAsk() 176 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE_NAME, in refreshUi_isNotBrowserApp_hasDomainUrls_askState_entrySetToAsk() 192 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_hasDomainUrls_alwaysState_entrySetToAlways() 200 mContext.getPackageManager().updateIntentVerificationStatusAsUser(TEST_PACKAGE_NAME, in refreshUi_isNotBrowserApp_hasDomainUrls_alwaysState_entrySetToAlways() 216 info.packageName = TEST_PACKAGE_NAME; in refreshUi_isNotBrowserApp_hasDomainUrls_neverState_entrySetToNever() [all …]
|
D | DomainAppPreferenceControllerTest.java | 64 private static final String TEST_PACKAGE_NAME = "com.android.test.package"; field in DomainAppPreferenceControllerTest 121 info.packageName = TEST_PACKAGE_NAME; in onRebuildComplete_sessionLoadsValues_preferenceGroupHasValues() 138 info.packageName = TEST_PACKAGE_NAME; in performClick_startsApplicationLaunchSettingsFragmentWithPackageName() 156 assertThat(pkgName).isEqualTo(TEST_PACKAGE_NAME); in performClick_startsApplicationLaunchSettingsFragmentWithPackageName()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | SipTransportControllerTest.java | 81 private static final String TEST_PACKAGE_NAME = "com.test_pkg"; field in SipTransportControllerTest 132 mSmsPackageName.add(TEST_PACKAGE_NAME); in setUp() 258 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceAvailableSubIdIncorrect() 275 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceDoesntSupportTransport() 293 new DelegateRequest(Collections.emptySet()), TEST_PACKAGE_NAME, in createImsServiceNotAvailable() 309 SipDelegateControllerContainer c = injectMockDelegateController(TEST_PACKAGE_NAME, r); in basicCreate() 321 SipDelegateControllerContainer c = injectMockDelegateController(TEST_PACKAGE_NAME, r); in basicCreateDestroy() 338 SipDelegateControllerContainer c = injectMockDelegateController(TEST_PACKAGE_NAME, r); in createDestroyAppDied() 382 SipDelegateControllerContainer c1 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDenyOverlappingTags() 396 SipDelegateControllerContainer c2 = injectMockDelegateController(TEST_PACKAGE_NAME, in createTwoAndDenyOverlappingTags() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTaskTest.java | 59 private static final String TEST_PACKAGE_NAME = "sample.package.name"; field in VerifyPackageTaskTest 60 private static final String TEST_ADMIN_NAME = TEST_PACKAGE_NAME + ".DeviceAdmin"; 87 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 96 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp() 97 .thenReturn(new ComponentName(TEST_PACKAGE_NAME, TEST_ADMIN_NAME)); in setUp() 116 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent() 203 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in runWithDownloadInfo()
|
D | InstallPackageTaskTest.java | 59 private final static String TEST_PACKAGE_NAME = "test.package.name"; field in InstallPackageTaskTest 101 createProvisioningParams(TEST_PACKAGE_NAME), in run_fileIsNull_success() 115 createProvisioningParams(TEST_PACKAGE_NAME), in run_fileDoesNotExist_fail() 157 createProvisioningParams(TEST_PACKAGE_NAME), in run_invalidApkFile_error()
|
D | DownloadPackageTaskTest.java | 67 private static final String TEST_PACKAGE_NAME = "sample.package.name"; field in DownloadPackageTaskTest 81 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) 93 when(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME, PACKAGE_VERSION, mContext)) in setUp() 107 when(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME, PACKAGE_VERSION, mContext)) in testAlreadyInstalled()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 71 private static final String TEST_PACKAGE_NAME = "google.com"; field in WifiConfigurationTest 765 config.creatorName = TEST_PACKAGE_NAME; in testGetProfileKeyString() 771 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_PSK], TEST_PACKAGE_NAME, in testGetProfileKeyString() 774 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_PSK], TEST_PACKAGE_NAME, in testGetProfileKeyString() 780 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_EAP], TEST_PACKAGE_NAME, in testGetProfileKeyString() 783 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_EAP], TEST_PACKAGE_NAME, in testGetProfileKeyString() 789 assertEquals(createProfileKey(mSsid, "WEP", TEST_PACKAGE_NAME, in testGetProfileKeyString() 792 assertEquals(createProfileKey(mSsid, "WEP", TEST_PACKAGE_NAME, in testGetProfileKeyString() 801 assertEquals(createProfileKey(mSsid, "WEP", TEST_PACKAGE_NAME, in testGetProfileKeyString() 804 assertEquals(createProfileKey(mSsid, "WEP", TEST_PACKAGE_NAME, in testGetProfileKeyString() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAutofillPickerPreferenceControllerTest.java | 50 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in DefaultAutofillPickerPreferenceControllerTest 77 serviceResolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_hasServiceWithoutPermissions_returnsEmptyList() 90 serviceResolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_hasServiceWithBindAutofillServicePermission_returnsService() 103 serviceResolveInfo.serviceInfo.packageName = TEST_PACKAGE_NAME; in getCandidates_hasServiceWithBindAutofillPermission_returnsEmptyList() 129 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in getCurrentDefaultKey_secureSettingReturnsValidString_returnsCorrectKey() 144 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in setCurrentDefault_setValidKey_getCurrentDefaultKeyReturnsKey()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputIndicatorWorkerTest.java | 66 private static final String TEST_PACKAGE_NAME = "com.android.test"; field in MediaOutputIndicatorWorkerTest 110 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback() 111 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback() 127 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 128 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 133 TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 174 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSliceUnpinned_unRegisterCallback() 175 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSliceUnpinned_unRegisterCallback()
|
D | MediaOutputIndicatorSliceTest.java | 80 private static final String TEST_PACKAGE_NAME = "com.test"; field in MediaOutputIndicatorSliceTest 138 when(sMediaOutputIndicatorWorker.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in getSlice_withConnectedDevice_verifyMetadata() 149 TEST_PACKAGE_NAME))); in getSlice_withConnectedDevice_verifyMetadata() 211 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onNotifyChange_withActiveLocalMedia_verifyIntentExtra() 221 assertThat(TextUtils.equals(TEST_PACKAGE_NAME, intent.getStringExtra( in onNotifyChange_withActiveLocalMedia_verifyIntentExtra() 280 mAppInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 283 mPackageInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 285 mPackageStats = new PackageStats(TEST_PACKAGE_NAME); in initPackage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RemoteVolumeGroupControllerTest.java | 70 private static final String TEST_PACKAGE_NAME = "com.test"; field in RemoteVolumeGroupControllerTest 117 when(remoteSessionInfo.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 188 TEST_PACKAGE_NAME))); in displayPreference_withActiveSession_checkSwitcherPreferenceTitle() 204 mAppInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 207 mPackageInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 209 mPackageStats = new PackageStats(TEST_PACKAGE_NAME); in initPackage()
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | CaptivePortalTest.java | 42 private static final String TEST_PACKAGE_NAME = "com.google.android.test"; field in CaptivePortalTest 110 TEST_PACKAGE_NAME)); in testLogEvent() 117 42, TEST_PACKAGE_NAME)); in testLogEvent_UntilR() 119 assertEquals(result.mPackageName, TEST_PACKAGE_NAME); in testLogEvent_UntilR()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 60 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in DefaultAppShortcutPreferenceControllerBaseTest 86 TEST_PACKAGE_NAME), any(Executor.class), any(Consumer.class)); in constructor_callsIsApplicationVisibleForRole() 162 TEST_PACKAGE_NAME), any(Executor.class), callbackCaptor.capture()); in setApplicationIsVisibleForRole() 170 TEST_PACKAGE_NAME)); in updateState_isRoleHolder_shouldSetSummaryToYes() 200 super(context, TEST_PREFERENCE_KEY, TEST_ROLE_NAME, TEST_PACKAGE_NAME); in TestRolePreferenceController()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | ProvisioningParamsTest.java | 62 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in ProvisioningParamsTest 166 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testNotEquals() 182 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testNotEquals() 212 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testSaveAndRestoreMinimalist() 261 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testInferDeviceAdminComponentName_componentNameIsNotGiven() 265 when(mUtils.findDeviceAdmin(eq(TEST_PACKAGE_NAME), nullable(ComponentName.class), in testInferDeviceAdminComponentName_componentNameIsNotGiven() 510 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in getCompleteProvisioningParams()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParserTest.java | 161 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in ExtrasProvisioningDataParserTest 274 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_trustedSourceProvisioningIntent() 329 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_financedDeviceProvisioningIntent() 378 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedProfileIntent() 488 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedDeviceIntent() 529 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_nfcProvisioningIntentThrowsException() 555 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_illFormedLocaleThrowsException() 660 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_PermissionGrantOptOut() 975 TEST_PACKAGE_NAME) in buildIntentWithAllShortExtras() 1005 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in buildIntentWithAllLongExtras() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainUrlsPreferenceControllerTest.java | 57 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in DomainUrlsPreferenceControllerTest 89 info.packageName = TEST_PACKAGE_NAME; in setUp() 98 eq(TEST_PACKAGE_NAME))).thenReturn(mMockDomains); in setUp() 99 when(DomainUrlsUtils.getDomainsSummary(mContext, TEST_PACKAGE_NAME, UserHandle.myUserId(), in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 97 private static final String TEST_PACKAGE_NAME = "com.test.packagename"; field in MediaOutputPreferenceControllerTest 153 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 356 mAppInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 359 mPackageInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 361 mPackageStats = new PackageStats(TEST_PACKAGE_NAME); in initPackage()
|