Home
last modified time | relevance | path

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

12

/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
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/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java378 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()
669 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
674 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
693 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
695 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
698 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
700 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
[all …]
DSubscriptionManagerTest.java191 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()
663 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testAddSubscriptionIntoNewGroupWithPermission()
710 boolean canDisable = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSetUiccApplicationsEnabled()
885 int activeDataSubId = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testRestoreAllSimSpecificSettingsFromBackup()
888 SubscriptionInfo activeSubInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testRestoreAllSimSpecificSettingsFromBackup()
[all …]
DTelephonyCallbackTest.java604 int state = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1342 long originalAllowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1365 long allowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
DCarrierConfigManagerTest.java261 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mConfigManager, in testCarrierConfigManagerResultDependentApi()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java178 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
184 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
210 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
216 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
246 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
252 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
321 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
327 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
386 int oldMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiModeSetting()
394 int newModeResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiModeSetting()
[all …]
DImsUtils.java80 List<SubscriptionInfo> infos = ShellIdentityUtils.invokeMethodWithShellPermissions(sm, in getPreferredActiveSubId()
125 carrierPackages = ShellIdentityUtils.invokeMethodWithShellPermissions(tm, in shouldRunSmsImsTests()
DImsServiceConnector.java344 List<String> result = ShellIdentityUtils.invokeMethodWithShellPermissions(roleManager, in getDefaultSmsApp()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java96 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/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java397 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()
843 InputStream trace = ShellIdentityUtils.invokeMethodWithShellPermissions( in testNativeCrash()
[all …]
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java54 ServiceState ss = ShellIdentityUtils.invokeMethodWithShellPermissions( in isCamped()
83 List<CellInfo> cellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
98 List<CellInfo> newCellInfo = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCellInfoSdk28()
/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
116 public static <T, U> T invokeMethodWithShellPermissions(U targetObject, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
146 public static <T, U, R> R invokeMethodWithShellPermissions(T arg1, U arg2, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
167 public static <T, U, V, R> R invokeMethodWithShellPermissions(T arg1, U arg2, V arg3, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
189 public static <T, U, V, W, R> R invokeMethodWithShellPermissions(T arg1, U arg2, V arg3, W arg4, in invokeMethodWithShellPermissions() method in ShellIdentityUtils
DUiccUtil.java69 ShellIdentityUtils.invokeMethodWithShellPermissions( in uiccHasCertificate()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java139 assertFalse(hasEvent(ShellIdentityUtils.invokeMethodWithShellPermissions( in testReportShortcutUsed()
182 ShellIdentityUtils.invokeMethodWithShellPermissions(mUsageStatsManager, in checkEventReported()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java65 mIsManagedUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in setUp()
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java689 ShellIdentityUtils.invokeMethodWithShellPermissions(broadcastReceiverPI, in testGetIntentComponentAndType()
710 ShellIdentityUtils.invokeMethodWithShellPermissions(activityPI, in testGetIntentComponentAndType()
731 ShellIdentityUtils.invokeMethodWithShellPermissions(servicePI, in testGetIntentComponentAndType()
750 ShellIdentityUtils.invokeMethodWithShellPermissions(foregroundServicePI, in testGetIntentComponentAndType()
/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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java125 return ShellIdentityUtils.invokeMethodWithShellPermissions(mUserManager, in hasBaseUserRestriction()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDefaultDialerOperationsTest.java98 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetDefaultDialerPackage()
DPhoneAccountOperationsTest.java219 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testRegisterPhoneAccount_ListEnabledAccounts()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java257 ShellIdentityUtils.invokeMethodWithShellPermissions( in testUpdateAvailableNetworksWithCarrierPrivilege()
1083 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSubscriptionManager, in testAddSubscriptionToExistingGroupForMultipleSims()
1097 List<Integer> infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAddSubscriptionToExistingGroupForMultipleSims()

12