[android-developers] It costs too much time when we continuously call the function setObjectField() in android JNI on pxa310 platform

2009-11-09 Thread xiaohua
Hi,

We met an issue on android-1.5 platform, based on linux-2.6.28, pxa310
processor.

When we use for-loop(e.g. 1024 times) to call the funciton
setObjectFied() in android JNI repeatly, we find that it costs much
more time on pxa310 platform than other hardwate platform, such as G2
or OPhone.

the code:
 for(int i=0; i  len; i++ )
 {
 (env)-SetObjectField(thiz,ival,intarray);
 }

Here are the time they cost:
pxa310:  call for 1024 times, cost about 3500ms
OPhone: call for 1024 times, cost about 780ms
G2: call for 1024 times, cost less than 10ms

And it costs about 800~1000ms on emulator.

In addition, if we only call setObjectFiled( ) for only once or twice,
it costs nearly the same time about 10ms on the three hardware
platforms above.

And if we call setIntField() or setByteField() repeatly, the common
type instead of object type, it costs little time on pxa310 too.

We analyze that it may in connection with the hardware platform we
used. Our CPU has had a very high frequency 800MHZ than other
hardware, so we think that is it possible in connection with our
compiler? We have tried to use jdk1.5 and jdk1.6 to compile our test
apk, the result is the same. But the compiler we use to compile the
kernel and android system is android's default compiler: arm-
eabi-4.2.1 in android/prebuild/linux-x86/toolchain/, should we need to
do some porting job with the compiler according to the hardware
platform?

Or if it is caused by small memory, how should we configure the memory
settings to enlarge the memory for each process in dalvik?

Or caused by something else?

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


[android-developers] Re: Device offline

2009-06-19 Thread xiaohua

It's the same error I have encountered.
The same phone works ok on WinXp, but can't use adb in ubuntu.

On 5月10日, 上午10时19分, krishnakanth krishnakan...@gmail.com wrote:
 Hi,

 I have a problem when trying to see use the Android for development on
 Ubuntu. The device is shown as offline. Although it detects the
 device.

 when I type
 % adb devices
 List of devices attached
 HT845GZ50600offline

 I am using:
 Ubuntu 9.04 (Jaunty)

 Few things I tried:

 1. I have changed the 50-android.rules file and reloaded the udev.
 [ as suggested by docs]
 2. 51-android.rules ( if there was another 50 then this would have
 worked) and it worked for some users [ diff thread in the forum] .
 2. I also killed adb server and restarted it.
 3. It works on Windows, but I want to develop on Ubuntu ( and curious
 why it doesnt work).

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



[android-developers] Re: Use a new USB vid, How to support adb tools in linux, like Ubuntu

2009-06-03 Thread xiaohua



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



[android-developers] Does fastboot tools support large img download?

2009-06-01 Thread xiaohua

Hi all,

Fastboot support below 64M img download, but if the img is larger than
64M, it can't work.
How can I do enable fastboot support larger file?

Any idea is appreciate, thanks.

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



[android-developers] what's the max img size fastboot support?

2009-05-25 Thread xiaohua

Dear all,

Android fastboot is a good tools, when flash the bin to phone.
We can use fastboot, to flash the boot system, and other partition
phone supports.

Now, when system partition is 90M in My phone, and the system.img
is 71M, use fastboot,

   fastboot flash system system.img

   It show error info data too large, and flash failed.
   But I can't find something useful source file in /system/core/
fastboot folder.

   Is fastboot not support large size img? How to modify the tool and
support large img?

   Any idea is very thanksful!

Thanks,
xiaohua

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



[android-developers] Use a new USB vid, How to support adb tools in linux, like Ubuntu

2009-05-25 Thread xiaohua

Hello Everyone,

I use a new usb vid, and add the new vid to these files


transport_usb.c (is_adb_interface function)
adb.h
usb_osx.c.


And build the linux sdk from Android source, then genereate the
windows sdk use cygwin. The new sdk have a tools folder, and adb.exe
and AdbWinApi.dll files in it. Setup the new usb driver,


adb kill-server
adb devices


The adb tools can't work, No devices attached message show, Than
replace the AdbWinApi.dll with the Android source /development/host/
windows/prebuilt/usb/AdbWinApi.dll, and then exec


adb kill-server
adb devices


adb tools use ok!


And now, I want use adb in linux OS, Ubuntu or Fedora. Use the
build linux sdk adb tools


Add 50-android.rules to /etc/udev/rule.d, content below,
SUBSYSTEM==usb, SYSFS{idVendor}==1234, SYMLINK
+=android_adb,
MODE=0666


then exec


./adb kill-server
./adb devices


 No devices attached message show.
 But use HTC G1, and Modify 50-android.rules,


SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, SYMLINK
+=android_adb,
MODE=0666


 The adb tools works well on HTC G1.


 I doubt, Maybe the sdk tools something wrong, because in windows
OS, I have replace the AdbWinApi.dll. And I think, some file must
replace in the linux sdk tools, but which file or something other
wrong?


 Would any one please let me know, How to use the adb tools in
linux os, which use the new  usb VID?


Thanks
xiaohua

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