GL acceleration in Emulator - demo - at Google IO

by Suman Saraf » Fri, 13 May 2011 21:58:29 GMT


Sponsored Links
 > Hello,

-- 



Re: GL acceleration in Emulator - demo - at Google IO

by David Turner » Mon, 16 May 2011 23:39:45 GMT


 


Not that I know of. It's a custom wire protocol.

Yes, look at development/tools/emulator/opengl/ (warning: work in progress)


-- 


Sponsored Links


Re: GL acceleration in Emulator - demo - at Google IO

by Suman Saraf » Fri, 20 May 2011 01:46:04 GMT


 Thanks David.

I checked out the latest code and have started to fiddle with it. I am trying 
to run this on x86 inside VirtualBox.

I have a few questions and would be glad if you could help:

1. I built everything inside shared and system and tests/gles_android_wrapper. 
That produced the EGL, GLES_v1 and GLES_v2 libraries. I copied these to my 
device along with the egl.cfg and gles_emul.cfg

2. do I need to build gralloc also? I did build it and planted it in 
system/lib/gralloc.default.so; overwriting the gralloc.default.so for the 
software only renderer.

3. now I need to build a renderer application which can render it remotely. I 
tried building host/renderer on Linux. Ideally I want to build this on Windows? 
Is it possible?
the resulting emulator_renderer binary (on Linux) failed to initialize 
frame-buffer because of unsupported EGL_RENDERABLE_TYPE in eglChooseConfig.

To reiterate, I ideally want to build the emulator_renderer on Windows. Is it 
possible? Is there an alternate way to render this remotely on Windows? How?

Am I completely off track or is this really the way to get this thing to run?

Thanks
Suman







-- 



Other Threads

1. Automate Google Maps on Android

I posted a blog on test automation example of 'Google Maps' on android
emulator
http://auto-simple.blogspot.com/2010/03/automate-google-maps-on-android.html

-- 

2. apply theme over setting application wide

Hi all.

I want to apply theme over setting application wide.


So I implemented below code but there was no effect. Please give me
help.


1. AndroidMenifest.xml


    <application android:label="@string/settings_label"
            android:icon="@drawable/ic_launcher_settings"
            android:theme="@android:style/Widget.ListView"
            android:taskAffinity="">
            -> added Widget.ListView style provided in android system
                and I changed style.xml file like below


2. FrameWork/base/core/res/res/values/styles.xml


    before change : <item
name="android:listSelector">@android:drawable/
list_selector_background</item>


    After change:
    <style name="Widget.ListView" parent="Widget.AbsListView">
        <item name="android:listSelector">@android:drawable/
list_selector_background_gradation</item>
        <item name="android:cacheColorHint">?android:attr/
colorBackgroundCacheHint</item>
        <item name="android:divider">@android:drawable/
divider_horizontal_dark_opaque</item>


3. FrameWork/base/core/res/res/drawable/
list_selector_background_gradation.xml


    -> I made list_selector_background_gradation.xml with below code.
        But those are really same to list_selector_background.xml and
just have XXX_gradation.


<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_window_focused="false"
        android:drawable="@color/transparent" />
    <!-- Even though these two point to the same resource, have two
states so the drawable will invalidate itself when coming out of
pressed state. -->
    <item android:state_focused="true" android:state_enabled="false"
        android:state_pressed="true"
        android:drawable="@drawable/
list_selector_background_disabled_gradation" />
    <item android:state_focused="true" android:state_enabled="false"
        android:drawable="@drawable/
list_selector_background_disabled_gradation" />
    <item android:state_focused="true" android:state_pressed="true"
        android:drawable="@drawable/
list_selector_background_transition_gradation" />
    <item android:state_focused="false" android:state_pressed="true"
        android:drawable="@drawable/
list_selector_background_transition_gradation" />
    <item android:state_focused="true"
        android:drawable="@drawable/
list_selector_background_focus_gradation" />
</selector>


4. FrameWork/base/core/res/res/drawable/
list_selector_background_transition_gradation.xml
    -> I made list_selector_background_transition_gradation.xml with
below code.
        But those are really same to
list_selector_background_transition.xml and just have XXX_gradation.


<transition xmlns:android="http://schemas.android.com/apk/res/
android">
    <item android:drawable="@android:drawable/
list_selector_background_pressed_gradation"  />
    <item android:drawable="@android:drawable/
list_selector_background_longpress_gradation"  />
</transition>


5. add image files
    -> I added new image files like below.


FrameWork/base/core/res/res/drawable-hdpi/
list_selector_background_disabled_gradation.9.png
FrameWork/base/core/res/res/drawable-hdpi/
list_selector_background_focus_gradation.9
FrameWork/base/core/res/res/drawable-hdpi/
list_selector_background_longpress_gradation.9
FrameWork/base/core/res/res/drawable-hdpi/
list_selector_background_pressed_gradation.9


And I do full build and expect to change background image in the
setting application but I couldn't


Please help me and let me know what is problem.


Thanks in advance
Mycall.


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. PPPD and AT commands.

4. Positioning/Layout of the Input Method / Soft Keyboard

5. Move the virtual keyboard to the top of the screen (SIP - IME)

6. Protocol exception : too many redirects

7. getHitRect - Android 1.5