/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl */ package android.accounts; /** * Service that allows the interaction with an authentication server. * @hide */ public interface IAccountAuthenticator extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.accounts.IAccountAuthenticator { private static final java.lang.String DESCRIPTOR = "android.accounts.IAccountAuthenticator"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.accounts.IAccountAuthenticator interface, * generating a proxy if needed. */ public static android.accounts.IAccountAuthenticator asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.accounts.IAccountAuthenticator))) { return ((android.accounts.IAccountAuthenticator)iin); } return new android.accounts.IAccountAuthenticator.Stub.Proxy(obj); } 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 { switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return true; } case TRANSACTION_addAccount: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg1; _arg1 = data.readString(); java.lang.String _arg2; _arg2 = data.readString(); java.lang.String[] _arg3; _arg3 = data.createStringArray(); android.os.Bundle _arg4; if ((0!=data.readInt())) { _arg4 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg4 = null; } this.addAccount(_arg0, _arg1, _arg2, _arg3, _arg4); return true; } case TRANSACTION_confirmCredentials: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); android.accounts.Account _arg1; if ((0!=data.readInt())) { _arg1 = android.accounts.Account.CREATOR.createFromParcel(data); } else { _arg1 = null; } android.os.Bundle _arg2; if ((0!=data.readInt())) { _arg2 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg2 = null; } this.confirmCredentials(_arg0, _arg1, _arg2); return true; } case TRANSACTION_getAuthToken: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); android.accounts.Account _arg1; if ((0!=data.readInt())) { _arg1 = android.accounts.Account.CREATOR.createFromParcel(data); } else { _arg1 = null; } java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.getAuthToken(_arg0, _arg1, _arg2, _arg3); return true; } case TRANSACTION_getAuthTokenLabel: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg1; _arg1 = data.readString(); this.getAuthTokenLabel(_arg0, _arg1); return true; } case TRANSACTION_updateCredentials: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); android.accounts.Account _arg1; if ((0!=data.readInt())) { _arg1 = android.accounts.Account.CREATOR.createFromParcel(data); } else { _arg1 = null; } java.lang.String _arg2; _arg2 = data.readString(); android.os.Bundle _arg3; if ((0!=data.readInt())) { _arg3 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg3 = null; } this.updateCredentials(_arg0, _arg1, _arg2, _arg3); return true; } case TRANSACTION_editProperties: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg1; _arg1 = data.readString(); this.editProperties(_arg0, _arg1); return true; } case TRANSACTION_hasFeatures: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); android.accounts.Account _arg1; if ((0!=data.readInt())) { _arg1 = android.accounts.Account.CREATOR.createFromParcel(data); } else { _arg1 = null; } java.lang.String[] _arg2; _arg2 = data.createStringArray(); this.hasFeatures(_arg0, _arg1, _arg2); return true; } case TRANSACTION_getAccountRemovalAllowed: { data.enforceInterface(DESCRIPTOR); android.accounts.IAccountAuthenticatorResponse _arg0; _arg0 = android.accounts.IAccountAuthenticatorResponse.Stub.asInterface(data.readStrongBinder()); android.accounts.Account _arg1; if ((0!=data.readInt())) { _arg1 = android.accounts.Account.CREATOR.createFromParcel(data); } else { _arg1 = null; } this.getAccountRemovalAllowed(_arg0, _arg1); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.accounts.IAccountAuthenticator { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } /** * prompts the user for account information and adds the result to the IAccountManager */ public void addAccount(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, android.os.Bundle options) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); _data.writeString(accountType); _data.writeString(authTokenType); _data.writeStringArray(requiredFeatures); if ((options!=null)) { _data.writeInt(1); options.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_addAccount, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * prompts the user for the credentials of the account */ public void confirmCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, android.os.Bundle options) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); if ((account!=null)) { _data.writeInt(1); account.writeToParcel(_data, 0); } else { _data.writeInt(0); } if ((options!=null)) { _data.writeInt(1); options.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_confirmCredentials, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * gets the password by either prompting the user or querying the IAccountManager */ public void getAuthToken(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); if ((account!=null)) { _data.writeInt(1); account.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(authTokenType); if ((options!=null)) { _data.writeInt(1); options.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getAuthToken, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * Gets the user-visible label of the given authtoken type. */ public void getAuthTokenLabel(android.accounts.IAccountAuthenticatorResponse response, java.lang.String authTokenType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); _data.writeString(authTokenType); mRemote.transact(Stub.TRANSACTION_getAuthTokenLabel, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * prompts the user for a new password and writes it to the IAccountManager */ public void updateCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); if ((account!=null)) { _data.writeInt(1); account.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(authTokenType); if ((options!=null)) { _data.writeInt(1); options.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_updateCredentials, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * launches an activity that lets the user edit and set the properties for an authenticator */ public void editProperties(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); _data.writeString(accountType); mRemote.transact(Stub.TRANSACTION_editProperties, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has the * specified features */ public void hasFeatures(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String[] features) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); if ((account!=null)) { _data.writeInt(1); account.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStringArray(features); mRemote.transact(Stub.TRANSACTION_hasFeatures, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } /** * Gets whether or not the account is allowed to be removed. */ public void getAccountRemovalAllowed(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((response!=null))?(response.asBinder()):(null))); if ((account!=null)) { _data.writeInt(1); account.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_getAccountRemovalAllowed, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_addAccount = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_confirmCredentials = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getAuthToken = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_getAuthTokenLabel = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_updateCredentials = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_editProperties = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_hasFeatures = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_getAccountRemovalAllowed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); } /** * prompts the user for account information and adds the result to the IAccountManager */ public void addAccount(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, android.os.Bundle options) throws android.os.RemoteException; /** * prompts the user for the credentials of the account */ public void confirmCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, android.os.Bundle options) throws android.os.RemoteException; /** * gets the password by either prompting the user or querying the IAccountManager */ public void getAuthToken(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options) throws android.os.RemoteException; /** * Gets the user-visible label of the given authtoken type. */ public void getAuthTokenLabel(android.accounts.IAccountAuthenticatorResponse response, java.lang.String authTokenType) throws android.os.RemoteException; /** * prompts the user for a new password and writes it to the IAccountManager */ public void updateCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options) throws android.os.RemoteException; /** * launches an activity that lets the user edit and set the properties for an authenticator */ public void editProperties(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType) throws android.os.RemoteException; /** * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has the * specified features */ public void hasFeatures(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String[] features) throws android.os.RemoteException; /** * Gets whether or not the account is allowed to be removed. */ public void getAccountRemovalAllowed(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account) throws android.os.RemoteException; }