Rename API for Call Companion InCallService API Review

Test: cts
Bug: 179116441
Change-Id: Icd5de48fa5d338f7571f1127706fd11c5e8accc2
Merged-In: Icd5de48fa5d338f7571f1127706fd11c5e8accc2
(cherry picked from commit e90d9de602)
This commit is contained in:
Shuo Qian 2021-02-10 15:32:00 -08:00
parent d4d38d5e2e
commit 0e44b583b0
1 changed files with 3 additions and 3 deletions

View File

@ -832,12 +832,12 @@ public class TelecomServiceImpl {
} }
/** /**
* @see android.telecom.TelecomManager#hasCompanionInCallServiceAccess * @see android.telecom.TelecomManager#hasManageOngoingCallsPermission
*/ */
@Override @Override
public boolean hasCompanionInCallServiceAccess(String callingPackage) { public boolean hasManageOngoingCallsPermission(String callingPackage) {
try { try {
Log.startSession("TSI.hCICSA"); Log.startSession("TSI.hMOCP");
return PermissionChecker.checkPermissionForPreflight(mContext, return PermissionChecker.checkPermissionForPreflight(mContext,
Manifest.permission.MANAGE_ONGOING_CALLS, Manifest.permission.MANAGE_ONGOING_CALLS,
PermissionChecker.PID_UNKNOWN, Binder.getCallingUid(), PermissionChecker.PID_UNKNOWN, Binder.getCallingUid(),