/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PasswordTest.kt | 72 .setPasswordExpirationTimeout(deviceState.dpc().componentName(), TIMEOUT) in <lambda>() 83 .getPasswordExpirationTimeout(deviceState.dpc().componentName()) in <lambda>() 86 .setPasswordExpirationTimeout(deviceState.dpc().componentName(), TIMEOUT) in <lambda>() 93 deviceState.dpc().componentName(), originalTimeout in <lambda>() 103 .getPasswordExpirationTimeout(deviceState.dpc().componentName()) in <lambda>() 106 .setPasswordExpirationTimeout(deviceState.dpc().componentName(), TIMEOUT) in <lambda>() 112 deviceState.dpc().componentName(), originalTimeout in <lambda>() 145 .setRequiredStrongAuthTimeout(deviceState.dpc().componentName(), TIMEOUT) in <lambda>() 155 .getPasswordExpirationTimeout(deviceState.dpc().componentName()) in <lambda>() 158 .setPasswordExpirationTimeout(deviceState.dpc().componentName(), TIMEOUT) in <lambda>() [all …]
|
D | ContentProtectionPolicyTest.kt | 48 val componentName = deviceState.dpc().componentName() in getContentProtectionPolicy_defaultValue() constant 51 val actualPolicy = remoteDpm.getContentProtectionPolicy(componentName) in getContentProtectionPolicy_defaultValue() 61 val componentName = deviceState.dpc().componentName() in getContentProtectionPolicy_notAllowed_throwsException() constant 65 remoteDpm.getContentProtectionPolicy(componentName) in getContentProtectionPolicy_notAllowed_throwsException() 79 val componentName = deviceState.dpc().componentName() in setContentProtectionPolicy_enabled_policySet() constant 81 val originalPolicy = remoteDpm.getContentProtectionPolicy(componentName) in setContentProtectionPolicy_enabled_policySet() 84 remoteDpm.setContentProtectionPolicy(componentName, CONTENT_PROTECTION_ENABLED) in setContentProtectionPolicy_enabled_policySet() 86 val actualPolicy = remoteDpm.getContentProtectionPolicy(componentName) in setContentProtectionPolicy_enabled_policySet() 90 remoteDpm.setContentProtectionPolicy(componentName, originalPolicy) in setContentProtectionPolicy_enabled_policySet() 104 val componentName = deviceState.dpc().componentName() in setContentProtectionPolicy_disabled_policySet() constant [all …]
|
D | TimeTest.java | 73 sDeviceState.dpc().componentName(), false); in setAutoTimeRequired_false_setsAutoTimeNotRequired() 79 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_false_setsAutoTimeNotRequired() 90 sDeviceState.dpc().componentName(), true); in setAutoTimeRequired_true_setsAutoTimeRequired() 95 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_setsAutoTimeRequired() 105 sDeviceState.dpc().componentName(), true)); in setAutoTimeRequired_notAllowed_throwsSecurityException() 116 sDeviceState.dpc().componentName(), true); in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired() 121 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired() 132 sDeviceState.dpc().componentName(), true); in setAutoTimeRequired_true_logsEvent() 140 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_logsEvent() 151 sDeviceState.dpc().componentName(), false); in setAutoTimeRequired_false_logsEvent() [all …]
|
D | ResetPasswordWithTokenTest.java | 102 sDeviceState.dpc().componentName()) || !possible).isTrue(); in setResetPasswordToken_validToken_passwordTokenSet() 105 …eviceState.dpc().devicePolicyManager().clearResetPasswordToken(sDeviceState.dpc().componentName()); in setResetPasswordToken_validToken_passwordTokenSet() 115 … sDeviceState.dpc().componentName(), VALID_PIN, TOKEN, /* flags = */ 0)).isTrue(); in resetPasswordWithToken_validPasswordAndToken_success() 126 … sDeviceState.dpc().componentName(), VALID_PIN, BAD_TOKEN, /* flags = */ 0)).isFalse(); in resetPasswordWithToken_badToken_failure() 134 sDeviceState.dpc().componentName(), /* password = */ null, TOKEN, /* flags = */ 0); in resetPasswordWithToken_noPassword_deviceIsNotSecure() 146 sDeviceState.dpc().componentName(), VALID_PIN, TOKEN, /* flags = */ 0); in resetPasswordWithToken_password_deviceIsSecure() 164 sDeviceState.dpc().componentName(), PASSWORD_QUALITY_COMPLEX); in resetPasswordWithToken_passwordDoesNotSatisfyRestriction_failure() 175 … sDeviceState.dpc().componentName(), NOT_COMPLEX_PIN, TOKEN, /* flags = */ 0)).isFalse(); in resetPasswordWithToken_passwordDoesNotSatisfyRestriction_failure() 191 sDeviceState.dpc().componentName(), PASSWORD_QUALITY_COMPLEX); in resetPasswordWithToken_passwordSatisfiesRestriction_success() 202 … sDeviceState.dpc().componentName(), COMPLEX_PASSWORD_WITH_SYMBOL_LENGTH_7, TOKEN, in resetPasswordWithToken_passwordSatisfiesRestriction_success() [all …]
|
D | LockTaskTest.kt | 103 deviceState.dpc().componentName(), arrayOf(PACKAGE_NAME) in <lambda>() 108 .getLockTaskPackages(deviceState.dpc().componentName()) in <lambda>() 112 .setLockTaskPackages(deviceState.dpc().componentName(), arrayOf()) in <lambda>() 114 deviceState.dpc().componentName(), LOCK_TASK_FEATURE_NONE in <lambda>() 130 deviceState.dpc().componentName(), arrayOf(testApp.packageName()) in <lambda>() 153 .setLockTaskPackages(deviceState.dpc().componentName(), arrayOf()) in <lambda>() 155 deviceState.dpc().componentName(), LOCK_TASK_FEATURE_NONE in <lambda>() 166 .getLockTaskPackages(deviceState.dpc().componentName()) in <lambda>() 174 .setLockTaskPackages(deviceState.dpc().componentName(), arrayOf()) in <lambda>() 178 .getLockTaskPackages(deviceState.dpc().componentName()) in <lambda>() [all …]
|
D | KeyguardTest.java | 88 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_SECURE_CAMERA)); in setKeyguardDisabledFeatures_disableSecureCamera_notPermitted_throwsException() 100 sDeviceState.dpc().componentName()); in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet() 104 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_SECURE_CAMERA); in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet() 110 sDeviceState.dpc().componentName(), originalFeatures); in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet() 123 sDeviceState.dpc().componentName()); in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet() 127 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_SECURE_CAMERA); in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet() 133 sDeviceState.dpc().componentName(), originalFeatures); in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet() 147 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_SECURE_NOTIFICATIONS)); in setKeyguardDisabledFeatures_disableSecureNotifications_notPermitted_throwsException() 159 sDeviceState.dpc().componentName()); in setKeyguardDisabledFeatures_disableSecureNotifications_featureIsSet() 163 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_SECURE_NOTIFICATIONS); in setKeyguardDisabledFeatures_disableSecureNotifications_featureIsSet() [all …]
|
D | PermissionGrantTest.java | 189 .getPermissionGrantState(sDeviceState.dpc().componentName(), in denyPermission_setsGrantState() 194 sDeviceState.dpc().componentName(), sTestApp.packageName(), in denyPermission_setsGrantState() 201 sDeviceState.dpc().componentName(), sTestApp.packageName(), in denyPermission_setsGrantState() 206 sDeviceState.dpc().componentName(), sTestApp.packageName(), in denyPermission_setsGrantState() 214 .getPermissionGrantState(sDeviceState.dpc().componentName(), in grantPermission_setsGrantState() 220 sDeviceState.dpc().componentName(), sTestApp.packageName(), in grantPermission_setsGrantState() 227 sDeviceState.dpc().componentName(), sTestApp.packageName(), in grantPermission_setsGrantState() 232 sDeviceState.dpc().componentName(), sTestApp.packageName(), in grantPermission_setsGrantState() 242 .getPermissionGrantState(sDeviceState.dpc().componentName(), in denyPermission_permissionIsDenied() 247 sDeviceState.dpc().componentName(), sTestApp.packageName(), in denyPermission_permissionIsDenied() [all …]
|
D | ApplicationHiddenTest.java | 109 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName(), in isApplicationHidden_systemApp_isHidden_returnsTrue() 113 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName())).isTrue(); in isApplicationHidden_systemApp_isHidden_returnsTrue() 116 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName(), in isApplicationHidden_systemApp_isHidden_returnsTrue() 125 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName(), in isApplicationHidden_systemApp_isNotHidden_returnsFalse() 129 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName())).isFalse(); in isApplicationHidden_systemApp_isNotHidden_returnsFalse() 132 sDeviceState.dpc().componentName(), SYSTEM_PACKAGE.packageName(), in isApplicationHidden_systemApp_isNotHidden_returnsFalse() 142 .isApplicationHidden(sDeviceState.dpc().componentName(), in isApplicationHidden_notSystemApp_throwsException() 151 .isApplicationHidden(sDeviceState.dpc().componentName(), in isApplicationHidden_notPermitted_throwsException() 160 sDeviceState.dpc().componentName(), sDeviceState.testApp().packageName(), in isApplicationHidden_notSystemApp_isHidden_returnsTrue() 164 sDeviceState.dpc().componentName(), in isApplicationHidden_notSystemApp_isHidden_returnsTrue() [all …]
|
D | CaCertManagementTest.java | 146 sDeviceState.dpc().componentName())).isNotNull(); in getInstalledCaCerts_doesNotReturnNull() 153 sDeviceState.dpc().componentName())); in getInstalledCaCerts_invalidAdmin_throwsException() 160 remoteDpm.uninstallAllUserCaCerts(sDeviceState.dpc().componentName()); in installCaCert_caCertIsInstalled() 163 sDeviceState.dpc().componentName(), CA_CERT_1); in installCaCert_caCertIsInstalled() 168 remoteDpm.uninstallAllUserCaCerts(sDeviceState.dpc().componentName()); in installCaCert_caCertIsInstalled() 176 sDeviceState.dpc().componentName(), CA_CERT_1)); in installCaCert_invalidAdmin_throwsException() 183 remoteDpm.uninstallAllUserCaCerts(sDeviceState.dpc().componentName()); in installCaCert_logsEvent() 186 remoteDpm.installCaCert(sDeviceState.dpc().componentName(), CA_CERT_1); in installCaCert_logsEvent() 195 remoteDpm.uninstallAllUserCaCerts(sDeviceState.dpc().componentName()); in installCaCert_logsEvent() 203 remoteDpm.uninstallAllUserCaCerts(sDeviceState.dpc().componentName()); in uninstallCaCert_caCertIsNotInstalled() [all …]
|
D | ScreenCaptureDisabledTest.java | 102 .setScreenCaptureDisabled(sDeviceState.dpc().componentName(), false); in setScreenCaptureDisabled_false_works() 114 sDeviceState.dpc().componentName(), false); in setScreenCaptureDisabled_false_checkWithDPC_works() 117 sDeviceState.dpc().componentName())).isFalse(); in setScreenCaptureDisabled_false_checkWithDPC_works() 120 sDeviceState.dpc().componentName(), false); in setScreenCaptureDisabled_false_checkWithDPC_works() 130 .setScreenCaptureDisabled(sDeviceState.dpc().componentName(), false)); in setScreenCaptureDisabled_false_throwsSecurityException() 140 sDeviceState.dpc().componentName(), true); in setScreenCaptureDisabled_true_works() 146 sDeviceState.dpc().componentName(), false); in setScreenCaptureDisabled_true_works() 157 sDeviceState.dpc().componentName(), true); in setScreenCaptureDisabled_true_checkWithDPC_works() 160 sDeviceState.dpc().componentName())).isTrue(); in setScreenCaptureDisabled_true_checkWithDPC_works() 163 sDeviceState.dpc().componentName(), false); in setScreenCaptureDisabled_true_checkWithDPC_works() [all …]
|
D | PersonalAppsSuspensionTest.java | 79 sDeviceState.dpc().componentName(), /* suspended= */ true); in setPersonalAppsSuspended_sendsPackageSuspendedBroadcast() 84 sDeviceState.dpc().componentName(), /* suspended= */ false); in setPersonalAppsSuspended_sendsPackageSuspendedBroadcast() 94 sDeviceState.dpc().componentName(), /* suspended= */ true); in setPersonalAppsSuspended_cannotStartActivity() 97 startActivity(activity.component().componentName()); in setPersonalAppsSuspended_cannotStartActivity() 100 a -> a.componentName().equals(activity.component().componentName()))) in setPersonalAppsSuspended_cannotStartActivity() 104 sDeviceState.dpc().componentName(), /* suspended= */ false); in setPersonalAppsSuspended_cannotStartActivity() 114 sDeviceState.dpc().componentName(), /* suspended= */ true); in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity() 117 startActivity(activity.component().componentName()); in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity() 120 a -> a.componentName().equals(activity.component().componentName()))) in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity() 124 sDeviceState.dpc().componentName(), /* suspended= */ false); in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity() [all …]
|
D | DelegationScopesTest.java | 88 sDeviceState.dpc().componentName(), in getDelegatedScopes_returnsFromSetDelegatedScopes() 93 sDeviceState.dpc().componentName(), in getDelegatedScopes_returnsFromSetDelegatedScopes() 107 sDeviceState.dpc().componentName(), in getDelegatedScopes_fromApp_returnsFromSetDelegatedScopes() 125 sDeviceState.dpc().componentName(), in getDelegatedScopes_fromApp_passComponentName_throwsException() 131 sDeviceState.dpc().componentName(), testApp.packageName())); in getDelegatedScopes_fromApp_passComponentName_throwsException() 144 sDeviceState.dpc().componentName(), in getDelegatedScopes_fromApp_differentPackage_throwsException() 148 sDeviceState.dpc().componentName(), in getDelegatedScopes_fromApp_differentPackage_throwsException() 167 sDeviceState.dpc().componentName(), in setDelegatedScopes_invalidAdmin_throwsSecurityException() 178 sDeviceState.dpc().componentName(), testApp.packageName())); in getDelegatedScopes_invalidAdmin_throwsSecurityException() 188 sDeviceState.dpc().componentName(), in getDelegatedScopes_returnsLatestFromSetDelegatedScopes() [all …]
|
D | TrustAgentInfoTest.java | 75 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, sConfig); in setTrustAgentConfiguration_isSet() 79 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT); in setTrustAgentConfiguration_isSet() 86 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, null); in setTrustAgentConfiguration_isSet() 98 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, in setTrustAgentConfiguration_componentNotConfigured_isNotSet() 105 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, null); in setTrustAgentConfiguration_componentNotConfigured_isNotSet() 117 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, in setTrustAgentConfiguration_trustAgentIsEnabled_isNotSet() 126 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, null); in setTrustAgentConfiguration_trustAgentIsEnabled_isNotSet() 138 sDeviceState.dpc().componentName(), TRUST_AGENT_COMPONENT, in setTrustAgentConfiguration_trustAgentIsDisabled_isSet() 141 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_TRUST_AGENTS); in setTrustAgentConfiguration_trustAgentIsDisabled_isSet() 149 sDeviceState.dpc().componentName(), KEYGUARD_DISABLE_FEATURES_NONE); in setTrustAgentConfiguration_trustAgentIsDisabled_isSet() [all …]
|
D | NetworkLoggingTest.kt | 61 .isNetworkLoggingEnabled(deviceState.dpc().componentName()) in <lambda>() 74 deviceState.dpc().componentName(), true in <lambda>() 78 deviceState.dpc().componentName() in <lambda>() 83 deviceState.dpc().componentName(), false in <lambda>() 95 deviceState.dpc().componentName(), false in <lambda>() 99 deviceState.dpc().componentName() in <lambda>() 114 deviceState.dpc().componentName(), true in <lambda>() 125 deviceState.dpc().componentName(), batchToken in <lambda>() 130 deviceState.dpc().componentName(), false in <lambda>() 179 .setNetworkLoggingEnabled(deviceState.dpc().componentName(), true) in <lambda>() [all …]
|
D | KeyManagementTest.java | 130 .installKeyPair(sDeviceState.dpc().componentName(), PRIVATE_KEY, CERTIFICATE, in installKeyPair_validRsaKeyPair_success() 135 .removeKeyPair(sDeviceState.dpc().componentName(), RSA_ALIAS); in installKeyPair_validRsaKeyPair_success() 144 sDeviceState.dpc().componentName(), in installKeyPair_nullPrivateKey_throwException() 153 sDeviceState.dpc().componentName(), in installKeyPair_nullCertificate_throwException() 172 sDeviceState.dpc().componentName(), PRIVATE_KEY, in installKeyPair_withAutomatedAccess_aliasIsGranted() 181 sDeviceState.dpc().componentName(), RSA_ALIAS); in installKeyPair_withAutomatedAccess_aliasIsGranted() 191 sDeviceState.dpc().componentName(), PRIVATE_KEY, in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted() 200 sDeviceState.dpc().componentName(), RSA_ALIAS); in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted() 211 sDeviceState.dpc().componentName(), in removeKeyPair_validRsaKeyPair_success() 216 .removeKeyPair(sDeviceState.dpc().componentName(), RSA_ALIAS)).isTrue(); in removeKeyPair_validRsaKeyPair_success() [all …]
|
D | StorageEncryptionTest.java | 50 sDeviceState.dpc().componentName(), /* encrypt= */ true)) in setStorageEncryption_runOnSystemUser_enable_isEnabled() 54 sDeviceState.dpc().componentName())).isTrue(); in setStorageEncryption_runOnSystemUser_enable_isEnabled() 57 sDeviceState.dpc().componentName(), /* encrypt= */ false); in setStorageEncryption_runOnSystemUser_enable_isEnabled() 66 sDeviceState.dpc().componentName(), /* encrypt= */ true)) in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported() 70 sDeviceState.dpc().componentName())).isFalse(); in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported() 73 sDeviceState.dpc().componentName(), /* encrypt= */ false); in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported() 82 sDeviceState.dpc().componentName(), /* encrypt= */ false)) in setStorageEncryption_runOnSystemUser_disable_isDisabled() 86 sDeviceState.dpc().componentName())).isFalse(); in setStorageEncryption_runOnSystemUser_disable_isDisabled() 94 sDeviceState.dpc().componentName())).isFalse(); in setStorageEncryption_runOnSystemUser_isNotSupported_isDisabled() 101 sDeviceState.dpc().componentName(), /* encrypt= */ false)) in setStorageEncryption_runOnNonSystemUser_disable_isNotSupported() [all …]
|
D | CameraTest.java | 103 .setCameraDisabled(sDeviceState.dpc().componentName(), true); in setCameraDisabledTrue_policyDoesNotApply_cameraNotDisabled() 109 .setCameraDisabled(sDeviceState.dpc().componentName(), false); in setCameraDisabledTrue_policyDoesNotApply_cameraNotDisabled() 119 .setCameraDisabled(sDeviceState.dpc().componentName(), true); in setCameraDisabledTrue_cameraDisabledLocally() 125 .setCameraDisabled(sDeviceState.dpc().componentName(), false); in setCameraDisabledTrue_cameraDisabledLocally() 134 .setCameraDisabled(sDeviceState.dpc().componentName(), false); in setCameraDisabledFalse_cameraEnabledLocally() 146 .setCameraDisabled(sDeviceState.dpc().componentName(), true); in setCameraDisabledTrue_cameraDisabledAtDPC() 152 .setCameraDisabled(sDeviceState.dpc().componentName(), false); in setCameraDisabledTrue_cameraDisabledAtDPC() 161 .setCameraDisabled(sDeviceState.dpc().componentName(), false); in setCameraDisabledFalse_cameraEnabledAtDPC() 173 .setCameraDisabled(sDeviceState.dpc().componentName(), true)); in setCameraDisabledTrue_policyNotAllowedToBeSet_throwsSecurityException() 182 .setCameraDisabled(sDeviceState.dpc().componentName(), false)); in setCameraDisabledFalse_policyNotAllowedToBeSet_throwsSecurityException() [all …]
|
D | ApplicationRestrictionsTest.java | 88 sDeviceState.dpc().componentName(), sTestApp.packageName()); in setApplicationRestrictions_applicationRestrictionsAreSet() 95 sDeviceState.dpc().componentName(), sTestApp.packageName(), in setApplicationRestrictions_applicationRestrictionsAreSet() 103 sDeviceState.dpc().componentName(), in setApplicationRestrictions_applicationRestrictionsAreSet() 115 sDeviceState.dpc().componentName(), sTestApp.packageName()); in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 122 sDeviceState.dpc().componentName(), sTestApp.packageName(), in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 126 sDeviceState.dpc().componentName(), sTestApp.packageName(), in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 134 sDeviceState.dpc().componentName(), in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 149 sDeviceState.dpc().componentName(), sTestApp.packageName()); in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions() 157 sDeviceState.dpc().componentName(), sTestApp.packageName(), in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions() 166 sDeviceState.dpc().componentName(), sTestApp.packageName())); in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions() [all …]
|
D | TelephonyTest.java | 94 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_CELL_BROADCASTS)); in setUserRestriction_disallowConfigCellBroadcasts_cannotSet_throwsException() 103 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_CELL_BROADCASTS); in setUserRestriction_disallowConfigCellBroadcasts_isSet() 109 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_CELL_BROADCASTS); in setUserRestriction_disallowConfigCellBroadcasts_isSet() 119 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_CELL_BROADCASTS); in setUserRestriction_disallowConfigCellBroadcasts_isNotSet() 126 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_CELL_BROADCASTS); in setUserRestriction_disallowConfigCellBroadcasts_isNotSet() 154 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_MOBILE_NETWORKS)); in setUserRestriction_disallowConfigMobileNetworks_cannotSet_throwsException() 163 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_MOBILE_NETWORKS); in setUserRestriction_disallowConfigMobileNetworks_isSet() 169 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_MOBILE_NETWORKS); in setUserRestriction_disallowConfigMobileNetworks_isSet() 179 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_MOBILE_NETWORKS); in setUserRestriction_disallowConfigMobileNetworks_isNotSet() 186 sDeviceState.dpc().componentName(), DISALLOW_CONFIG_MOBILE_NETWORKS); in setUserRestriction_disallowConfigMobileNetworks_isNotSet() [all …]
|
D | DeviceManagementCoexistenceTest.java | 168 .getAutoTimeZoneEnabled(sDeviceState.dpc().componentName()); in getDevicePolicyState_autoTimezoneSet_returnsPolicy() 171 sDeviceState.dpc().componentName(), true); in getDevicePolicyState_autoTimezoneSet_returnsPolicy() 180 sDeviceState.dpc().componentName(), originalValue); in getDevicePolicyState_autoTimezoneSet_returnsPolicy() 191 .getPermissionGrantState(sDeviceState.dpc().componentName(), in getDevicePolicyState_permissionGrantStateSet_returnsPolicy() 196 sDeviceState.dpc().componentName(), sTestApp.packageName(), in getDevicePolicyState_permissionGrantStateSet_returnsPolicy() 210 sDeviceState.dpc().componentName(), sTestApp.packageName(), in getDevicePolicyState_permissionGrantStateSet_returnsPolicy() 224 sDeviceState.dpc().componentName(), sTestApp.packageName()); in getDevicePolicyState_appRestrictionsSet_returnsPolicy() 230 sDeviceState.dpc().componentName(), sTestApp.packageName(), in getDevicePolicyState_appRestrictionsSet_returnsPolicy() 251 sDeviceState.dpc().componentName(), in getDevicePolicyState_appRestrictionsSet_returnsPolicy() 266 sDeviceState.dpc().componentName(), TOKEN); in getDevicePolicyState_resetPasswordTokenSet_returnsPolicy() [all …]
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/ |
D | PhotoPickerComponentUtils.java | 52 public static int enableAndGetOldState(@NonNull ComponentName componentName) throws Exception { in enableAndGetOldState() argument 56 componentName, in enableAndGetOldState() 61 final int currentState = packageManager.getComponentEnabledSetting(componentName); in enableAndGetOldState() 64 componentName, in enableAndGetOldState() 73 public static void setState(@NonNull ComponentName componentName, int oldState) in setState() argument 77 componentName, oldState); in setState() local 82 @NonNull ComponentName componentName, in updateComponentEnabledSetting() argument 88 packageManager.setComponentEnabledSetting(componentName, state, in updateComponentEnabledSetting() 93 waitForComponentToBeInExpectedState(packageManager, componentName, state); in updateComponentEnabledSetting() 98 @NonNull ComponentName componentName, in waitForComponentToBeInExpectedState() argument [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ComponentNameUtils.java | 29 public static String getActivityName(ComponentName componentName) { in getActivityName() argument 30 return componentName.flattenToShortString(); in getActivityName() 38 public static String getWindowName(ComponentName componentName) { in getWindowName() argument 39 return componentName.flattenToString(); in getWindowName() 47 public static String getLogTag(ComponentName componentName) { in getLogTag() argument 48 final String className = componentName.getClassName(); in getLogTag()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | TestServiceClient.java | 39 public PendingIntent generatePendingIntent(ComponentName componentName, int flags, in generatePendingIntent() argument 42 return mTestService.generatePendingIntent(componentName, flags, createOptions, in generatePendingIntent() 46 public PendingIntent generatePendingIntent(ComponentName componentName, int flags, in generatePendingIntent() argument 49 return generatePendingIntent(componentName, flags, createOptions, null); in generatePendingIntent() 52 public PendingIntent generatePendingIntent(ComponentName componentName, Bundle createOptions) in generatePendingIntent() argument 54 return generatePendingIntent(componentName, 0, createOptions); in generatePendingIntent() 57 public PendingIntent generatePendingIntent(ComponentName componentName) in generatePendingIntent() argument 59 return generatePendingIntent(componentName, 0, Bundle.EMPTY); in generatePendingIntent() 63 public PendingIntent generatePendingIntentBroadcast(ComponentName componentName, in generatePendingIntentBroadcast() argument 65 return mTestService.generatePendingIntentBroadcast(componentName, resultReceiver); in generatePendingIntentBroadcast() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ComponentNameTest.java | 121 final ComponentName componentName = getComponentName(); in testConstructor() local 122 componentName.writeToParcel(parcel, 0); in testConstructor() 140 ComponentName componentName = new ComponentName("com.android.view", in testGetShortClassName() local 142 final String className = componentName.getClassName(); in testGetShortClassName() 145 actual = componentName.getShortClassName(); in testGetShortClassName() 173 final ComponentName componentName = getComponentName(); in testUnflattenFromString() local 177 assertEquals(componentName, actual); in testUnflattenFromString() 187 final ComponentName componentName = new ComponentName("com.android.view", in testFlattenToShortString() local 189 final String falttenString = componentName.flattenToString(); in testFlattenToShortString() 192 actual = componentName.flattenToShortString(); in testFlattenToShortString() [all …]
|
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/ |
D | ComponentStateChangedReportedStatsTestsHelper.java | 67 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingForLauncherActivity() local 70 mPackageManager.setComponentEnabledSetting(componentName, in testSetComponentEnabledSettingForLauncherActivity() 73 mPackageManager.getComponentEnabledSetting(componentName)); in testSetComponentEnabledSettingForLauncherActivity() 78 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingForNoLauncherActivity() local 81 mPackageManager.setComponentEnabledSetting(componentName, in testSetComponentEnabledSettingForNoLauncherActivity() 84 mPackageManager.getComponentEnabledSetting(componentName)); in testSetComponentEnabledSettingForNoLauncherActivity() 89 ComponentName componentName = new ComponentName(TEST_COMPONENT_STATE_APP_PACKAGE_NAME, in testSetComponentEnabledSettingEnabledThenDisabled() local 92 mPackageManager.setComponentEnabledSetting(componentName, in testSetComponentEnabledSettingEnabledThenDisabled() 95 mPackageManager.getComponentEnabledSetting(componentName)); in testSetComponentEnabledSettingEnabledThenDisabled() 98 mPackageManager.setComponentEnabledSetting(componentName, in testSetComponentEnabledSettingEnabledThenDisabled() [all …]
|