Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361ba5c4 authored by Eran Messeri's avatar Eran Messeri Committed by Android (Google) Code Review
Browse files

Merge "Log metric when password complexity is set"

parents 88a7d70b 37c8a56b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -4288,11 +4288,17 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                    updatePasswordQualityCacheForUserGroup(caller.getUserId());
                    saveSettingsLocked(caller.getUserId());
                });
                DevicePolicyEventLogger
                        .createEvent(DevicePolicyEnums.SET_PASSWORD_COMPLEXITY)
                        .setAdmin(admin.info.getPackageName())
                        .setInt(passwordComplexity)
                        .setBoolean(calledOnParent)
                        .write();
            }
            logPasswordComplexityRequiredIfSecurityLogEnabled(admin.info.getComponent(),
                    caller.getUserId(), calledOnParent, passwordComplexity);
        }
        //TODO: Log metrics.
    }
    private void logPasswordComplexityRequiredIfSecurityLogEnabled(ComponentName who, int userId,