How to execute monkey in multiple packages

2009-03-19 Thread z2cat

Hi,everyone
I am using Andriod Emulator and Monkey command to research how to
execute automation test on Android Platform
According to http://d.android.com/guide/developing/tools/monkey.html,there
are wordsTo specify multiple packages, use the -p option multiple
times — one -p option per package. I think that means i can input
multiple parameters of package names in one command,the result should
be execute monkey test in both packages.
But i input multiple  -p,only the first one executed.
such as adb shell monkey -p com.android.camera -p
com.android.contacts 50,the result is only 50 events in camera,no one
in contacts

Could someone tell what the problem is?and how to execute monkey in
multiple packages?

BTW,there is a mistake in 
http://d.android.com/guide/developing/tools/monkey.html,
about help parameter.actually should one-before it,not --
the correct one is adb shell monkey -help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: Path for .so to get linked against executable for target

2009-03-19 Thread nagamatu

According to your debug message, libtest1.so requires longjmp symbol
for link itself. Error message about '(null)' must be replace with
longjmp
symbol name. In linker.c, sym_name variable is used to show symbol
name, but it is not assigned to valid value at this timing. The
following
initialization statement must be done before this error message.

sym_name = (char *)(strtab + symtab[sym].st_name);

Iliyan, could you also fix this problem ?

I assume that you need implicit linking specification for libc -
because
longjmp is included in this library.

Regards,
nagamatu

