porting liboverlay

by Sambhav » Fri, 07 May 2010 21:48:38 GMT


Sponsored Links
 Hi,

By default overlay module at *hardware\libhardware\modules\overlay* is a
skeleton implementation.
I am calling the V4L2 driver calls from these functions.
I have build the module - liboverlay.so

Where should I indicate that Overlay calls made from *
frameworks/base/libs/ui/Overlay.cpp* to use the services from *liboverlay.so
*created above.

Regards,
Sambhav

-- 



porting liboverlay

by Deva R » Mon, 10 May 2010 22:39:18 GMT


 when overlay is created, it walks through overlay hardware module




so, instead of generating generic liboverlay.so, its better to generate
module with hardware name appeneded.

you can update your overlay -> Android.mk module name as below..
LOCAL_MODULE := overlay.$(TARGET_BOARD_PLATFORM)


Not sure if you leave it as just liboverlay.so, it will work or not..






> website: 


Sponsored Links


porting liboverlay

by Sambhav » Mon, 10 May 2010 23:49:25 GMT


 when hw_get_module is called the hardware.c forms the complete path to the
library based on certain predefined values which by default comes to
/system/lib/hw/overlay.default.so


Another things is in the sample
programs*frameworks/base/libs/surfaceflinger/tests/overlay/
*
*

sp<OverlayRef> ref = isurface->createOverlay(320, 240,
PIXEL_FORMAT_RGB_565);
*

ref is used in sp<Overlay> overlay = new Overlay(ref);

which comes to the code give below.

    if (overlayRef != 0) {
        if (hw_get_module(OVERLAY_HARDWARE_MODULE_ID, &module) == 0) {
            if (overlay_data_open(module, &mOverlayData) == NO_ERROR) {
               mStatus = mOverlayData->initialize(mOverlayData,
                        overlayRef->mOverlayHandle);
            }

However the condition is failing  if (overlayRef != 0) and hence overlay
object creation fails.

Any idea on what is going wrong ?

the function isurface->createOverlay
comes to
remote()->transact(CREATE_OVERLAY, data, &reply); in
file*frameworks/base/libs/ui/ISurface.cpp
*
from here I was not able to trace where the control is going to.






>> website: 



Other Threads

1. android: issue of how to detect which contact id is changed

Dear Experts:

I am coming across an issue of how to detect which contact id is
changed. I can detect the change via content observer, cursor. I don't
want to detect through intent receiver with a data because I am a 3rd
party application developer.

For delected contact we can detected.

However, I would like to see if there is any way we can check through
the contact database ex. raw_contacts, contacts.


any comments is welcomed

-- 

2. Reconciling Status Bar Bug with IME (soft keyboard) interaction

Some people have noticed if you have a fullscreen app,
which you leave and then resume, the status bar pushes your app window
down.

Others have pointed out this can be fixed with:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);


This of course breaks the IME, in that it no longer slides the window
upward - so the soft keyboard hides the editText you are trying to
type in.

I have worked around this issue with

_someEditText.setOnFocusChangeListener(new
View.OnFocusChangeListener() {
                        public void onFocusChange(View v, boolean hasFocus) {
                                if (hasFocus) {
        
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
                                } else {
        
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
                                }
                        }
                });

while leaving the initial setflags in onCreate as well.

-- 

3. ClassNotFoundException crash reports from Market

4. Video Rendering in Android

5. C2DM registration ID refresh

6. Cropping an image

7. Sending HTML email with GMail installed on G1