diff options
author | Adnan Begovic <adnan@cyngn.com> | 2016-01-11 13:58:26 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-11 16:56:27 -0800 |
commit | 35a185c53180b4e4996de3c7b49baf6a327cb647 (patch) | |
tree | 74d0ee909eb56fc57ea44330e16e0f2903ac6880 /src/com/android/settings/profiles | |
parent | 1b1716ed40d623e88102b41c93f96cbe7dd5c70d (diff) | |
download | packages_apps_Settings-35a185c53180b4e4996de3c7b49baf6a327cb647.zip packages_apps_Settings-35a185c53180b4e4996de3c7b49baf6a327cb647.tar.gz packages_apps_Settings-35a185c53180b4e4996de3c7b49baf6a327cb647.tar.bz2 |
Settings: Add CMMetricsLogger constants to proper pages.
Change-Id: I6e1d0ec2be4c6da51267c163575472827c9c50cd
Diffstat (limited to 'src/com/android/settings/profiles')
6 files changed, 13 insertions, 12 deletions
diff --git a/src/com/android/settings/profiles/AppGroupConfig.java b/src/com/android/settings/profiles/AppGroupConfig.java index 95b36a7..0832151 100644 --- a/src/com/android/settings/profiles/AppGroupConfig.java +++ b/src/com/android/settings/profiles/AppGroupConfig.java @@ -44,12 +44,13 @@ import android.widget.Toast; import cyanogenmod.app.ProfileManager; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.cyanogenmod.PackageListAdapter; import com.android.settings.cyanogenmod.PackageListAdapter.PackageItem; +import org.cyanogenmod.internal.logging.CMMetricsLogger; + public class AppGroupConfig extends SettingsPreferenceFragment implements Preference.OnPreferenceChangeListener { @@ -200,7 +201,7 @@ public class AppGroupConfig extends SettingsPreferenceFragment @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.APP_GROUP_CONFIG; } @Override diff --git a/src/com/android/settings/profiles/AppGroupList.java b/src/com/android/settings/profiles/AppGroupList.java index ba870ca..35d3eeb 100644 --- a/src/com/android/settings/profiles/AppGroupList.java +++ b/src/com/android/settings/profiles/AppGroupList.java @@ -36,10 +36,10 @@ import android.widget.Toast; import cyanogenmod.app.ProfileManager; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import org.cyanogenmod.internal.util.ScreenType; public class AppGroupList extends SettingsPreferenceFragment { @@ -63,7 +63,7 @@ public class AppGroupList extends SettingsPreferenceFragment { @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.APP_GROUP_LIST; } @Override diff --git a/src/com/android/settings/profiles/ProfileGroupConfig.java b/src/com/android/settings/profiles/ProfileGroupConfig.java index 7467af5..c960fb5 100644 --- a/src/com/android/settings/profiles/ProfileGroupConfig.java +++ b/src/com/android/settings/profiles/ProfileGroupConfig.java @@ -29,9 +29,9 @@ import cyanogenmod.app.ProfileGroup; import cyanogenmod.app.ProfileGroup.Mode; import cyanogenmod.app.ProfileManager; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class ProfileGroupConfig extends SettingsPreferenceFragment implements OnPreferenceChangeListener { @@ -91,7 +91,7 @@ public class ProfileGroupConfig extends SettingsPreferenceFragment implements @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.PROFILE_GROUP_CONFIG; } private void updateState() { diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java index 4bee66d..e2dcf04 100644 --- a/src/com/android/settings/profiles/ProfilesSettings.java +++ b/src/com/android/settings/profiles/ProfilesSettings.java @@ -43,11 +43,11 @@ import cyanogenmod.app.Profile; import cyanogenmod.app.ProfileManager; import cyanogenmod.providers.CMSettings; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsActivity; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.cyanogenmod.CMBaseSystemSettingSwitchBar; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import java.util.UUID; @@ -147,7 +147,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.PROFILES_SETTINGS; } @Override diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java index 602abf0..7764073 100644 --- a/src/com/android/settings/profiles/SetupActionsFragment.java +++ b/src/com/android/settings/profiles/SetupActionsFragment.java @@ -66,7 +66,6 @@ import cyanogenmod.profiles.LockSettings; import cyanogenmod.profiles.RingModeSettings; import cyanogenmod.profiles.StreamSettings; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsActivity; import com.android.settings.SubSettings; @@ -87,6 +86,7 @@ import com.android.settings.profiles.actions.item.RingModeItem; import com.android.settings.profiles.actions.item.TriggerItem; import com.android.settings.profiles.actions.item.VolumeStreamItem; import com.android.settings.Utils; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import java.util.ArrayList; import java.util.List; @@ -1125,6 +1125,6 @@ public class SetupActionsFragment extends SettingsPreferenceFragment @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.SETUP_ACTIONS_FRAGMENT; } } diff --git a/src/com/android/settings/profiles/SetupTriggersFragment.java b/src/com/android/settings/profiles/SetupTriggersFragment.java index 5d74ac5..ffb6146 100644 --- a/src/com/android/settings/profiles/SetupTriggersFragment.java +++ b/src/com/android/settings/profiles/SetupTriggersFragment.java @@ -32,11 +32,11 @@ import android.widget.Button; import cyanogenmod.app.Profile; import cyanogenmod.app.ProfileManager; -import com.android.internal.logging.MetricsLogger; import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.SubSettings; import com.android.settings.profiles.triggers.NfcTriggerFragment; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class SetupTriggersFragment extends SettingsPreferenceFragment { @@ -78,7 +78,7 @@ public class SetupTriggersFragment extends SettingsPreferenceFragment { @Override protected int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.SETUP_TRIGGERS_FRAGMENT; } @Override |