Searched refs:mPolicyManager (Results 1 – 8 of 8) sorted by relevance
42 private final NetworkPolicyManager mPolicyManager; field in DataSaverBackend54 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()
34 services.mPolicyManager = (NetworkPolicyManager) context in onCreate()37 services.mPolicyEditor = new NetworkPolicyEditor(services.mPolicyManager); in onCreate()
28 NetworkPolicyManager mPolicyManager; field in TemplatePreference.NetworkServices
310 final int uidPolicy = services.mPolicyManager.getUidPolicy(uid); in getAppRestrictBackground()
554 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 …]
342 PolicyManager mPolicyManager; variable
255 PolicyManager& policyManager = mServer->mPolicyManager; in initializePolicyManager()272 auto policyMeta = mServer->mPolicyManager.getPowerPolicy(kSystemPolicyIdInitialOn); in applyInitialPolicy()
551 private final NetworkPolicyManager mPolicyManager; field in ConnectivityService1885 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)) {