/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | ExecuteInIsolatedServiceRequestTest.java | 27 private static final ComponentName COMPONENT_NAME = field in ExecuteInIsolatedServiceRequestTest 36 new ExecuteInIsolatedServiceRequest.Builder(COMPONENT_NAME) in buildRequestWithOption_success() 47 assertThat(request.getService()).isEqualTo(COMPONENT_NAME); in buildRequestWithOption_success() 56 new ExecuteInIsolatedServiceRequest.Builder(COMPONENT_NAME) in buildRequestWithoutOption_success() 63 assertThat(request.getService()).isEqualTo(COMPONENT_NAME); in buildRequestWithoutOption_success() 69 new ExecuteInIsolatedServiceRequest.Builder(COMPONENT_NAME).build(); in buildRequest_noParams_success() 71 assertThat(request.getService()).isEqualTo(COMPONENT_NAME); in buildRequest_noParams_success()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallScreeningServiceFilterTest.java | 89 private static final ComponentName COMPONENT_NAME = new ComponentName(PKG_NAME, CLS_NAME); field in CallScreeningServiceFilterTest 107 .setCallScreeningComponentName(COMPONENT_NAME.flattenToString()) 111 new PhoneAccountHandle(COMPONENT_NAME, 230 connection.onServiceDisconnected(COMPONENT_NAME); in testBindingCondition() 274 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testAllowCall() 282 csAdapter.onScreeningResponse(CALL_ID, COMPONENT_NAME, allowCallResponse.toParcelable()); in testAllowCall() 287 serviceConnection.onServiceDisconnected(COMPONENT_NAME); in testAllowCall() 301 .setCallScreeningComponentName(COMPONENT_NAME.flattenToString()) in testDisallowCall() 310 serviceConnection.onServiceConnected(COMPONENT_NAME, mBinder); in testDisallowCall() 319 csAdapter.onScreeningResponse(CALL_ID, COMPONENT_NAME, disallowCallResponse.toParcelable()); in testDisallowCall() [all …]
|
D | MissedCallNotifierTest.java | 39 private static final ComponentName COMPONENT_NAME = field in MissedCallNotifierTest 64 final PhoneAccountHandle phoneAccountHandle = new PhoneAccountHandle(COMPONENT_NAME, "id"); in testCallInfoFactory()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | AppButtonRepositoryTest.kt | 99 currentDefaultHome = COMPONENT_NAME, in getHomePackageInfo_oneHome() 105 assertThat(homePackageInfo.currentDefaultHome).isSameInstanceAs(COMPONENT_NAME) in getHomePackageInfo_oneHome() 141 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOnlyOneHomeApp() 158 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOtherHomeApps() 176 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isSystemAndIsCurrentHomeAndHasOtherHomeApps() 189 val COMPONENT_NAME = ComponentName(PACKAGE_NAME, ACTIVITY_NAME) constant
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | NearbySharePreferenceControllerTest.kt | 61 eq(ComponentName.unflattenFromString(COMPONENT_NAME)!!), in setUp() 75 COMPONENT_NAME, in noIntent_notAvailable() 94 COMPONENT_NAME, in hasIntentAndNearbyComponent_available() 107 COMPONENT_NAME, in clickPreference_startActivity() 127 const val COMPONENT_NAME = "com.example/.BComponent" constant
|
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | BiometricsSafetySourceTest.java | 79 private static final ComponentName COMPONENT_NAME = new ComponentName("package", "class"); field in BiometricsSafetySourceTest 104 .thenReturn(COMPONENT_NAME); in setUp() 165 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataForBiometricSource() 181 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 196 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFingerprintNotEnrolled_whenDisabledByAdmin_setsData() 213 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withFingerprintNotEnrolled_whenNotDisabledByAdmin_setsData() 233 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFingerprintsEnrolled_whenDisabledByAdmin_setsData() 254 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withFingerprintsEnrolled_whenNotDisabledByAdmin_setsData() 272 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFaceNotEnrolled_whenDisabledByAdmin_setsData() 289 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withFaceNotEnrolled_whenNotDisabledByAdmin_setsData() [all …]
|
D | FaceSafetySourceTest.java | 74 private static final ComponentName COMPONENT_NAME = new ComponentName("package", "class"); field in FaceSafetySourceTest 158 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataForFaceSource() 171 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 184 .thenReturn(COMPONENT_NAME); in setSafetySourceData_withFaceNotEnrolled_whenDisabledByAdmin_setsData() 188 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFaceNotEnrolled_whenDisabledByAdmin_setsData() 225 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_onlyFaceNotEnrolled_whenNotDisabledByAdmin_setsData() 243 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_noBiometricEnrolled_whenNotDisabledByAdmin_setsData() 258 .thenReturn(COMPONENT_NAME); in setSafetySourceData_withFaceEnrolled_whenDisabledByAdmin_setsData() 262 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFaceEnrolled_whenDisabledByAdmin_setsData() 297 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withFaceEnrolled_whenNotDisabledByAdmin_setsData()
|
D | FingerprintSafetySourceTest.java | 78 private static final ComponentName COMPONENT_NAME = new ComponentName("package", "class"); field in FingerprintSafetySourceTest 168 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataForFingerprintSource() 184 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 198 .thenReturn(COMPONENT_NAME); in setSafetySourceData_withFingerprintNotEnrolled_whenDisabledByAdmin_setsData() 202 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFingerprintNotEnrolled_whenDisabledByAdmin_setsData() 241 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_onlyFingerprintNotEnrolled_whenNotDisabledByAdmin_setsData() 260 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_noBiometricEnrolled_whenNotDisabledByAdmin_setsData() 277 .thenReturn(COMPONENT_NAME); in setSafetySourceData_withFingerprintsEnrolled_whenDisabledByAdmin_setsData() 283 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in setSafetySourceData_withFingerprintsEnrolled_whenDisabledByAdmin_setsData() 328 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withFingerprintsEnrolled_whenNotDisabledByAdmin_setsData()
|
D | WearSafetySourceTest.java | 77 private static final ComponentName COMPONENT_NAME = new ComponentName("package", "class"); field in WearSafetySourceTest 106 .thenReturn(COMPONENT_NAME); in setUp() 202 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in setSafetySourceData_withWearEnabled_whenWearNotEnrolled_setsData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | ChooseLockSettingsHelperTest.java | 3 import static com.android.settings.password.TestUtils.COMPONENT_NAME; 180 .setRemoteLockscreenValidationServiceComponent(COMPONENT_NAME)); in launchConfirmPassword_remoteValidation_passwordLockType() 195 ).isEqualTo(COMPONENT_NAME); in launchConfirmPassword_remoteValidation_passwordLockType() 209 .setRemoteLockscreenValidationServiceComponent(COMPONENT_NAME)); in launchConfirmPassword_remoteValidation_pinLockType() 224 ).isEqualTo(COMPONENT_NAME); in launchConfirmPassword_remoteValidation_pinLockType() 238 .setRemoteLockscreenValidationServiceComponent(COMPONENT_NAME)); in launchConfirmPattern_remoteValidation_patternLockType() 253 ).isEqualTo(COMPONENT_NAME); in launchConfirmPattern_remoteValidation_patternLockType()
|
D | TestUtils.java | 39 public static final ComponentName COMPONENT_NAME = field in TestUtils 84 .putExtra(Intent.EXTRA_COMPONENT_NAME, COMPONENT_NAME); in createRemoteLockscreenValidationIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityDetailsSettingsFragmentTest.java | 69 private static final String COMPONENT_NAME = PACKAGE_NAME + "/" + CLASS_NAME; field in AccessibilityDetailsSettingsFragmentTest 86 intent.putExtra(Intent.EXTRA_COMPONENT_NAME, COMPONENT_NAME); in onCreate_afterSuccessfullyLaunch_shouldBeFinished() 96 intent.putExtra(Intent.EXTRA_COMPONENT_NAME, COMPONENT_NAME); in onCreate_hasValidExtraComponentName_launchExpectedFragment() 126 intent.putExtra(Intent.EXTRA_COMPONENT_NAME, COMPONENT_NAME); in onCreate_extraComponentNameIsDisallowed_launchAccessibilitySettings() 206 ComponentName componentName = ComponentName.unflattenFromString(COMPONENT_NAME); in getMockAccessibilityServiceInfo()
|
D | RestrictedPreferenceHelperTest.java | 67 private static final ComponentName COMPONENT_NAME = new ComponentName(PACKAGE_NAME, CLASS_NAME); field in RestrictedPreferenceHelperTest 87 final String key = COMPONENT_NAME.flattenToString(); in createAccessibilityServicePreferenceList_hasOneInfo_containsSameKey() 131 final String key = COMPONENT_NAME.flattenToString(); in createAccessibilityActivityPreferenceList_hasOneInfo_containsSameKey() 189 when(mockInfo.getComponentName()).thenReturn(COMPONENT_NAME); in setMockAccessibilityShortcutInfo()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/combination/ |
D | CombinedBiometricStatusUtilsTest.java | 63 private static final ComponentName COMPONENT_NAME = field in CombinedBiometricStatusUtilsTest 186 .thenReturn(COMPONENT_NAME); in getDisabledAdmin_whenFingerprintDisabled_whenFaceDisabled_returnsEnforcedAdmin() 187 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in getDisabledAdmin_whenFingerprintDisabled_whenFaceDisabled_returnsEnforcedAdmin() 194 COMPONENT_NAME, UserManager.DISALLOW_BIOMETRIC, USER_HANDLE)); in getDisabledAdmin_whenFingerprintDisabled_whenFaceDisabled_returnsEnforcedAdmin() 214 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in getDisabledAdmin_whenFingerprintDisabled_whenFaceEnabled_returnsNull() 222 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in getDisabledAdmin_whenFingerprintEnabled_whenFaceDisabled_returnsNull() 230 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in getDisabledAdmin_whenFingerprintEnabled_whenFaceEnabled_returnsNull()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/face/ |
D | FaceStatusUtilsTest.java | 58 private static final ComponentName COMPONENT_NAME = field in FaceStatusUtilsTest 144 .thenReturn(COMPONENT_NAME); in getDisabledAdmin_whenFaceDisabled_returnsEnforcedAdmin() 145 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in getDisabledAdmin_whenFaceDisabled_returnsEnforcedAdmin() 151 COMPONENT_NAME, UserManager.DISALLOW_BIOMETRIC, USER_HANDLE)); in getDisabledAdmin_whenFaceDisabled_returnsEnforcedAdmin() 170 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in getDisabledAdmin_withFaceEnabled_returnsNull()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ContentProtectionPreferenceControllerTest.java | 52 private static final ComponentName COMPONENT_NAME = field in ContentProtectionPreferenceControllerTest 59 private String mConfigDefaultContentProtectionService = COMPONENT_NAME.flattenToString(); 81 doReturn(COMPONENT_NAME.flattenToString()) in isAvailable_isTrue()
|
D | ContentProtectionPreferenceFragmentTest.java | 63 private static final ComponentName COMPONENT_NAME = field in ContentProtectionPreferenceFragmentTest 66 private String mConfigDefaultContentProtectionService = COMPONENT_NAME.flattenToString();
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintStatusUtilsTest.java | 62 private static final ComponentName COMPONENT_NAME = field in FingerprintStatusUtilsTest 149 .thenReturn(COMPONENT_NAME); in getDisabledAdmin_whenFingerprintDisabled_returnsEnforcedAdmin() 150 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)) in getDisabledAdmin_whenFingerprintDisabled_returnsEnforcedAdmin() 157 COMPONENT_NAME, UserManager.DISALLOW_BIOMETRIC, USER_HANDLE)); in getDisabledAdmin_whenFingerprintDisabled_returnsEnforcedAdmin() 177 when(mDevicePolicyManager.getKeyguardDisabledFeatures(COMPONENT_NAME)).thenReturn(0); in getDisabledAdmin_withFingerprintEnabled_returnsNull()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/ |
D | BiometricNavigationUtilsTest.java | 55 private static final ComponentName COMPONENT_NAME = new ComponentName("package", "class"); field in BiometricNavigationUtilsTest 184 COMPONENT_NAME, UserHandle.of(ADMIN_USER_ID)); in getBiometricSettingsIntent_whenDisabledByAdmin_quietMode_returnsBlockedIntent() 196 COMPONENT_NAME, UserHandle.of(ADMIN_USER_ID)); in getBiometricSettingsIntent_whenDisabledByAdmin_emptyExtras_returnsBlockedIntent() 208 COMPONENT_NAME, UserHandle.of(ADMIN_USER_ID)); in getBiometricSettingsIntent_whenDisabledByAdmin_withExtras_returnsBlockedIntent() 241 .isEqualTo(COMPONENT_NAME); in assertBlockedByAdminDialogIntent()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/ |
D | SpaBridgeActivityTest.kt | 45 getActivityInfo(eq(COMPONENT_NAME), any<PackageManager.ComponentInfoFlags>()) in <lambda>() 51 on { componentName } doReturn COMPONENT_NAME in <lambda>() 91 val COMPONENT_NAME = ComponentName(PACKAGE_NAME, ACTIVITY_NAME) constant
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/ |
D | CarOemProxyServiceTest.java | 67 private static final String COMPONENT_NAME = "android.car.test/unittest"; field in CarOemProxyServiceTest 111 assertThat(carOemProxyService.getOemServiceName()).isEqualTo(COMPONENT_NAME); in testFeatureEnabled() 250 connection.onServiceConnected(ComponentName.unflattenFromString(COMPONENT_NAME), in mockServiceConnection() 255 when(mResources.getString(R.string.config_oemCarService)).thenReturn(COMPONENT_NAME); in mockOemCarServiceComponent() 257 String packageName = ComponentName.unflattenFromString(COMPONENT_NAME).getPackageName(); in mockOemCarServiceComponent()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | ManagedProfileAdminReceiver.java | 27 public static final ComponentName COMPONENT_NAME = new ComponentName( field in ManagedProfileAdminReceiver 35 COMPONENT_NAME)
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | CustomizationParamsTest.java | 45 private static final ComponentName COMPONENT_NAME = new ComponentName("org.test", "ATestDPC"); field in CustomizationParamsTest 100 new ProvisioningParams.Builder().setDeviceAdminComponentName(COMPONENT_NAME); in createParams()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementPollingService.java | 63 public static final ComponentName COMPONENT_NAME = field in ImsEntitlementPollingService 93 COMPONENT_NAME, in enqueueJob() 102 COMPONENT_NAME, in enqueueJobWithDelay()
|
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/ |
D | SuggestionsPreferenceController.java | 64 private static final ComponentName COMPONENT_NAME = new ComponentName( field in SuggestionsPreferenceController 76 COMPONENT_NAME, /* serviceConnectionListener= */ this); in SuggestionsPreferenceController()
|