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/notification | |
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/notification')
6 files changed, 36 insertions, 0 deletions
diff --git a/src/com/android/settings/notification/AppNotificationSettings.java b/src/com/android/settings/notification/AppNotificationSettings.java index 375b855..db957a7 100644 --- a/src/com/android/settings/notification/AppNotificationSettings.java +++ b/src/com/android/settings/notification/AppNotificationSettings.java @@ -35,6 +35,7 @@ import android.util.ArrayMap; import android.util.Log; import android.widget.Toast; +import com.android.internal.logging.MetricsLogger; import com.android.internal.widget.LockPatternUtils; import com.android.settings.AppHeader; import com.android.settings.R; @@ -87,6 +88,11 @@ public class AppNotificationSettings extends SettingsPreferenceFragment { } @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION_APP_NOTIFICATION; + } + + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity(); diff --git a/src/com/android/settings/notification/NotificationSettings.java b/src/com/android/settings/notification/NotificationSettings.java index 123f0ef..ce7ba14 100644 --- a/src/com/android/settings/notification/NotificationSettings.java +++ b/src/com/android/settings/notification/NotificationSettings.java @@ -48,6 +48,7 @@ import android.provider.SearchIndexableResource; import android.provider.Settings; import android.util.Log; +import com.android.internal.logging.MetricsLogger; import com.android.internal.widget.LockPatternUtils; import com.android.settings.DropDownPreference; import com.android.settings.R; @@ -105,6 +106,11 @@ public class NotificationSettings extends SettingsPreferenceFragment implements private int mRingerMode = -1; @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION; + } + + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity(); diff --git a/src/com/android/settings/notification/NotificationStation.java b/src/com/android/settings/notification/NotificationStation.java index 3f4d3df..a54e3dd 100644 --- a/src/com/android/settings/notification/NotificationStation.java +++ b/src/com/android/settings/notification/NotificationStation.java @@ -46,6 +46,7 @@ import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; +import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.Utils; @@ -137,6 +138,11 @@ public class NotificationStation extends SettingsPreferenceFragment { } @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION_STATION; + } + + @Override public void onActivityCreated(Bundle savedInstanceState) { logd("onActivityCreated(%s)", savedInstanceState); super.onActivityCreated(savedInstanceState); diff --git a/src/com/android/settings/notification/OtherSoundSettings.java b/src/com/android/settings/notification/OtherSoundSettings.java index 8528ec7..b765b35 100644 --- a/src/com/android/settings/notification/OtherSoundSettings.java +++ b/src/com/android/settings/notification/OtherSoundSettings.java @@ -33,6 +33,7 @@ import android.provider.Settings.Global; import android.provider.Settings.System; import android.telephony.TelephonyManager; +import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.Utils; @@ -166,6 +167,11 @@ public class OtherSoundSettings extends SettingsPreferenceFragment implements In private Context mContext; @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION_OTHER_SOUND; + } + + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); diff --git a/src/com/android/settings/notification/RedactionInterstitial.java b/src/com/android/settings/notification/RedactionInterstitial.java index 2bfad1a..a6df6ec 100644 --- a/src/com/android/settings/notification/RedactionInterstitial.java +++ b/src/com/android/settings/notification/RedactionInterstitial.java @@ -16,6 +16,7 @@ package com.android.settings.notification; +import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsActivity; import com.android.settings.SettingsPreferenceFragment; @@ -59,6 +60,11 @@ public class RedactionInterstitial extends SettingsActivity { private RadioButton mHideAllButton; @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION_REDACTION; + } + + @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.redaction_interstitial, container, false); diff --git a/src/com/android/settings/notification/ZenModeSettings.java b/src/com/android/settings/notification/ZenModeSettings.java index 441990b..c2e143a 100644 --- a/src/com/android/settings/notification/ZenModeSettings.java +++ b/src/com/android/settings/notification/ZenModeSettings.java @@ -50,6 +50,7 @@ import android.util.SparseArray; import android.widget.ScrollView; import android.widget.TimePicker; +import com.android.internal.logging.MetricsLogger; import com.android.settings.DropDownPreference; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; @@ -144,6 +145,11 @@ public class ZenModeSettings extends SettingsPreferenceFragment implements Index private AlertDialog mDialog; @Override + protected int getMetricsCategory() { + return MetricsLogger.NOTIFICATION_ZEN_MODE; + } + + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity(); |