220 lines
9.5 KiB
Java
220 lines
9.5 KiB
Java
![]() |
/*
|
||
|
* This file is auto-generated. DO NOT MODIFY.
|
||
|
* Using: out/host/linux-x86/bin/aidl --lang=java -Weverything -Wno-missing-permission-annotation --min_sdk_version current --ninja -d out/soong/.intermediates/frameworks/native/libs/permission/framework-permission-aidl-java-source/gen/android/permission/IPermissionChecker.java.d -o out/soong/.intermediates/frameworks/native/libs/permission/framework-permission-aidl-java-source/gen -Nframeworks/native/libs/permission/aidl frameworks/native/libs/permission/aidl/android/permission/IPermissionChecker.aidl
|
||
|
*/
|
||
|
package android.permission;
|
||
|
/** Interface to communicate directly with the permission checker service. */
|
||
|
public interface IPermissionChecker extends android.os.IInterface
|
||
|
{
|
||
|
/** Default implementation for IPermissionChecker. */
|
||
|
public static class Default implements android.permission.IPermissionChecker
|
||
|
{
|
||
|
@Override public int checkPermission(java.lang.String permission, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery, boolean fromDatasource, int attributedOp) throws android.os.RemoteException
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
@Override public void finishDataDelivery(int op, android.content.AttributionSourceState attributionSource, boolean fromDatasource) throws android.os.RemoteException
|
||
|
{
|
||
|
}
|
||
|
@Override public int checkOp(int op, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery) throws android.os.RemoteException
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
@Override
|
||
|
public android.os.IBinder asBinder() {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
/** Local-side IPC implementation stub class. */
|
||
|
public static abstract class Stub extends android.os.Binder implements android.permission.IPermissionChecker
|
||
|
{
|
||
|
/** Construct the stub at attach it to the interface. */
|
||
|
@SuppressWarnings("this-escape")
|
||
|
public Stub()
|
||
|
{
|
||
|
this.attachInterface(this, DESCRIPTOR);
|
||
|
}
|
||
|
/**
|
||
|
* Cast an IBinder object into an android.permission.IPermissionChecker interface,
|
||
|
* generating a proxy if needed.
|
||
|
*/
|
||
|
public static android.permission.IPermissionChecker asInterface(android.os.IBinder obj)
|
||
|
{
|
||
|
if ((obj==null)) {
|
||
|
return null;
|
||
|
}
|
||
|
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
|
||
|
if (((iin!=null)&&(iin instanceof android.permission.IPermissionChecker))) {
|
||
|
return ((android.permission.IPermissionChecker)iin);
|
||
|
}
|
||
|
return new android.permission.IPermissionChecker.Stub.Proxy(obj);
|
||
|
}
|
||
|
@Override public android.os.IBinder asBinder()
|
||
|
{
|
||
|
return this;
|
||
|
}
|
||
|
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
|
||
|
{
|
||
|
java.lang.String descriptor = DESCRIPTOR;
|
||
|
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) {
|
||
|
data.enforceInterface(descriptor);
|
||
|
}
|
||
|
if (code == INTERFACE_TRANSACTION) {
|
||
|
reply.writeString(descriptor);
|
||
|
return true;
|
||
|
}
|
||
|
switch (code)
|
||
|
{
|
||
|
case TRANSACTION_checkPermission:
|
||
|
{
|
||
|
java.lang.String _arg0;
|
||
|
_arg0 = data.readString();
|
||
|
android.content.AttributionSourceState _arg1;
|
||
|
_arg1 = data.readTypedObject(android.content.AttributionSourceState.CREATOR);
|
||
|
java.lang.String _arg2;
|
||
|
_arg2 = data.readString();
|
||
|
boolean _arg3;
|
||
|
_arg3 = data.readBoolean();
|
||
|
boolean _arg4;
|
||
|
_arg4 = data.readBoolean();
|
||
|
boolean _arg5;
|
||
|
_arg5 = data.readBoolean();
|
||
|
int _arg6;
|
||
|
_arg6 = data.readInt();
|
||
|
data.enforceNoDataAvail();
|
||
|
int _result = this.checkPermission(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
|
||
|
reply.writeNoException();
|
||
|
reply.writeInt(_result);
|
||
|
break;
|
||
|
}
|
||
|
case TRANSACTION_finishDataDelivery:
|
||
|
{
|
||
|
int _arg0;
|
||
|
_arg0 = data.readInt();
|
||
|
android.content.AttributionSourceState _arg1;
|
||
|
_arg1 = data.readTypedObject(android.content.AttributionSourceState.CREATOR);
|
||
|
boolean _arg2;
|
||
|
_arg2 = data.readBoolean();
|
||
|
data.enforceNoDataAvail();
|
||
|
this.finishDataDelivery(_arg0, _arg1, _arg2);
|
||
|
reply.writeNoException();
|
||
|
break;
|
||
|
}
|
||
|
case TRANSACTION_checkOp:
|
||
|
{
|
||
|
int _arg0;
|
||
|
_arg0 = data.readInt();
|
||
|
android.content.AttributionSourceState _arg1;
|
||
|
_arg1 = data.readTypedObject(android.content.AttributionSourceState.CREATOR);
|
||
|
java.lang.String _arg2;
|
||
|
_arg2 = data.readString();
|
||
|
boolean _arg3;
|
||
|
_arg3 = data.readBoolean();
|
||
|
boolean _arg4;
|
||
|
_arg4 = data.readBoolean();
|
||
|
data.enforceNoDataAvail();
|
||
|
int _result = this.checkOp(_arg0, _arg1, _arg2, _arg3, _arg4);
|
||
|
reply.writeNoException();
|
||
|
reply.writeInt(_result);
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
{
|
||
|
return super.onTransact(code, data, reply, flags);
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
private static class Proxy implements android.permission.IPermissionChecker
|
||
|
{
|
||
|
private android.os.IBinder mRemote;
|
||
|
Proxy(android.os.IBinder remote)
|
||
|
{
|
||
|
mRemote = remote;
|
||
|
}
|
||
|
@Override public android.os.IBinder asBinder()
|
||
|
{
|
||
|
return mRemote;
|
||
|
}
|
||
|
public java.lang.String getInterfaceDescriptor()
|
||
|
{
|
||
|
return DESCRIPTOR;
|
||
|
}
|
||
|
@Override public int checkPermission(java.lang.String permission, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery, boolean fromDatasource, int attributedOp) throws android.os.RemoteException
|
||
|
{
|
||
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
||
|
android.os.Parcel _reply = android.os.Parcel.obtain();
|
||
|
int _result;
|
||
|
try {
|
||
|
_data.writeInterfaceToken(DESCRIPTOR);
|
||
|
_data.writeString(permission);
|
||
|
_data.writeTypedObject(attributionSource, 0);
|
||
|
_data.writeString(message);
|
||
|
_data.writeBoolean(forDataDelivery);
|
||
|
_data.writeBoolean(startDataDelivery);
|
||
|
_data.writeBoolean(fromDatasource);
|
||
|
_data.writeInt(attributedOp);
|
||
|
boolean _status = mRemote.transact(Stub.TRANSACTION_checkPermission, _data, _reply, 0);
|
||
|
_reply.readException();
|
||
|
_result = _reply.readInt();
|
||
|
}
|
||
|
finally {
|
||
|
_reply.recycle();
|
||
|
_data.recycle();
|
||
|
}
|
||
|
return _result;
|
||
|
}
|
||
|
@Override public void finishDataDelivery(int op, android.content.AttributionSourceState attributionSource, boolean fromDatasource) throws android.os.RemoteException
|
||
|
{
|
||
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
||
|
android.os.Parcel _reply = android.os.Parcel.obtain();
|
||
|
try {
|
||
|
_data.writeInterfaceToken(DESCRIPTOR);
|
||
|
_data.writeInt(op);
|
||
|
_data.writeTypedObject(attributionSource, 0);
|
||
|
_data.writeBoolean(fromDatasource);
|
||
|
boolean _status = mRemote.transact(Stub.TRANSACTION_finishDataDelivery, _data, _reply, 0);
|
||
|
_reply.readException();
|
||
|
}
|
||
|
finally {
|
||
|
_reply.recycle();
|
||
|
_data.recycle();
|
||
|
}
|
||
|
}
|
||
|
@Override public int checkOp(int op, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery) throws android.os.RemoteException
|
||
|
{
|
||
|
android.os.Parcel _data = android.os.Parcel.obtain(asBinder());
|
||
|
android.os.Parcel _reply = android.os.Parcel.obtain();
|
||
|
int _result;
|
||
|
try {
|
||
|
_data.writeInterfaceToken(DESCRIPTOR);
|
||
|
_data.writeInt(op);
|
||
|
_data.writeTypedObject(attributionSource, 0);
|
||
|
_data.writeString(message);
|
||
|
_data.writeBoolean(forDataDelivery);
|
||
|
_data.writeBoolean(startDataDelivery);
|
||
|
boolean _status = mRemote.transact(Stub.TRANSACTION_checkOp, _data, _reply, 0);
|
||
|
_reply.readException();
|
||
|
_result = _reply.readInt();
|
||
|
}
|
||
|
finally {
|
||
|
_reply.recycle();
|
||
|
_data.recycle();
|
||
|
}
|
||
|
return _result;
|
||
|
}
|
||
|
}
|
||
|
static final int TRANSACTION_checkPermission = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
|
||
|
static final int TRANSACTION_finishDataDelivery = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
|
||
|
static final int TRANSACTION_checkOp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
|
||
|
}
|
||
|
/** @hide */
|
||
|
public static final java.lang.String DESCRIPTOR = "android.permission.IPermissionChecker";
|
||
|
public static final int PERMISSION_GRANTED = 0;
|
||
|
public static final int PERMISSION_SOFT_DENIED = 1;
|
||
|
public static final int PERMISSION_HARD_DENIED = 2;
|
||
|
public int checkPermission(java.lang.String permission, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery, boolean fromDatasource, int attributedOp) throws android.os.RemoteException;
|
||
|
public void finishDataDelivery(int op, android.content.AttributionSourceState attributionSource, boolean fromDatasource) throws android.os.RemoteException;
|
||
|
public int checkOp(int op, android.content.AttributionSourceState attributionSource, java.lang.String message, boolean forDataDelivery, boolean startDataDelivery) throws android.os.RemoteException;
|
||
|
}
|