DeviceUtilStatsMonitor.UtilizationDesc

public static class DeviceUtilStatsMonitor.UtilizationDesc
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.DeviceUtilStatsMonitor.UtilizationDesc


Container for utilization stats.

Summary

Fields

final Map<String, Integer> mDeviceUtil

final int mTotalUtil

Public constructors

DeviceUtilStatsMonitor.UtilizationDesc(int totalUtil, Map<String, Integer> deviceUtil)

Public methods

int getTotalUtil()

Return the total utilization for all devices in TF process, measured as total allocation time for all devices vs total available time.

Integer getUtilForDevice(String serial)

Helper method to return percent utilization for a device.

Fields

mDeviceUtil

Map<String, Integer> mDeviceUtil

mTotalUtil

int mTotalUtil

Public constructors

DeviceUtilStatsMonitor.UtilizationDesc

DeviceUtilStatsMonitor.UtilizationDesc (int totalUtil, 
                Map<String, Integer> deviceUtil)

Parameters
totalUtil int

deviceUtil Map

Public methods

getTotalUtil

int getTotalUtil ()

Return the total utilization for all devices in TF process, measured as total allocation time for all devices vs total available time.

Returns
int percentage utilization

getUtilForDevice

Integer getUtilForDevice (String serial)

Helper method to return percent utilization for a device. Returns 0 if no utilization data exists for device

Parameters
serial String

Returns
Integer