Home
last modified time | relevance | path

Searched refs:mPolicyListener (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDataSaverControllerImpl.java48 mPolicyManager.registerListener(mPolicyListener); in addCallback()
58 mPolicyManager.unregisterListener(mPolicyListener); in removeCallback()
70 mPolicyListener.onRestrictBackgroundChanged(enabled); in setDataSaverEnabled()
75 private final INetworkPolicyListener mPolicyListener = new NetworkPolicyManager.Listener() { field in DataSaverControllerImpl
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java248 private NetworkPolicyListenerAnswer mPolicyListener; field in NetworkPolicyManagerServiceTest
376 mPolicyListener = new NetworkPolicyListenerAnswer(mService); in callSystemReady()
500 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in addRestrictBackgroundWhitelist()
506 mPolicyListener.waitAndVerify() in addRestrictBackgroundWhitelist()
620 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in removeRestrictBackgroundWhitelist()
626 mPolicyListener.waitAndVerify().onUidPoliciesChanged(APP_ID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist()
657 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in addRestrictBackgroundBlacklist()
662 mPolicyListener.waitAndVerify() in addRestrictBackgroundBlacklist()
695 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in removeRestrictBackgroundBlacklist()
700 mPolicyListener.waitAndVerify() in removeRestrictBackgroundBlacklist()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java113 private NetworkPolicyManager.Listener mPolicyListener; field in MultipathPolicyTracker
501 mPolicyListener = new NetworkPolicyManager.Listener() { in registerNetworkPolicyListener()
508 mNPM.registerListener(mPolicyListener); in registerNetworkPolicyListener()
512 mNPM.unregisterListener(mPolicyListener); in unregisterNetworkPolicyListener()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java336 private INetworkPolicyListener mPolicyListener; field in ConnectivityServiceTest
1149 mPolicyListener.onUidRulesChanged(Process.myUid(), uidRules); in setUidRulesChanged()
1153 mPolicyListener.onRestrictBackgroundChanged(restrictBackground); in setRestrictBackgroundChanged()
1245 mPolicyListener = policyListenerCaptor.getValue(); in setUp()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1023 mPolicyManager.registerListener(mPolicyListener); in ConnectivityService()
1984 private final INetworkPolicyListener mPolicyListener = new NetworkPolicyManager.Listener() { field in ConnectivityService