Remove unused constants 92/235192/2 accepted/tizen/unified/20200603.150026 submit/tizen/20200602.140526
authorDewal Agarwal <d1.agarwal@samsung.com>
Tue, 2 Jun 2020 11:40:59 +0000 (17:10 +0530)
committerDewal Agarwal <d1.agarwal@samsung.com>
Tue, 2 Jun 2020 12:33:32 +0000 (18:03 +0530)
Change-Id: If6fc2cf78bde4bcd41c011fb472efc17f35303eb
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
include/bd_history_item.h

index 6a3cc1a..36a6cea 100644 (file)
@@ -72,16 +72,6 @@ typedef struct _dump_data_s {
        history_tag_s* wakereason_tag;
 } dump_data_s;
 
-/*
-typedef struct _encoding_map_s {
-       int mask;
-       int shift;
-       //skip long name char name_full[];
-       char name_short[4];
-       char values_short[7][4];
-} encoding_map_s;
-*/
-
 #define HISTORY_SIZE_MAX 1000000 // Maximum Allowed History
 #define TIZEN_DUMP_VERSION "9"
 #define DUMP_DATA_TAG "h"
@@ -105,116 +95,37 @@ static const int ST1_BRIGHTNESS_SHIFT = 0;
 static const int ST1_BRIGHTNESS_MASK = (0x7 << 0);
 static const int ST1_PHONE_SIGNAL_STRENGTH_SHIFT = 3; // 3 bit left Shift from initial point
 static const int ST1_PHONE_SIGNAL_STRENGTH_MASK = (0x7 << 3);
-//static const int ST1_PHONE_STATE_SHIFT = 6;
-//static const int ST1_PHONE_STATE_MASK = (0x7 << 6);
-//static const int ST1_DATA_CONNECTION_SHIFT = 9;
-//static const int ST1_DATA_CONNECTION_MASK = (0x1f << 9);
 static const int ST1_CPU_RUNNING_FLAG = 1<<31;
 static const int ST1_WAKE_LOCK_FLAG = 1<<30;
 static const int ST1_GPS_ON_FLAG = 1<<29;
-static const int ST1_WIFI_FULL_LOCK_FLAG = 1<<28;
 static const int ST1_WIFI_SCAN_FLAG = 1<<27;
-static const int ST1_WIFI_RADIO_ACTIVE_FLAG = 1<<26;
 static const int ST1_MOBILE_RADIO_ACTIVE_FLAG = 1<<25;
 static const int ST1_RESERVED_0 = 1<<24;
-// These are on the lower bits used for the command;
-// if they change we need to write another int of data.
-static const int ST1_SENSOR_ON_FLAG = 1<<23;
-static const int ST1_AUDIO_ON_FLAG = 1<<22;
-static const int ST1_PHONE_SCANNING_FLAG = 1<<21;
-static const int ST1_SCREEN_ON_FLAG = 1<<20;       // consider moving to states2
-static const int ST1_BATTERY_PLUGGED_FLAG = 1<<19; // consider moving to states2
+static const int ST1_SCREEN_ON_FLAG = 1<<20;
+static const int ST1_BATTERY_PLUGGED_FLAG = 1<<19;
 static const int ST1_SCREEN_DOZE_FLAG = 1 << 18;
 static const int ST1_EMPTY_SLOT = 1 << 17; //empty slot
-static const int ST1_WIFI_MULTICAST_ON_FLAG = 1<<16;
-
-/*
-static const int MOST_INTERESTING_ST1 =
-                       ST1_BATTERY_PLUGGED_FLAG | ST1_SCREEN_ON_FLAG | ST1_SCREEN_DOZE_FLAG;
-static const int SETTLE_TO_ZERO_ST1 = 0xffff0000 & ~MOST_INTERESTING_ST1;
-*/
 
 // Constants for State of Type 2
-//static const int ST2_WIFI_SUPPL_STATE_SHIFT = 0;
-//static const int ST2_WIFI_SUPPL_STATE_MASK = 0xf;
-//static const int ST2_WIFI_SIGNAL_STRENGTH_SHIFT = 4;
-//static const int ST2_WIFI_SIGNAL_STRENGTH_MASK = (0x7 << 4);
-//static const int ST2_GPS_SIGNAL_QUALITY_SHIFT = 7;
-//static const int ST2_GPS_SIGNAL_QUALITY_MASK = (0x1 << 7);
-static const int ST2_POWER_SAVE_FLAG = 1<<31;
-static const int ST2_VIDEO_ON_FLAG = 1<<30;
 static const int ST2_WIFI_RUNNING_FLAG = 1<<29;
 static const int ST2_WIFI_ON_FLAG = 1<<28;
-static const int ST2_FLASHLIGHT_FLAG = 1<<27;
-//static const int ST2_DEVICE_IDLE_SHIFT = 25;
-//static const int ST2_DEVICE_IDLE_MASK = (0x3 << 25);
 static const int ST2_CHARGING_FLAG = 1<<24;
