Home
last modified time | relevance | path

Searched refs:DevicePolicyEventWrapper (Results 1 – 17 of 17) 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.java34 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
242 private Map<String, DevicePolicyEventWrapper[]> getDelegationTests() { in getDelegationTests()
243 final Map<String, DevicePolicyEventWrapper[]> result = new HashMap<>(); in getDelegationTests()
253 Map<String, DevicePolicyEventWrapper[]> getAdditionalDelegationTests() { in getAdditionalDelegationTests()
254 return Collections.<String, DevicePolicyEventWrapper[]>emptyMap(); in getAdditionalDelegationTests()
310 final Map<String, DevicePolicyEventWrapper[]> delegationTests = getDelegationTests(); in testDelegation()
343 }, new DevicePolicyEventWrapper.Builder(EventId.CHOOSE_PRIVATE_KEY_ALIAS_VALUE) in testDelegationCertSelection()
481 }, new DevicePolicyEventWrapper.Builder(EventId.SET_ALWAYS_ON_VPN_PACKAGE_VALUE) in testAlwaysOnVpnPackageLogged()
567 }, new DevicePolicyEventWrapper.Builder(EventId.ADD_PERSISTENT_PREFERRED_ACTIVITY_VALUE) in testPersistentIntentResolving()
595 }, new DevicePolicyEventWrapper.Builder(EventId.SET_APPLICATION_HIDDEN_VALUE) in testApplicationHidden()
[all …]
DMixedDeviceOwnerTest.java29 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
133 }, new DevicePolicyEventWrapper.Builder(EventId.GET_WIFI_MAC_ADDRESS_VALUE) in testWifi()
163 }, new DevicePolicyEventWrapper.Builder(EventId.SET_TIME_VALUE) in testSetTime()
174 }, new DevicePolicyEventWrapper.Builder(EventId.SET_TIME_ZONE_VALUE) in testSetTimeZone()
181 Map<String, DevicePolicyEventWrapper[]> getAdditionalDelegationTests() { in getAdditionalDelegationTests()
182 final Map<String, DevicePolicyEventWrapper[]> result = new HashMap<>(); in getAdditionalDelegationTests()
183 DevicePolicyEventWrapper[] expectedMetrics = new DevicePolicyEventWrapper[] { in getAdditionalDelegationTests()
184 new DevicePolicyEventWrapper.Builder(EventId.SET_NETWORK_LOGGING_ENABLED_VALUE) in getAdditionalDelegationTests()
190 new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_NETWORK_LOGS_VALUE) in getAdditionalDelegationTests()
195 new DevicePolicyEventWrapper.Builder(EventId.SET_NETWORK_LOGGING_ENABLED_VALUE) in getAdditionalDelegationTests()
[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()
DDeviceOwnerTest.java35 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
404 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
410 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
416 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
422 }, new DevicePolicyEventWrapper.Builder(EventId.SET_SYSTEM_UPDATE_POLICY_VALUE) in testSetSystemUpdatePolicyLogged()
538 }, new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
541 new DevicePolicyEventWrapper.Builder(EventId.RETRIEVE_PRE_REBOOT_SECURITY_LOGS_VALUE) in testAdminActionBookkeeping()
546 }, new DevicePolicyEventWrapper.Builder(EventId.REQUEST_BUGREPORT_VALUE) in testAdminActionBookkeeping()
634 }, new DevicePolicyEventWrapper.Builder(EventId.SET_KEEP_UNINSTALLED_PACKAGES_VALUE) in testPackageInstallCache()
648 }, new DevicePolicyEventWrapper.Builder(EventId.INSTALL_EXISTING_PACKAGE_VALUE) in testPackageInstallCache()
[all …]
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()
DManagedProfileWipeTest.java26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
89 }, new DevicePolicyEventWrapper.Builder(EventId.WIPE_DATA_WITH_REASON_VALUE) in testWipeDataLogged()
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()
473 new DevicePolicyEventWrapper.Builder(SET_INTERACT_ACROSS_PROFILES_APP_OP_VALUE) in testSetCrossProfilePackages_resetsAppOps_isLogged()
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;
193 }, new DevicePolicyEventWrapper.Builder(EventId.SET_ORGANIZATION_COLOR_VALUE) in testOrganizationInfo()
209 }, new DevicePolicyEventWrapper in testBluetoothContactSharingDisabled()
214 new DevicePolicyEventWrapper in testBluetoothContactSharingDisabled()
425 }, new DevicePolicyEventWrapper.Builder(EventId.SET_PROFILE_NAME_VALUE) in testSetProfileNameLogged()
DMixedManagedProfileOwnerTest.java29 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper;
135 }, new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
139 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()
/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()