cmsdk: Introduce internal MetricsLogger class.

Contains contants utilized throughout Settings/Systemui
  to log usage of specific fragments, settings, or panels.

  An extension of Androids MetricsLogger.

Change-Id: I44eff06f87313fca8c2ecf78b7bdea9055956e3c
This commit is contained in:
Adnan Begovic 2016-01-11 13:59:40 -08:00 committed by Gerrit Code Review
parent cc517bfc9b
commit c7e69dede8
1 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,66 @@
/**
* Copyright (c) 2016, The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cyanogenmod.internal.logging;
import com.android.internal.logging.MetricsLogger;
/**
* Serves as a central location for logging constants that is android release agnostic.
*/
public class CMMetricsLogger extends MetricsLogger {
private static final int BASE = -Integer.MAX_VALUE;
//Since we never want to collide, lets start at the back and move inward
public static final int DONT_LOG = BASE + 1;
public static final int ANONYMOUS_STATS = BASE + 2;
public static final int APP_GROUP_CONFIG = BASE + 3;
public static final int APP_GROUP_LIST = BASE + 4;
public static final int BATTERY_LIGHT_SETTINGS = BASE + 5;
public static final int BUTTON_SETTINGS = BASE + 6;
public static final int CHOOSE_LOCK_PATTERN_SIZE = BASE + 7;
public static final int DISPLAY_ROTATION = BASE + 8;
public static final int LIVE_DISPLAY = BASE + 9;
public static final int NOTIFICATION_LIGHT_SETTINGS = BASE + 10;
public static final int NOTIFICATION_MANAGER_SETTINGS = BASE + 11;
public static final int POWER_MENU_ACTIONS = BASE + 12;
public static final int PREVIEW_DATA = BASE + 13;
public static final int PRIVACY_GUARD_PREFS = BASE + 14;
public static final int PRIVACY_SETTINGS = BASE + 15;
public static final int PROFILE_GROUP_CONFIG = BASE + 16;
public static final int PROFILES_SETTINGS = BASE + 17;
public static final int SETUP_ACTIONS_FRAGMENT = BASE + 18;
public static final int SETUP_TRIGGERS_FRAGMENT = BASE + 19;
public static final int STYLUS_GESTURES = BASE + 20;
public static final int TILE_ADB_OVER_NETWORK = BASE + 21;
public static final int TILE_AMBIENT_DISPLAY = BASE + 22;
public static final int TILE_COMPASS = BASE + 23;
public static final int TILE_CUSTOM_QS = BASE + 24;
public static final int TILE_CUSTOM_QS_DETAIL = BASE + 25;
public static final int TILE_EDIT = BASE + 26;
public static final int TILE_LIVE_DISPLAY = BASE + 27;
public static final int TILE_LOCKSCREEN_TOGGLE = BASE + 28;
public static final int TILE_NFC = BASE + 29;
public static final int TILE_PERF_PROFILE = BASE + 30;
public static final int TILE_PERF_PROFILE_DETAIL = BASE + 31;
public static final int TILE_PROFILES = BASE + 32;
public static final int TILE_PROFILES_DETAIL = BASE + 33;
public static final int TILE_SCREEN_TIME_OUT = BASE + 34;
public static final int TILE_SCREEN_TIME_OUT_DETAIL = BASE + 35;
public static final int TILE_SYNC = BASE + 36;
public static final int TILE_USB_TETHER = BASE + 37;
public static final int TILE_VOLUME = BASE + 38;
}