Home
last modified time | relevance | path

Searched refs:ShellIdentityUtils (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
DTelephonyManagerReadPhoneStatePermissionTest.java35 import com.android.compatibility.common.util.ShellIdentityUtils;
113 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
115 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
127 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
133 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
140 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
147 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
154 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
161 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
168 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java100 import com.android.compatibility.common.util.ShellIdentityUtils;
378 long allowedNetworkTypesUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
384 long allowedNetworkTypesPower = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
390 long allowedNetworkTypesCarrier = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
396 long allowedNetworkTypesEnable2g = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
417 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in recoverAllowedNetworkType()
486 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mCarrierConfigManager, in overrideCarrierConfig()
669 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
674 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
693 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
[all …]
DSubscriptionManagerTest.java61 import com.android.compatibility.common.util.ShellIdentityUtils;
191 SubscriptionInfo info = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
193 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
215 Resources r = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetResourcesForSubId()
596 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
605 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
618 availableInfoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
626 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSm, in testSubscriptionGroupingWithPermission()
633 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSm, in testSubscriptionGroupingWithPermission()
638 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSm, in testSubscriptionGroupingWithPermission()
[all …]
DCarrierSignalTest.java36 import com.android.compatibility.common.util.ShellIdentityUtils;
81 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mCarrierConfigManager, in setUp()
90 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mCarrierConfigManager, in tearDown()
93 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(cm, in tearDown()
108 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(cm, in testResetBroadcast()
DTelephonyRegistryManagerTest.java22 import com.android.compatibility.common.util.ShellIdentityUtils;
76 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyCallStateChangedForAllSubscriptions()
104 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyCallStateChanged()
135 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyServiceStateChanged()
164 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifySignalStrengthChanged()
193 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyMessageWaitingChanged()
221 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyCallForwardingChanged()
247 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyRegistryMgr, in testNotifyDataActivityChanged()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java45 import com.android.compatibility.common.util.ShellIdentityUtils;
178 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
180 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mMmTelManager, in testAdvancedCallingSetting()
184 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
190 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mMmTelManager, in testAdvancedCallingSetting()
210 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
212 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mMmTelManager, in testVtSetting()
216 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
222 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mMmTelManager, in testVtSetting()
246 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSensorToggleRestrictionTest.java24 import com.android.compatibility.common.util.ShellIdentityUtils;
56 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
60 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
64 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
73 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
77 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
81 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
89 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
96 if (!ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
108 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy()
[all …]
DDeviceIdentifiersTest.java26 import com.android.compatibility.common.util.ShellIdentityUtils;
47 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
50 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
53 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
60 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
65 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
68 ShellIdentityUtils.invokeStaticMethodWithShellPermissions(Build::getSerial), in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
76 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDeviceIdentifiersTest.java25 import com.android.compatibility.common.util.ShellIdentityUtils;
50 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
53 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
59 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
63 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
67 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
70 ShellIdentityUtils.invokeStaticMethodWithShellPermissions(Build::getSerial), in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
78 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java34 import com.android.compatibility.common.util.ShellIdentityUtils;
56 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
59 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
62 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
65 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
69 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
73 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testAccessToDeviceIdentifiersWithAppOp()
76 ShellIdentityUtils.invokeStaticMethodWithShellPermissions(Build::getSerial), in testAccessToDeviceIdentifiersWithAppOp()
85 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testAccessToDeviceIdentifiersWithAppOp()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DMultiStaConcurrencyWifiNetworkSpecifierTest.java44 import com.android.compatibility.common.util.ShellIdentityUtils;
105 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
107 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
110 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
112 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
116 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
119 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
132 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
134 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
136 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
DMultiStaConcurrencyRestrictedWifiNetworkSuggestionTest.java45 import com.android.compatibility.common.util.ShellIdentityUtils;
104 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
106 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
109 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
111 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
115 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
118 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
131 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
133 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
135 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
DWifiNetworkSpecifierTest.java54 import com.android.compatibility.common.util.ShellIdentityUtils;
207 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
209 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
212 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
214 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
219 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in setUpClass()
224 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
235 ShellIdentityUtils.invokeWithShellPermissions( in enableAllSavedNetworks()
244 ShellIdentityUtils.invokeWithShellPermissions( in disableAllSavedNetworks()
261 ShellIdentityUtils.invokeWithShellPermissions(() -> wifiManager.setWifiEnabled(true)); in tearDownClass()
[all …]
DWifiLocationInfoTest.java41 import com.android.compatibility.common.util.ShellIdentityUtils;
107 mWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
109 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
112 mWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
114 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
122 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
127 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.reconnect()); in setUp()
141 ShellIdentityUtils.invokeWithShellPermissions( in tearDown()
143 ShellIdentityUtils.invokeWithShellPermissions( in tearDown()
DScanResultTest.java38 import com.android.compatibility.common.util.ShellIdentityUtils;
123 mWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
125 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
128 mWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUp()
130 ShellIdentityUtils.invokeWithShellPermissions( in setUp()
155 ShellIdentityUtils.invokeWithShellPermissions( in tearDown()
157 ShellIdentityUtils.invokeWithShellPermissions( in tearDown()
308 ShellIdentityUtils.invokeWithShellPermissions(() -> mWifiManager.reconnect()); in testScanResultMatchesWifiInfo()
DWifiNetworkSuggestionTest.java60 import com.android.compatibility.common.util.ShellIdentityUtils;
131 sWasVerboseLoggingEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
133 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
136 sWasScanThrottleEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
138 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
142 sWasWifiEnabled = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
145 ShellIdentityUtils.invokeWithShellPermissions(() -> sWifiManager.setWifiEnabled(true)); in setUpClass()
150 List<WifiConfiguration> savedNetworks = ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
165 ShellIdentityUtils.invokeWithShellPermissions( in setUpClass()
177 ShellIdentityUtils.invokeWithShellPermissions( in tearDownClass()
[all …]
DWifiJUnit3TestBase.java24 import com.android.compatibility.common.util.ShellIdentityUtils;
41 ShellIdentityUtils.invokeWithShellPermissions(() -> in setUp()
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsStartActivityTest.java47 import com.android.compatibility.common.util.ShellIdentityUtils;
108 ShellIdentityUtils.dropShellPermissionIdentity(); in testCannotStartActivityByIntentWithNoPermissions()
117 ShellIdentityUtils.dropShellPermissionIdentity(); in testCanStartActivityByIntentWithInteractAcrossProfilesPermission()
119 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in testCanStartActivityByIntentWithInteractAcrossProfilesPermission()
137 ShellIdentityUtils.dropShellPermissionIdentity(); in testCanStartActivityByIntentWithInteractAcrossUsersPermission()
139 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in testCanStartActivityByIntentWithInteractAcrossUsersPermission()
157 ShellIdentityUtils.dropShellPermissionIdentity(); in testCanStartActivityByIntentWithInteractAcrossUsersFullPermission()
159 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in testCanStartActivityByIntentWithInteractAcrossUsersFullPermission()
179 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in testCannotStartActivityWithImplicitIntent()
191 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn( in testCanStartMainActivityByIntent()
[all …]
/cts/tests/tests/gamemanager/src/android/gamemanager/cts/
DGameManagerTest.java32 import com.android.compatibility.common.util.ShellIdentityUtils;
69 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mGameManager, in testGetGameModeUnsupported()
85 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mGameManager, in testGetGameModeStandard()
101 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mGameManager, in testGetGameModePerformance()
117 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mGameManager, in testGetGameModeBattery()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java35 import com.android.compatibility.common.util.ShellIdentityUtils;
96 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in resetSetting()
119 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApi()
129 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApiThenReset()
131 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApiThenReset()
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java33 import com.android.compatibility.common.util.ShellIdentityUtils;
54 ServiceState ss = ShellIdentityUtils.invokeMethodWithShellPermissions( in isCamped()
83 List<CellInfo> cellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
98 List<CellInfo> newCellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java58 import com.android.compatibility.common.util.ShellIdentityUtils;
397 list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testExitCode()
457 ShellIdentityUtils.invokeMethodWithShellPermissions( in testLmkdKill()
501 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testKillBySignal()
565 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAnr()
584 String trace = ShellIdentityUtils.invokeMethodWithShellPermissions(info, (i) -> { in testAnr()
723 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChange()
776 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChangeWithReason()
809 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCrash()
834 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testNativeCrash()
[all …]
/cts/hostsidetests/usb/SerialTestApp/src/com/android/cts/usb/serialtest/
DUsbSerialTest.java24 import com.android.compatibility.common.util.ShellIdentityUtils;
40 Log.e(TAG, ShellIdentityUtils.invokeStaticMethodWithShellPermissions(Build::getSerial)); in logSerial()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt28 import com.android.compatibility.common.util.ShellIdentityUtils
70 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(packageManager, in setTargetInstallerPackage()
71 ShellIdentityUtils.ShellPermissionMethodHelperNoReturn { in setTargetInstallerPackage()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java34 import com.android.compatibility.common.util.ShellIdentityUtils;
99 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(telephonyRegistryManager, in testListenerRegistrationWithChangeEnabled()
125 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(telephonyRegistryManager, in testListenerRegistrationWithChangeDisabled()
134 int registrationLimit = ShellIdentityUtils.invokeStaticMethodWithShellPermissions(() -> in registerFillerListeners()

123