On 3月18日, 午後4:44, Girish htgir...@gmail.com wrote:
 Hi lliyan Malchev and nagamatu,

 Can the latest cupcake code will give a fix for my problem or yet to
 be fixed ? lliyan i sent the file to your e-mail id.

 lliyan hope this fix will come soon. or u can send me the fix will
 test and let you know the result

 For a quick look pasting log here

 [ android linker  debugger ]
 DEBUG:  2967 elfdata @ 0xbec82d80
  2967 name libtest: allocated soinfo @ 0xb00158d8
 [  2967 linking libtest ]
 DEBUG:  2967 si-base = 0x si-flags = 0x0004
 DEBUG:  2967 PT_LOAD (phdr = 0x8094)
 DEBUG:  phdr-offset   = 0x
 DEBUG:  phdr-p_vaddr  = 0x8000
 DEBUG:  phdr-p_paddr  = 0x8000
 DEBUG:  phdr-p_filesz = 0xcbb4
 DEBUG:  phdr-p_memsz  = 0xcbb4
 DEBUG:  phdr-p_flags  = 0x0005
 DEBUG:  phdr-p_align  = 0x1000
 DEBUG:  2967 PT_LOAD (phdr = 0x80b4)
 DEBUG:  phdr-offset   = 0xd000
 DEBUG:  phdr-p_vaddr  = 0x00015000
 DEBUG:  phdr-p_paddr  = 0x00015000
 DEBUG:  phdr-p_filesz = 0x00016792
 DEBUG:  phdr-p_memsz  = 0x00016dc0
 DEBUG:  phdr-p_flags  = 0x0006
 DEBUG:  phdr-p_align  = 0x1000
 DEBUG:  2967 PT_DYNAMIC (phdr = 0x80d4)
 DEBUG:  phdr-offset   = 0x00023650
 DEBUG:  phdr-p_vaddr  = 0x0002b650
 DEBUG:  phdr-p_paddr  = 0x0002b650
 DEBUG:  phdr-p_filesz = 0x00f8
 DEBUG:  phdr-p_memsz  = 0x00f8
 DEBUG:  phdr-p_flags  = 0x0006
 DEBUG:  phdr-p_align  = 0x0004
 DEBUG:  2967 dynamic = 0x2b650
 DEBUG:  2967 d = 0x2b650, d[0] = 0x0001 d[1] = 0x0001
 DEBUG:  2967 d = 0x2b658, d[0] = 0x0001 d[1] = 0x0010
 DEBUG:  2967 d = 0x2b660, d[0] = 0x0001 d[1] = 0x001e
 DEBUG:  2967 d = 0x2b668, d[0] = 0x0001 d[1] = 0x0027
 DEBUG:  2967 d = 0x2b670, d[0] = 0x0001 d[1] = 0x002f
 DEBUG:  2967 d = 0x2b678, d[0] = 0x0001 d[1] = 0x003c
 DEBUG:  2967 d = 0x2b680, d[0] = 0x0020 d[1] = 0x00015000
 DEBUG:  2967 libtest constructors (preinit_array) found at 0x15000
 DEBUG:  2967 d = 0x2b688, d[0] = 0x0021 d[1] = 0x0008
 DEBUG:  2967 d = 0x2b690, d[0] = 0x0019 d[1] = 0x00015008
 DEBUG:  2967 libtest constructors (init_array) found at 0x15008
 DEBUG:  2967 d = 0x2b698, d[0] = 0x001b d[1] = 0x0008
 DEBUG:  2967 d = 0x2b6a0, d[0] = 0x001a d[1] = 0x00015010
 DEBUG:  2967 libtest destructors (fini_array) found at 0x15010
 DEBUG:  2967 d = 0x2b6a8, d[0] = 0x001c d[1] = 0x0008
 DEBUG:  2967 d = 0x2b6b0, d[0] = 0x0004 d[1] = 0x8108
 DEBUG:  2967 d = 0x2b6b8, d[0] = 0x0005 d[1] = 0x8384
 DEBUG:  2967 d = 0x2b6c0, d[0] = 0x0006 d[1] = 0x81c4
 DEBUG:  2967 d = 0x2b6c8, d[0] = 0x000a d[1] = 0x01aa
 DEBUG:  2967 d = 0x2b6d0, d[0] = 0x000b d[1] = 0x0010
 DEBUG:  2967 d = 0x2b6d8, d[0] = 0x0015 d[1] = 0x
 DEBUG:  2967 d = 0x2b6e0, d[0] = 0x0003 d[1] = 0x0002b748
 DEBUG:  2967 d = 0x2b6e8, d[0] = 0x0002 d[1] = 0x0070
 DEBUG:  2967 d = 0x2b6f0, d[0] = 0x0014 d[1] = 0x0011
 DEBUG:  2967 d = 0x2b6f8, d[0] = 0x0017 d[1] = 0x8538
 DEBUG:  2967 d = 0x2b700, d[0] = 0x0011 d[1] = 0x8530
 DEBUG:  2967 d = 0x2b708, d[0] = 0x0012 d[1] = 0x0008
 DEBUG:  2967 d = 0x2b710, d[0] = 0x0013 d[1] = 0x0008
 DEBUG:  2967 si-base = 0x, si-strtab = 0x8384, si-symtab =
 0x81c4
 DEBUG:  2967 libtest needs libtest1.so
 [  2967 'libtest1.so' has not been loaded yet.  Locating...]
 [  2967 opening libtest1.so ]
 [  2967 Computing extents for 'libtest1.so'. ]
 bionic/linker/linker.c:484| WARNING: `libtest1.so` is not a prelinked
 library
 [  2967 - Non-prelinked library 'libtest1.so' found. ]
 [  2967 - 'libtest1.so' (not pre-linked) wants base=0x
 sz=0x000b1000 ]
 [  2967 allocated memory for libtest1.so @ 0x8000 (0x000b1000) ]
  2967 name libtest1.so: allocated soinfo @ 0xb00159ec
 [  2967 - Begin loading segments for 'libtest1.so' @ 0x8000 ]
 DEBUG:  2967 PT_ARM_EXIDX (phdr = 0xb0019e10)
 DEBUG:  phdr-offset   = 0x000aaa78
 DEBUG:  phdr-p_vaddr  = 0x000aaa78
 DEBUG:  phdr-p_paddr  = 0x000aaa78
 DEBUG:  phdr-p_filesz = 0x2bf0
 DEBUG:  phdr-p_memsz  = 0x2bf0
 DEBUG:  phdr-p_flags  = 0x0004
 DEBUG:  phdr-p_align  = 

Re: integrate OMX core in 2.0

2009-03-19 Thread rktb

Libraries included under LOCAL_WHOLE_STATIC_LIBRARIES will not be
stripped of unneeded symbols.
Libraries included under LOCAL_STATIC_LIBRARIES will be stripped of
unneeded symbols.

-Ravi

