Home
last modified time | relevance | path

Searched refs:DevicePolicyEventWrapper (Results 1 – 19 of 19) 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.java33 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
234 }, new DevicePolicyEventWrapper.Builder(EventId.INSTALL_CA_CERT_VALUE) in testInstallCaCertLogged()
238 new DevicePolicyEventWrapper.Builder(EventId.UNINSTALL_CA_CERTS_VALUE) in testInstallCaCertLogged()
293 }, new DevicePolicyEventWrapper.Builder(EventId.SET_APPLICATION_RESTRICTIONS_VALUE) in testApplicationRestrictions()
307 private Map<String, DevicePolicyEventWrapper[]> getDelegationTests() { in getDelegationTests()
308 final Map<String, DevicePolicyEventWrapper[]> result = new HashMap<>(); in getDelegationTests()
319 Map<String, DevicePolicyEventWrapper[]> getAdditionalDelegationTests() { in getAdditionalDelegationTests()
320 return Collections.<String, DevicePolicyEventWrapper[]>emptyMap(); in getAdditionalDelegationTests()
383 final Map<String, DevicePolicyEventWrapper[]> delegationTests = getDelegationTests(); in testDelegation()
419 }, new DevicePolicyEventWrapper.Builder(EventId.CHOOSE_PRIVATE_KEY_ALIAS_VALUE) in testDelegationCertSelection()
[all …]
DMixedDeviceOwnerTest.java28 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
146 }, new DevicePolicyEventWrapper.Builder(EventId.GET_WIFI_MAC_ADDRESS_VALUE) in testWifi()
168 }, new DevicePolicyEventWrapper.Builder(EventId.SET_TIME_VALUE) in testSetTime()
179 }, new DevicePolicyEventWrapper.Builder(EventId.SET_TIME_ZONE_VALUE) in testSetTimeZone()
186 Map<String, DevicePolicyEventWrapper[]> getAdditionalDelegationTests() { in getAdditionalDelegationTests()
187 final Map<String, DevicePolicyEventWrapper[]> result = new HashMap<>(); in getAdditionalDelegationTests()
188 DevicePolicyEventWrapper[] expectedMetrics = new DevicePolicyEventWrapper[] { in getAdditionalDelegationTests()
189 new DevicePolicyEventWrapper.Builder(EventId.SET_NETWORK_LOGGING_ENABLED_VALUE) in getAdditionalDelegationTests()
195 new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_NETWORK_LOGS_VALUE) in getAdditionalDelegationTests()
200 new DevicePolicyEventWrapper.Builder(EventId.SET_NETWORK_LOGGING_ENABLED_VALUE) in getAdditionalDelegationTests()
[all …]
DDeviceOwnerTest.java35 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
429 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
435 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
441 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
447 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
563 }, new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
566 new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_PRE_REBOOT_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
571 }, new DevicePolicyEventWrapper.Builder(EventId.REQUEST_BUGREPORT_VALUE) in testAdminActionBookkeeping()
659 }, new DevicePolicyEventWrapper.Builder(EventId.SET_KEEP_UNINSTALLED_PACKAGES_VALUE) in testPackageInstallCache()
673 }, new DevicePolicyEventWrapper.Builder(EventId.INSTALL_EXISTING_PACKAGE_VALUE) in testPackageInstallCache()
[all …]
DAdbProvisioningTests.java25 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
48 }, new DevicePolicyEventWrapper.Builder(EventId.PROVISIONING_ENTRY_POINT_ADB_VALUE) in testAdbDeviceOwnerLogged()
60 }, new DevicePolicyEventWrapper.Builder(EventId.PROVISIONING_ENTRY_POINT_ADB_VALUE) in testAdbProfileOwnerLogged()
DOrgOwnedProfileOwnerTest.java32 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
155 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_USER_RESTRICTION_VALUE) in testUserRestrictionSetOnParentLogged()
159 new DevicePolicyEventWrapper.Builder(EventId.REMOVE_USER_RESTRICTION_VALUE) in testUserRestrictionSetOnParentLogged()
215 }, new DevicePolicyEventWrapper.Builder(EventId.SET_CAMERA_DISABLED_VALUE) in testCameraDisabledOnParentLogged()
220 new DevicePolicyEventWrapper.Builder(EventId.SET_CAMERA_DISABLED_VALUE) in testCameraDisabledOnParentLogged()
465 new DevicePolicyEventWrapper.Builder(EventId.SET_PERMITTED_INPUT_METHODS_VALUE) in testPermittedInputMethodsLogged()
469 new DevicePolicyEventWrapper.Builder(EventId.SET_PERMITTED_INPUT_METHODS_VALUE) in testPermittedInputMethodsLogged()
557 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PERSONAL_APPS_SUSPENDED_VALUE) in testSetPersonalAppsSuspendedLogged()
561 new DevicePolicyEventWrapper.Builder(EventId.SET_PERSONAL_APPS_SUSPENDED_VALUE) in testSetPersonalAppsSuspendedLogged()
572 }, new DevicePolicyEventWrapper.Builder( in testSetManagedProfileMaximumTimeOffLogged()
[all …]
DPasswordComplexityTest.java9 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
52 new DevicePolicyEventWrapper in testGetPasswordComplexity()
DManagedProfileContactsTest.java25 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
95 }, new DevicePolicyEventWrapper in testManagedContactsPolicies()
100 new DevicePolicyEventWrapper in testManagedContactsPolicies()
108 }, new DevicePolicyEventWrapper in testManagedContactsPolicies()
113 new DevicePolicyEventWrapper in testManagedContactsPolicies()
DManagedProfileCrossProfileTest.java36 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
101 }, new DevicePolicyEventWrapper.Builder(ADD_CROSS_PROFILE_INTENT_FILTER_VALUE) in testCrossProfileIntentFilters()
295 }, new DevicePolicyEventWrapper in testCrossProfileWidgetsLogged()
299 new DevicePolicyEventWrapper in testCrossProfileWidgetsLogged()
315 }, new DevicePolicyEventWrapper.Builder(SET_CROSS_PROFILE_CALENDAR_PACKAGES_VALUE) in testCrossProfileCalendarPackage()
378 new DevicePolicyEventWrapper.Builder(SET_CROSS_PROFILE_PACKAGES_VALUE) in testSetCrossProfilePackages_isLogged()
506 new DevicePolicyEventWrapper.Builder(SET_INTERACT_ACROSS_PROFILES_APP_OP_VALUE) in testSetCrossProfilePackages_resetsAppOps_isLogged()
DManagedProfileWipeTest.java26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
89 }, new DevicePolicyEventWrapper.Builder(EventId.WIPE_DATA_WITH_REASON_VALUE) in testWipeDataLogged()
DCrossProfileAppsHostSideTest.java16 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
160 new DevicePolicyEventWrapper in testStartActivityIntent_isLogged()
254 new DevicePolicyEventWrapper in testStartMainActivity_logged()
275 new DevicePolicyEventWrapper in testGetTargetUserProfiles_logged()
DManagedProfileTest.java31 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
211 }, new DevicePolicyEventWrapper.Builder(EventId.SET_ORGANIZATION_COLOR_VALUE) in testOrganizationInfo()
227 }, new DevicePolicyEventWrapper in testBluetoothContactSharingDisabled()
232 new DevicePolicyEventWrapper in testBluetoothContactSharingDisabled()
443 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PROFILE_NAME_VALUE) in testSetProfileNameLogged()
DMixedManagedProfileOwnerTest.java29 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
151 }, new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
155 new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
DDeviceOwnerPlusProfileOwnerTest.java32 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
33 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper.Builder;
66 private static final DevicePolicyEventWrapper WIPE_DATA_WITH_REASON_DEVICE_POLICY_EVENT =
DDeviceAndProfileOwnerHostSideTransferTest.java11 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
49 }, new DevicePolicyEventWrapper.Builder(EventId.TRANSFER_OWNERSHIP_VALUE) in testTransferOwnership()
DManagedProfilePasswordTest.java26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
210 }, new DevicePolicyEventWrapper.Builder(EventId.SEPARATE_PROFILE_CHALLENGE_CHANGED_VALUE) in testCreateSeparateChallengeChangedLogged()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerHostSideTest.java30 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
126 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_ACCOUNT_VALUE) in tesAddAccount_logsMetrics()
146 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_ACCOUNT_VALUE) in testStartAddAccountSession_logsMetrics()
167 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_ACCOUNT_EXPLICITLY_VALUE) in tesAddAccountExplicitly_logsMetrics()
186 }, 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;
448 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_sameProfileGroup_reportsMetric()
484 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_differentProfileGroup_doesNotReportMetric()
504 }, new DevicePolicyEventWrapper.Builder(EventId.BIND_CROSS_PROFILE_SERVICE_VALUE) in testBindServiceAsUser_sameUser_doesNotReportMetric()