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.java379 long allowedNetworkTypesUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
385 long allowedNetworkTypesPower = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
391 long allowedNetworkTypesCarrier = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
397 long allowedNetworkTypesEnable2g = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
670 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
675 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
694 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
696 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
699 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
701 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
[all …]
DSubscriptionManagerTest.java198 SubscriptionInfo info = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
200 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
222 Resources r = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetResourcesForSubId()
603 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
612 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
625 availableInfoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
670 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testAddSubscriptionIntoNewGroupWithPermission()
717 boolean canDisable = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSetUiccApplicationsEnabled()
955 int activeDataSubId = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testRestoreAllSimSpecificSettingsFromBackup()
958 SubscriptionInfo activeSubInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testRestoreAllSimSpecificSettingsFromBackup()
[all …]
DCarrierConfigManagerTest.java261 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mConfigManager, in testCarrierConfigManagerResultDependentApi()
DTelephonyCallbackTest.java604 int state = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1345 long originalAllowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1368 long allowedNetworkTypeUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
/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/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/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java400 list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testExitCode()
460 ShellIdentityUtils.invokeMethodWithShellPermissions( in testLmkdKill()
504 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testKillBySignal()
568 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAnr()
587 String trace = ShellIdentityUtils.invokeMethodWithShellPermissions(info, (i) -> { in testAnr()
726 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChange()
779 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChangeWithReason()
812 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCrash()
837 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testNativeCrash()
872 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testUserRequested()
[all …]
/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/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java257 ShellIdentityUtils.invokeMethodWithShellPermissions( in testUpdateAvailableNetworksWithCarrierPrivilege()
1083 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSubscriptionManager, in testAddSubscriptionToExistingGroupForMultipleSims()
1089 ShellIdentityUtils.invokeMethodWithShellPermissions(mSubscriptionManager, in testAddSubscriptionToExistingGroupForMultipleSims()
1098 List<Integer> infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAddSubscriptionToExistingGroupForMultipleSims()
1266 List<SubscriptionInfo> infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in removeSubscriptionsFromGroup()
1274 infoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in removeSubscriptionsFromGroup()
/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()

12