On Mar 19, 5:00 am, Henry sdch...@gmail.com wrote:
 What is the difference between LOCAL_STATIC_LIBRARIES and
 LOCAL_WHOLE_STATIC_LIBRARIES?Do you use the marvell ipp lib?I am doing
 the work now.I can get the audio of video,but the picture of video is
 wrong.Can you give me some information?

 On 3月12日, 上午11时11分, Andy Quan androidr...@gmail.com wrote:

  Ravi,
  I have found the answer myself. It is because of the macro
  LOCAL_STATIC_LIBRARIES... I am now using LOCAL_WHOLE_STATIC_LIBRARIES
  instead. Thanks.

  On Wed, Mar 11, 2009 at 9:11 PM, rktb yend...@pv.com wrote:

   Which toolchain are your static libraries built from?

   On Mar 10, 9:15 pm, Andy Quan androidr...@gmail.com wrote:
Hi,
I am working on OMX core integration in 2.0 framework. I have used 
static
link before 2.0 release with exactly the same core and IL libs inside 
the
framework and they have been working correctly. Basically I have 
followed
the steps in integration guide documentation this time. I use google 
tool
chain to put all my prebuilt (not google tool chain) static OMX libs 
into
   a
single libOmx.so. But I am stuck in a problem where my libOmx.so can
   be
dlopened in interface class but all OMX core methods can not be found by
dlsym.

Actually the weird thing is I find symbols for OMX core methods are not
located in my libOmx.so when I try to use grep OMX_Init
   libOmx.so...
But I can grep other symbols located in IL components like aac omx
   component
from libOmx.so... My guess is that the object file containing my core
methods is somehow dropped during static-dynamic lib conversion.
   Therefore
it can not be grepped...

The 1st one below is my Android.mk generating libOmx.so. The 2nd one 
is
   to
push my prebuilt (not google tool chain) static libraries into $out
directory. OMX core methods, i.e. OMX_xxx, are located in
lib_il_basecore.a. Could anybody help on this? Thanks!

   --
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
src/OmxComponentRegistry.cpp
LOCAL_CFLAGS := $(PV_CFLAGS)
LOCAL_CFLAGS += -g
LOCAL_ARM_MODE := arm
LOCAL_STATIC_LIBRARIES := \
lib_il_aacdec \
lib_il_mp3dec \
lib_il_h264dec \
lib_il_mpeg4aspdec \
lib_il_omxmem \
lib_il_basecore \
miscGen
LOCAL_LDLIBS += -lpthread -ldl
LOCAL_MODULE := libOmx
LOCAL_C_INCLUDES := \
$(PV_TOP)/extern_libs_v2/khronos/openmax/include \
$(PV_INCLUDES)
-include $(PV_TOP)/Android_platform_extras.mk
-include $(PV_TOP)/Android_system_extras.mk
include $(BUILD_SHARED_LIBRARY)
include $(PV_TOP)/codecs_v2/omx/omx_vendor/lib/Android.mk

   -
LOCAL_PATH := $(call my-dir)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_basecore.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, miscGen.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_aacdec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mp3dec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_h264dec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mpeg4aspdec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_omxmem.a)

   ---

--
Thanks,
Andy

  --
  Thanks,
  Andy- 隐藏被引用文字 -

  - 显示引用的文字 -


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: integrate OMX core in 2.0

2009-03-19 Thread Henry

What is the difference between LOCAL_STATIC_LIBRARIES and
LOCAL_WHOLE_STATIC_LIBRARIES?Do you use the marvell ipp lib?I am doing
the work now.I can get the audio of video,but the picture of video is
wrong.Can you give me some information?

