media/src/main/java/androidx/media/MediaSessionManagerImplApi21.java
private boolean hasMediaControlPermission(
            @NonNull MediaSessionManager.RemoteUserInfoImpl userInfo) {
        return getContext().checkPermission(
                android.Manifest.permission.MEDIA_CONTENT_CONTROL,
                userInfo.getPid(), userInfo.getUid()) == PackageManager.PERMISSION_GRANTED;
    }
/**
     * Checks the caller has android.Manifest.permission.MEDIA_CONTENT_CONTROL permission.
     */
Checks the caller has android.Manifest.permission.MEDIA_CONTENT_CONTROL permission.
Checks the caller has android . Manifest . permission . MEDIA_CONTENT_CONTROL permission .
private boolean hasMediaControlPermission(
            @NonNull MediaSessionManager.RemoteUserInfoImpl userInfo) {
        return getContext().checkPermission(
                android.Manifest.permission.MEDIA_CONTENT_CONTROL,
                userInfo.getPid(), userInfo.getUid()) == PackageManager.PERMISSION_GRANTED;
    }
private boolean hasMediaControlPermission ( @ NonNull MediaSessionManager . RemoteUserInfoImpl userInfo ) { return getContext ( ) . checkPermission ( android . Manifest . permission . MEDIA_CONTENT_CONTROL , userInfo . getPid ( ) , userInfo . getUid ( ) ) == PackageManager . PERMISSION_GRANTED ; }
Checks the caller has android.Manifest.permission.MEDIA_CONTENT_CONTROL permission.
Checks the caller has android . Manifest . permission . MEDIA_CONTENT_CONTROL permission .