Home
last modified time | relevance | path

Searched refs:DevicePolicyEventWrapper (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DDevicePolicyEventLogVerifier.java44 DevicePolicyEventWrapper... expectedLogs) throws Exception { in assertMetricsLogged()
54 for (DevicePolicyEventWrapper expectedLog : expectedLogs) { in assertMetricsLogged()
67 DevicePolicyEventWrapper... expectedLogs) throws Exception { in assertMetricsNotLogged()
77 for (DevicePolicyEventWrapper expectedLog : expectedLogs) { in assertMetricsNotLogged()
86 DevicePolicyEventWrapper expectedLog) { in assertExpectedMetricLogged()
92 DevicePolicyEventWrapper expectedLog) { in assertExpectedMetricNotLogged()
98 DevicePolicyEventWrapper expectedLog) { in isExpectedMetricLogged()
99 final List<DevicePolicyEventWrapper> closestMatches = new ArrayList<>(); in isExpectedMetricLogged()
101 final DevicePolicyEventWrapper actualLog = in isExpectedMetricLogged()
102 DevicePolicyEventWrapper.fromDevicePolicyAtom(atom.getDevicePolicyEvent()); in isExpectedMetricLogged()
DDevicePolicyEventWrapper.java30 public final class DevicePolicyEventWrapper { class
38 private DevicePolicyEventWrapper(Builder builder) { in DevicePolicyEventWrapper() method in DevicePolicyEventWrapper
50 static DevicePolicyEventWrapper fromDevicePolicyAtom(DevicePolicyEvent atom) { in fromDevicePolicyAtom()
81 if (!(obj instanceof DevicePolicyEventWrapper)) { in equals()
84 final DevicePolicyEventWrapper other = (DevicePolicyEventWrapper) obj; in equals()
164 public DevicePolicyEventWrapper build() { in build()
165 return new DevicePolicyEventWrapper(this); in build()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java37 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
222 }, new DevicePolicyEventWrapper.Builder(EventId.CHOOSE_PRIVATE_KEY_ALIAS_VALUE) in testDelegationCertSelection()
361 }, new DevicePolicyEventWrapper.Builder(EventId.SET_ALWAYS_ON_VPN_PACKAGE_VALUE) in testAlwaysOnVpnPackageLogged()
458 }, new DevicePolicyEventWrapper.Builder(EventId.SET_CERT_INSTALLER_PACKAGE_VALUE) in testDelegatedCertInstaller()
659 }, new DevicePolicyEventWrapper.Builder(EventId.SET_MASTER_VOLUME_MUTED_VALUE) in testDisallowAdjustVolumeMutedLogged()
663 new DevicePolicyEventWrapper.Builder(EventId.SET_MASTER_VOLUME_MUTED_VALUE) in testDisallowAdjustVolumeMutedLogged()
728 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PACKAGES_SUSPENDED_VALUE) in testSuspendPackage()
834 }, new DevicePolicyEventWrapper.Builder(EventId.GENERATE_KEY_PAIR_VALUE) in testGenerateKeyPairLogged()
840 new DevicePolicyEventWrapper.Builder(EventId.GENERATE_KEY_PAIR_VALUE) in testGenerateKeyPairLogged()
853 }, new DevicePolicyEventWrapper.Builder(EventId.SET_KEY_PAIR_CERTIFICATE_VALUE) in testSetKeyPairCertificateLogged()
[all …]
DOrgOwnedProfileOwnerTest.java33 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
156 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_USER_RESTRICTION_VALUE) in testUserRestrictionSetOnParentLogged()
160 new DevicePolicyEventWrapper.Builder(EventId.REMOVE_USER_RESTRICTION_VALUE) in testUserRestrictionSetOnParentLogged()
216 }, new DevicePolicyEventWrapper.Builder(EventId.SET_CAMERA_DISABLED_VALUE) in testCameraDisabledOnParentLogged()
221 new DevicePolicyEventWrapper.Builder(EventId.SET_CAMERA_DISABLED_VALUE) in testCameraDisabledOnParentLogged()
382 new DevicePolicyEventWrapper.Builder(EventId.SET_PERMITTED_INPUT_METHODS_VALUE) in testPermittedInputMethodsLogged()
386 new DevicePolicyEventWrapper.Builder(EventId.SET_PERMITTED_INPUT_METHODS_VALUE) in testPermittedInputMethodsLogged()
431 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PERSONAL_APPS_SUSPENDED_VALUE) in testSetPersonalAppsSuspendedLogged()
435 new DevicePolicyEventWrapper.Builder(EventId.SET_PERSONAL_APPS_SUSPENDED_VALUE) in testSetPersonalAppsSuspendedLogged()
446 }, new DevicePolicyEventWrapper.Builder( in testSetManagedProfileMaximumTimeOffLogged()
[all …]
DDeviceOwnerTest.java34 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
436 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
442 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
448 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
454 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
556 }, new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
559 new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_PRE_REBOOT_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
639 }, new DevicePolicyEventWrapper.Builder(EventId.SET_KEEP_UNINSTALLED_PACKAGES_VALUE) in testPackageInstallCache()
653 }, new DevicePolicyEventWrapper.Builder(EventId.INSTALL_EXISTING_PACKAGE_VALUE) in testPackageInstallCache()
745 }, new DevicePolicyEventWrapper.Builder(EventId.SET_KEYGUARD_DISABLED_VALUE) in testSetKeyguardDisabledLogged()
[all …]
DMixedDeviceOwnerTest.java33 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
153 }, new DevicePolicyEventWrapper.Builder(EventId.SET_DEVICE_OWNER_LOCK_SCREEN_INFO_VALUE) in testLockScreenInfo()
188 }, new DevicePolicyEventWrapper.Builder(EventId.INSTALL_SYSTEM_UPDATE_VALUE) in testInstallUpdateLogged()
192 new DevicePolicyEventWrapper.Builder(EventId.INSTALL_SYSTEM_UPDATE_ERROR_VALUE) in testInstallUpdateLogged()
253 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SECURITY_LOGGING_ENABLED_VALUE) in testSecurityLoggingEnabledLogged()
257 new DevicePolicyEventWrapper.Builder(EventId.SET_SECURITY_LOGGING_ENABLED_VALUE) in testSecurityLoggingEnabledLogged()
DManagedProfileContactsTest.java25 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
99 }, new DevicePolicyEventWrapper in testManagedContactsPolicies()
104 new DevicePolicyEventWrapper in testManagedContactsPolicies()
112 }, new DevicePolicyEventWrapper in testManagedContactsPolicies()
117 new DevicePolicyEventWrapper in testManagedContactsPolicies()
DManagedProfileWipeTest.java26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
89 }, new DevicePolicyEventWrapper.Builder(EventId.WIPE_DATA_WITH_REASON_VALUE) in testWipeDataLogged()
DDeviceAndProfileOwnerHostSideTransferTest.java9 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
47 }, new DevicePolicyEventWrapper.Builder(EventId.TRANSFER_OWNERSHIP_VALUE) in testTransferOwnership()
DMixedManagedProfileOwnerTest.java29 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
131 }, new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
135 new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
DManagedProfileCrossProfileTest.java34 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
268 }, new DevicePolicyEventWrapper in testCrossProfileWidgetsLogged()
272 new DevicePolicyEventWrapper in testCrossProfileWidgetsLogged()
288 }, new DevicePolicyEventWrapper.Builder(SET_CROSS_PROFILE_CALENDAR_PACKAGES_VALUE) in testCrossProfileCalendarPackage()
351 new DevicePolicyEventWrapper.Builder(SET_CROSS_PROFILE_PACKAGES_VALUE) in testSetCrossProfilePackages_isLogged()
430 new DevicePolicyEventWrapper.Builder(SET_INTERACT_ACROSS_PROFILES_APP_OP_VALUE) in testSetCrossProfilePackages_resetsAppOps_isLogged()
DDeviceOwnerPlusProfileOwnerTest.java33 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
34 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper.Builder;
65 private static final DevicePolicyEventWrapper WIPE_DATA_WITH_REASON_DEVICE_POLICY_EVENT =
DManagedProfilePasswordTest.java26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
201 }, new DevicePolicyEventWrapper.Builder(EventId.SEPARATE_PROFILE_CHALLENGE_CHANGED_VALUE) in testCreateSeparateChallengeChangedLogged()
DManagedProfileTest.java27 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
151 }, new DevicePolicyEventWrapper.Builder(EventId.SET_ORGANIZATION_COLOR_VALUE) in testOrganizationInfo()
332 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PROFILE_NAME_VALUE) in testSetProfileNameLogged()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerHostSideTest.java30 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
128 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_ACCOUNT_VALUE) in tesAddAccount_logsMetrics()
150 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_ACCOUNT_EXPLICITLY_VALUE) in tesAddAccountExplicitly_logsMetrics()
170 }, new DevicePolicyEventWrapper.Builder(EventId.GET_ACCOUNT_AUTH_TOKEN_VALUE) in tesGetAuthToken_logsMetrics()
/cts/hostsidetests/content/src/android/content/cts/
DContextCrossProfileHostTest.java30 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
477 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_sameProfileGroup_reportsMetric()
513 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_differentProfileGroup_doesNotReportMetric()
533 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_sameUser_doesNotReportMetric()