mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge branch 'release-3.0.x' of https://github.com/menakaj/carbon-device-mgt-plugins into release-3.0.x
This commit is contained in:
commit
1598748a5b
@ -75,8 +75,8 @@ public class NetworkDataReader extends AsyncTask<Void, Void, Long> {
|
|||||||
*/
|
*/
|
||||||
private final Runnable mRunnable = new Runnable() {
|
private final Runnable mRunnable = new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
long rxBytes = TrafficStats.getTotalRxBytes()- mStartRX;
|
long rxBytes = TrafficStats.getTotalRxBytes() - mStartRX;
|
||||||
long txBytes = TrafficStats.getTotalTxBytes()- mStartTX;
|
long txBytes = TrafficStats.getTotalTxBytes() - mStartTX;
|
||||||
Log.i("Usage: ", String.valueOf(rxBytes) + " " + String.valueOf(txBytes) + " " + System.currentTimeMillis());
|
Log.i("Usage: ", String.valueOf(rxBytes) + " " + String.valueOf(txBytes) + " " + System.currentTimeMillis());
|
||||||
networkData.setType(connectionType);
|
networkData.setType(connectionType);
|
||||||
networkData.setTimeStamp(new Date().getTime());
|
networkData.setTimeStamp(new Date().getTime());
|
||||||
@ -94,3 +94,4 @@ public class NetworkDataReader extends AsyncTask<Void, Void, Long> {
|
|||||||
NetworkInfo networkInfo = manager.getNetworkInfo(type);
|
NetworkInfo networkInfo = manager.getNetworkInfo(type);
|
||||||
return networkInfo.isConnected();
|
return networkInfo.isConnected();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user