diff options
author | Adnan Begovic <adnan@cyngn.com> | 2016-01-11 13:59:12 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-11 16:56:49 -0800 |
commit | f20ea48c6eee4bf011c441a53502f05878b43a52 (patch) | |
tree | 6e8d6448101b322a920001cdb8b81189998e2bc0 /packages | |
parent | dd2be59619c7b807a2ebd6ae951f45e73c9d0687 (diff) | |
download | frameworks_base-f20ea48c6eee4bf011c441a53502f05878b43a52.zip frameworks_base-f20ea48c6eee4bf011c441a53502f05878b43a52.tar.gz frameworks_base-f20ea48c6eee4bf011c441a53502f05878b43a52.tar.bz2 |
SystemUi: Nuke DONT_TRACK label, and introduce CMMetricsLogger constants.
Change-Id: I650f1be28f2cf75f0ac15056aa216b5b5ed33a86
Diffstat (limited to 'packages')
16 files changed, 36 insertions, 34 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java index 935590b..df45120 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java @@ -68,6 +68,7 @@ import com.android.systemui.tuner.QsTuner; import com.viewpagerindicator.CirclePageIndicator; import cyanogenmod.app.StatusBarPanelCustomTile; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import org.cyanogenmod.internal.util.QSUtils; import java.util.ArrayList; @@ -2007,7 +2008,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.DONT_LOG; } public void showBroadcastTileDialog() { diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java index a313e1e..d741330 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/AdbOverNetworkTile.java @@ -26,13 +26,13 @@ import android.net.wifi.WifiManager; import android.os.UserHandle; import android.provider.Settings; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; import java.net.InetAddress; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class AdbOverNetworkTile extends QSTile<QSTile.BooleanState> { @@ -85,7 +85,7 @@ public class AdbOverNetworkTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_ADB_OVER_NETWORK; } private boolean isAdbEnabled() { diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/AmbientDisplayTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/AmbientDisplayTile.java index 3ea9749..cc08d02 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/AmbientDisplayTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/AmbientDisplayTile.java @@ -21,10 +21,10 @@ import android.content.Intent; import android.provider.Settings; import android.provider.Settings.Secure; -import com.android.internal.logging.MetricsLogger; import com.android.systemui.qs.SecureSetting; import com.android.systemui.qs.QSTile; import com.android.systemui.R; +import org.cyanogenmod.internal.logging.CMMetricsLogger; /** Quick settings tile: Ambient Display **/ public class AmbientDisplayTile extends QSTile<QSTile.BooleanState> { @@ -86,7 +86,7 @@ public class AmbientDisplayTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_AMBIENT_DISPLAY; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/CompassTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/CompassTile.java index 1f1f7a2..f19e466 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/CompassTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/CompassTile.java @@ -23,10 +23,10 @@ import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.widget.ImageView; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; import com.android.systemui.qs.QSTileView; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class CompassTile extends QSTile<QSTile.BooleanState> implements SensorEventListener { private final static float ALPHA = 0.97f; @@ -121,7 +121,7 @@ public class CompassTile extends QSTile<QSTile.BooleanState> implements SensorEv @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_COMPASS; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/CustomQSTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/CustomQSTile.java index adac18c..f0c4f52 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/CustomQSTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/CustomQSTile.java @@ -47,6 +47,7 @@ import cyanogenmod.app.StatusBarPanelCustomTile; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import java.util.Arrays; @@ -150,7 +151,7 @@ public class CustomQSTile extends QSTile<QSTile.State> { @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_CUSTOM_QS; } private boolean isDynamicTile() { @@ -195,7 +196,7 @@ public class CustomQSTile extends QSTile<QSTile.State> { @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_CUSTOM_QS_DETAIL; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/EditTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/EditTile.java index eaa5ff5..cbc906f 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/EditTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/EditTile.java @@ -16,9 +16,9 @@ package com.android.systemui.qs.tiles; -import com.android.internal.logging.MetricsLogger; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class EditTile extends QSTile<QSTile.BooleanState> { @@ -66,7 +66,7 @@ public class EditTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_EDIT; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java index 487bedb..b14934f 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java @@ -25,13 +25,13 @@ import android.os.Handler; import android.os.UserHandle; import android.provider.Settings; -import com.android.internal.logging.MetricsConstants; import com.android.internal.util.ArrayUtils; import com.android.systemui.R; import com.android.systemui.qs.QSTile; import cyanogenmod.hardware.CMHardwareManager; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.logging.CMMetricsLogger; /** Quick settings tile: LiveDisplay mode switcher **/ public class LiveDisplayTile extends QSTile<LiveDisplayTile.LiveDisplayState> { @@ -124,7 +124,7 @@ public class LiveDisplayTile extends QSTile<LiveDisplayTile.LiveDisplayState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_LIVE_DISPLAY; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/LockscreenToggleTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/LockscreenToggleTile.java index 3b439d1..f762d3e 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/LockscreenToggleTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/LockscreenToggleTile.java @@ -24,12 +24,12 @@ import android.content.IntentFilter; import android.content.SharedPreferences; import android.widget.Toast; -import com.android.internal.logging.MetricsLogger; import com.android.systemui.R; import com.android.systemui.SystemUIApplication; import com.android.systemui.keyguard.KeyguardViewMediator; import com.android.systemui.qs.QSTile; import com.android.systemui.statusbar.policy.KeyguardMonitor; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class LockscreenToggleTile extends QSTile<QSTile.BooleanState> implements KeyguardMonitor.Callback { @@ -125,7 +125,7 @@ public class LockscreenToggleTile extends QSTile<QSTile.BooleanState> @Override public int getMetricsCategory() { - return MetricsLogger.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_LOCKSCREEN_TOGGLE; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/NfcTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/NfcTile.java index 23df305..1bfbb8f 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/NfcTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/NfcTile.java @@ -22,9 +22,9 @@ import android.content.Intent; import android.content.IntentFilter; import android.nfc.NfcAdapter; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class NfcTile extends QSTile<QSTile.BooleanState> { private NfcAdapter mNfcAdapter; @@ -102,7 +102,7 @@ public class NfcTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_NFC; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/PerfProfileTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/PerfProfileTile.java index 0392efc..e6e6bb4 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/PerfProfileTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/PerfProfileTile.java @@ -29,11 +29,11 @@ import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSDetailItemsList; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import org.cyanogenmod.internal.util.QSUtils; import cyanogenmod.app.StatusBarPanelCustomTile; @@ -104,7 +104,7 @@ public class PerfProfileTile extends QSTile<PerfProfileTile.ProfileState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_PERF_PROFILE; } @Override @@ -212,7 +212,7 @@ public class PerfProfileTile extends QSTile<PerfProfileTile.ProfileState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_PERF_PROFILE_DETAIL; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/ProfilesTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/ProfilesTile.java index 42aa122..9053643 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/ProfilesTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/ProfilesTile.java @@ -32,7 +32,6 @@ import android.widget.ArrayAdapter; import android.widget.CheckedTextView; import android.widget.ListView; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSDetailItemsList; import com.android.systemui.qs.QSTile; @@ -42,6 +41,7 @@ import cyanogenmod.app.Profile; import cyanogenmod.app.ProfileManager; import cyanogenmod.app.StatusBarPanelCustomTile; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import java.util.ArrayList; import java.util.List; @@ -112,7 +112,7 @@ public class ProfilesTile extends QSTile<QSTile.State> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_PROFILES; } @Override @@ -182,7 +182,7 @@ public class ProfilesTile extends QSTile<QSTile.State> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_PROFILES_DETAIL; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/ScreenTimeoutTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/ScreenTimeoutTile.java index 2399f5d..81899d3 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/ScreenTimeoutTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/ScreenTimeoutTile.java @@ -31,11 +31,11 @@ import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSDetailItemsList; import com.android.systemui.qs.QSTile; import cyanogenmod.app.StatusBarPanelCustomTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; import java.util.ArrayList; import java.util.Arrays; @@ -247,7 +247,7 @@ public class ScreenTimeoutTile extends QSTile<ScreenTimeoutTile.TimeoutState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_SCREEN_TIME_OUT; } @Override @@ -309,7 +309,7 @@ public class ScreenTimeoutTile extends QSTile<ScreenTimeoutTile.TimeoutState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_SCREEN_TIME_OUT_DETAIL; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/SyncTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/SyncTile.java index c37e0d5..7ffebc7 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/SyncTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/SyncTile.java @@ -20,9 +20,9 @@ import android.content.ContentResolver; import android.content.Intent; import android.content.SyncStatusObserver; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; /** Quick settings tile: Sync **/ public class SyncTile extends QSTile<QSTile.BooleanState> { @@ -70,7 +70,7 @@ public class SyncTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_SYNC; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java index b3b013c..1274195 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java @@ -24,9 +24,9 @@ import android.hardware.usb.UsbManager; import android.provider.Settings; import android.net.ConnectivityManager; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; /** * USB Tether quick settings tile @@ -114,6 +114,6 @@ public class UsbTetherTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_USB_TETHER; } } diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/VolumeTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/VolumeTile.java index ff254f0..ae29f16 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/VolumeTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/VolumeTile.java @@ -21,9 +21,9 @@ import android.content.Intent; import android.media.AudioManager; import android.provider.Settings; -import com.android.internal.logging.MetricsConstants; import com.android.systemui.R; import com.android.systemui.qs.QSTile; +import org.cyanogenmod.internal.logging.CMMetricsLogger; public class VolumeTile extends QSTile<QSTile.BooleanState> { @@ -53,7 +53,7 @@ public class VolumeTile extends QSTile<QSTile.BooleanState> { @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.TILE_VOLUME; } @Override diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java index 56cbf68..f83fbea 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java @@ -55,7 +55,6 @@ import android.widget.Switch; import android.widget.TextView; import android.widget.Toast; -import com.android.internal.logging.MetricsConstants; import com.android.keyguard.KeyguardStatusView; import com.android.systemui.BatteryLevelTextView; import com.android.systemui.BatteryMeterView; @@ -77,6 +76,7 @@ import java.text.NumberFormat; import cyanogenmod.app.StatusBarPanelCustomTile; import cyanogenmod.providers.CMSettings; +import org.cyanogenmod.internal.logging.CMMetricsLogger; /** * The view to manage the header area in the expanded status bar. @@ -783,7 +783,7 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL @Override public int getMetricsCategory() { - return MetricsConstants.DONT_TRACK_ME_BRO; + return CMMetricsLogger.DONT_LOG; } }; } |