Home
last modified time | relevance | path

Searched refs:mPolicyManager (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java42 private final NetworkPolicyManager mPolicyManager; field in DataSaverBackend
54 mPolicyManager = NetworkPolicyManager.from(mContext); in DataSaverBackend()
61 mPolicyManager.registerListener(mPolicyListener); in addListener()
69 mPolicyManager.unregisterListener(mPolicyListener); in remListener()
74 return mPolicyManager.getRestrictBackground(); in isDataSaverEnabled()
78 mPolicyManager.setRestrictBackground(enabled); in setDataSaverEnabled()
107 for (int uid : mPolicyManager.getUidsWithPolicy(POLICY_ALLOW_METERED_BACKGROUND)) { in loadAllowlist()
137 for (int uid : mPolicyManager.getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in loadDenylist()
DDataUsageBaseFragment.java34 services.mPolicyManager = (NetworkPolicyManager) context in onCreate()
37 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate()
DTemplatePreference.java28 NetworkPolicyManager mPolicyManager; field in TemplatePreference.NetworkServices
DAppDataUsage.java310 final int uidPolicy = services.mPolicyManager.getUidPolicy(uid); in getAppRestrictBackground()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.cpp554 mPolicyManager.definePowerPolicy(policyId, enabledComponents, disabledComponents); in notifyPowerPolicyDefinition()
572 const auto& ret = mPolicyManager.definePowerPolicyGroup(policyGroupId, powerPolicyPerState); in notifyPowerPolicyGroupDefinition()
619 mPolicyManager.getDefaultPowerPolicyForState(currentPolicyGroupId, apPowerState); in applyPowerPolicyPerPowerStateChangeAsync()
713 aidlReturn->registeredCustomComponents = std::move(mPolicyManager.getCustomComponents()); in notifyCarServiceReadyInternal()
715 aidlReturn->registeredPolicies = std::move(mPolicyManager.getRegisteredPolicies()); in notifyCarServiceReadyInternal()
765 if (const auto& ret = mPolicyManager.dump(fd, argsV); !ret.ok()) { in dump()
789 mPolicyManager.init(); in init()
919 auto policyMeta = mPolicyManager.getPowerPolicy(policyId); in applyPowerPolicy()
1013 auto policyMeta = mPolicyManager.getPowerPolicy(policyId); in applyPowerPolicyInternal()
1030 if (!mPolicyManager.isPowerPolicyGroupAvailable(groupId)) { in setPowerPolicyGroupInternal()
[all …]
DCarPowerPolicyServer.h342 PolicyManager mPolicyManager; variable
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp255 PolicyManager& policyManager = mServer->mPolicyManager; in initializePolicyManager()
272 auto policyMeta = mServer->mPolicyManager.getPowerPolicy(kSystemPolicyIdInitialOn); in applyInitialPolicy()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java551 private final NetworkPolicyManager mPolicyManager; field in ConnectivityService
1885 mPolicyManager = mContext.getSystemService(NetworkPolicyManager.class);
1918 mPolicyManager.registerNetworkPolicyCallback(null, mPolicyCallback);
2353 return mPolicyManager.isUidNetworkingBlocked(uid, metered);
3159 return mPolicyManager.getRestrictBackgroundStatus(callerUid);
7492 mPolicyManager.getRestrictBackgroundStatus(Process.SYSTEM_UID);
8232 if (mPolicyManager.isUidRestrictedOnMeteredNetworks(uid)) {