On 3月12日, 上午11时11分, Andy Quan androidr...@gmail.com wrote:
 Ravi,
 I have found the answer myself. It is because of the macro
 LOCAL_STATIC_LIBRARIES... I am now using LOCAL_WHOLE_STATIC_LIBRARIES
 instead. Thanks.





 On Wed, Mar 11, 2009 at 9:11 PM, rktb yend...@pv.com wrote:

  Which toolchain are your static libraries built from?

  On Mar 10, 9:15 pm, Andy Quan androidr...@gmail.com wrote:
   Hi,
   I am working on OMX core integration in 2.0 framework. I have used static
   link before 2.0 release with exactly the same core and IL libs inside the
   framework and they have been working correctly. Basically I have followed
   the steps in integration guide documentation this time. I use google tool
   chain to put all my prebuilt (not google tool chain) static OMX libs into
  a
   single libOmx.so. But I am stuck in a problem where my libOmx.so can
  be
   dlopened in interface class but all OMX core methods can not be found by
   dlsym.

   Actually the weird thing is I find symbols for OMX core methods are not
   located in my libOmx.so when I try to use grep OMX_Init
  libOmx.so...
   But I can grep other symbols located in IL components like aac omx
  component
   from libOmx.so... My guess is that the object file containing my core
   methods is somehow dropped during static-dynamic lib conversion.
  Therefore
   it can not be grepped...

   The 1st one below is my Android.mk generating libOmx.so. The 2nd one is
  to
   push my prebuilt (not google tool chain) static libraries into $out
   directory. OMX core methods, i.e. OMX_xxx, are located in
   lib_il_basecore.a. Could anybody help on this? Thanks!

  --
   LOCAL_PATH := $(call my-dir)
   include $(CLEAR_VARS)
   LOCAL_SRC_FILES := \
   src/OmxComponentRegistry.cpp
   LOCAL_CFLAGS := $(PV_CFLAGS)
   LOCAL_CFLAGS += -g
   LOCAL_ARM_MODE := arm
   LOCAL_STATIC_LIBRARIES := \
   lib_il_aacdec \
   lib_il_mp3dec \
   lib_il_h264dec \
   lib_il_mpeg4aspdec \
   lib_il_omxmem \
   lib_il_basecore \
   miscGen
   LOCAL_LDLIBS += -lpthread -ldl
   LOCAL_MODULE := libOmx
   LOCAL_C_INCLUDES := \
   $(PV_TOP)/extern_libs_v2/khronos/openmax/include \
   $(PV_INCLUDES)
   -include $(PV_TOP)/Android_platform_extras.mk
   -include $(PV_TOP)/Android_system_extras.mk
   include $(BUILD_SHARED_LIBRARY)
   include $(PV_TOP)/codecs_v2/omx/omx_vendor/lib/Android.mk

  -
   LOCAL_PATH := $(call my-dir)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_basecore.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, miscGen.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_aacdec.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mp3dec.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_h264dec.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mpeg4aspdec.a)
   $(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_omxmem.a)

  ---

   --
   Thanks,
   Andy

 --
 Thanks,
 Andy- 隐藏被引用文字 -

 - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: How to execute monkey in multiple packages

2009-03-19 Thread z2cat

Indeed, i tried with count 300,events happened in both packages, looks
like i set less count before

Thank you very much!

On 3月19日, 下午4时13分, Dianne Hackborn hack...@android.com wrote:
 It definitely works.  You may need to have it run more events to give it a
 chance to switch packages.

 If you are wanting to understand how it works, you also probably want to
 look at the monkey source code.  It's relatively straight-forward.





 On Thu, Mar 19, 2009 at 12:22 AM, z2cat zydream...@gmail.com wrote:

  Hi,everyone
  I am using Andriod Emulator and Monkey command to research how to
  execute automation test on Android Platform
  According tohttp://d.android.com/guide/developing/tools/monkey.html,there
  are wordsTo specify multiple packages, use the -p option multiple
  times -- one -p option per package. I think that means i can input
  multiple parameters of package names in one command,the result should
  be execute monkey test in both packages.
  But i input multiple  -p,only the first one executed.
  such as adb shell monkey -p com.android.camera -p
  com.android.contacts 50,the result is only 50 events in camera,no one
  in contacts

  Could someone tell what the problem is?and how to execute monkey in
  multiple packages?

  BTW,there is a mistake in
 http://d.android.com/guide/developing/tools/monkey.html,
  about help parameter.actually should one-before it,not --
  the correct one is adb shell monkey -help

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.- 隐藏被引用文字 -

 - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: The usage of -s parameter in Monkey Command

2009-03-19 Thread Eric Chen
Tell your friends to stop emailing me.

On Thu, Mar 19, 2009 at 2:35 AM, z2cat zydream...@gmail.com wrote:


 Hi,everyone
 I am using Andriod Emulator and Monkey command to research how to
 execute automation test on Android Platform
 According to http://d.android.com/guide/developing/tools/monkey.html,i
 can not quite clear about that after i read the description of -s
 Does that mean if i execute monkey with -s one time,the next time,i
 input -s ,the events happend will be the same as last time?
 And there should be a count behind -s,what's for?is there any
 relation with count of monkey? Those 2 counts should be same or
 different?

 BR
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: integrate OMX core in 2.0

