/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | MultiStaConcurrencyMultiInternetWifiNetworkTest.java | 146 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 …]
|
D | MultiStaConcurrencyWifiNetworkSpecifierTest.java | 109 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 …]
|
D | MultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java | 113 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 …]
|
D | WifiLocationInfoForegroundTest.java | 107 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()
|
D | WifiLocationInfoBackgroundTest.java | 118 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()
|
D | WifiNetworkSpecifierTest.java | 214 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 …]
|
D | WifiJUnit3TestBase.java | 41 ShellIdentityUtils.invokeWithShellPermissions(() -> in setUp() 52 ShellIdentityUtils.invokeWithShellPermissions(() -> in tearDown()
|
D | WifiJUnit4TestBase.java | 46 ShellIdentityUtils.invokeWithShellPermissions( in enableLocationIfNotEnabled() 57 ShellIdentityUtils.invokeWithShellPermissions(() -> in disableLocationIfOriginallyDisabled()
|
D | ScanResultTest.java | 164 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()
|
D | WifiNetworkSuggestionTest.java | 147 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 …]
|
D | ConcurrencyTest.java | 271 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 …]
|
D | ConnectedNetworkScorerTest.java | 140 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 …]
|
D | WifiManagerTest.java | 457 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 …]
|
D | WifiBackupRestoreTest.java | 157 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/ |
D | TestBase.java | 147 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/ |
D | BtAdapterUtils.java | 21 import static com.android.compatibility.common.util.ShellIdentityUtils.invokeWithShellPermissions; 103 invokeWithShellPermissions(() -> bluetoothAdapter.enable()); in enableAdapter() 132 invokeWithShellPermissions(() -> bluetoothAdapter.disable()); in disableAdapter()
|
D | BleEncryptedClientBaseActivity.java | 19 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/ |
D | MockWifiTest.java | 191 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/ |
D | SingleDeviceTest.java | 631 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/ |
D | ShellIdentityUtils.java | 362 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/ |
D | CarProjectionManagerTest.java | 158 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState() 160 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState()
|
D | CarBluetoothTest.java | 139 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState() 141 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFontScalingTest.kt | 201 ShellIdentityUtils.invokeWithShellPermissions { in <lambda>() 221 ShellIdentityUtils.invokeWithShellPermissions { in <lambda>()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | DisplayWakeReportedTests.java | 95 ShellIdentityUtils.invokeWithShellPermissions(() -> in testWakeWithWakeUpApi()
|
D | HdrCapabilitiesAtomTests.java | 150 ShellIdentityUtils.invokeWithShellPermissions(
|