/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()
|
D | TextContextPreferenceControllerTest.java | 42 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in TextContextPreferenceControllerTest 62 String key = new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE).flattenToString(); in setUp()
|
/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()
|
D | DomainUrlsPreferenceControllerTest.java | 54 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in DomainUrlsPreferenceControllerTest 75 info.packageName = TEST_PACKAGE_NAME; in setUp() 156 AppLaunchSettingsBasePreferenceController.sBrowserIntent.setPackage(TEST_PACKAGE_NAME); in setupIsBrowserApp()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | MdmPackageInfoTest.java | 36 private final static String TEST_PACKAGE_NAME = "com.test.mdm"; field in MdmPackageInfoTest 52 when(mockPackageManager.getApplicationInfo(TEST_PACKAGE_NAME, 0)) in setUp() 54 when(mockPackageManager.getApplicationIcon(TEST_PACKAGE_NAME)).thenReturn(TEST_DRAWABLE); in setUp() 71 TEST_PACKAGE_NAME); in testCreateFromPackageName() 80 when(mockPackageManager.getApplicationInfo(TEST_PACKAGE_NAME, 0)) in testCreateFromPackageName_NameNotFoundException() 83 assertNull(MdmPackageInfo.createFromPackageName(mockContext, TEST_PACKAGE_NAME)); in testCreateFromPackageName_NameNotFoundException()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTaskTest.java | 57 private static final String TEST_PACKAGE_NAME = "sample.package.name"; field in VerifyPackageTaskTest 58 private static final String TEST_ADMIN_NAME = TEST_PACKAGE_NAME + ".DeviceAdmin"; 84 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 93 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp() 94 .thenReturn(new ComponentName(TEST_PACKAGE_NAME, TEST_ADMIN_NAME)); in setUp() 113 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent() 200 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in runWithDownloadInfo()
|
D | InstallPackageTaskTest.java | 67 private static final String TEST_PACKAGE_NAME = "com.android.test"; field in InstallPackageTaskTest 70 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) 150 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, TEST_PACKAGE_NAME); in testSuccess() 164 when(mDpm.isDeviceOwnerApp(eq(TEST_PACKAGE_NAME))).thenReturn(true); in testSuccess_allowTestOnly() 176 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, TEST_PACKAGE_NAME); in testSuccess_allowTestOnly() 200 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, TEST_PACKAGE_NAME); in testInstallFailedVersionDowngrade() 225 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, TEST_PACKAGE_NAME); in testInstallFailedOtherError()
|
D | DownloadPackageTaskTest.java | 68 private static final String TEST_PACKAGE_NAME = "sample.package.name"; field in DownloadPackageTaskTest 82 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) 94 when(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME, PACKAGE_VERSION, mContext)) in setUp() 108 when(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME, PACKAGE_VERSION, mContext)) in testAlreadyInstalled()
|
/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 | 67 private static final String TEST_PACKAGE_NAME = "com.android.test"; field in MediaOutputIndicatorWorkerTest 111 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback() 112 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_registerCallback() 128 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 129 when(mLocalMediaManager.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in onSlicePinned_packageUpdated_checkPackageName() 134 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | ProvisioningParamsTest.java | 48 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in ProvisioningParamsTest 155 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testNotEquals() 173 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testNotEquals() 205 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testSaveAndRestoreMinimalist() 254 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testInferDeviceAdminComponentName_componentNameIsNotGiven() 258 when(mUtils.findDeviceAdmin(eq(TEST_PACKAGE_NAME), nullable(ComponentName.class), in testInferDeviceAdminComponentName_componentNameIsNotGiven() 295 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in getCompleteProvisioningParams()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RemoteVolumeGroupControllerTest.java | 68 private static final String TEST_PACKAGE_NAME = "com.test"; field in RemoteVolumeGroupControllerTest 111 when(remoteSessionInfo.getClientPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 182 TEST_PACKAGE_NAME))); in displayPreference_withActiveSession_checkSwitcherPreferenceTitle() 198 mAppInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 201 mPackageInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 203 mPackageStats = new PackageStats(TEST_PACKAGE_NAME); in initPackage()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParserTest.java | 149 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in ExtrasProvisioningDataParserTest 257 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_trustedSourceProvisioningIntent() 314 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_financedDeviceProvisioningIntent() 372 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedProfileIntent() 487 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedUserIntent() 531 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedDeviceIntent() 574 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_managedSharableDeviceIntent() 614 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_nfcProvisioningIntentThrowsException() 638 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_illFormedLocaleThrowsException() 759 TEST_PACKAGE_NAME) in buildIntentWithAllShortExtras() [all …]
|
D | PropertiesProvisioningDataParserTest.java | 144 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in PropertiesProvisioningDataParserTest 239 props.setProperty(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME); in testParse_nfcProvisioningIntent() 266 .setDeviceAdminPackageName(TEST_PACKAGE_NAME) in testParse_nfcProvisioningIntent() 380 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME) in testParse_OtherIntentsThrowsException() 441 EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME_SHORT, TEST_PACKAGE_NAME); in buildIntentWithAllShortExtras() 491 propsLong.setProperty(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME); in buildIntentWithAllLongExtras() 663 properties.setProperty(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME); in buildNfcProvisioningProperties()
|
D | MessageParserTest.java | 53 private static final String TEST_PACKAGE_NAME = "com.afwsamples.testdpc"; field in MessageParserTest 86 props.setProperty(EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME, TEST_PACKAGE_NAME); in test_correctParserUsedToParseNfcIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 61 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in DefaultAppShortcutPreferenceControllerBaseTest 90 TEST_PACKAGE_NAME), any(Executor.class), any(Consumer.class)); in constructor_callsIsApplicationVisibleForRole() 166 TEST_PACKAGE_NAME), any(Executor.class), callbackCaptor.capture()); in setApplicationIsVisibleForRole() 174 TEST_PACKAGE_NAME)); in updateState_isRoleHolder_shouldSetSummaryToYes() 204 super(context, TEST_PREFERENCE_KEY, TEST_ROLE_NAME, TEST_PACKAGE_NAME); in TestRolePreferenceController()
|
D | DefaultSmsShortcutPreferenceControllerTest.java | 36 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in DefaultSmsShortcutPreferenceControllerTest 50 TEST_PACKAGE_NAME); in setUp()
|
D | DefaultPhoneShortcutPreferenceControllerTest.java | 36 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in DefaultPhoneShortcutPreferenceControllerTest 50 TEST_PACKAGE_NAME); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | MediaOutputPreferenceControllerTest.java | 96 private static final String TEST_PACKAGE_NAME = "com.test.packagename"; field in MediaOutputPreferenceControllerTest 152 when(mMediaController.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 355 mAppInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 358 mPackageInfo.packageName = TEST_PACKAGE_NAME; in initPackage() 360 mPackageStats = new PackageStats(TEST_PACKAGE_NAME); in initPackage()
|
/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/ |
D | GrantRevokeTests.kt | 87 private const val TEST_PACKAGE_NAME = "android.permission.cts.testapp" constant 148 return LightPackageInfo(TEST_PACKAGE_NAME, listOf(), permNames, permFlags, TEST_UID, in createMockPackage() 178 val permInfo = LightPermInfo(permName, TEST_PACKAGE_NAME, PERM_GROUP_NAME, backgroundPerm, in createMockPerm() 195 val pGi = LightPermGroupInfo(PERM_GROUP_NAME, TEST_PACKAGE_NAME, 0, 0, 0, false) in createMockGroup() 283 verify(pm).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 285 verify(pm).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 288 verify(pm, never()).grantRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 289 verify(pm, never()).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState() 293 verify(pm).updatePermissionFlags(permName, TEST_PACKAGE_NAME, in verifyPermissionState() 296 verify(pm, never()).updatePermissionFlags(eq(permName), eq(TEST_PACKAGE_NAME), anyInt(), in verifyPermissionState()
|