Home
last modified time | relevance | path

Searched refs:mNetworkStatsManager (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoaderTest.java48 private NetworkStatsManager mNetworkStatsManager; field in NetworkCycleDataForUidLoaderTest
61 .thenReturn(mNetworkStatsManager); in setUp()
81 verify(mNetworkStatsManager).queryDetailsForUid(mNetworkTemplate, start, end, uid); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
82 verify(mNetworkStatsManager).queryDetailsForUidTagState( in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
96 verify(mNetworkStatsManager, never()).queryDetailsForUidTagState( in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
114 verify(mNetworkStatsManager).queryDetailsForUid(mNetworkTemplate, start, end, 1); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
115 verify(mNetworkStatsManager).queryDetailsForUid(mNetworkTemplate, start, end, 2); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
116 verify(mNetworkStatsManager).queryDetailsForUid(mNetworkTemplate, start, end, 3); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
DDataUsageControllerTest.java63 private NetworkStatsManager mNetworkStatsManager; field in DataUsageControllerTest
81 when(mContext.getSystemService(NetworkStatsManager.class)).thenReturn(mNetworkStatsManager); in setUp()
99 verify(mNetworkStatsManager).querySummaryForDevice(eq(mWifiNetworkTemplate), in getHistoricalUsageLevel_shouldQuerySummaryForDevice()
105 when(mNetworkStatsManager.querySummaryForDevice(eq(mWifiNetworkTemplate), in getHistoricalUsageLevel_noUsageData_shouldReturn0()
119 when(mNetworkStatsManager.querySummaryForDevice(eq(mWifiNetworkTemplate), in getHistoricalUsageLevel_hasUsageData_shouldReturnTotalUsage()
135 when(mNetworkStatsManager.querySummaryForDevice(eq(mNetworkTemplate), eq(0L)/* startTime */, in getDataUsageInfo_hasUsageData_shouldReturnCorrectUsageForExplicitSubId()
145 when(mNetworkStatsManager.querySummaryForDevice(eq(mNetworkTemplate2), in getDataUsageInfo_hasUsageData_shouldReturnCorrectUsageForExplicitSubId()
DNetworkCycleChartDataLoaderTest.java41 private NetworkStatsManager mNetworkStatsManager; field in NetworkCycleChartDataLoaderTest
55 .thenReturn(mNetworkStatsManager); in setUp()
71 verify(mNetworkStatsManager).querySummaryForDevice(mNetworkTemplate, start, end); in recordUsage_shouldQueryNetworkSummaryForDevice()
DNetworkCycleDataLoaderTest.java57 private NetworkStatsManager mNetworkStatsManager; field in NetworkCycleDataLoaderTest
75 .thenReturn(mNetworkStatsManager); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkStatsSummaryLoader.java34 private final NetworkStatsManager mNetworkStatsManager; field in NetworkStatsSummaryLoader
44 mNetworkStatsManager = (NetworkStatsManager) in NetworkStatsSummaryLoader()
57 return mNetworkStatsManager.querySummary(mNetworkTemplate, mStart, mEnd); in loadInBackground()
DNetworkCycleChartDataLoader.java46 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice( in recordUsage()
83 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice(
DNetworkCycleDataForUidLoader.java56 final NetworkStats stats = mNetworkStatsManager.queryDetailsForUid( in recordUsage()
102 final NetworkStats stats = mNetworkStatsManager.queryDetailsForUidTagState(
DDataUsageController.java65 private final NetworkStatsManager mNetworkStatsManager; field in DataUsageController
78 mNetworkStatsManager = context.getSystemService(NetworkStatsManager.class); in DataUsageController()
172 final Bucket bucket = mNetworkStatsManager.querySummaryForDevice(template, start, end); in getUsageLevel()
DNetworkCycleDataLoader.java51 protected final NetworkStatsManager mNetworkStatsManager; field in NetworkCycleDataLoader
62 mNetworkStatsManager = (NetworkStatsManager) in NetworkCycleDataLoader()