2009-03-19 Thread Andy Quan
In my case, that macro difference would block building by dropping some dead
code. So I guess it would not help if you have already reached application
running.
As for functionality failures, I guess it is most probable that nodes or
render are not working correctly.

2009/3/19 Henry sdch...@gmail.com


 What is the difference between LOCAL_STATIC_LIBRARIES and
 LOCAL_WHOLE_STATIC_LIBRARIES?Do you use the marvell ipp lib?I am doing
 the work now.I can get the audio of video,but the picture of video is
 wrong.Can you give me some information?

 On 3月12日, 上午11时11分, Andy Quan androidr...@gmail.com wrote:
  Ravi,
  I have found the answer myself. It is because of the macro
  LOCAL_STATIC_LIBRARIES... I am now using LOCAL_WHOLE_STATIC_LIBRARIES
  instead. Thanks.
 
 
 
 
 
   On Wed, Mar 11, 2009 at 9:11 PM, rktb yend...@pv.com wrote:
 
   Which toolchain are your static libraries built from?
 
   On Mar 10, 9:15 pm, Andy Quan androidr...@gmail.com wrote:
Hi,
I am working on OMX core integration in 2.0 framework. I have used
 static
link before 2.0 release with exactly the same core and IL libs inside
 the
framework and they have been working correctly. Basically I have
 followed
the steps in integration guide documentation this time. I use google
 tool
chain to put all my prebuilt (not google tool chain) static OMX libs
 into
   a
single libOmx.so. But I am stuck in a problem where my libOmx.so
 can
   be
dlopened in interface class but all OMX core methods can not be found
 by
dlsym.
 
Actually the weird thing is I find symbols for OMX core methods are
 not
located in my libOmx.so when I try to use grep OMX_Init
   libOmx.so...
But I can grep other symbols located in IL components like aac omx
   component
from libOmx.so... My guess is that the object file containing my
 core
methods is somehow dropped during static-dynamic lib conversion.
   Therefore
it can not be grepped...
 
The 1st one below is my Android.mk generating libOmx.so. The 2nd
 one is
   to
push my prebuilt (not google tool chain) static libraries into $out
directory. OMX core methods, i.e. OMX_xxx, are located in
lib_il_basecore.a. Could anybody help on this? Thanks!
 
  
 --
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
src/OmxComponentRegistry.cpp
LOCAL_CFLAGS := $(PV_CFLAGS)
LOCAL_CFLAGS += -g
LOCAL_ARM_MODE := arm
LOCAL_STATIC_LIBRARIES := \
lib_il_aacdec \
lib_il_mp3dec \
lib_il_h264dec \
lib_il_mpeg4aspdec \
lib_il_omxmem \
lib_il_basecore \
miscGen
LOCAL_LDLIBS += -lpthread -ldl
LOCAL_MODULE := libOmx
LOCAL_C_INCLUDES := \
$(PV_TOP)/extern_libs_v2/khronos/openmax/include \
$(PV_INCLUDES)
-include $(PV_TOP)/Android_platform_extras.mk
-include $(PV_TOP)/Android_system_extras.mk
include $(BUILD_SHARED_LIBRARY)
include $(PV_TOP)/codecs_v2/omx/omx_vendor/lib/Android.mk
 
  
 -
LOCAL_PATH := $(call my-dir)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_basecore.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, miscGen.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_aacdec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mp3dec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_h264dec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_mpeg4aspdec.a)
$(call add-prebuilt-files, STATIC_LIBRARIES, lib_il_omxmem.a)
 
  
 ---
 
--
Thanks,
Andy
 
  --
  Thanks,
  Andy- 隐藏被引用文字 -
 
  - 显示引用的文字 -
  



-- 
Thanks,
Andy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Headset Input event

2009-03-19 Thread rambo

What event ID does android expect when a headsets key is pressed and
release.  On the G1 i noticed it was KEY_MEDIA event  but it doesn't
seem to work on the more recent releases
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: Headset Input event

2009-03-19 Thread Nick Pelly

key 226   HEADSETHOOK

On 3/19/09, rambo khambho...@gmail.com wrote:

  What event ID does android expect when a headsets key is pressed and
  release.  On the G1 i noticed it was KEY_MEDIA event  but it doesn't
  seem to work on the more recent releases
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: Headset Input event

2009-03-19 Thread rambo

Hmmm... Did something break in the most recent android release?  Key
226 doesn't look like it works

