/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: C:\\Users\\Administrator\\Downloads\\RockEar\\RockEar\\src\\com\\howard\\rockear\\service\\IEarService.aidl
 */
package com.howard.rockear.service;
public interface IEarService extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.howard.rockear.service.IEarService
{
private static final java.lang.String DESCRIPTOR = "com.howard.rockear.service.IEarService";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.howard.rockear.service.IEarService interface,
 * generating a proxy if needed.
 */
public static com.howard.rockear.service.IEarService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.howard.rockear.service.IEarService))) {
return ((com.howard.rockear.service.IEarService)iin);
}
return new com.howard.rockear.service.IEarService.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
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_registerCallBack:
{
data.enforceInterface(DESCRIPTOR);
com.howard.rockear.service.IEarActivity _arg0;
_arg0 = com.howard.rockear.service.IEarActivity.Stub.asInterface(data.readStrongBinder());
this.registerCallBack(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_testForService:
{
data.enforceInterface(DESCRIPTOR);
this.testForService();
reply.writeNoException();
return true;
}
case TRANSACTION_playNext:
{
data.enforceInterface(DESCRIPTOR);
this.playNext();
reply.writeNoException();
return true;
}
case TRANSACTION_playPrevious:
{
data.enforceInterface(DESCRIPTOR);
this.playPrevious();
reply.writeNoException();
return true;
}
case TRANSACTION_pauseTrack:
{
data.enforceInterface(DESCRIPTOR);
this.pauseTrack();
reply.writeNoException();
return true;
}
case TRANSACTION_resumeTrack:
{
data.enforceInterface(DESCRIPTOR);
this.resumeTrack();
reply.writeNoException();
return true;
}
case TRANSACTION_playTrack:
{
data.enforceInterface(DESCRIPTOR);
this.playTrack();
reply.writeNoException();
return true;
}
case TRANSACTION_setPlayMod:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.setPlayMod(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getPlayMod:
{
data.enforceInterface(DESCRIPTOR);
int _result = this.getPlayMod();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_notifyChnaged:
{
data.enforceInterface(DESCRIPTOR);
this.notifyChnaged();
reply.writeNoException();
return true;
}
case TRANSACTION_addToFavourite:
{
data.enforceInterface(DESCRIPTOR);
this.addToFavourite();
reply.writeNoException();
return true;
}
case TRANSACTION_seekTo:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
this.seekTo(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getCurrentSeekTime:
{
data.enforceInterface(DESCRIPTOR);
int _result = this.getCurrentSeekTime();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_saveRecentData:
{
data.enforceInterface(DESCRIPTOR);
this.saveRecentData();
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.howard.rockear.service.IEarService
{
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 void registerCallBack(com.howard.rockear.service.IEarActivity activity) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((activity!=null))?(activity.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerCallBack, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void testForService() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_testForService, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void playNext() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_playNext, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void playPrevious() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_playPrevious, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void pauseTrack() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_pauseTrack, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void resumeTrack() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_resumeTrack, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void playTrack() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_playTrack, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setPlayMod(int whitch) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(whitch);
mRemote.transact(Stub.TRANSACTION_setPlayMod, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public int getPlayMod() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getPlayMod, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void notifyChnaged() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_notifyChnaged, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void addToFavourite() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_addToFavourite, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void seekTo(int where) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(where);
mRemote.transact(Stub.TRANSACTION_seekTo, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public int getCurrentSeekTime() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getCurrentSeekTime, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void saveRecentData() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_saveRecentData, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_registerCallBack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_testForService = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_playNext = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_playPrevious = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_pauseTrack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_resumeTrack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_playTrack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_setPlayMod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_getPlayMod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_notifyChnaged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_addToFavourite = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_seekTo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_getCurrentSeekTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_saveRecentData = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
}
public void registerCallBack(com.howard.rockear.service.IEarActivity activity) throws android.os.RemoteException;
public void testForService() throws android.os.RemoteException;
public void playNext() throws android.os.RemoteException;
public void playPrevious() throws android.os.RemoteException;
public void pauseTrack() throws android.os.RemoteException;
public void resumeTrack() throws android.os.RemoteException;
public void playTrack() throws android.os.RemoteException;
public void setPlayMod(int whitch) throws android.os.RemoteException;
public int getPlayMod() throws android.os.RemoteException;
public void notifyChnaged() throws android.os.RemoteException;
public void addToFavourite() throws android.os.RemoteException;
public void seekTo(int where) throws android.os.RemoteException;
public int getCurrentSeekTime() throws android.os.RemoteException;
public void saveRecentData() throws android.os.RemoteException;
}
