If you are adding this to a Binder interface, you can write it as output parameters -- marshall the results into the reply, and unmarshall them into the int pointers on the other side. You can try writing an .aidl interface with these as [out]int and look at the generated Java code to get an idea of how you would write it.
On Tue, Apr 28, 2009 at 12:05 AM, waterblood <guoyin.c...@gmail.com> wrote: > > Hi All, > > I just want to add a simple api into current Android framework's > Interface. The API looks like as below: > > status_t getDestRect(int *left,int*right,int*top,int*bottom,int > *rot); > > in which int *left,int*right,int*top,int*bottom,int *rot works as > output parameters. > > I checked some implement of BpInterface, they all use > Parcel::writeStrongBinder(const sp<IBinder>& val) to pass down the > memory pointer to Binder. Is that means all input pointers should be > wrapper to a sp<IBinder>? Is it a way to simply wrapper a int *,or > some basic type pointer? > > > Best Regards > Guoyin Chen > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---