-static const int ST2_PHONE_IN_CALL_FLAG = 1<<23;
 static const int ST2_BLUETOOTH_ON_FLAG = 1<<22;
-static const int ST2_CAMERA_FLAG = 1<<21;
 static const int ST2_BLUETOOTH_SCAN_FLAG = 1 << 20;
-static const int ST2_CELLULAR_HIGH_TX_POWER_FLAG = 1 << 19;
-static const int ST2_USB_DATA_LINK_FLAG = 1 << 18;
-
-/*
-static const int MOST_INTERESTING_ST2 =
-                       ST2_POWER_SAVE_FLAG | ST2_WIFI_ON_FLAG | ST2_DEVICE_IDLE_MASK
-                       | ST2_CHARGING_FLAG | ST2_PHONE_IN_CALL_FLAG | ST2_BLUETOOTH_ON_FLAG;
-static const int SETTLE_TO_ZERO_ST2 = 0xffff0000 & ~MOST_INTERESTING_ST2;
-*/
 
 // Constants for events
 static const int ET_FLAG_START = 0x8000;
 static const int ET_FLAG_FINISH = 0x4000;
 static const int ET_NONE = 0x0000;
-static const int ET_PROC = 0x0001;
 static const int ET_FOREGROUND = 0x0002;
-static const int ET_TOP = 0x0003;
-static const int ET_SYNC = 0x0004;
 static const int ET_WAKE_LOCK = 0x0005;
-static const int ET_JOB = 0x0006;
-static const int ET_USER_RUNNING = 0x0007;
-static const int ET_USER_FOREGROUND = 0x0008;
 static const int ET_CONNECTIVITY_CHANGED = 0x0009;
 static const int ET_ACTIVE = 0x000a;
-static const int ET_PACKAGE_INSTALLED = 0x000b;
-static const int ET_PACKAGE_UNINSTALLED = 0x000c;
-static const int ET_ALARM = 0x000d;
-static const int ET_COLLECT_EXTERNAL_STATS = 0x000e;
-static const int ET_PACKAGE_INACTIVE = 0x000f;
-static const int ET_PACKAGE_ACTIVE = 0x0010;
-static const int ET_TEMP_WHITELIST = 0x0011;
 static const int ET_SCREEN_WAKE_UP = 0x0012;
 static const int ET_WAKEUP_AP = 0x0013;
 static const int ET_LONG_WAKE_LOCK = 0x0014;
-static const int ET_COUNT = 0x0016;
-
-/*
-static const int ET_TYPE_MASK = ~(ET_FLAG_START|ET_FLAG_FINISH);
-static const int ET_PROC_START = ET_PROC | ET_FLAG_START;
-static const int ET_PROC_FINISH = ET_PROC | ET_FLAG_FINISH;
-static const int ET_FOREGROUND_START = ET_FOREGROUND | ET_FLAG_START;
-static const int ET_FOREGROUND_FINISH = ET_FOREGROUND | ET_FLAG_FINISH;
-static const int ET_TOP_START = ET_TOP | ET_FLAG_START;
-static const int ET_TOP_FINISH = ET_TOP | ET_FLAG_FINISH;
-static const int ET_SYNC_START = ET_SYNC | ET_FLAG_START;
-static const int ET_SYNC_FINISH = ET_SYNC | ET_FLAG_FINISH;
-static const int ET_WAKE_LOCK_START = ET_WAKE_LOCK | ET_FLAG_START;
-static const int ET_WAKE_LOCK_FINISH = ET_WAKE_LOCK | ET_FLAG_FINISH;
-static const int ET_JOB_START = ET_JOB | ET_FLAG_START;
-static const int ET_JOB_FINISH = ET_JOB | ET_FLAG_FINISH;
-static const int ET_USER_RUNNING_START = ET_USER_RUNNING | ET_FLAG_START;
-static const int ET_USER_RUNNING_FINISH = ET_USER_RUNNING | ET_FLAG_FINISH;
-static const int ET_USER_FOREGROUND_START = ET_USER_FOREGROUND | ET_FLAG_START;
-static const int ET_USER_FOREGROUND_FINISH = ET_USER_FOREGROUND | ET_FLAG_FINISH;
-static const int ET_ALARM_START = ET_ALARM | ET_FLAG_START;
-static const int ET_ALARM_FINISH = ET_ALARM | ET_FLAG_FINISH;
-static const int ET_TEMP_WHITELIST_START = ET_TEMP_WHITELIST | ET_FLAG_START;
-static const int ET_TEMP_WHITELIST_FINISH = ET_TEMP_WHITELIST | ET_FLAG_FINISH;
-static const int ET_LONG_WAKE_LOCK_START = ET_LONG_WAKE_LOCK | ET_FLAG_START;
-static const int ET_LONG_WAKE_LOCK_FINISH = ET_LONG_WAKE_LOCK | ET_FLAG_FINISH;
-*/
 
+// Constants for Usage Command
 static const int USAGE_BLUETOOTH = 1 << 0;
 static const int USAGE_WIFI = 1 << 1;