On Mar 19, 11:43 am, Nick Pelly npe...@google.com wrote:
 key 226   HEADSETHOOK

 On 3/19/09, rambo khambho...@gmail.com wrote:



   What event ID does android expect when a headsets key is pressed and
   release.  On the G1 i noticed it was KEY_MEDIA event  but it doesn't
   seem to work on the more recent releases
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: Headset Input event

2009-03-19 Thread rambo

Looking at the reference side should it instead be

public static final int KEYCODE_HEADSETHOOK

Constant Value: 79 (0x004f)


On Mar 19, 11:58 am, rambo khambho...@gmail.com wrote:
 Hmmm... Did something break in the most recent android release?  Key
 226 doesn't look like it works

 On Mar 19, 11:43 am, Nick Pelly npe...@google.com wrote:

  key 226   HEADSETHOOK

  On 3/19/09, rambo khambho...@gmail.com wrote:

    What event ID does android expect when a headsets key is pressed and
    release.  On the G1 i noticed it was KEY_MEDIA event  but it doesn't
    seem to work on the more recent releases
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: Outstanding cupcake - master merge

2009-03-19 Thread Jean-Baptiste Queru

I've put together a hack that allows the system to compile and start
all the way to the home app. I worked with the delicateness of
open-heart surgery performed with a chainsaw.

Steps:

-remove the opencore files ( rm -rf external/opencore
.repo/projects/external/opencore.git ). Remove opencore from your
.repo/manifest.xml if you intend to repo sync the entire world but
don't want to have to remove opencore every single time.

-patch in change 9300 ( repo download platform/frameworks/base 9300/1 )

-most probably do a clean build ( rm -rf out/ ; make )

I've tested on a device/release/generic/userdebug build. On my
machine, it compiles, launches. The media process dies (which probably
means that downloads are busted too), as well as the music player. The
browser starts and can access the network.

JBQ

