Add logging for a few dialogs in Settings.

Bug: 30681529
Test: Checked via adb logcat -b events |egrep'(sysui_|notification_)'

Change-Id: Ida7ce88f11fd476164f2d016ac0badcd7c549ae4
This commit is contained in:
Fan Zhang
2016-08-24 18:13:33 -07:00
parent 14e9535fc8
commit ac5e593223
5 changed files with 42 additions and 14 deletions

View File

@@ -18,7 +18,6 @@ package com.android.settings;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.Fragment;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
@@ -29,9 +28,11 @@ import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import com.android.internal.logging.MetricsProto;
import com.android.internal.widget.LockPatternUtils;
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
public class OwnerInfoSettings extends DialogFragment implements OnClickListener {
public class OwnerInfoSettings extends InstrumentedDialogFragment implements OnClickListener {
private static final String TAG_OWNER_INFO = "ownerInfo";
@@ -88,4 +89,9 @@ public class OwnerInfoSettings extends DialogFragment implements OnClickListener
dialog.setTargetFragment(parent, 0);
dialog.show(parent.getFragmentManager(), TAG_OWNER_INFO);
}
@Override
public int getMetricsCategory() {
return MetricsProto.MetricsEvent.DIALOG_OWNER_INFO_SETTINGS;
}
}