Home
last modified time | relevance | path

Searched refs:mDataSaverEnabledMap (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp35 mDataSaverEnabledMap.init(DATA_SAVER_ENABLED_MAP_PATH); in Firewall()
130 if (!mDataSaverEnabledMap.isValid()) { in getDataSaverSetting()
134 auto dataSaverSetting = mDataSaverEnabledMap.readValue(DATA_SAVER_ENABLED_KEY); in getDataSaverSetting()
143 if (!mDataSaverEnabledMap.isValid()) { in setDataSaver()
147 auto res = mDataSaverEnabledMap.writeValue(DATA_SAVER_ENABLED_KEY, enabled, BPF_EXIST); in setDataSaver()
Dfirewall.h42 BpfMap<uint32_t, bool> mDataSaverEnabledMap GUARDED_BY(mMutex);
/packages/modules/Connectivity/framework/src/android/net/
DNetworkStackBpfNetMaps.java57 private final IBpfMap<S32, U8> mDataSaverEnabledMap; field in NetworkStackBpfNetMaps
86 mDataSaverEnabledMap = mDeps.getDataSaverEnabledMap(); in NetworkStackBpfNetMaps()
168 mConfigurationMap, mUidOwnerMap, mDataSaverEnabledMap); in isUidNetworkingBlocked()
185 return BpfNetMapsUtils.getDataSaverEnabled(mDataSaverEnabledMap); in getDataSaverEnabled()
/packages/modules/Connectivity/DnsResolver/
DDnsBpfHelper.cpp43 RETURN_IF_RESULT_NOT_OK(mDataSaverEnabledMap.init(DATA_SAVER_ENABLED_MAP_PATH)); in init()
78 auto dataSaverSetting = mDataSaverEnabledMap.readValue(DATA_SAVER_ENABLED_KEY); in isUidNetworkingBlocked()
DDnsBpfHelperTest.cpp53 mDnsBpfHelper.mDataSaverEnabledMap = mFakeDataSaverEnabledMap; in SetUp()
54 ASSERT_VALID(mDnsBpfHelper.mDataSaverEnabledMap); in SetUp()
60 mDnsBpfHelper.mDataSaverEnabledMap.reset(); in ResetAllMaps()
DDnsBpfHelper.h39 android::bpf::BpfMapRO<uint32_t, bool> mDataSaverEnabledMap; variable
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java169 private final IBpfMap<S32, U8> mDataSaverEnabledMap = new TestBpfMap<>(S32.class, U8.class); field in BpfNetMapsTest
186 BpfNetMaps.setDataSaverEnabledMapForTest(mDataSaverEnabledMap); in setUp()
187 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(DATA_SAVER_DISABLED)); in setUp()
1069 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(value)); in doTestDumpDataSaverConfig()
1126 mDataSaverEnabledMap.getValue(DATA_SAVER_ENABLED_KEY).val); in testSetDataSaverEnabled()
1188 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(dataSaverStatus)); in doTestGetUidNetworkingBlockedReasons()
1262 mUidOwnerMap, mDataSaverEnabledMap)); in testIsUidNetworkingBlockedForCoreUids()
1275 mUidOwnerMap, mDataSaverEnabledMap)); in testIsUidNetworkingBlockedForCoreUids()
1288 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(dataSaver)); in doTestIsUidRestrictedOnMeteredNetworks()