when JNI_OnLoad() function will get call and by which component will it get call ?

2009-01-21 Thread srini amul
when JNI_OnLoad() function will get call and by which component will it get call ? Thanks Regards, P.Sriniamul Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ --~--~-~--~~~---~--~~ You received

Re: when JNI_OnLoad() function will get call and by which component will it get call ?

2009-01-21 Thread Freepine
It's called when you invoke System.loadLibrary(xxx) in java layer. Dalvik VM interprets it and invokes c++ function nativeLoad() finally which actually loads the native library and calls JNI_OnLoad. On Wed, Jan 21, 2009 at 4:08 PM, srini amul srinia...@yahoo.com wrote: when JNI_OnLoad()

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Al Sutton
Looks good to me, it's an improvement over the existing code because dereferencing a static final variable will give any compiler or JIT a very strong hint that it's safe to substitute the value directly into the places where it's used at compile time as opposed to generating code which goes

need to know a code location for few functions

2009-01-21 Thread srini amul
a) which component is responsible of calling JNI_OnLoad() function   b) Where i can find a information about JNIENV / JNINativeMethod ? c) Where i can find a code for PVPlayer ?   d) Where i can find a code for EAS library ? like where i can find a EAS_Config() function defination ? Thanks

About the libhardware and overlay hardware interface.

2009-01-21 Thread hanchao3c
The hardware interface is continue changeing in cupcake branch. The hardware overlay interface has some changes now . libhardware/include/hardware/overlay.h Sample Code : hardware/libhardware/modules/overlay/overlay.cpp # The main change list: 1. overlay_device are separated as

RE: Displaying YUV data from middleware component

2009-01-21 Thread Wu, Jackie
Hi, Dave: I have a similar question about my implementation of YUV data view for camera. I have done the camera porting on EeePC for x86. The camera only generate YUV422 format data. But currently the Android seems not support that format directly so I converted the YUV422 to RGB565 in the

dev phone: WPA Enterprise working / http proxy no luck

2009-01-21 Thread martin d.
Hi there, some time ago there where questions here about using different authentication types than WPA and WPA2 [1] on the dev phone. Here is how it can be done by foot: 1) switch off wireless in Settings/Wireless Controls/Wi-Fi so that wpa_supplicant is stopped 2) edit the file

Re: Displaying YUV data from middleware component

2009-01-21 Thread iblues
Hi Dave, Based on your inputs, I did the following : 1. Create Surface object via JNI call (Passing Surface from app layer to framework via JNI) 2. Create a ashmem using 'new MemoryHeapBase(size)' After creating the buffer, when I try to get a ISurface instance (surface-getISurface() call),

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Jean-Baptiste Queru
Like I wrote in the original requirements, auto-generating java files as part of the build process is explicitly something that we don't want to do. That's why Joe's initial suggestion (and his current recommendation) is to use an API based on functions, not members, such that the list of values

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Al Sutton
It sounds like I've missed something, but why exclude build time generation? I punted the idea because these are values which are determined once the build starts (i.e. when the target has been specified) and don't alter once the build has completed, so build time sounds the right place to

Re: OpenCode potential error while streaming

2009-01-21 Thread OOD Tsen
Re: I saw the code,but I still get the error message in state MEDIA_PLAYER_PREPARING. I think in the /cupcake/frameworks/base/core/java/android/widget/ MediaController.java MediaController get player state by async function isPlaying() and it may not up to date. And the MediaController may

Re: ==== Replacing a codec lib in OpenCORE ====

2009-01-21 Thread OOD Tsen
Re: In current cupcake version, we can not load a new codec in runtime. We need to add a new codec in the make file and build in the system image. I think we need a codec management interface for 1. Load or unload codec 2. Register and Query codec information. OOD Tsen On Jan 20, 8:18 pm,

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Jean-Baptiste Queru
Yes, sorry, built-time-configurable was the wrong title for the thread. Should have been integration-time-configurable. JBQ On Wed, Jan 21, 2009 at 5:40 AM, Al Sutton a...@funkyandroid.com wrote: So we'd end up with a mix of buid-time-configuration properties (which is the title of this

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Al Sutton
And that was the bit I'd missed :). No worries, it all makes sense to me now. Thanks for taking the time to explain it. Al. Jean-Baptiste Queru wrote: Yes, sorry, built-time-configurable was the wrong title for the thread. Should have been integration-time-configurable. JBQ On Wed, Jan

