diff options
author | Chris Wren <cwren@android.com> | 2015-03-20 10:29:14 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-03-27 13:39:07 -0400 |
commit | 8a963babe2e36b7a41f77b8d2598c97658196e58 (patch) | |
tree | fbd380b9b8f077915a2fc805dbf30c145d36db15 /src/com/android/settings/users | |
parent | 096abbf56a30775dbccba237719e9b9b84ec9050 (diff) | |
download | packages_apps_Settings-8a963babe2e36b7a41f77b8d2598c97658196e58.zip packages_apps_Settings-8a963babe2e36b7a41f77b8d2598c97658196e58.tar.gz packages_apps_Settings-8a963babe2e36b7a41f77b8d2598c97658196e58.tar.bz2 |
log visibility of views
Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
Diffstat (limited to 'src/com/android/settings/users')
-rw-r--r-- | src/com/android/settings/users/AppRestrictionsFragment.java | 6 | ||||
-rw-r--r-- | src/com/android/settings/users/UserDetailsSettings.java | 6 | ||||
-rw-r--r-- | src/com/android/settings/users/UserSettings.java | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java index 74ee6d9..e09d650 100644 --- a/src/com/android/settings/users/AppRestrictionsFragment.java +++ b/src/com/android/settings/users/AppRestrictionsFragment.java @@ -56,6 +56,7 @@ import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.Switch; +import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.Utils; @@ -258,6 +259,11 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen } @Override + protected int getMetricsCategory() { + return MetricsLogger.USERS_APP_RESTRICTIONS; + } + + @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt(EXTRA_USER_ID, mUser.getIdentifier()); diff --git a/src/com/android/settings/users/UserDetailsSettings.java b/src/com/android/settings/users/UserDetailsSettings.java index d738dd6..90e5a43 100644 --- a/src/com/android/settings/users/UserDetailsSettings.java +++ b/src/com/android/settings/users/UserDetailsSettings.java @@ -26,6 +26,7 @@ import android.os.UserManager; import android.preference.Preference; import android.preference.SwitchPreference; +import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; @@ -65,6 +66,11 @@ public class UserDetailsSettings extends SettingsPreferenceFragment private Bundle mDefaultGuestRestrictions; @Override + protected int getMetricsCategory() { + return MetricsLogger.USER_DETAILS; + } + + @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java index ff06b69..6d0cc5a 100644 --- a/src/com/android/settings/users/UserSettings.java +++ b/src/com/android/settings/users/UserSettings.java @@ -56,6 +56,7 @@ import android.view.View; import android.view.View.OnClickListener; import android.widget.SimpleAdapter; +import com.android.internal.logging.MetricsLogger; import com.android.internal.widget.LockPatternUtils; import com.android.settings.ChooseLockGeneric; import com.android.settings.OwnerInfoSettings; @@ -179,6 +180,11 @@ public class UserSettings extends SettingsPreferenceFragment }; @Override + protected int getMetricsCategory() { + return MetricsLogger.USER; + } + + @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); |