About Overlay interface

by pramod » Mon, 06 Apr 2009 06:34:11 GMT

Sponsored Links

I am implementing a custom MIO which makes use of Overlay interface.
my MIO calls the overlay ref  through the call "mSurface-

Currently i am facing problem in "mSurface->createOverlay", this is
not returning the OverlayRef. Due to this the next call to "new Overlay
(ref)" is failing.

layer,sp<OverlayRef>* overlayRef, uint32_t w, uint32_t h, int32_t
format)"  in LayerBuffer.cpp should return the Overlay ref object.

am i missing anything??? Is the overlay support fully implemented in
current Cupacake branch..?

Thanks in advance.


About Overlay interface

by waterblood » Tue, 07 Apr 2009 02:26:22 GMT

 It should be a overlay engine in surfaceflinger which means a you
should implment a overlay hardware HAL in hardware\libhardware\modules


Sponsored Links

About Overlay interface

by pramod » Tue, 07 Apr 2009 03:03:33 GMT

 hi ,

Thanks for responding, i have already implemented the overlay hardware
HAL in libhardware.
The overlay engine is created in the surfaceflinger,during
displayhardware init().
After putting some debug prints i found out that this overlay engine
is properly being used during the creation of the Overlay in
LayerBuffer::OverlaySource::OverlaySource. The OverlayRef is also
created and is retured properly.

But my problem is that i am not being able to access the OverlayRef
object in android_surface_output.cpp. The OverlayRef object is created
using the template class sp<>.

I have even included the libraries libutils, libcutils which might be
needed for usage of template class sp, and also the header file "utils/

Still i am not able to access the OverlayRef object.

Any help to solve the issue would be greatly appreciated.



About Overlay interface

by AJAY » Mon, 13 Apr 2009 10:58:42 GMT

 Hi Hanchao,

I am implementing a custom MIO which makes use of Overlay interface.I
have implemented my MIO calls "mSurface->createOverlay" to get
reference to the OverlayRef object.

The above createOverlay function is implemented in the ISurface.cpp.
The height ,weight, format information is passed using the parcel
object and the overlay is created succesfully. The created overlay is
passed back to the ISurface through the call
"OverlayRef::writeToParcel". But while reading the reply  parcel
through "OverlayRef::readFromParcel(reply)" call ,the OverlayRef
object is NULL.

Did you face similar issue when implementing overlay ?



Other Threads

1. OOT: Paging bro Lesj

Bro Lesj, semoga dalam keadaan baik, tolong kasi kabar. Salam solidaritas 

 Info Gempa Mag:7.6 SR, 30-Sep-09 17:16:09 WIB, Lok:0.84 LS-99.65 BT (57 km 
BaratDaya PARIAMAN-SUMBAR), Kedlmn:71 Km :BMKG

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:

2. MTJ error

Hi All,

I've been seeing this every now and then - must be some env.

Context: I've the latest 1.6 sdk. I would like to build the project on
1.5 as well as on 1.6. New 1.6 also comes with 1.5. My build succeeds,
but I get a bunch of error --- Not sure if I screwed the java env

Exception Stack:

java.lang.IllegalArgumentException: Invalid MTJ Project.
        at org.eclipse.mtj.internal.core.build.MTJBuildProperties.<init>
(Unknown Source)
(Unknown Source)
(Unknown Source)
(Unknown Source)
        at org.eclipse.core.internal.events.NotificationManager$2.run
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.NotificationManager.notify
        at org.eclipse.core.internal.resources.Workspace.broadcastPostChange
        at org.eclipse.core.internal.resources.Workspace.endOperation
        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Session Data:
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product

3. Android Market 1.6

4. Installing USB Driver for G1

5. android/gears geolocation example

6. Reading sensor values directly without having to use/wait for onSensorChanged

7. Reading sensor values directly without having to use/wait for onSensorChanged