From dfb7ca01a8fb197da1a9fdf24b311a5680d08577 Mon Sep 17 00:00:00 2001 From: sqian Date: Wed, 11 Nov 2020 00:45:46 +0000 Subject: Introduce hasCompanionInCallServiceAccess API It retruns whether the caller has InCallService access for the companion apps. A companion app is an app associated with a physical wearable device via the {@link android.companion.CompanionDeviceManager} API. Test: cts Bug: 169595473 Change-Id: Id659bfae8556e965d3c31613848bde808f28a858 Merged-In: Id659bfae8556e965d3c31613848bde808f28a858 (cherry picked from commit 4d0652699a88ad60c2dfdbf7b59065ee684df6d6) --- telecomm/java/com/android/internal/telecom/ITelecomService.aidl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'telecomm/java/com') diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index a28a999e8d19..6dc096daf4ea 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl @@ -178,6 +178,11 @@ interface ITelecomService { */ boolean isInCall(String callingPackage, String callingFeatureId); + /** + * @see TelecomServiceImpl#hasCompanionInCallServiceAccess + */ + boolean hasCompanionInCallServiceAccess(String callingPackage); + /** * @see TelecomServiceImpl#isInManagedCall */ -- cgit v1.2.3-59-g8ed1b