/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataForUidLoaderTest.java | 48 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()
|
D | DataUsageControllerTest.java | 63 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()
|
D | NetworkCycleChartDataLoaderTest.java | 41 private NetworkStatsManager mNetworkStatsManager; field in NetworkCycleChartDataLoaderTest 55 .thenReturn(mNetworkStatsManager); in setUp() 71 verify(mNetworkStatsManager).querySummaryForDevice(mNetworkTemplate, start, end); in recordUsage_shouldQueryNetworkSummaryForDevice()
|
D | NetworkCycleDataLoaderTest.java | 57 private NetworkStatsManager mNetworkStatsManager; field in NetworkCycleDataLoaderTest 75 .thenReturn(mNetworkStatsManager); in setUp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkStatsSummaryLoader.java | 34 private final NetworkStatsManager mNetworkStatsManager; field in NetworkStatsSummaryLoader 44 mNetworkStatsManager = (NetworkStatsManager) in NetworkStatsSummaryLoader() 57 return mNetworkStatsManager.querySummary(mNetworkTemplate, mStart, mEnd); in loadInBackground()
|
D | NetworkCycleChartDataLoader.java | 46 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice( in recordUsage() 83 final NetworkStats.Bucket bucket = mNetworkStatsManager.querySummaryForDevice(
|
D | NetworkCycleDataForUidLoader.java | 56 final NetworkStats stats = mNetworkStatsManager.queryDetailsForUid( in recordUsage() 102 final NetworkStats stats = mNetworkStatsManager.queryDetailsForUidTagState(
|
D | DataUsageController.java | 65 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()
|
D | NetworkCycleDataLoader.java | 51 protected final NetworkStatsManager mNetworkStatsManager; field in NetworkCycleDataLoader 62 mNetworkStatsManager = (NetworkStatsManager) in NetworkCycleDataLoader()
|