On Wed, Mar 18, 2009 at 7:57 PM, Jean-Baptiste Queru j...@android.com wrote:
 I've submitted the merge (106 projects!), and I believe that the tree
 is in the state that it should be.

 Caveats:

 -THE BUILD IS BROKEN. You've been warned. There's been some drift
 around OpenCORE (probably situations where new code was written in
 cupcake that uses OpenCORE 1, or where APIs were removed in cupcake
 that OpenCORE 2 relies on).

 The proper command to try to merge the OpenCORE code should be git
 merge remotes/korg/cupcake (I'm typing from memory).

 -I'm not 100% sure that the server contains exactly what it should.
 I've had a filesystem failure right as I was trying to verify it, and
 I'm not gonna be able to verify until at least sometime tomorrow.

 JBQ

 On Wed, Mar 18, 2009 at 12:43 PM, Jean-Baptiste Queru j...@android.com 
 wrote:
 I expect to start submitting the changes in about an hour, i.e.
 between 1:30pm and 2pm PDT.

 Starting right now, you may want to avoid initiating a new repo sync,
 unless you're OK ending up with a tree that might not even compile.

 JBQ

 On Tue, Mar 17, 2009 at 6:35 PM, Jean-Baptiste Queru j...@android.com 
 wrote:
 [bcc android-platform, android-framework, android-porting]

 I'm working on merging the latest cupcake code drop into master. The
 task is quite hairy, so the following two guidelines probably apply:

 -please don't submit anything in gerrit, as you'll just get in my way.
 -now is a good time to repo sync master, as I'm going to have to
 submit the result of the merge in a state where it doesn't build, and
 I have no idea how long it'll take to get it to build again after
 that.

 Thanks,
 JBQ

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.




 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.




 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: integrate OMX core in 2.0

2009-03-19 Thread Henry

Thank Ravi and Andy very much.I konw the difference of
LOCAL_STATIC_LIBRARIES and
LOCAL_WHOLE_STATIC_LIBRARIES.I will check my code to find where the
wrong is.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Paranoia

I want to make a float input window. so i make my own float window
with the window type  TYPE_INPUT_METHOD_DIALOG in my ime application.
but permission denied. how to use this type. any one can give me an
example?

thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Dianne Hackborn
Don't.  Use popup-windows in your IME.

On Thu, Mar 19, 2009 at 7:16 PM, Paranoia zheny...@gmail.com wrote:


 I want to make a float input window. so i make my own float window
 with the window type  TYPE_INPUT_METHOD_DIALOG in my ime application.
 but permission denied. how to use this type. any one can give me an
 example?

 thanks!
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Paranoia

Thanks. can you tell me what its usage is?

On Mar 20, 10:18 am, Dianne Hackborn hack...@android.com wrote:
 Don't.  Use popup-windows in your IME.

 On Thu, Mar 19, 2009 at 7:16 PM, Paranoia zheny...@gmail.com wrote:

  I want to make a float input window. so i make my own float window
  with the window type  TYPE_INPUT_METHOD_DIALOG in my ime application.
  but permission denied. how to use this type. any one can give me an
  example?

  thanks!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: The usage of -s parameter in Monkey Command

2009-03-19 Thread z2cat

What? I don't know what exactly happen,and if someone is making
trouble for you,i am sure i know nothing,since i just register in this
forum last day and i work alone.


On 3月19日, 下午9时52分, Eric Chen ericrule...@gmail.com wrote:
 Tell your friends to stop emailing me.



 On Thu, Mar 19, 2009 at 2:35 AM, z2cat zydream...@gmail.com wrote:

  Hi,everyone
  I am using Andriod Emulator and Monkey command to research how to
  execute automation test on Android Platform
  According tohttp://d.android.com/guide/developing/tools/monkey.html,i
  can not quite clear about that after i read the description of -s
  Does that mean if i execute monkey with -s one time,the next time,i
  input -s ,the events happend will be the same as last time?
  And there should be a count behind -s,what's for?is there any
  relation with count of monkey? Those 2 counts should be same or
  different?

  BR- 隐藏被引用文字 -

 - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: How to execute monkey in multiple packages

2009-03-19 Thread z2cat

If from functional point,yes,more than 1000 better,but from end user
view,they will not do so much operations  continuously.But thank you
for your suggestion.

On 3月19日, 下午4时56分, Anonymous Anonymous firewallbr...@googlemail.com
wrote:
 300  may not be useful - you need try more i think i have tried with 1000s
 :)

 2009/3/19 z2cat zydream...@gmail.com





  Indeed, i tried with count 300,events happened in both packages, looks
  like i set less count before

  Thank you very much!

  On 3月19日, 下午4时13分, Dianne Hackborn hack...@android.com wrote:
   It definitely works.  You may need to have it run more events to give it
  a
   chance to switch packages.

   If you are wanting to understand how it works, you also probably want to
   look at the monkey source code.  It's relatively straight-forward.

   On Thu, Mar 19, 2009 at 12:22 AM, z2cat zydream...@gmail.com wrote:

Hi,everyone
I am using Andriod Emulator and Monkey command to research how to
execute automation test on Android Platform
According tohttp://
  d.android.com/guide/developing/tools/monkey.html,there
are wordsTo specify multiple packages, use the -p option multiple
times -- one -p option per package. I think that means i can input
multiple parameters of package names in one command,the result should
be execute monkey test in both packages.
But i input multiple  -p,only the first one executed.
such as adb shell monkey -p com.android.camera -p
com.android.contacts 50,the result is only 50 events in camera,no one
in contacts

Could someone tell what the problem is?and how to execute monkey in
multiple packages?

BTW,there is a mistake in
   http://d.android.com/guide/developing/tools/monkey.html,
about help parameter.actually should one-before it,not --
the correct one is adb shell monkey -help

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support.  All such questions should be posted on public
   forums, where I and others can see and answer them.- 隐藏被引用文字 -

   - 显示引用的文字 -- 隐藏被引用文字 -

 - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Dianne Hackborn
It's for the current IME.  It is used for you by InputMethodService, which
you use to make a standard IME.

For other windows inside of the IME, you can use PopupWindow.

On Thu, Mar 19, 2009 at 7:25 PM, Paranoia zheny...@gmail.com wrote:


 i mean TYPE_INPUT_METHOD_DIALOG. i thought i could make a float
 keyboard with the type. but seems that the name is somewhat misleading

 On Mar 20, 10:22 am, Paranoia zheny...@gmail.com wrote:
  Thanks. can you tell me what its usage is?
 
  On Mar 20, 10:18 am, Dianne Hackborn hack...@android.com wrote:
 
   Don't.  Use popup-windows in your IME.
 
   On Thu, Mar 19, 2009 at 7:16 PM, Paranoia zheny...@gmail.com wrote:
 
