Searched refs:setRestrictBackground (Results 1 – 4 of 4) sorted by relevance
23 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.setRestrictBackground;51 setRestrictBackground(false); in setUp()63 setRestrictBackground(false); in tearDown()81 setRestrictBackground(true); in testGetRestrictBackgroundStatus_whitelisted()99 setRestrictBackground(true); in testGetRestrictBackgroundStatus_enabled()107 setRestrictBackground(false); in testGetRestrictBackgroundStatus_enabled()109 setRestrictBackground(true); in testGetRestrictBackgroundStatus_enabled()123 setRestrictBackground(false); in testGetRestrictBackgroundStatus_enabled()125 setRestrictBackground(true); in testGetRestrictBackgroundStatus_enabled()143 setRestrictBackground(true); in testGetRestrictBackgroundStatus_blacklisted()[all …]
20 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.setRestrictBackground;194 setRestrictBackground(false); in setUp()214 setRestrictBackground(false); in tearDown()224 setRestrictBackground(true); in testOnBlockedStatusChanged_dataSaver()250 setRestrictBackground(false); in testOnBlockedStatusChanged_dataSaver()
18 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.setRestrictBackground;62 setRestrictBackground(false); in tearDown()78 setRestrictBackground(true); in testDataAndBatterySaverModes_meteredNetwork()144 setRestrictBackground(true); in testDataAndBatterySaverModes_nonMeteredNetwork()
88 setRestrictBackground(true); in isDataSaverSupported()92 setRestrictBackground(false); in isDataSaverSupported()208 public static void setRestrictBackground(boolean enabled) { in setRestrictBackground() method in NetworkPolicyTestUtils