Loading core/java/android/companion/CompanionDeviceManager.java +22 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ import android.annotation.SystemApi; import android.annotation.SystemService; import android.annotation.UserHandleAware; import android.app.Activity; import android.app.ActivityManager; import android.app.ActivityManagerInternal; import android.app.NotificationManager; import android.app.PendingIntent; import android.bluetooth.BluetoothAdapter; Loading @@ -41,6 +43,7 @@ import android.content.Intent; import android.content.IntentSender; import android.content.pm.PackageManager; import android.net.MacAddress; import android.os.Binder; import android.os.Handler; import android.os.OutcomeReceiver; import android.os.ParcelFileDescriptor; Loading @@ -53,6 +56,7 @@ import android.util.SparseArray; import com.android.internal.annotations.GuardedBy; import com.android.internal.util.CollectionUtils; import com.android.server.LocalServices; import libcore.io.IoUtils; Loading Loading @@ -989,6 +993,15 @@ public final class CompanionDeviceManager { ExceptionUtils.propagateIfInstanceOf(e.getCause(), DeviceNotAssociatedException.class); throw e.rethrowFromSystemServer(); } int callingUid = Binder.getCallingUid(); int callingPid = Binder.getCallingPid(); ActivityManagerInternal managerInternal = LocalServices.getService(ActivityManagerInternal.class); if (managerInternal != null) { managerInternal .logFgsApiBegin(ActivityManager.FOREGROUND_SERVICE_API_TYPE_CDM, callingUid, callingPid); } } /** Loading Loading @@ -1021,6 +1034,15 @@ public final class CompanionDeviceManager { } catch (RemoteException e) { ExceptionUtils.propagateIfInstanceOf(e.getCause(), DeviceNotAssociatedException.class); } int callingUid = Binder.getCallingUid(); int callingPid = Binder.getCallingPid(); ActivityManagerInternal managerInternal = LocalServices.getService(ActivityManagerInternal.class); if (managerInternal != null) { managerInternal .logFgsApiEnd(ActivityManager.FOREGROUND_SERVICE_API_TYPE_CDM, callingUid, callingPid); } } /** Loading Loading
core/java/android/companion/CompanionDeviceManager.java +22 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,8 @@ import android.annotation.SystemApi; import android.annotation.SystemService; import android.annotation.UserHandleAware; import android.app.Activity; import android.app.ActivityManager; import android.app.ActivityManagerInternal; import android.app.NotificationManager; import android.app.PendingIntent; import android.bluetooth.BluetoothAdapter; Loading @@ -41,6 +43,7 @@ import android.content.Intent; import android.content.IntentSender; import android.content.pm.PackageManager; import android.net.MacAddress; import android.os.Binder; import android.os.Handler; import android.os.OutcomeReceiver; import android.os.ParcelFileDescriptor; Loading @@ -53,6 +56,7 @@ import android.util.SparseArray; import com.android.internal.annotations.GuardedBy; import com.android.internal.util.CollectionUtils; import com.android.server.LocalServices; import libcore.io.IoUtils; Loading Loading @@ -989,6 +993,15 @@ public final class CompanionDeviceManager { ExceptionUtils.propagateIfInstanceOf(e.getCause(), DeviceNotAssociatedException.class); throw e.rethrowFromSystemServer(); } int callingUid = Binder.getCallingUid(); int callingPid = Binder.getCallingPid(); ActivityManagerInternal managerInternal = LocalServices.getService(ActivityManagerInternal.class); if (managerInternal != null) { managerInternal .logFgsApiBegin(ActivityManager.FOREGROUND_SERVICE_API_TYPE_CDM, callingUid, callingPid); } } /** Loading Loading @@ -1021,6 +1034,15 @@ public final class CompanionDeviceManager { } catch (RemoteException e) { ExceptionUtils.propagateIfInstanceOf(e.getCause(), DeviceNotAssociatedException.class); } int callingUid = Binder.getCallingUid(); int callingPid = Binder.getCallingPid(); ActivityManagerInternal managerInternal = LocalServices.getService(ActivityManagerInternal.class); if (managerInternal != null) { managerInternal .logFgsApiEnd(ActivityManager.FOREGROUND_SERVICE_API_TYPE_CDM, callingUid, callingPid); } } /** Loading