I want to make a float input window. so i make my own float window
with the window type  TYPE_INPUT_METHOD_DIALOG in my ime application.
but permission denied. how to use this type. any one can give me an
example?
 
thanks!
 
   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com
 
   Note: please don't send private questions to me, as I don't have time
 to
   provide private support.  All such questions should be posted on public
   forums, where I and others can see and answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Paranoia

i found that currently this type is NOT used in cupcake imf. only
TYPE_INPUT_METHOD.

in WindowManager.java,
/**
 * Window type: internal input methods dialog windows, which
appear above
 * the current input method window.
 */
public static final int TYPE_INPUT_METHOD_DIALOG=
FIRST_SYSTEM_WINDOW+12;

can you tell me the details use case of TYPE_INPUT_METHOD_DIALOG?

thanks

On Mar 20, 10:45 am, Dianne Hackborn hack...@android.com wrote:
 It's for the current IME.  It is used for you by InputMethodService, which
 you use to make a standard IME.

 For other windows inside of the IME, you can use PopupWindow.



 On Thu, Mar 19, 2009 at 7:25 PM, Paranoia zheny...@gmail.com wrote:

  i mean TYPE_INPUT_METHOD_DIALOG. i thought i could make a float
  keyboard with the type. but seems that the name is somewhat misleading

  On Mar 20, 10:22 am, Paranoia zheny...@gmail.com wrote:
   Thanks. can you tell me what its usage is?

   On Mar 20, 10:18 am, Dianne Hackborn hack...@android.com wrote:

Don't.  Use popup-windows in your IME.

On Thu, Mar 19, 2009 at 7:16 PM, Paranoia zheny...@gmail.com wrote:

 I want to make a float input window. so i make my own float window
 with the window type  TYPE_INPUT_METHOD_DIALOG in my ime application.
 but permission denied. how to use this type. any one can give me an
 example?

 thanks!

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time
  to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---



Re: how to use TYPE_INPUT_METHOD_DIALOG in cupcake IMF?

2009-03-19 Thread Paranoia

i have looked at SoftKeyboard and i have made my own.

i just want to know what the difference between PopupWindow and input
method dialog in IME is.
seems the input method dialog is not used in current cupcake IMF.

On Mar 20, 1:14 pm, Dianne Hackborn hack...@android.com wrote:
 Ah sorry that type is for dialogs inside of input methods.

 Anyway, please look at the SoftKeyboard sample code for how to write an IME.



 On Thu, Mar 19, 2009 at 7:54 PM, Paranoia zheny...@gmail.com wrote:

  i found that currently this type is NOT used in cupcake imf. only
  TYPE_INPUT_METHOD.

  in WindowManager.java,
         /**
          * Window type: internal input methods dialog windows, which
  appear above
          * the current input method window.
          */
         public static final int TYPE_INPUT_METHOD_DIALOG=
  FIRST_SYSTEM_WINDOW+12;

  can you tell me the details use case of TYPE_INPUT_METHOD_DIALOG?

  thanks

  On Mar 20, 10:45 am, Dianne Hackborn hack...@android.com wrote:
   It's for the current IME.  It is used for you by InputMethodService,
  which
   you use to make a standard IME.

   For other windows inside of the IME, you can use PopupWindow.

   On Thu, Mar 19, 2009 at 7:25 PM, Paranoia zheny...@gmail.com wrote:

i mean TYPE_INPUT_METHOD_DIALOG. i thought i could make a float
keyboard with the type. but seems that the name is somewhat misleading

On Mar 20, 10:22 am, Paranoia zheny...@gmail.com wrote:
 Thanks. can you tell me what its usage is?

 On Mar 20, 10:18 am, Dianne Hackborn hack...@android.com wrote:

  Don't.  Use popup-windows in your IME.

  On Thu, Mar 19, 2009 at 7:16 PM, Paranoia zheny...@gmail.com
  wrote:

   I want to make a float input window. so i make my own float
  window
   with the window type  TYPE_INPUT_METHOD_DIALOG in my ime
  application.
   but permission denied. how to use this type. any one can give me
  an
   example?

   thanks!

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have
  time
to
  provide private support.  All such questions should be posted on
  public
  forums, where I and others can see and answer them.

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support.  All such questions should be posted on public
   forums, where I and others can see and answer them.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
android-framework group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~--~~~~--~~--~--~---