Home
last modified time | relevance | path

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

123

/cts/tests/tests/telephony2/src/android/telephony2/cts/
DTelephonyManagerReadPhoneStatePermissionTest.java114 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
117 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
130 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
137 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
144 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
151 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
158 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
165 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
174 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
182 ShellIdentityUtils.invokeMethodWithShellPermissions( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDeviceIdentifiersTest.java50 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
55 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
61 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
65 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
69 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
73 ShellIdentityUtils.invokeMethodWithShellPermissions(telephonyManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
84 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
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()
DDeviceIdentifiersTest.java47 ShellIdentityUtils.invokeMethodWithShellPermissions(subscriptionManager, in testDeviceOwnerCanGetDeviceIdentifiersWithPermission()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java632 long allowedNetworkTypesUser = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
636 long allowedNetworkTypesPower = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
640 long allowedNetworkTypesCarrier = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
644 long allowedNetworkTypesEnable2g = ShellIdentityUtils.invokeMethodWithShellPermissions( in saveAllowedNetworkTypesForAllReasons()
909 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
914 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
933 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
935 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
938 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
940 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testTelephonyManager()
[all …]
DSubscriptionManagerTest.java278 SubscriptionInfo info = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
280 assertNotNull(ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetActiveSubscriptionInfoForIcc()
286 List<SubscriptionInfo> allSubInfoList = ShellIdentityUtils.invokeMethodWithShellPermissions( in testGetAllSubscriptionInfoList()
288 SubscriptionInfo subInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetAllSubscriptionInfoList()
314 Resources r = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testGetResourcesForSubId()
329 List<SubscriptionInfo> subList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testActiveSubscriptions()
331 int[] idList = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testActiveSubscriptions()
359 .invokeMethodWithShellPermissions(mSm,
365 .invokeMethodWithShellPermissions(allProfileSm,
752 ParcelUuid uuid = ShellIdentityUtils.invokeMethodWithShellPermissions(mSm, in testSubscriptionGroupingWithPermission()
[all …]
DTelephonyManagerTestOnMockModem.java1090 String primaryImei = ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in testGetPrimaryImei()
1104 String primaryImei = ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in onImeiMappingChanged()
1108 String slot0Imei = ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in onImeiMappingChanged()
1115 primaryImei = ShellIdentityUtils.invokeMethodWithShellPermissions(sTelephonyManager, in onImeiMappingChanged()
1119 String slot1Imei = ShellIdentityUtils.invokeMethodWithShellPermissions( in onImeiMappingChanged()
1178 CarrierRestrictionRules carrierRules = ShellIdentityUtils.invokeMethodWithShellPermissions( in getCarrierRestrictionRules()
1224 CarrierRestrictionRules carrierRules = ShellIdentityUtils.invokeMethodWithShellPermissions( in getCarrierRestrictionRules_WithEphlmnList()
/cts/tests/tests/telephony-cuj/src/android/telephony/cts/cuj/
DDataTest.java68 == (int) ShellIdentityUtils.invokeMethodWithShellPermissions( in setUp()
78 assertThat((int) ShellIdentityUtils.invokeMethodWithShellPermissions( in testBasicPhoneAttributes()
80 assertThat((String) ShellIdentityUtils.invokeMethodWithShellPermissions( in testBasicPhoneAttributes()
82 assertThat((String) ShellIdentityUtils.invokeMethodWithShellPermissions( in testBasicPhoneAttributes()
84 assertThat((int) ShellIdentityUtils.invokeMethodWithShellPermissions( in testBasicPhoneAttributes()
/cts/tests/tests/gamemanager/src/android/gamemanager/cts/
DGameManagerTest.java187 assertTrue(ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testIsAngleEnabled()
193 assertFalse(ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testIsAngleEnabled()
209 ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
220 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
231 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
242 gameMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeUnsupportedOnNotGame()
384 ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
404 gameModeInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
416 gameModeInfo = ShellIdentityUtils.invokeMethodWithShellPermissions(mGameManager, in testGetGameModeInfoWithTwoGameModes()
428 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/telecom2/src/android/telecom/cts/
DTelecomManagerNoPermissionsTest.java142 handles = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
155 handles = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
168 handles = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
181 handles = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesPermission()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java95 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/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java237 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
243 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
269 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
275 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
305 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
311 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
380 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
386 boolean isEnabledResult = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiRoamingSetting()
445 int oldMode = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiModeSetting()
453 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()
/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.java504 list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testExitCode()
565 ShellIdentityUtils.invokeMethodWithShellPermissions( in testLmkdKill()
610 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testKillBySignal()
677 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testAnr()
696 String trace = ShellIdentityUtils.invokeMethodWithShellPermissions(info, (i) -> { in testAnr()
846 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChange()
909 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testPermissionChangeWithReason()
945 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testCrash()
971 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testNativeCrash()
1007 List<ApplicationExitInfo> list = ShellIdentityUtils.invokeMethodWithShellPermissions( in testUserRequested()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountRegistrarTest.java607 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfiles()
637 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfiles()
650 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfiles()
654 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfiles()
706 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
719 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
723 .invokeMethodWithShellPermissions(mTelecomManager, in testGetCallCapablePhoneAccountsAcrossProfilesWithWorkProfile()
832 ShellIdentityUtils.invokeMethodWithShellPermissions( in verifyCanFetchAllPhoneAccountHandles()
841 ShellIdentityUtils.invokeMethodWithShellPermissions( in verifyCanFetchAllPhoneAccounts()
914 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in cleanupPhoneAccounts()
[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/car_permission_tests/src/android/car/cts/permissiontest/user/
DCarUserManagerPermissionTest.java26 …t static com.android.compatibility.common.util.ShellIdentityUtils.invokeMethodWithShellPermissions;
118 () -> invokeMethodWithShellPermissions(mCarUserManager, in testCannotCreateAdminUserWithoutManageUsersPermission()
127 () -> invokeMethodWithShellPermissions(mCarUserManager, in testCannotCreateAdminUserWithTypeWithoutManageUsersPermission()
/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.java143 assertFalse(hasEvent(ShellIdentityUtils.invokeMethodWithShellPermissions( in testReportShortcutUsed()
186 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()

123