WiFi ad hoc interface

2009-04-28 Thread Anders

Hi,

I wonder what the development and release plans are for an interface
that allows you to configure an ad hoc connection. You can already do
this on ADP by changing the wifi configuration and reload using
wlan_loader. However, this is not something a normal user can do.

What are current status of the plans for this?
If I wanted to add this feature to framework myself, what would be the
best release/tag to use? Any pointers to the location of the WiFi UI
interface files would be appreciated.

Thanks,
Anders
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to add an API to handle multi int parameters as output in BnInterface and BpInterface

2009-04-28 Thread waterblood

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 spIBinder val) to pass down the
memory pointer to Binder. Is that means all input pointers should be
wrapper to a spIBinder? Is it a way to simply wrapper a int *,or
some basic type pointer?


Best Regards
Guoyin Chen

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Query on HID support on latest google release

2009-04-28 Thread Simantini Bhattacharya
Hi,
Had a couple of  queries regarding HID support on latest Android release
1) What is the HID version implemented on latest Android .
2)Does Android provide support for the phone to be a HID host as well as HID
device .
3)I had a preliminary glance at the donut code and saw a couple of files
like fakehid.c and Hid-input.c . In both these files the input key mappings
are done for specific keyboards. Will HID in android provide support for HID
devices like mouse , joysticks etc .  Also do we separate key mappings per
device or is there a generic HID class driver.

Awaiting your responses

Thanks
Simantini

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



PDF Documentation

2009-04-28 Thread gioMax

Hi @ all.
Is it possible to add a pdf version of the android documentation?

The htlm is useful for take a look, but for study the framework (that
is what I want to do) a pdf version could be more useful.

Is it possbile?

Thx
Max


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Who is attending Google I/O?

2009-04-28 Thread Droidin.com

If you are attending this years Google I/O Developers Conference you
can connect with others attending here:

http://droidin.com/events/google-io-developers

I thought it would be good to keep in-touch with the attendees before
and after the conference.

If you are attending, what do you plan on getting out of it?  Tips 
tricks, networking, learn more about the Android platform, just going
for fun?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Query on HID support on latest google release

2009-04-28 Thread Jaikumar

Hi Simantini
  There is no HID support from the framework yet in the latest Android
release, though Bluez supports it and the files you are referring to
are in bluez.

Thanks

On Apr 28, 4:13 am, Simantini Bhattacharya
simantini.bhattacha...@gmail.com wrote:
 Hi,
 Had a couple of  queries regarding HID support on latest Android release
 1) What is the HID version implemented on latest Android .
 2)Does Android provide support for the phone to be a HID host as well as HID
 device .
 3)I had a preliminary glance at the donut code and saw a couple of files
 like fakehid.c and Hid-input.c . In both these files the input key mappings
 are done for specific keyboards. Will HID in android provide support for HID
 devices like mouse , joysticks etc .  Also do we separate key mappings per
 device or is there a generic HID class driver.

 Awaiting your responses

 Thanks
 Simantini
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Method to get the current size of the database

2009-04-28 Thread Jeff Hamilton

There isn't a method currently to return that, but you could do
something like this:

long getDbSize(SQLiteDatabase db) {
return db.getPageSize() * DatabaseUtils.longForQuery(db, PRAGMA
page_count;, null);
}

-Jeff

On Wed, Apr 22, 2009 at 5:59 PM, Kalki tummala.se...@gmail.com wrote:

 Hi ,

 I have created a database using the method openorCreateDatabase() and
 set the maximum size of the database to 1MB using the method
 setMaximumSize().

 Now is there any methods available to check the current size of the
 database.
 Will an exception be thrown if the size exceeds 1MB.
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to test omx encoder in opencore 2.0?(on emulator)

2009-04-28 Thread chuan

Hi al,
Is any simple way to test omx encoder(audio) component in opencore
2.0?
Is anybody has try to test new omx encoder component ?
Thx!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to enable Overlay features in Android

2009-04-28 Thread Jill.Zhou

Hi, Ajay

But how to set position of overlay with current overlay interface.

Regards
Jill
On Mar 24, 12:33 pm, AJAY ajay...@gmail.com wrote:
 You are correct. The current android_surface_output.cpp doesnt have
 any Overlay implementation . However you can check the TI
 implementation at omap-zoom site

 Here is the link 
 :http://git.omapzoom.org/?p=platform/hardware/ti/omap3.git;a=tree;f=li...

 -Ajay

 On Mar 19, 10:52 am, waterblood guoyin.c...@gmail.com wrote:



  Hi All,

     Below is my understanding about how to enable theOverlayin a new
  hardware platform. Correct me if I am wrong.

  1.  Implement the stub funtions in hardware\libhardware\modules\overlay
  \overlay.cpp, this will generate a share library liboverlay.trout.so.

  2. In SurfaceFlinger, it will create a DisplayHardware instance, and
  call DisplayHardware::init() which will create anoverlayengine from
  liboverlay.trout.so.

  3. When we want a OverlayRef from ISurface, we call
  ISurface::createOverlay() which will take use of theoverlayengine
  creat in step 2.

  4. Create aOverlayfrom OverlayRef as it in frameworks\base\libs
  \surfaceflinger\tests\overlays\overlays.cpp.

      spOverlayRef ref = isurface-createOverlay(320, 240,
  PIXEL_FORMAT_RGB_565);
      spOverlayoverlay= newOverlay(ref);

      /*
       * here we can use theoverlayAPI
       */

      overlay_buffer_t buffer;
     overlay-dequeueBuffer(buffer);
      printf(buffer = %p\n, buffer);

      void* address =overlay-getBufferAddress(buffer);
      printf(address = %p\n, address);

     overlay-queueBuffer(buffer);

  My questions are:
  a. In step 4, as we want paint something in theoverlay, should we
  just put the image data to the buffer return by  overlay-dequeueBuffer
  (), and call queueBuffer() to show the buffer?

  b. I dont see any update in android_surface_output to take use 
  ofoverlayinterface, will it be updated to useoverlayinterface ifoverlayis 
  exit in the hardware? I suggest the surface output may try
  to create OverlayRef from surface interface, if it fail, surface
  output take the display mechanism as before(post buffer), otherwise it
  use thisoverlayto display video frame.

  Thanks
  Guoyin Chen- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to add an API to handle multi int parameters as output in BnInterface and BpInterface

2009-04-28 Thread Dianne Hackborn
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 spIBinder val) to pass down the
 memory pointer to Binder. Is that means all input pointers should be
 wrapper to a spIBinder? 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
-~--~~~~--~~--~--~---



how does skia OpenGL backend works?

2009-04-28 Thread mailandroid

Hi,

Could anyone explain me how skia OpenGL backend works?

SkCanvas is the drawing context for Skia. How and When SkGLCanvas gets
invoked? On what parameter drawing gets diverted to OpenGL form? Does
application has to set some parameter?

thanks and regards
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: how does skia OpenGL backend works?

2009-04-28 Thread mailandroid

Thanks for immediate response. any idea when this will be done? Can we
expect the support in Donut releases?

On Apr 29, 9:28 am, Romain Guy romain...@google.com wrote:
 The OpenGL backend for Skia is not supported and not enabled.

 On Tue, Apr 28, 2009 at 9:27 PM, mailandroid mailandr...@gmail.com wrote:

  Hi,

  Could anyone explain me how skia OpenGL backend works?

  SkCanvas is the drawing context for Skia. How and When SkGLCanvas gets
  invoked? On what parameter drawing gets diverted to OpenGL form? Does
  application has to set some parameter?

  thanks and regards

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  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
-~--~~~~--~~--~--~---