/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/ |
D | DevicePolicyEventLogVerifier.java | 44 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()
|
D | DevicePolicyEventWrapper.java | 30 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/ |
D | DeviceAndProfileOwnerTest.java | 34 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 …]
|
D | MixedDeviceOwnerTest.java | 29 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 …]
|
D | AdbProvisioningTests.java | 25 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()
|
D | DeviceOwnerTest.java | 35 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 …]
|
D | OrgOwnedProfileOwnerTest.java | 32 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 …]
|
D | PasswordComplexityTest.java | 9 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper; 52 new DevicePolicyEventWrapper in testGetPasswordComplexity()
|
D | ManagedProfileContactsTest.java | 25 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()
|
D | ManagedProfileWipeTest.java | 26 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper; 89 }, new DevicePolicyEventWrapper.Builder(EventId.WIPE_DATA_WITH_REASON_VALUE) in testWipeDataLogged()
|
D | ManagedProfileCrossProfileTest.java | 36 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()
|
D | CrossProfileAppsHostSideTest.java | 16 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()
|
D | ManagedProfileTest.java | 31 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()
|
D | MixedManagedProfileOwnerTest.java | 29 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper; 135 }, new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged() 139 new DevicePolicyEventWrapper.Builder( in testSetPreferentialNetworkServiceStatusLogged()
|
D | DeviceOwnerPlusProfileOwnerTest.java | 32 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 =
|
D | DeviceAndProfileOwnerHostSideTransferTest.java | 11 import com.android.cts.devicepolicy.metrics.DevicePolicyEventWrapper; 49 }, new DevicePolicyEventWrapper.Builder(EventId.TRANSFER_OWNERSHIP_VALUE) in testTransferOwnership()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | AccountManagerHostSideTest.java | 30 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()
|