/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | PolicyWarningUIControllerTest.java | 67 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName( field in PolicyWarningUIControllerTest 118 when(mMockA11yServiceInfo.getComponentName()).thenReturn(TEST_COMPONENT_NAME); in receiveActionSendNotification_isNonA11yCategoryService_sendNotification() 125 TEST_COMPONENT_NAME)); in receiveActionSendNotification_isNonA11yCategoryService_sendNotification() 127 verify(mNotificationManager).notify(eq(TEST_COMPONENT_NAME.flattenToShortString()), in receiveActionSendNotification_isNonA11yCategoryService_sendNotification() 136 TEST_COMPONENT_NAME)); in receiveActionA11ySettings_launchA11ySettingsAndDismissNotification() 139 verify(mNotificationManager).cancel(TEST_COMPONENT_NAME.flattenToShortString(), in receiveActionA11ySettings_launchA11ySettingsAndDismissNotification() 141 assertNotifiedSettingsEqual(TEST_USER_ID, TEST_COMPONENT_NAME.flattenToShortString()); in receiveActionA11ySettings_launchA11ySettingsAndDismissNotification() 149 TEST_COMPONENT_NAME)); in receiveActionDismissNotification_addToNotifiedSettings() 151 assertNotifiedSettingsEqual(TEST_USER_ID, TEST_COMPONENT_NAME.flattenToShortString()); in receiveActionDismissNotification_addToNotifiedSettings() 157 enabledServices.add(TEST_COMPONENT_NAME); in onEnabledServicesChangedLocked_serviceDisabled_removedFromNotifiedSettings() [all …]
|
H A D | AccessibilitySecurityPolicyTest.java | 88 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName( field in AccessibilitySecurityPolicyTest 175 when(mMockA11yServiceInfo.getComponentName()).thenReturn(TEST_COMPONENT_NAME); in setUp() 632 eq(TEST_COMPONENT_NAME)); in onBoundServicesChanged_bindNonA11yToolService_activateUIControllerAction() 642 eq(TEST_COMPONENT_NAME)); in onBoundServicesChanged_unbindNonA11yToolService_activateUIControllerAction() 699 eq(TEST_COMPONENT_NAME)); in onBoundServicesChanged_bindUnknownSourceA11yToolService_activateUIControllerAction() 710 eq(TEST_COMPONENT_NAME)); in onSwitchUser_differentUser_activateUIControllerAction()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
H A D | DefaultUsbConfigurationPreferenceControllerTest.java | 48 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName("test", "test"); field in DefaultUsbConfigurationPreferenceControllerTest 76 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingEnabled_shouldNotDisablePreference() 87 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingDisabled_shouldDisablePreference() 92 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in updateState_usbDataSignalingDisabled_shouldDisablePreference() 99 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference() 110 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference() 115 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
|
H A D | UsbAudioRoutingPreferenceControllerTest.java | 51 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName("test", "test"); field in UsbAudioRoutingPreferenceControllerTest 80 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbAudioRoutingEnabled_shouldCheckedPreference() 94 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbAudioRoutingDisabled_shouldUncheckedPreference() 108 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingDisabled_shouldDisablePreference() 113 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in updateState_usbDataSignalingDisabled_shouldDisablePreference() 155 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference() 166 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference() 171 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
|
/aosp12/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/ |
H A D | SmsApplicationTest.java | 75 private static final ComponentName TEST_COMPONENT_NAME = field in SmsApplicationTest 137 .thenReturn(TEST_COMPONENT_NAME.getPackageName()); in setUp() 143 opStr, SMS_APP_UID, TEST_COMPONENT_NAME.getPackageName())) in setUp() 150 assertEquals(TEST_COMPONENT_NAME, in testGetDefaultSmsApplication() 157 TEST_COMPONENT_NAME.getPackageName())) in testGetDefaultSmsApplicationWithAppOpsFix() 161 assertEquals(TEST_COMPONENT_NAME, in testGetDefaultSmsApplicationWithAppOpsFix() 255 activityInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in makeSmsDeliverResolveInfo() 256 activityInfo.name = TEST_COMPONENT_NAME.getClassName(); in makeSmsDeliverResolveInfo() 267 activityInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in makeWapPushResolveInfo() 279 serviceInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in makeRespondViaMessageResolveInfo() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
H A D | CrossProfileCalendarPreferenceControllerTest.java | 62 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName("test", "test"); field in CrossProfileCalendarPreferenceControllerTest 96 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_noPackageAllowed_shouldBeDisabledForUser() 103 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable() 104 dpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, in getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable() 112 dpm.setProfileOwner(TEST_COMPONENT_NAME); in getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable() 113 dpm.setCrossProfileCalendarPackages(TEST_COMPONENT_NAME, null); in getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
H A D | MessageParserTest.java | 52 private static final ComponentName TEST_COMPONENT_NAME = field in MessageParserTest 81 TEST_COMPONENT_NAME.flattenToString()); in test_correctParserUsedToParseNfcIntent() 101 doReturn(TEST_COMPONENT_NAME) in test_correctParserUsedToParseOtherSupportedProvisioningIntent() 103 .findDeviceAdmin(null, TEST_COMPONENT_NAME, mContext, UserHandle.myUserId()); in test_correctParserUsedToParseOtherSupportedProvisioningIntent() 113 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, TEST_COMPONENT_NAME); in test_correctParserUsedToParseOtherSupportedProvisioningIntent()
|
H A D | ExtrasProvisioningDataParserTest.java | 162 private static final ComponentName TEST_COMPONENT_NAME = field in ExtrasProvisioningDataParserTest 297 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_trustedSourceProvisioningIntent() 346 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_financedDeviceProvisioningIntent() 365 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_resumeProvisioningIntent() 401 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_managedProfileIntent() 437 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_managedProfileIntent_CompProvisioning() 472 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_managedProfileIntent_DeviceOwnerWithByodProvisioning() 507 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_managedDeviceIntent() 632 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_WifiInfoWithCertificates() 977 TEST_COMPONENT_NAME) in buildIntentWithAllShortExtras() [all …]
|
H A D | PropertiesProvisioningDataParserTest.java | 139 private static final ComponentName TEST_COMPONENT_NAME = field in PropertiesProvisioningDataParserTest 232 TEST_COMPONENT_NAME.flattenToString()); in testParse_nfcProvisioningIntent() 253 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_nfcProvisioningIntent() 313 TEST_COMPONENT_NAME.flattenToString()); in testParse_nfcProvisioning_wifiWithCertificates() 334 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testParse_nfcProvisioning_wifiWithCertificates() 369 .putExtra(EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, TEST_COMPONENT_NAME) in testParse_OtherIntentsThrowsException() 460 TEST_COMPONENT_NAME.flattenToString()); in buildIntentWithAllShortExtras() 500 TEST_COMPONENT_NAME.flattenToString()); in buildIntentWithAllLongExtras() 667 TEST_COMPONENT_NAME.flattenToString()); in buildNfcProvisioningProperties()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
H A D | ProvisioningParamsTest.java | 63 private static final ComponentName TEST_COMPONENT_NAME = field in ProvisioningParamsTest 142 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testFailToConstructProvisioningParamsWithoutProvisioningAction() 167 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testNotEquals() 183 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testNotEquals() 247 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in testInferDeviceAdminComponentName_componentNameIsGiven() 251 assertThat(TEST_COMPONENT_NAME) in testInferDeviceAdminComponentName_componentNameIsGiven() 266 eq(mContext), eq(UserHandle.myUserId()))).thenReturn(TEST_COMPONENT_NAME); in testInferDeviceAdminComponentName_componentNameIsNotGiven() 268 assertThat(TEST_COMPONENT_NAME) in testInferDeviceAdminComponentName_componentNameIsNotGiven() 504 .setDeviceAdminComponentName(TEST_COMPONENT_NAME); in createDefaultProvisioningParamsBuilder() 511 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in getCompleteProvisioningParams()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | UtilsTest.java | 67 private static final ComponentName TEST_COMPONENT_NAME = field in UtilsTest 133 mUtils.setComponentEnabledSetting(mockIPackageManager, TEST_COMPONENT_NAME, in testSetComponentEnabledSetting() 136 verify(mockIPackageManager).setComponentEnabledSetting(eq(TEST_COMPONENT_NAME), in testSetComponentEnabledSetting() 272 assertEquals(TEST_COMPONENT_NAME, in testFindDeviceAdmin_PackageName() 313 assertEquals(TEST_COMPONENT_NAME, in testFindDeviceAdminInPackageInfo_Success() 348 assertEquals(TEST_COMPONENT_NAME, mUtils.findDeviceAdminInPackageInfo( in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName() 349 TEST_PACKAGE_NAME_1, TEST_COMPONENT_NAME, packageInfo)); in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName()
|
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/ |
H A D | DownloadPackageTaskRoboTest.java | 46 private static final ComponentName TEST_COMPONENT_NAME = field in DownloadPackageTaskRoboTest 128 packageInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in installTestPackage() 139 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in createDefaultProvisioningParamsBuilder()
|
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/ |
H A D | AdminIntegratedFlowPrepareActivityTest.java | 44 private static final ComponentName TEST_COMPONENT_NAME = field in AdminIntegratedFlowPrepareActivityTest 169 packageInfo.packageName = TEST_COMPONENT_NAME.getPackageName(); in installTestPackage() 176 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in createDefaultProvisioningParamsBuilder()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
H A D | EnableAdbPreferenceControllerTest.java | 53 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName("test", "test"); field in EnableAdbPreferenceControllerTest 142 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_settingsOn_shouldCheck() 158 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_settingsOff_shouldUncheck()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
H A D | FinancedDeviceLandingActivityTest.java | 54 private static final ComponentName TEST_COMPONENT_NAME = field in FinancedDeviceLandingActivityTest 82 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in generateProvisioningParams()
|
H A D | LandingActivityTest.java | 63 private static final ComponentName TEST_COMPONENT_NAME = field in LandingActivityTest 182 .setDeviceAdminComponentName(TEST_COMPONENT_NAME) in createDefaultProvisioningParamsBuilder()
|
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/ |
H A D | TelephonyConnectionServiceTest.java | 109 private static final ComponentName TEST_COMPONENT_NAME = new ComponentName( field in TelephonyConnectionServiceTest 114 TEST_COMPONENT_NAME, TEST_ACCOUNT_ID1); 116 TEST_COMPONENT_NAME, TEST_ACCOUNT_ID2);
|