Searched refs:mServiceContext (Results 1 – 3 of 3) sorted by relevance
108 private BroadcastInterceptingContext mServiceContext; field in NetworkStatsServiceTest125 mServiceContext = new BroadcastInterceptingContext(getContext()); in setUp()138 mServiceContext, mNetManager, mAlarmManager, mTime, mStatsDir, mSettings); in setUp()168 mServiceContext = null; in tearDown()194 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testNetworkStatsWifi()210 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testNetworkStatsWifi()227 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testNetworkStatsWifi()248 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testStatsRebootPersist()274 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testStatsRebootPersist()289 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN)); in testStatsRebootPersist()[all …]
111 private BroadcastInterceptingContext mServiceContext; field in NetworkPolicyManagerServiceTest151 mServiceContext = new BroadcastInterceptingContext(getContext()) { in setUp()196 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, mPowerManager, in setUp()238 mServiceContext = null; in tearDown()258 final Future<Intent> backgroundChanged = mServiceContext.nextBroadcastIntent( in testPolicyChangeTriggersBroadcast()339 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in testScreenChangesRules()349 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_ON)); in testScreenChangesRules()600 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testNetworkPolicyAppliedCycleLastMonth()650 mServiceContext.sendBroadcast(intent); in testUidRemovedPolicyCleared()711 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testOverWarningLimitNotification()
81 private BroadcastInterceptingContext mServiceContext; field in ConnectivityServiceTest