JNI API of a media framework

2009-01-21 Thread srini amul
Is there any JNI API for media framework ?   I would like to use media framework library from my own library which is in C++. Hence i am looking for a JNI API interface for media framework. Thanks Regards, P.Sriniamul Add more friends to your messenger and enjoy! Go to

Re: how to use AudioRecord.java

2009-01-21 Thread Breno
Ok, but anyone answer your question...i'm having the same problem...But another question comes now: audio stream, to record directly from hardware toa buffer, is in that file, isn't it? Thanks a lot Breno On Jan 20, 3:23 am, GnuHash gnuh...@gmail.com wrote: hi Go through the file

Q: possible to add more of javax.xml.* API (interface) classes/packages in Android?

2009-01-21 Thread Tatu Saloranta
First of all, apologies if this is not the right group for the question/suggestion; but given that this relates to API of SDK, I hope it is relevant. I am working on couple of data format (xml, json) processing libraries, and would like them to work well on Android platform. For the most part

RE: PV Open Core architecture docs

2009-01-21 Thread David Lindquist
You can find documentation in the doc directory with the source code. The file pvplayer_developers_guide.pdf may be a good place to start. http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree -Original Message- From: android-framework@googlegroups.com

Re: JNI API of a media framework

2009-01-21 Thread Dave Sparks
Most of the media framework functionality is implemented as native C++ classes. I don't think you want to call the JNI functions directly. For example, mediaplayer.cpp implements the MediaPlayer class which is fairly similar to the Java MediaPlayer class (the JNI has a few adaptations required

Re: OpenCode potential error while streaming

2009-01-21 Thread Dave Sparks
You cannot send a pause during preparing state. The only command that will be accepted is reset. On Jan 21, 5:14 am, OOD Tsen oodt...@gmail.com wrote: Re: I saw the code,but I still get the error message in state MEDIA_PLAYER_PREPARING. I think in the

Re: Port Forward in Cupcake

2009-01-21 Thread Breno
I forgot to post the error message: KO: unexpected internal failure when resolving 10.0.2.15 This occurs every time, doesn't matter the protocol or the port. Any suggestion? Breno On Jan 21, 11:11 am, Breno breno.min...@gmail.com wrote: Hi,     Untill now, i were forwarding my PC ports

Re: Displaying YUV data from middleware component

2009-01-21 Thread Dave Sparks
I understand. You want two surfaces on the display with two different video sources. I don't see why this won't work. You just need to create two surface views in a single layout. There is still a LOT of work to be done in the OpenCore engine to support this use case though. On Jan 20, 9:45 pm,

Re: Exposing build-time-configurable aspects

2009-01-21 Thread Jean-Baptiste Queru
I thought that one of the goals I was aiming for was specifically to not store everything as a string (because if we do we might as well make SystemProperties public), given that the we assume that many values will be booleans. In fact there's an interesting optimization for booleans: if we

Re: About the libhardware and overlay hardware interface.

2009-01-21 Thread hanchao3c
Hi Spark. It seems current overlay interface can implemented by using these driver 1. v4l2 output 2. pmem 3. general fb. According to yourself , which do you prefer ? On Jan 22, 3:37 am, Dave Sparks davidspa...@android.com wrote: Yes, the intention with the overlay interface is to be able to

Re: Cannot launch ApiDemos adn DevTools in the latest release

2009-01-21 Thread John Cola
No one know the reason why??? On Jan 21, 2:56 pm, John Cola jt...@marvell.com wrote: When I try to push the ApiDemos.apk by adb myself, following logs showed and still cannot see the AP from the menu list... D/PackageParser(  283): Scanning package: /data/app/ApiDemos.apk W/PackageParser(