Searched refs:mPolicyManager (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DataSaverControllerImpl.java | 30 private final NetworkPolicyManager mPolicyManager; field in DataSaverControllerImpl 33 mPolicyManager = NetworkPolicyManager.from(context); in DataSaverControllerImpl() 48 mPolicyManager.registerListener(mPolicyListener); in addCallback() 58 mPolicyManager.unregisterListener(mPolicyListener); in removeCallback() 64 return mPolicyManager.getRestrictBackground(); in isDataSaverEnabled() 68 mPolicyManager.setRestrictBackground(enabled); in setDataSaverEnabled()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 53 private NetworkPolicyManager mPolicyManager; field in NetworkPolicyEditor 57 mPolicyManager = checkNotNull(policyManager); in NetworkPolicyEditor() 61 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in read() 96 mPolicyManager.setNetworkPolicies(policies); in write()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 64 private final NetworkPolicyManager mPolicyManager; field in DataUsageController 77 mPolicyManager = NetworkPolicyManager.from(mContext); in DataUsageController() 184 if (mPolicyManager == null || template == null) return null; in findNetworkPolicy() 185 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 176 private final INetworkPolicyManager mPolicyManager; field in Tethering 210 mPolicyManager = policyManager; in Tethering() 1824 mPolicyManager.onTetheringChanged(iface, state == IpServer.STATE_TETHERED);
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 146 @Mock private INetworkPolicyManager mPolicyManager; field in TetheringTest 378 return new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager, in makeTethering()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 318 private INetworkPolicyManager mPolicyManager; field in ConnectivityService 879 mPolicyManager = checkNotNull(policyManager, "missing INetworkPolicyManager"); in ConnectivityService() 894 mPolicyManager.registerListener(mPolicyListener); in ConnectivityService() 1054 return new Tethering(mContext, mNMS, mStatsService, mPolicyManager, in makeTethering()
|