summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-01-11 13:58:26 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-11 16:56:27 -0800
commit35a185c53180b4e4996de3c7b49baf6a327cb647 (patch)
tree74d0ee909eb56fc57ea44330e16e0f2903ac6880 /src/com/android/settings
parent1b1716ed40d623e88102b41c93f96cbe7dd5c70d (diff)
downloadpackages_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')
-rw-r--r--src/com/android/settings/ButtonSettings.java5
-rw-r--r--src/com/android/settings/ChooseLockPatternSize.java3
-rw-r--r--src/com/android/settings/cmstats/AnonymousStats.java6
-rw-r--r--src/com/android/settings/cmstats/PreviewData.java4
-rw-r--r--src/com/android/settings/cyanogenmod/DisplayRotation.java4
-rw-r--r--src/com/android/settings/cyanogenmod/PowerMenuActions.java3
-rw-r--r--src/com/android/settings/cyanogenmod/PrivacySettings.java4
-rw-r--r--src/com/android/settings/inputmethod/StylusGestures.java4
-rw-r--r--src/com/android/settings/livedisplay/LiveDisplay.java4
-rw-r--r--src/com/android/settings/notification/NotificationManagerSettings.java3
-rw-r--r--src/com/android/settings/notificationlight/BatteryLightSettings.java6
-rw-r--r--src/com/android/settings/notificationlight/NotificationLightSettings.java4
-rw-r--r--src/com/android/settings/privacyguard/PrivacyGuardPrefs.java4
-rw-r--r--src/com/android/settings/profiles/AppGroupConfig.java5
-rw-r--r--src/com/android/settings/profiles/AppGroupList.java4
-rw-r--r--src/com/android/settings/profiles/ProfileGroupConfig.java4
-rw-r--r--src/com/android/settings/profiles/ProfilesSettings.java4
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java4
-rw-r--r--src/com/android/settings/profiles/SetupTriggersFragment.java4
19 files changed, 43 insertions, 36 deletions
diff --git a/src/com/android/settings/ButtonSettings.java b/src/com/android/settings/ButtonSettings.java
index 6a2d2ed..30ac090 100644
--- a/src/com/android/settings/ButtonSettings.java
+++ b/src/com/android/settings/ButtonSettings.java
@@ -42,8 +42,6 @@ import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.WindowManagerGlobal;
-import com.android.internal.logging.MetricsLogger;
-
import com.android.settings.cyanogenmod.ButtonBacklightBrightness;
import com.android.settings.R;
import com.android.settings.search.BaseSearchIndexProvider;
@@ -54,6 +52,7 @@ import com.android.settings.Utils;
import cyanogenmod.hardware.CMHardwareManager;
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
import org.cyanogenmod.internal.util.ScreenType;
import java.util.List;
@@ -564,7 +563,7 @@ public class ButtonSettings extends SettingsPreferenceFragment implements
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.BUTTON_SETTINGS;
}
@Override
diff --git a/src/com/android/settings/ChooseLockPatternSize.java b/src/com/android/settings/ChooseLockPatternSize.java
index 7202839..59b0644 100644
--- a/src/com/android/settings/ChooseLockPatternSize.java
+++ b/src/com/android/settings/ChooseLockPatternSize.java
@@ -24,6 +24,7 @@ import android.preference.PreferenceScreen;
import com.android.internal.logging.MetricsConstants;
import com.android.internal.widget.LockPatternUtils;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
public class ChooseLockPatternSize extends PreferenceActivity {
@@ -100,7 +101,7 @@ public class ChooseLockPatternSize extends PreferenceActivity {
@Override
protected int getMetricsCategory() {
- return MetricsConstants.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.CHOOSE_LOCK_PATTERN_SIZE;
}
}
}
diff --git a/src/com/android/settings/cmstats/AnonymousStats.java b/src/com/android/settings/cmstats/AnonymousStats.java
index 1534ccf..232a533 100644
--- a/src/com/android/settings/cmstats/AnonymousStats.java
+++ b/src/com/android/settings/cmstats/AnonymousStats.java
@@ -24,11 +24,13 @@ import android.os.UserHandle;
import android.preference.Preference;
import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
+
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
+
public class AnonymousStats extends SettingsPreferenceFragment {
private static final String PREF_FILE_NAME = "CMStats";
@@ -100,6 +102,6 @@ public class AnonymousStats extends SettingsPreferenceFragment {
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.ANONYMOUS_STATS;
}
}
diff --git a/src/com/android/settings/cmstats/PreviewData.java b/src/com/android/settings/cmstats/PreviewData.java
index 014f0e5..0adacad 100644
--- a/src/com/android/settings/cmstats/PreviewData.java
+++ b/src/com/android/settings/cmstats/PreviewData.java
@@ -21,9 +21,9 @@ import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceScreen;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
public class PreviewData extends SettingsPreferenceFragment {
private static final String UNIQUE_ID = "preview_id";
@@ -50,6 +50,6 @@ public class PreviewData extends SettingsPreferenceFragment {
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.PREVIEW_DATA;
}
}
diff --git a/src/com/android/settings/cyanogenmod/DisplayRotation.java b/src/com/android/settings/cyanogenmod/DisplayRotation.java
index 122e836..0ee5812 100644
--- a/src/com/android/settings/cyanogenmod/DisplayRotation.java
+++ b/src/com/android/settings/cyanogenmod/DisplayRotation.java
@@ -30,7 +30,7 @@ import com.android.internal.view.RotationPolicy;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
-import com.android.internal.logging.MetricsLogger;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
public class DisplayRotation extends SettingsPreferenceFragment {
private static final String TAG = "DisplayRotation";
@@ -110,7 +110,7 @@ public class DisplayRotation extends SettingsPreferenceFragment {
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.DISPLAY_ROTATION;
}
@Override
diff --git a/src/com/android/settings/cyanogenmod/PowerMenuActions.java b/src/com/android/settings/cyanogenmod/PowerMenuActions.java
index d73c82a..932d4e5 100644
--- a/src/com/android/settings/cyanogenmod/PowerMenuActions.java
+++ b/src/com/android/settings/cyanogenmod/PowerMenuActions.java
@@ -36,6 +36,7 @@ import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.internal.util.cm.PowerMenuConstants;
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
import static com.android.internal.util.cm.PowerMenuConstants.*;
@@ -109,7 +110,7 @@ public class PowerMenuActions extends SettingsPreferenceFragment {
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.POWER_MENU_ACTIONS;
}
@Override
diff --git a/src/com/android/settings/cyanogenmod/PrivacySettings.java b/src/com/android/settings/cyanogenmod/PrivacySettings.java
index c1fb2e6..f6a9c15 100644
--- a/src/com/android/settings/cyanogenmod/PrivacySettings.java
+++ b/src/com/android/settings/cyanogenmod/PrivacySettings.java
@@ -20,11 +20,11 @@ import android.content.pm.PackageManager;
import android.os.Bundle;
import android.preference.PreferenceScreen;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
import com.android.internal.telephony.util.BlacklistUtils;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
/**
* Privacy settings
@@ -62,7 +62,7 @@ public class PrivacySettings extends SettingsPreferenceFragment {
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.PRIVACY_SETTINGS;
}
@Override
diff --git a/src/com/android/settings/inputmethod/StylusGestures.java b/src/com/android/settings/inputmethod/StylusGestures.java
index 151a7ac..1ca6ad3 100644
--- a/src/com/android/settings/inputmethod/StylusGestures.java
+++ b/src/com/android/settings/inputmethod/StylusGestures.java
@@ -32,7 +32,7 @@ import android.provider.Settings;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
-import com.android.internal.logging.MetricsLogger;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
import java.util.Collections;
import java.util.List;
@@ -85,7 +85,7 @@ public class StylusGestures extends SettingsPreferenceFragment implements
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.STYLUS_GESTURES;
}
private ListPreference setupGesturePref(String key, String settingName) {
diff --git a/src/com/android/settings/livedisplay/LiveDisplay.java b/src/com/android/settings/livedisplay/LiveDisplay.java
index 53df2ba..7000cc8 100644
--- a/src/com/android/settings/livedisplay/LiveDisplay.java
+++ b/src/com/android/settings/livedisplay/LiveDisplay.java
@@ -42,7 +42,6 @@ import android.provider.Settings;
import android.util.Log;
import com.android.internal.util.ArrayUtils;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
@@ -52,6 +51,7 @@ import com.android.settings.search.Indexable;
import cyanogenmod.hardware.CMHardwareManager;
import cyanogenmod.hardware.DisplayMode;
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
import java.util.ArrayList;
import java.util.List;
@@ -219,7 +219,7 @@ public class LiveDisplay extends SettingsPreferenceFragment implements
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.LIVE_DISPLAY;
}
@Override
diff --git a/src/com/android/settings/notification/NotificationManagerSettings.java b/src/com/android/settings/notification/NotificationManagerSettings.java
index d25d186..cb7cfc3 100644
--- a/src/com/android/settings/notification/NotificationManagerSettings.java
+++ b/src/com/android/settings/notification/NotificationManagerSettings.java
@@ -31,6 +31,7 @@ import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settings.search.Indexable;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
import java.util.ArrayList;
import java.util.List;
@@ -131,6 +132,6 @@ public class NotificationManagerSettings extends SettingsPreferenceFragment
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.NOTIFICATION_MANAGER_SETTINGS;
}
}
diff --git a/src/com/android/settings/notificationlight/BatteryLightSettings.java b/src/com/android/settings/notificationlight/BatteryLightSettings.java
index 70f8ecd..80d7fa2 100644
--- a/src/com/android/settings/notificationlight/BatteryLightSettings.java
+++ b/src/com/android/settings/notificationlight/BatteryLightSettings.java
@@ -27,12 +27,14 @@ import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference;
+
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
+
public class BatteryLightSettings extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
private static final String TAG = "BatteryLightSettings";
@@ -54,7 +56,7 @@ public class BatteryLightSettings extends SettingsPreferenceFragment implements
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.BATTERY_LIGHT_SETTINGS;
}
@Override
diff --git a/src/com/android/settings/notificationlight/NotificationLightSettings.java b/src/com/android/settings/notificationlight/NotificationLightSettings.java
index 597ea3a..1a5af49 100644
--- a/src/com/android/settings/notificationlight/NotificationLightSettings.java
+++ b/src/com/android/settings/notificationlight/NotificationLightSettings.java
@@ -41,7 +41,6 @@ import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.cyanogenmod.PackageListAdapter;
@@ -55,6 +54,7 @@ import java.util.List;
import java.util.Map;
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
public class NotificationLightSettings extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener, AdapterView.OnItemLongClickListener {
@@ -164,7 +164,7 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.NOTIFICATION_LIGHT_SETTINGS;
}
@Override
diff --git a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java
index 828b43a..d2417a3 100644
--- a/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java
+++ b/src/com/android/settings/privacyguard/PrivacyGuardPrefs.java
@@ -26,11 +26,11 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
-import com.android.internal.logging.MetricsLogger;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
import cyanogenmod.providers.CMSettings;
+import org.cyanogenmod.internal.logging.CMMetricsLogger;
public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements
OnPreferenceChangeListener {
@@ -84,6 +84,6 @@ public class PrivacyGuardPrefs extends SettingsPreferenceFragment implements
@Override
protected int getMetricsCategory() {
- return MetricsLogger.DONT_TRACK_ME_BRO;
+ return CMMetricsLogger.PRIVACY_GUARD_PREFS;
}
}
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