Home
last modified time | relevance | path

Searched refs:invokeWithShellPermissions (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DMultiStaConcurrencyMultiInternetWifiNetworkTest.java146 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
148 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
151 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
153 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
157 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
159 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
172 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
174 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
176 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
194 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
[all …]
DMultiStaConcurrencyWifiNetworkSpecifierTest.java109 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
111 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
114 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
116 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
120 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
123 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
139 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
141 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
143 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
164 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
[all …]
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java113 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
115 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
118 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
120 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
124 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
127 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
137 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
139 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
141 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
151 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
[all …]
DWifiLocationInfoForegroundTest.java107 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
109 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
112 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
114 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
122 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
127 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.reconnect()); in setUpClass()
157 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
159 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
164 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiLocationInfoBackgroundTest.java118 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
120 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
123 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
125 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
133 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
138 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.reconnect()); in setUpClass()
170 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
172 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
178 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
DWifiNetworkSpecifierTest.java214 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
216 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
219 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
221 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
226 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
231 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
242 ShellIdentityUtils.invokeWithShellPermissions( in enableAllSavedNetworks()
251 ShellIdentityUtils.invokeWithShellPermissions( in disableAllSavedNetworks()
265 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in tearDownClass()
271 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
DWifiJUnit3TestBase.java41 ShellIdentityUtils.invokeWithShellPermissions(() -> in setUp()
52 ShellIdentityUtils.invokeWithShellPermissions(() -> in tearDown()
DWifiJUnit4TestBase.java46 ShellIdentityUtils.invokeWithShellPermissions( in enableLocationIfNotEnabled()
57 ShellIdentityUtils.invokeWithShellPermissions(() -> in disableLocationIfOriginallyDisabled()
DScanResultTest.java164 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
166 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
169 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
171 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
193 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
195 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
207 ShellIdentityUtils.invokeWithShellPermissions( in setWifiEnabled()
335 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.reconnect()); in testScanResultMatchesWifiInfo()
378 ShellIdentityUtils.invokeWithShellPermissions( in testScanThrottling()
397 ShellIdentityUtils.invokeWithShellPermissions( in testScanThrottling()
DWifiNetworkSuggestionTest.java147 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
149 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
152 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
154 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
161 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
164 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
169 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
184 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
196 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
198 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
DConcurrencyTest.java271 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
273 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
275 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
277 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
295 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(false)); in setUpClass()
318 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
320 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
445 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in enableWifi()
447 ShellIdentityUtils.invokeWithShellPermissions( in enableWifi()
475 ShellIdentityUtils.invokeWithShellPermissions(() -> { in removeAllPersistentGroups()
[all …]
DConnectedNetworkScorerTest.java140 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
142 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
144 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
146 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
150 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(false)); in setUpClass()
152 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
162 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
172 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
175 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.reconnect()); in setUp()
186 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in tearDownClass()
[all …]
DWifiManagerTest.java457 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
459 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
462 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
464 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
474 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
479 sOriginalSoftApConfig = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
492 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
494 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
497 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
527 ShellIdentityUtils.invokeWithShellPermissions( in setWifiEnabled()
[all …]
DWifiBackupRestoreTest.java157 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
159 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
162 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
170 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
184 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
189 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(enable)); in setWifiEnabled()
/cts/tests/tests/wifi/src/android/net/wifi/rtt/cts/
DTestBase.java147 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
149 ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
152 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
154 ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
157 ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
163 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setupClass()
166 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setupClass()
179 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
181 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
183 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBtAdapterUtils.java21 import static com.android.compatibility.common.util.ShellIdentityUtils.invokeWithShellPermissions;
103 invokeWithShellPermissions(() -> bluetoothAdapter.enable()); in enableAdapter()
132 invokeWithShellPermissions(() -> bluetoothAdapter.disable()); in disableAdapter()
DBleEncryptedClientBaseActivity.java19 import static com.android.compatibility.common.util.ShellIdentityUtils.invokeWithShellPermissions;
302 invokeWithShellPermissions(() -> mAdapter.enable()), BT_ON_DELAY); in onReceive()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java191 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
193 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
196 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
198 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
233 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
235 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
251 WifiInfo currentNetwork = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
266 ShellIdentityUtils.invokeWithShellPermissions( in setWifiEnabled()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java631 mWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
633 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
640 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in setUp()
673 ShellIdentityUtils.invokeWithShellPermissions( in tearDown()
705 ShellIdentityUtils.invokeWithShellPermissions(() -> in testCharacteristics()
709 ShellIdentityUtils.invokeWithShellPermissions(() -> in testCharacteristics()
753 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(false)); in testAvailabilityStatusChange()
768 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.setWifiEnabled(true)); in testAvailabilityStatusChange()
805 ShellIdentityUtils.invokeWithShellPermissions(() -> { in testAttachDiscoveryWithConfigRequest()
1112 ShellIdentityUtils.invokeWithShellPermissions(() -> { in testPublishSuccessWithSuspendableSession()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellIdentityUtils.java362 public static <T> T invokeWithShellPermissions(Supplier<T> supplier) { in invokeWithShellPermissions() method in ShellIdentityUtils
379 public static void invokeWithShellPermissions(Runnable runnable) { in invokeWithShellPermissions() method in ShellIdentityUtils
/cts/tests/tests/car/src/android/car/cts/
DCarProjectionManagerTest.java158 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState()
160 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState()
DCarBluetoothTest.java139 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState()
141 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontScalingTest.kt201 ShellIdentityUtils.invokeWithShellPermissions { in <lambda>()
221 ShellIdentityUtils.invokeWithShellPermissions { in <lambda>()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDisplayWakeReportedTests.java95 ShellIdentityUtils.invokeWithShellPermissions(() -> in testWakeWithWakeUpApi()
DHdrCapabilitiesAtomTests.java150 ShellIdentityUtils.invokeWithShellPermissions(

12