Add the Rx / Tx time in BT power model 01/229101/3 accepted/tizen/5.5/unified/20200331.180227 submit/tizen_5.5/20200330.044545
authorDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 29 Mar 2020 22:31:15 +0000 (07:31 +0900)
committerPyun DoHyun <dh79.pyun@samsung.com>
Mon, 30 Mar 2020 03:46:59 +0000 (03:46 +0000)
Change-Id: Ib7d02f87505ed05ca095c9e11ef72b6aeb4ce2ca
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
plugin/bm-bt-plugin/include/bm_bt_plugin.h
plugin/bm-bt-plugin/src/bm_bt_plugin.c
plugin/common/include/bm_plugin_interface.h

index 7df9a2f0664f3be34aa555d914818dc258b52c53..f4077d363cfe6c4c7b70802b009a3ef6e419574f 100644 (file)
@@ -58,6 +58,8 @@ typedef struct {
 typedef struct {
        uint scanTime;                  /* Total time spent by the resource in (scan) mode during the session */
        uint connectedTime;             /* Total time spent by the resource in (connected) mode during the session */
+       uint rxTime;                    /* Total time spent by the resource in (RX) mode during the session */
+       uint txTime;                    /* Total time spent by the resource in (TX) mode during the session */
        time_t startTime;               /* start time of feature data collection session */
        time_t stopTime;                /* stop time of feature data collection session */
        GSList *atm_list;               /* application time map('app_time_map_st2') list for all active applications between start & stop */
index 7ca6761653103ac89b5c233d7dbe90a79375fc8c..9f9b7f31a66e5b186ec1de799e2d5ed6af4deabd 100644 (file)
@@ -127,6 +127,8 @@ int get_feature_data(bm_data_h *handle, bm_plugin_data_type_e type)
        bluetooth_record->stopTime = battery_data.session_end_time;
        bluetooth_record->scanTime = battery_data.session_scan_time;
        bluetooth_record->connectedTime = battery_data.session_connected_time;
+       bluetooth_record->rxTime = battery_data.rx_time;
+       bluetooth_record->txTime = battery_data.tx_time;
 
        _I("BT usage data for battery monitor");
        _I("startTime: %ld", bluetooth_record->startTime);
index abbd83ed7f4d998ef2449aff2b3a11775fc4b7d7..b6d6b6578a8f1d472744e991abccd658e33b5fd3 100644 (file)
@@ -153,6 +153,8 @@ typedef struct {
 typedef struct {
        uint scanTime;                  /**< Total time spent by the resource in (scan) mode during the session */
        uint connectedTime;             /**< Total time spent by the resource in (connected) mode during the session */
+       uint rxTime;                    /**< Total time spent by the resource in (RX) mode during the session */
+       uint txTime;                    /**< Total time spent by the resource in (TX) mode during the session */
        time_t startTime;               /**< start time of feature data collection session */
        time_t stopTime;                /**< stop time of feature data collection session */
        GSList *atm_list;               /**< application time map('app_time_map_st2') list for all active applications between start & stop */