Home
last modified time | relevance | path

Searched refs:DATA_SAVER_ENABLED_KEY (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStackBpfNetMapsTest.kt21 import android.net.BpfNetMapsConstants.DATA_SAVER_ENABLED_KEY
134 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(dataSaverValue)) in mockDataSaverEnabled()
275 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(DATA_SAVER_DISABLED)) in testGetDataSaverEnabled()
277 testDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, U8(DATA_SAVER_ENABLED)) in testGetDataSaverEnabled()
/packages/modules/Connectivity/tests/native/utilities/
Dfirewall.cpp134 auto dataSaverSetting = mDataSaverEnabledMap.readValue(DATA_SAVER_ENABLED_KEY); in getDataSaverSetting()
147 auto res = mDataSaverEnabledMap.writeValue(DATA_SAVER_ENABLED_KEY, enabled, BPF_EXIST); in setDataSaver()
/packages/modules/Connectivity/DnsResolver/
DDnsBpfHelper.cpp78 auto dataSaverSetting = mDataSaverEnabledMap.readValue(DATA_SAVER_ENABLED_KEY); in isUidNetworkingBlocked()
DDnsBpfHelperTest.cpp197 EXPECT_RESULT_OK(mFakeDataSaverEnabledMap.writeValue(DATA_SAVER_ENABLED_KEY, in TEST_F()
/packages/modules/Connectivity/framework/src/android/net/
DBpfNetMapsUtils.java22 import static android.net.BpfNetMapsConstants.DATA_SAVER_ENABLED_KEY;
369 return dataSaverEnabledMap.getValue(DATA_SAVER_ENABLED_KEY).val == DATA_SAVER_ENABLED; in getDataSaverEnabled()
DBpfNetMapsConstants.java65 public static final Struct.S32 DATA_SAVER_ENABLED_KEY = new Struct.S32(0); field in BpfNetMapsConstants
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java24 import static android.net.BpfNetMapsConstants.DATA_SAVER_ENABLED_KEY;
289 sDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(DATA_SAVER_DISABLED)); in initBpfMaps()
847 sDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(config)); in setDataSaverEnabled()
1021 final short config = sDataSaverEnabledMap.getValue(DATA_SAVER_ENABLED_KEY).val; in dumpDataSaverConfig()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java22 import static android.net.BpfNetMapsConstants.DATA_SAVER_ENABLED_KEY;
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()
1288 mDataSaverEnabledMap.updateEntry(DATA_SAVER_ENABLED_KEY, new U8(dataSaver)); in doTestIsUidRestrictedOnMeteredNetworks()
/packages/modules/Connectivity/bpf_progs/
Dnetd.h251 #define DATA_SAVER_ENABLED_KEY 0 macro