Searched refs:DATA_SAVER_ENABLED_KEY (Results 1 – 9 of 9) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStackBpfNetMapsTest.kt | 21 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/ |
D | firewall.cpp | 134 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/ |
D | DnsBpfHelper.cpp | 78 auto dataSaverSetting = mDataSaverEnabledMap.readValue(DATA_SAVER_ENABLED_KEY); in isUidNetworkingBlocked()
|
D | DnsBpfHelperTest.cpp | 197 EXPECT_RESULT_OK(mFakeDataSaverEnabledMap.writeValue(DATA_SAVER_ENABLED_KEY, in TEST_F()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | BpfNetMapsUtils.java | 22 import static android.net.BpfNetMapsConstants.DATA_SAVER_ENABLED_KEY; 369 return dataSaverEnabledMap.getValue(DATA_SAVER_ENABLED_KEY).val == DATA_SAVER_ENABLED; in getDataSaverEnabled()
|
D | BpfNetMapsConstants.java | 65 public static final Struct.S32 DATA_SAVER_ENABLED_KEY = new Struct.S32(0); field in BpfNetMapsConstants
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | BpfNetMaps.java | 24 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/ |
D | BpfNetMapsTest.java | 22 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/ |
D | netd.h | 251 #define DATA_SAVER_ENABLED_KEY 0 macro
|