Home
last modified time | relevance | path

Searched refs:invokeMethodWithShellPermissions (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/telephony2/src/android/telephony2/cts/
DTelephonyManagerReadPhoneStatePermissionTest.java113 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()
175 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDeviceIdentifiersTest.java50 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()
78 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDeviceIdentifiersTest.java47 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()
76 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
DSensorToggleRestrictionTest.java56 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
64 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
73 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
81 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
96 if (!ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
115 if (!ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java56 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()
85 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testAccessToDeviceIdentifiersWithAppOp()
/cts/tests/tests/gamemanager/src/android/gamemanager/cts/
DGameManagerTest.java141 assertTrue(ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testIsAngleEnabled()
147 assertFalse(ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testIsAngleEnabled()
163 ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
174 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
185 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
196 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
338 ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
358 gameModeInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
370 gameModeInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
382 gameModeInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
[all …]
DGameManagerLegacyTest.java78 ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameMode()
88 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameMode()
99 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameMode()
110 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameMode()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java515 long allowedNetworkTypesUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
519 long allowedNetworkTypesPower = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
523 long allowedNetworkTypesCarrier = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
527 long allowedNetworkTypesEnable2g = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
791 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
796 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
815 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
817 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
820 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
822 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
[all …]
DSubscriptionManagerTest.java268 SubscriptionInfo info = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
270 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
276 List<SubscriptionInfo> allSubInfoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in testGetAllSubscriptionInfoList()
278 SubscriptionInfo subInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetAllSubscriptionInfoList()
304 Resources r = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetResourcesForSubId()
319 List<SubscriptionInfo> subList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testActiveSubscriptions()
321 int[] idList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testActiveSubscriptions()
706 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
721 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
730 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
[all …]
DTelephonyCallbackTest.java727 int state = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1323 physicalChannelConfigSupported = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnPhysicalChannelConfigChanged()
1402 long originalAllowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1410 ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1433 long allowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java93 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in resetSetting()
116 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApi()
126 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApiThenReset()
128 ShellIdentityUtils.invokeMethodWithShellPermissions(mBatteryManager, in testActionChargingDeferred_withApiThenReset()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java179 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
185 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
211 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
217 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
247 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
253 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
322 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
328 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
387 int oldMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiModeSetting()
395 int newModeResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiModeSetting()
[all …]
DImsUtils.java94 List<SubscriptionInfo> infos = ShellIdentityUtils.invokeMethodWithShellPermissions(sm, in getPreferredActiveSubId()
139 carrierPackages = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in shouldRunSmsImsTests()
DCrossSimRedialingTestOnMockModem.java148 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in beforeAllTests()
186 sVoLteEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mmTelManager, in beforeAllTests()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellIdentityUtils.java97 public static <T, U> T invokeMethodWithShellPermissions(U targetObject, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
125 public static <T, U> T invokeMethodWithShellPermissions(U targetObject, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
155 public static <T, U, R> R invokeMethodWithShellPermissions(T arg1, U arg2, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
176 public static <T, U, V, R> R invokeMethodWithShellPermissions(T arg1, U arg2, V arg3, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
198 public static <T, U, V, W, R> R invokeMethodWithShellPermissions(T arg1, U arg2, V arg3, W arg4, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
DUiccUtil.java130 ShellIdentityUtils.invokeMethodWithShellPermissions( in uiccHasCertificate()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java499 list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testExitCode()
560 ShellIdentityUtils.invokeMethodWithShellPermissions( in testLmkdKill()
605 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testKillBySignal()
672 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAnr()
691 String trace = ShellIdentityUtils.invokeMethodWithShellPermissions(info, (i) -> { in testAnr()
834 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChange()
888 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChangeWithReason()
922 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCrash()
948 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testNativeCrash()
984 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testUserRequested()
[all …]
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DCellInfoTest.java78 List<CellInfo> cellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
93 List<CellInfo> newCellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
/cts/tests/tests/carrierapi/targetprep/device/src/android/carrierapi/cts/targetprep/
DApduScriptUtil.java100 ShellIdentityUtils.invokeMethodWithShellPermissions( in runApduScript()
305 ShellIdentityUtils.invokeMethodWithShellPermissions( in sendApdus()
333 ShellIdentityUtils.invokeMethodWithShellPermissions( in sendApdus()
DCsimRemover.java106 return ShellIdentityUtils.invokeMethodWithShellPermissions( in isCsimPresent()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java142 assertFalse(hasEvent(ShellIdentityUtils.invokeMethodWithShellPermissions( in testReportShortcutUsed()
185 ShellIdentityUtils.invokeMethodWithShellPermissions(mUsageStatsManager, in checkEventReported()
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountRegistrarTest.java599 ShellIdentityUtils.invokeMethodWithShellPermissions( in verifyCanFetchAllPhoneAccountHandles()
608 ShellIdentityUtils.invokeMethodWithShellPermissions( in verifyCanFetchAllPhoneAccounts()
681 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in cleanupPhoneAccounts()
706 return ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in getNumberOfPhoneAccountsRegisteredToTestPackage()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java65 mIsManagedUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in setUp()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java264 ShellIdentityUtils.invokeMethodWithShellPermissions( in testUpdateAvailableNetworksWithCarrierPrivilege()
1111 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSubscriptionManager, in testAddSubscriptionToExistingGroupForMultipleSims()
1117 ShellIdentityUtils.invokeMethodWithShellPermissions(mSubscriptionManager, in testAddSubscriptionToExistingGroupForMultipleSims()
1126 List<Integer> infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAddSubscriptionToExistingGroupForMultipleSims()
1305 List<SubscriptionInfo> infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in removeSubscriptionsFromGroup()
1313 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in removeSubscriptionsFromGroup()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java127 String imei = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in onStart()
132 String imsi = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in onStart()

12