[android-porting] Surface Surfaceview surfaceholder window windowmanager

2009-06-22 Thread nick xie
Deal all ~~ I am a newer on grahp, and I was bewildered by the classes such as Surface,Surfaceview, surfaceholder, window and windowmanager When i readed the android graph source. In my opinion, the surfaceview is used to control draw one graph on canvas, and the surface is used to control

[android-porting] Re: bug report: alsa_sound

2009-06-22 Thread xro
ok... I'm looking for the bug... I will post again it will be ok... thanks for reply... --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: Service manager crashing after launch

2009-06-22 Thread Neo
3binder_mmap: 717 40008000-40028000 bad vm_flags failed -1 3init: service servicemanager crashed 3init: critical process 'servicemanager' exited 4 times in 4 minutes; rebooting into recovery mode 0Restarting system with command 'recovery'. Just got over this error: in binder.c I had to

[android-porting] Re: permissions problem on x86 porting

2009-06-22 Thread thomasbl
On Jun 19, 7:14 pm, Chen Yang sunsety...@gmail.com wrote: It looks like that you haven't mounted the /data with proper partition, and since it is on root fs and remounted as read-only, thus the dexopt cannot create the dexopted files under /data/dalvik-cache thx for the hint! I changed the

[android-porting] Re: permissions problem on x86 porting

2009-06-22 Thread Chen Yang
In short, no. I think lots of android on x86 have the data partition as ext2, it works correctly. -- Chen On Mon, Jun 22, 2009 at 9:04 PM, thomasbl thoma...@debroid.org wrote: On Jun 19, 7:14 pm, Chen Yang sunsety...@gmail.com wrote: It looks like that you haven't mounted the /data with

[android-porting] ALSA buffer size

2009-06-22 Thread xro
hi. I have a bug on my platform and i need to set the buffer... Android would like a buffer of 16384 and i have one of 2048... So i have to hack a test and the sound is really bad... someone know where is the buffersize set? thanks --~--~-~--~~~---~--~~

[android-porting] Re: ALSA buffer size

2009-06-22 Thread Sean McNeil
there are 2 of these structures defined in hardware/alsa_sound/AudioHardwareALSA.cpp. Look for static StreamDefaults _defaults one is for playback, and one for record. You are interested in the one for playback. There are 2 things that are meaningful for this issue in this structure: latency

[android-porting] Re: ALSA buffer size

2009-06-22 Thread xro
thanks for reply. static StreamDefaults _defaults = { devicePrefix : AndroidRecord, direction : SND_PCM_STREAM_CAPTURE, format : SND_PCM_FORMAT_S16_LE, // AudioSystem::PCM_16_BIT channels : 1, sampleRate :

[android-porting] Re: ALSA buffer size

2009-06-22 Thread Ravishankar Haranath
Check it in, android-src/hardware/alsa_sound/AudioHardwareALSA.cpp file. You may try with a value of 768 for the buffer-size. There is an InputStream class and an OutputStream class. set the value for buffer-size there. On Mon, Jun 22, 2009 at 7:50 PM, xro romanen...@hotmail.com wrote: hi.

[android-porting] Re: ALSA buffer size

2009-06-22 Thread xro
Is it possible to set the buffer size? --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~--~~~~--~~--~--~---

[android-porting] Re: ALSA buffer size

2009-06-22 Thread xro
when i look my proc i have that: cat /proc/asound/cardX/pcmXY/subX/prealloc 8 cat /proc/asound/cardX/pcmXY/subX/prealloc_max 8 so it says that the max buffer is 8k. rigth? so what can i do? --~--~-~--~~~---~--~~ unsubscribe:

[android-porting] Re: Touch Screen Issue Please suggest some approach

2009-06-22 Thread shridhar
Hi all, I am stuck at this point for a long time. I have my homescreen up but the screen is locked. Please suggest me some means of unlocking the homescreen. Also is there any means to connect an external keyboard with Android, so that I can map a particular key as the home key and get the

[android-porting] Re: Touch Screen Issue Please suggest some approach

2009-06-22 Thread Elvis Dowson
Hi, Try applying this patch. diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java index 7b8a2a4..d9304c1 100644 --- a/services/java/com/android/server/InputDevice.java +++ b/services/java/com/android/server/InputDevice.java @@