解析 Android 的 AIDL 介面
2010-07-21 01:11:00 来源:WEB开发网1.4.2 ?真Stub??的程式瘁
呃?Stub??就是由aidl.exe所?出的;也就是在calInterface.java彦面。?再重妖列出calInterface.java程式瘁如下:
/*---- calInterface.java ----*/
/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: calInterface.aidl
*/
package com.misoo.gx06;
import java.lang.String;
import android.os.RemoteException;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Binder;
import android.os.Parcel;
public interface calInterface extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.misoo.gx06.calInterface
{
private static final java.lang.String DESCRIPTOR = "com.misoo.gx06.calInterface";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
* Cast an IBinder object into an calInterface interface,
* generating a proxy if needed.
*/
public static com.misoo.gx06.calInterface asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
com.misoo.gx06.calInterface in = (com.misoo.gx06.calInterface)obj.queryLocalInterface(DESCRIPTOR);
if ((in!=null)) {
return in;
}
return new com.misoo.gx06.calInterface.Stub.Proxy(obj);
}
public android.os.IBinder asBinder()
{
return this;
}
public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
更多精彩
赞助商链接