OSDN Git Service

android-x86/dalvik.git
14 years agoam f1823804: Merge change 26285 into eclair
Lorenzo Colitti [Wed, 23 Sep 2009 00:49:21 +0000 (17:49 -0700)]
am f1823804: Merge change 26285 into eclair

Merge commit 'f182380424709227a08f7d84056209be0952d06d' into eclair-plus-aosp

* commit 'f182380424709227a08f7d84056209be0952d06d':
  Use native code to convert strings to IP addresses.

14 years agoMerge change 26285 into eclair
Android (Google) Code Review [Wed, 23 Sep 2009 00:40:32 +0000 (20:40 -0400)]
Merge change 26285 into eclair

* changes:
  Use native code to convert strings to IP addresses.

14 years agoUse native code to convert strings to IP addresses.
Lorenzo Colitti [Fri, 18 Sep 2009 22:25:06 +0000 (15:25 -0700)]
Use native code to convert strings to IP addresses.

1. Add an ipStringToByteArray method to the OSNetworkSystem interface and
   provide a native implementation for it.
2. Change InetAddress to use the new method.
3. Remove  a mid-sized chunk of Inet6Util, which is now redundant.
4. Remove the KnownFailure annotations from the InetAddress, InetAddress and
   Inet6Address tests that expected 1.2.3, 1.3 and 3 to be valid IPv4
   addresses. These tests now pass again.
5. Removed an unused native method.
6. Added a comment to the top of the native socket implementation to the effect
   that the file is significantly different from harmony.

Change-Id: I3665f82b00ebc089e9133cc6166dda5a99fa10e4

14 years agoam 40f3271c: More doc changes.
Andy McFadden [Tue, 22 Sep 2009 21:48:40 +0000 (14:48 -0700)]
am 40f3271c: More doc changes.

Merge commit '40f3271c2dd386878c9a180462c75c890913e9b4' into eclair-plus-aosp

* commit '40f3271c2dd386878c9a180462c75c890913e9b4':
  More doc changes.

14 years agoam 9ae00645: Merge change 26280 into eclair
Andy McFadden [Tue, 22 Sep 2009 21:48:36 +0000 (14:48 -0700)]
am 9ae00645: Merge change 26280 into eclair

Merge commit '9ae0064588a6f922834c8998ef91f04a0d19b1cc' into eclair-plus-aosp

* commit '9ae0064588a6f922834c8998ef91f04a0d19b1cc':
  Another doc update.

14 years agoMore doc changes.
Andy McFadden [Tue, 22 Sep 2009 20:55:42 +0000 (13:55 -0700)]
More doc changes.

Some content changes inspired by external developer feedback, plus some
corrections of long-standing typos.

14 years agoMerge change 26280 into eclair
Android (Google) Code Review [Tue, 22 Sep 2009 14:33:43 +0000 (10:33 -0400)]
Merge change 26280 into eclair

* changes:
  Another doc update.

14 years agoam 51ccfdb5: Merge change 26318 into eclair
Joshua Bloch [Tue, 22 Sep 2009 14:30:10 +0000 (07:30 -0700)]
am 51ccfdb5: Merge change 26318 into eclair

Merge commit '51ccfdb54990e2c30bc3057e8f18ee760c7eee41' into eclair-plus-aosp

* commit '51ccfdb54990e2c30bc3057e8f18ee760c7eee41':
  Fixed LinkedHashMap bug 2121546

14 years agoMerge change 26318 into eclair
Android (Google) Code Review [Tue, 22 Sep 2009 14:19:59 +0000 (10:19 -0400)]
Merge change 26318 into eclair

* changes:
  Fixed LinkedHashMap bug 2121546 Also made minor improvements in LinkedHashMap and NegativeCache. (The "opportunities for improvement" were discovered while investigating the bug.)

14 years agoFixed LinkedHashMap bug 2121546
Joshua Bloch [Mon, 21 Sep 2009 21:37:12 +0000 (14:37 -0700)]
Fixed LinkedHashMap bug 2121546
Also made minor improvements in LinkedHashMap and NegativeCache.
(The "opportunities for improvement" were discovered while investigating the bug.)

14 years agoam 2317d8dd: Merge change 26055 into eclair
Bob Lee [Tue, 22 Sep 2009 00:44:14 +0000 (17:44 -0700)]
am 2317d8dd: Merge change 26055 into eclair

Merge commit '2317d8dd084c260712ae50c42024c57825da1472' into eclair-plus-aosp

* commit '2317d8dd084c260712ae50c42024c57825da1472':
  Replaced an O(N) algorithm with an O(1) algorithm. This shaves off 2/3 of the server cert checking time or ~200ms on Sapphire. This is in preparation for tripling the number of certs in an upcoming change.

14 years agoMerge change 26055 into eclair
Android (Google) Code Review [Tue, 22 Sep 2009 00:36:39 +0000 (20:36 -0400)]
Merge change 26055 into eclair

* changes:
  Replaced an O(N) algorithm with an O(1) algorithm. This shaves off 2/3 of the server cert checking time or ~200ms on Sapphire. This is in preparation for tripling the number of certs in an upcoming change.

14 years agoAnother doc update.
Andy McFadden [Mon, 21 Sep 2009 23:28:39 +0000 (16:28 -0700)]
Another doc update.

Emphasized the need for global ref with FindClass.  Stated that JNI_OnLoad
is optional.  Added note about FindClass and class loaders.

14 years agoam bdfa9937: Merge change 25979 into eclair
David 'Digit' Turner [Mon, 21 Sep 2009 22:04:49 +0000 (15:04 -0700)]
am bdfa9937: Merge change 25979 into eclair

Merge commit 'bdfa9937a8fc8230ca109774ccc1eafaa20ba1a7' into eclair-plus-aosp

* commit 'bdfa9937a8fc8230ca109774ccc1eafaa20ba1a7':
  Allow dalvik pre-optimization to run in ARMv7 emulator.

14 years agoMerge change 25979 into eclair
Android (Google) Code Review [Mon, 21 Sep 2009 21:55:56 +0000 (17:55 -0400)]
Merge change 25979 into eclair

* changes:
  Allow dalvik pre-optimization to run in ARMv7 emulator.

14 years agoAllow dalvik pre-optimization to run in ARMv7 emulator.
David 'Digit' Turner [Sun, 20 Sep 2009 18:58:16 +0000 (11:58 -0700)]
Allow dalvik pre-optimization to run in ARMv7 emulator.

This sad hack is used to allow the Dex preopt pass to run properly
in ARMv7 emulation mode. Without it, the function dvmComputeWidths()
aborts the VM in ways that are hard to properly understand.

This issue has been discussed extensively with fadden, which provided
the patch. It seems that adding both log lines fixes it, but only using
one will not. I'm suspecting an emulation bug, or even worse, a C compiler
bug that would generate invalid machine code.

NOTE: The dex pre-optimization pass of user builds requires to run
      the DexOpt in the emulator for all -user builds. While this patch
      might not fix the underlying issue, it allows us to generate these
      images correctly (along with a few other system hacks).

14 years agoReplaced an O(N) algorithm with an O(1) algorithm. This shaves off 2/3 of the server...
Bob Lee [Sun, 20 Sep 2009 22:56:35 +0000 (15:56 -0700)]
Replaced an O(N) algorithm with an O(1) algorithm. This shaves off 2/3 of the server cert checking time or ~200ms on Sapphire. This is in preparation for tripling the number of certs in an upcoming change.

14 years agoam c7659ec1: Various minor changes to Dalvik documentation.
Andy McFadden [Fri, 18 Sep 2009 23:25:47 +0000 (16:25 -0700)]
am c7659ec1: Various minor changes to Dalvik documentation.

Merge commit 'c7659ec11fb9993f8c1f89e6c72f569da5504052' into eclair-plus-aosp

* commit 'c7659ec11fb9993f8c1f89e6c72f569da5504052':
  Various minor changes to Dalvik documentation.

14 years agoVarious minor changes to Dalvik documentation.
Andy McFadden [Fri, 18 Sep 2009 23:14:41 +0000 (16:14 -0700)]
Various minor changes to Dalvik documentation.

Some updates for Eclair, some minor fixes.

14 years agoam 5415f434: Merge change 25603 into eclair
Lorenzo Colitti [Fri, 18 Sep 2009 21:27:35 +0000 (14:27 -0700)]
am 5415f434: Merge change 25603 into eclair

Merge commit '5415f4344b4c9b9186e291909d5f369b6435011e' into eclair-plus-aosp

* commit '5415f4344b4c9b9186e291909d5f369b6435011e':
  Use native code to convert IP addresses to strings.

14 years agoMerge change 25603 into eclair
Android (Google) Code Review [Fri, 18 Sep 2009 21:19:01 +0000 (17:19 -0400)]
Merge change 25603 into eclair

* changes:
  Use native code to convert IP addresses to strings.

14 years agoUse native code to convert IP addresses to strings.
Lorenzo Colitti [Thu, 17 Sep 2009 22:01:47 +0000 (15:01 -0700)]
Use native code to convert IP addresses to strings.

- Add a byteArrayToIpString method to the INetworkSystem interface and implement
  it in native code
- Fix the native code so it does better error reporting
- Change InetAddress's getHostAddress, getHostName and getCanonicalHostName
  methods to use it and remove the IPv4-only Java implementations
- Remove Inet6Util.createIPAddrStringFromByteArray
- Fix InetAddress so getByAddress(null) throws UnknownHostException instead of
  NullPointerException for compatibility with the RI.

Change-Id: I26548922e9eed63b295173456183c4ab3ce20718

14 years agoam 8aad9a92: Merge change 24897 into eclair
Jesse Wilson [Fri, 18 Sep 2009 19:23:24 +0000 (12:23 -0700)]
am 8aad9a92: Merge change 24897 into eclair

Merge commit '8aad9a92ff05b12d3ab930de29a47f29ab6ea9b0' into eclair-plus-aosp

* commit '8aad9a92ff05b12d3ab930de29a47f29ab6ea9b0':
  First cut at a tool to perform automated syncs from Harmony to Dalvik.

14 years agoMerge change 24897 into eclair
Android (Google) Code Review [Fri, 18 Sep 2009 19:16:23 +0000 (15:16 -0400)]
Merge change 24897 into eclair

* changes:
  First cut at a tool to perform automated syncs from Harmony to Dalvik.

14 years agoam 7f331f3e: Fixing available() and close() for archive streams.
Jesse Wilson [Fri, 18 Sep 2009 19:07:52 +0000 (12:07 -0700)]
am 7f331f3e: Fixing available() and close() for archive streams.

Merge commit '7f331f3efb8c9c9879bf6b5154eaf2fdc849ab9b' into eclair-plus-aosp

* commit '7f331f3efb8c9c9879bf6b5154eaf2fdc849ab9b':
  Fixing available() and close() for archive streams.

14 years agoFixing available() and close() for archive streams.
Jesse Wilson [Thu, 17 Sep 2009 01:21:02 +0000 (18:21 -0700)]
Fixing available() and close() for archive streams.

This builds on work originally submitted to Harmony:
  http://issues.apache.org/jira/browse/HARMONY-6210
The approach is to change available() to eagerly set eof to true,
rather than waiting for a read to fail.

14 years agoam eea407c0: Merge change 25361 into eclair
Wei Huang [Thu, 17 Sep 2009 15:42:05 +0000 (08:42 -0700)]
am eea407c0: Merge change 25361 into eclair

Merge commit 'eea407c0e9b0a92aa80891e94125a82fac6aa514' into eclair-plus-aosp

* commit 'eea407c0e9b0a92aa80891e94125a82fac6aa514':
  modify gclog to take a procFilter argument, as well as the debug argument

14 years agoam df60455b: Merge change 25126 into eclair
Jesse Wilson [Thu, 17 Sep 2009 15:39:06 +0000 (08:39 -0700)]
am df60455b: Merge change 25126 into eclair

Merge commit 'df60455be5d9d3069a07f293b4021dd184cddc2a' into eclair-plus-aosp

* commit 'df60455be5d9d3069a07f293b4021dd184cddc2a':
  Update archive to the r802921 from Harmony.

14 years agoMerge change 25361 into eclair
Android (Google) Code Review [Wed, 16 Sep 2009 23:11:41 +0000 (19:11 -0400)]
Merge change 25361 into eclair

* changes:
  modify gclog to take a procFilter argument, as well as the debug argument

14 years agomodify gclog to take a procFilter argument, as well as the debug argument
Wei Huang [Wed, 16 Sep 2009 17:11:15 +0000 (10:11 -0700)]
modify gclog to take a procFilter argument, as well as the debug argument

Change-Id: Id897031b76f41600b7665ae27521167c70092247

14 years agoMerge change 25126 into eclair
Android (Google) Code Review [Wed, 16 Sep 2009 21:42:01 +0000 (17:42 -0400)]
Merge change 25126 into eclair

* changes:
  Update archive to the r802921 from Harmony.

14 years agoUpdate archive to the r802921 from Harmony.
Jesse Wilson [Tue, 15 Sep 2009 21:30:29 +0000 (14:30 -0700)]
Update archive to the r802921 from Harmony.

This overdue update includes fixes for some Eclair bugs that I
originally submitted to Harmony: 187678516359821635998

14 years agoam b257c944: Report the cause of name lookup failures to Java land. The Java code...
Lorenzo Colitti [Wed, 16 Sep 2009 17:41:38 +0000 (10:41 -0700)]
am b257c944: Report the cause of name lookup failures to Java land. The Java code already uses the exception thrown by getallbyname() as a chained exception.

Merge commit 'b257c944e15c5be46a69143603426c7ce137e6a3' into eclair-plus-aosp

* commit 'b257c944e15c5be46a69143603426c7ce137e6a3':
  Report the cause of name lookup failures to Java land. The Java code already

14 years agoReport the cause of name lookup failures to Java land. The Java code already
Lorenzo Colitti [Wed, 16 Sep 2009 02:37:54 +0000 (19:37 -0700)]
Report the cause of name lookup failures to Java land. The Java code already
uses the exception thrown by getallbyname() as a chained exception.

Change-Id: Ifc0d34102412ce0bf34715c9852bf751b420fb40

14 years agoam 1cf3dbce: Merge change 25160 into eclair
Lorenzo Colitti [Wed, 16 Sep 2009 01:24:49 +0000 (18:24 -0700)]
am 1cf3dbce: Merge change 25160 into eclair

Merge commit '1cf3dbce0b94ae5427ef19422224627e20808364' into eclair-plus-aosp

* commit '1cf3dbce0b94ae5427ef19422224627e20808364':
  Make getHostByAddr and getHostByName return the proper object type.

14 years agoam cb12fde6: Make Resources preloadable again.
Elliott Hughes [Wed, 16 Sep 2009 01:24:45 +0000 (18:24 -0700)]
am cb12fde6: Make Resources preloadable again.

Merge commit 'cb12fde6b095f1cc38351d5998c10e1e7f0af25c' into eclair-plus-aosp

* commit 'cb12fde6b095f1cc38351d5998c10e1e7f0af25c':
  Make Resources$DefaultTimeZones preloadable again.

14 years agoMerge change 25160 into eclair
Android (Google) Code Review [Wed, 16 Sep 2009 01:16:58 +0000 (21:16 -0400)]
Merge change 25160 into eclair

* changes:
  Make getHostByAddr and getHostByName return the proper object type.

14 years agoMake Resources$DefaultTimeZones preloadable again.
Elliott Hughes [Wed, 16 Sep 2009 00:02:16 +0000 (17:02 -0700)]
Make Resources$DefaultTimeZones preloadable again.

http://s9/81864 was a premature optimization that stopped the timezone data
being loaded in the zygote. So instead of paying the (admittedly large) time
and space costs once in the zygote, we now pay them once per application.

Revert the problematic parts of that change. Note that this isn't simply a
reverse patch:

1. I've changed the comment to make it clear that although
this *looks* like idiomatic lazy initialization, it's actually the opposite.
A comment to that effect might have prevented this code from being broken.

2. I've left the last two hunks of the original patch stand, because they
appear reasonable but unrelated.

Bug: 19413111819285.

14 years agoMake getHostByAddr and getHostByName return the proper object type.
Lorenzo Colitti [Tue, 15 Sep 2009 23:20:51 +0000 (16:20 -0700)]
Make getHostByAddr and getHostByName return the proper object type.

Change-Id: I51c75205095b7fe093ccb4451bbf7cc6a287bc49

14 years agoFirst cut at a tool to perform automated syncs from Harmony to Dalvik.
Jesse Wilson [Mon, 14 Sep 2009 18:23:39 +0000 (11:23 -0700)]
First cut at a tool to perform automated syncs from Harmony to Dalvik.

Much of the work of the tool is managing three versions of our code:
 - the current Harmony code
 - the current Dalvik code
 - the common ancestor, an older version of Harmony

The tool calls out to the command line to perform the actual filesystem
work. Eventually I'd like to support all of our modules, and also
gathering diffs to send upstream to Harmony.

14 years agoam e937b1b2: Merge change 24110 into eclair
Urs Grob [Tue, 15 Sep 2009 16:18:11 +0000 (09:18 -0700)]
am e937b1b2: Merge change 24110 into eclair

Merge commit 'e937b1b2d90dd9c1151f16af045c0fff1453c34e' into eclair-plus-aosp

* commit 'e937b1b2d90dd9c1151f16af045c0fff1453c34e':
  JarFile was not able to verify signed files with size 0.

14 years agoMerge change 24110 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 15:49:33 +0000 (11:49 -0400)]
Merge change 24110 into eclair

* changes:
  JarFile was not able to verify signed files with size 0.

14 years agomerge from open-source master
Jean-Baptiste Queru [Tue, 15 Sep 2009 14:54:32 +0000 (07:54 -0700)]
merge from open-source master

14 years agoam da03242f: Merge change 24840 into eclair
San Mehat [Mon, 14 Sep 2009 22:38:36 +0000 (15:38 -0700)]
am da03242f: Merge change 24840 into eclair

Merge commit 'da03242fe03a5ab342a6310b1e754e131ea628c9' into eclair-plus-aosp

* commit 'da03242fe03a5ab342a6310b1e754e131ea628c9':
  dalvik: Switch to common cutils sched_policy api

14 years agoMerge change 24840 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:31:53 +0000 (18:31 -0400)]
Merge change 24840 into eclair

* changes:
  dalvik: Switch to common cutils sched_policy api

14 years agoam 2d34a33a: Merge change 23348 into eclair
Jesse Wilson [Mon, 14 Sep 2009 20:38:26 +0000 (13:38 -0700)]
am 2d34a33a: Merge change 23348 into eclair

Merge commit '2d34a33a3d14ceda01c9bddfd957c3b9d3c55aa1' into eclair-plus-aosp

* commit '2d34a33a3d14ceda01c9bddfd957c3b9d3c55aa1':
  Update crypto package to Harmony r802921. Only Javadoc changes.

14 years agoMerge change 23348 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 20:27:39 +0000 (16:27 -0400)]
Merge change 23348 into eclair

* changes:
  Update crypto package to Harmony r802921. Only Javadoc changes.

14 years agoam 023a932a: Merge change 24788 into eclair
Jesse Wilson [Mon, 14 Sep 2009 17:46:42 +0000 (10:46 -0700)]
am 023a932a: Merge change 24788 into eclair

Merge commit '023a932add8087c96d59ea74135b28bb5e1ac16d' into eclair-plus-aosp

* commit '023a932add8087c96d59ea74135b28bb5e1ac16d':
  Fixing the delimiter for the HTTP "Accept" header to be well-formed.

14 years agoMerge change 24788 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 17:39:08 +0000 (13:39 -0400)]
Merge change 24788 into eclair

* changes:
  Fixing the delimiter for the HTTP "Accept" header to be well-formed.

14 years agodalvik: Switch to common cutils sched_policy api
San Mehat [Sat, 12 Sep 2009 17:10:13 +0000 (10:10 -0700)]
dalvik: Switch to common cutils sched_policy api

Signed-off-by: San Mehat <san@google.com>
14 years agoam efa0dcd5: Merge change 24508 into eclair
Bob Lee [Sat, 12 Sep 2009 06:05:53 +0000 (23:05 -0700)]
am efa0dcd5: Merge change 24508 into eclair

Merge commit 'efa0dcd52c030d2ace844070902979dd09e2c881' into eclair-plus-aosp

* commit 'efa0dcd52c030d2ace844070902979dd09e2c881':
  Addressed reviewer comments.

14 years agoMerge change 24508 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 05:57:05 +0000 (01:57 -0400)]
Merge change 24508 into eclair

* changes:
  Addressed reviewer comments.

14 years agoam 00c464ff: Merge change 24751 into eclair
Raphael [Fri, 11 Sep 2009 23:34:25 +0000 (16:34 -0700)]
am 00c464ff: Merge change 24751 into eclair

Merge commit '00c464ff62c27dc12ef70f3b2d97e8b356ad21e0' into eclair-plus-aosp

* commit '00c464ff62c27dc12ef70f3b2d97e8b356ad21e0':
  Windows SDK: add support for -J option to dx.bat

14 years agoMerge change 24751 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 23:24:46 +0000 (19:24 -0400)]
Merge change 24751 into eclair

* changes:
  Windows SDK: add support for -J option to dx.bat

14 years agoFixing the delimiter for the HTTP "Accept" header to be well-formed.
Jesse Wilson [Fri, 11 Sep 2009 23:20:49 +0000 (16:20 -0700)]
Fixing the delimiter for the HTTP "Accept" header to be well-formed.

See bug 2107897.

14 years agoWindows SDK: add support for -J option to dx.bat
Raphael [Fri, 11 Sep 2009 20:33:59 +0000 (13:33 -0700)]
Windows SDK: add support for -J option to dx.bat

BUG 1999508

Change-Id: I0c481d2cc0a96d1ca83aaa56c46c73eae17c2246

14 years agoAddressed reviewer comments.
Bob Lee [Wed, 9 Sep 2009 22:36:29 +0000 (00:36 +0200)]
Addressed reviewer comments.

14 years agoam 9ccfb95e: Merge change 24723 into eclair
Lorenzo Colitti [Fri, 11 Sep 2009 20:27:24 +0000 (13:27 -0700)]
am 9ccfb95e: Merge change 24723 into eclair

Merge commit '9ccfb95e597a93020f2731c734c2a65e743fb601' into eclair-plus-aosp

* commit '9ccfb95e597a93020f2731c734c2a65e743fb601':
  Remove code duplication in InetAddress.getByAddress.

14 years agoMerge change 24723 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 20:20:28 +0000 (16:20 -0400)]
Merge change 24723 into eclair

* changes:
  Remove code duplication in InetAddress.getByAddress.

14 years agoRemove code duplication in InetAddress.getByAddress.
Lorenzo Colitti [Fri, 11 Sep 2009 18:28:51 +0000 (11:28 -0700)]
Remove code duplication in InetAddress.getByAddress.

Change-Id: Id2d72572fbe5b26ff4be9a2c959c41a48b859ea0

14 years agoam 1e49340a: Merge change 24320 into eclair
Lorenzo Colitti [Fri, 11 Sep 2009 19:16:32 +0000 (12:16 -0700)]
am 1e49340a: Merge change 24320 into eclair

Merge commit '1e49340a8249b147a2bb4f12e242ac5aedbddece' into eclair-plus-aosp

* commit '1e49340a8249b147a2bb4f12e242ac5aedbddece':
  Simplify networking code initialization using static structures instead of code.

14 years agoMerge change 24320 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 19:06:47 +0000 (15:06 -0400)]
Merge change 24320 into eclair

* changes:
  Simplify networking code initialization using static structures instead of code. Fix an uninitialized variable.

14 years agoam 173086a3: Merge change 24620 into eclair
Jesse Wilson [Fri, 11 Sep 2009 17:58:54 +0000 (10:58 -0700)]
am 173086a3: Merge change 24620 into eclair

Merge commit '173086a363fd54e9e905409d3db06b01dbd0ccbd' into eclair-plus-aosp

* commit '173086a363fd54e9e905409d3db06b01dbd0ccbd':
  Fix cert code to use the String form for TELETEX-encoded certs; see bug 2102191.

14 years agoMerge change 24620 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 17:51:13 +0000 (13:51 -0400)]
Merge change 24620 into eclair

* changes:
  Fix cert code to use the String form for TELETEX-encoded certs; see bug 2102191.

14 years agoFix cert code to use the String form for TELETEX-encoded certs; see bug 2102191.
Jesse Wilson [Fri, 11 Sep 2009 00:15:47 +0000 (17:15 -0700)]
Fix cert code to use the String form for TELETEX-encoded certs; see bug 2102191.

14 years agoSimplify networking code initialization using static structures instead of code.
Lorenzo Colitti [Wed, 9 Sep 2009 01:30:56 +0000 (18:30 -0700)]
Simplify networking code initialization using static structures instead of code.
Fix an uninitialized variable.

Change-Id: Id9064a185525bfe072b244ea3d2acb56e5e185cd

14 years agoam 20677ed1: dalvik: Use common SchedPolicy type and fix getpid() vs. gettid() bug
San Mehat [Thu, 10 Sep 2009 23:12:09 +0000 (16:12 -0700)]
am 20677ed1: dalvik: Use common SchedPolicy type and fix getpid() vs. gettid() bug

Merge commit '20677ed1a7114a2aa51086d5097f6328cd4fb94d' into eclair-plus-aosp

* commit '20677ed1a7114a2aa51086d5097f6328cd4fb94d':
  dalvik: Use common SchedPolicy type and fix getpid() vs. gettid() bug

14 years agodalvik: Use common SchedPolicy type and fix getpid() vs. gettid() bug
San Mehat [Thu, 10 Sep 2009 16:30:03 +0000 (09:30 -0700)]
dalvik: Use common SchedPolicy type and fix getpid() vs. gettid() bug

Signed-off-by: San Mehat <san@google.com>
14 years agoam 03c7547c: Merge change 24425 into eclair
San Mehat [Thu, 10 Sep 2009 15:29:58 +0000 (08:29 -0700)]
am 03c7547c: Merge change 24425 into eclair

Merge commit '03c7547c40e6fc5b29b929b64f114e2dd3894e8e' into eclair-plus-aosp

* commit '03c7547c40e6fc5b29b929b64f114e2dd3894e8e':
  vm: Add support for using scheduler policies instead of cgroups

14 years agoMerge change 24425 into eclair
Android (Google) Code Review [Thu, 10 Sep 2009 15:24:16 +0000 (11:24 -0400)]
Merge change 24425 into eclair

* changes:
  vm: Add support for using scheduler policies instead of cgroups

14 years agovm: Add support for using scheduler policies instead of cgroups
San Mehat [Wed, 9 Sep 2009 03:29:15 +0000 (20:29 -0700)]
vm: Add support for using scheduler policies instead of cgroups

Signed-off-by: San Mehat <san@google.com>
14 years agoam 500464de: DO NOT MERGE: Do not enable JIT_TUNING and assertion by default with...
Ben Cheng [Wed, 9 Sep 2009 22:47:09 +0000 (15:47 -0700)]
am 500464de: DO NOT MERGE: Do not enable JIT_TUNING and assertion by default with JIT.

Merge commit '500464deb29dc8bfc7b5e51ab0fdffa6fa51b5d7' into eclair-plus-aosp

* commit '500464deb29dc8bfc7b5e51ab0fdffa6fa51b5d7':
  DO NOT MERGE: Do not enable JIT_TUNING and assertion by default with JIT.

14 years agoDO NOT MERGE: Do not enable JIT_TUNING and assertion by default with JIT.
Ben Cheng [Wed, 9 Sep 2009 21:14:28 +0000 (14:14 -0700)]
DO NOT MERGE: Do not enable JIT_TUNING and assertion by default with JIT.

14 years agoMerge change 11462 android-x86-1.6
Android Code Review [Wed, 9 Sep 2009 20:36:46 +0000 (13:36 -0700)]
Merge change 11462

* changes:
  Typo fix in javadoc

14 years agoMerge change 11461
Android Code Review [Wed, 9 Sep 2009 20:32:58 +0000 (13:32 -0700)]
Merge change 11461

* changes:
  Cosmetic change: cst -> type in javadoc @param

14 years agoam 7f5e6aa1: Merge change 23896 into eclair
Urs Grob [Tue, 8 Sep 2009 20:38:03 +0000 (13:38 -0700)]
am 7f5e6aa1: Merge change 23896 into eclair

Merge commit '7f5e6aa1503d13300c277225bf4eea9e5a11495a' into eclair-plus-aosp

* commit '7f5e6aa1503d13300c277225bf4eea9e5a11495a':
  InputStreamReader forgets to convert incomplete multibyte characters at the buffer boundary

14 years agoam 9dc72a3c: Modified Thread.c to allow sampling profiler thread in zygote. Added...
Bob Lee [Tue, 8 Sep 2009 20:38:00 +0000 (13:38 -0700)]
am 9dc72a3c: Modified Thread.c to allow sampling profiler thread in zygote. Added a function that queries the native thread status. Modified the profiler to sample every thread at a fixed interval instead of adjusting the delay based on the number of threads. This wil

Merge commit '9dc72a3c54af7201b6b85d96dba23a5f85309d9b' into eclair-plus-aosp

* commit '9dc72a3c54af7201b6b85d96dba23a5f85309d9b':
  Modified Thread.c to allow sampling profiler thread in zygote. Added a function that

14 years agoJarFile was not able to verify signed files with size 0.
Urs Grob [Mon, 7 Sep 2009 14:34:47 +0000 (16:34 +0200)]
JarFile was not able to verify signed files with size 0.

This regressen was introduced by harmony optimizations done in HARMONY-4569.
This fix allows for jar entries of size 0 to also get successfully validated.
A regression test has been added to JarFileTest.

14 years agoMerge change 23896 into eclair
Android (Google) Code Review [Mon, 7 Sep 2009 07:52:55 +0000 (00:52 -0700)]
Merge change 23896 into eclair

* changes:
  InputStreamReader forgets to convert incomplete multibyte characters at the buffer boundary

14 years agoModified Thread.c to allow sampling profiler thread in zygote. Added a function that
Bob Lee [Sat, 5 Sep 2009 01:28:16 +0000 (18:28 -0700)]
Modified Thread.c to allow sampling profiler thread in zygote. Added a function that
queries the native thread status. Modified the profiler to sample every thread at
a fixed interval instead of adjusting the delay based on the number of threads. This
will make it easier to compare results across apps. Added ability to shut down
the profiler thread. Added code to track whether the method was a leaf or a
caller.

14 years agoam f2f6f8b8: Document that createSocketFileDescriptor throws an exception on failure.
Lorenzo Colitti [Fri, 4 Sep 2009 20:50:33 +0000 (13:50 -0700)]
am f2f6f8b8: Document that createSocketFileDescriptor throws an exception on failure.

Merge commit 'f2f6f8b8d47733be0f291612730690b5ce379257' into eclair-plus-aosp

* commit 'f2f6f8b8d47733be0f291612730690b5ce379257':
  Document that createSocketFileDescriptor throws an exception on failure.

14 years agoDocument that createSocketFileDescriptor throws an exception on failure.
Lorenzo Colitti [Fri, 4 Sep 2009 20:35:10 +0000 (13:35 -0700)]
Document that createSocketFileDescriptor throws an exception on failure.

Change-Id: Ic002b4dc8c40d798316afbab7a14bd81593e2541

14 years agoam 3a4e4249: Merge change 23983 into eclair
Lorenzo Colitti [Fri, 4 Sep 2009 19:09:40 +0000 (12:09 -0700)]
am 3a4e4249: Merge change 23983 into eclair

Merge commit '3a4e4249032009b175ba6a3d0bcc682f97e5e650' into eclair-plus-aosp

* commit '3a4e4249032009b175ba6a3d0bcc682f97e5e650':
  If an error occurs when creating a socket, don't call any more JNI methods

14 years agoMerge change 23983 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 19:08:18 +0000 (12:08 -0700)]
Merge change 23983 into eclair

* changes:
  If an error occurs when creating a socket, don't call any more JNI methods (thus causing a segfault) but return immediately.

14 years agoIf an error occurs when creating a socket, don't call any more JNI methods
Lorenzo Colitti [Fri, 4 Sep 2009 18:59:12 +0000 (11:59 -0700)]
If an error occurs when creating a socket, don't call any more JNI methods
(thus causing a segfault) but return immediately.

Change-Id: I7d05997e38e631200542f85eba16b854d488d584

14 years agoam 09302d63: Merge change 23572 into eclair
Lorenzo Colitti [Fri, 4 Sep 2009 17:51:19 +0000 (10:51 -0700)]
am 09302d63: Merge change 23572 into eclair

Merge commit '09302d631adbdc36edd3ec961149b8f0fe1931f1' into eclair-plus-aosp

* commit '09302d631adbdc36edd3ec961149b8f0fe1931f1':
  Do not check hash codes against golden values. Instead, spot check that they

14 years agoMerge change 23572 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 17:48:43 +0000 (10:48 -0700)]
Merge change 23572 into eclair

* changes:
  Do not check hash codes against golden values. Instead, spot check that they differ for different addresses and obvious values (e.g., 0 or 1) that might be returned by buggy implementations.

14 years agomerge from open-source master
Jean-Baptiste Queru [Fri, 4 Sep 2009 14:50:42 +0000 (07:50 -0700)]
merge from open-source master

14 years agoInputStreamReader forgets to convert incomplete multibyte characters at the buffer...
Urs Grob [Wed, 2 Sep 2009 14:27:56 +0000 (16:27 +0200)]
InputStreamReader forgets to convert incomplete multibyte characters at the buffer boundary

BUG=2033986

14 years agoam 02e04f8b: Merge change 22871 into eclair
Lorenzo Colitti [Fri, 4 Sep 2009 01:46:01 +0000 (18:46 -0700)]
am 02e04f8b: Merge change 22871 into eclair

Merge commit '02e04f8b1e41ce341fd765a4f9086f4b2360cfd0' into eclair-plus-aosp

* commit '02e04f8b1e41ce341fd765a4f9086f4b2360cfd0':
  More InetAddress fixes.

14 years agoMerge change 22871 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 01:43:08 +0000 (18:43 -0700)]
Merge change 22871 into eclair

* changes:
  More InetAddress fixes.

14 years agoMore InetAddress fixes.
Lorenzo Colitti [Thu, 27 Aug 2009 01:41:06 +0000 (18:41 -0700)]
More InetAddress fixes.

1. Make sure getHostByAddrImpl actually throws UnknownHostException: set
   NI_NAMEREQD when calling getnameinfo to ensure it will fail if the IP
   address looked up does not have a name associated with it, and pass this
   exception back to the Java code. That way, the UnknownHostException passed
   back to the Java code has information on what went wrong.
2. Remove superfluous logging on reverse lookups in the C code.

Change-Id: Ie195ce1f12e7b43fbf75f494002804f9db68fd8c

14 years agoam 365f9fbb: Merge change 23918 into eclair
Jesse Wilson [Fri, 4 Sep 2009 00:45:37 +0000 (17:45 -0700)]
am 365f9fbb: Merge change 23918 into eclair

Merge commit '365f9fbb3e5444f046ee569f168a231c8106ec09' into eclair-plus-aosp

* commit '365f9fbb3e5444f046ee569f168a231c8106ec09':
  do not merge: Josh's optimized HashMap and Hashtable

14 years agoMerge change 23918 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 00:43:12 +0000 (17:43 -0700)]
Merge change 23918 into eclair

* changes:
  do not merge: Josh's optimized HashMap and Hashtable

14 years agodo not merge: Josh's optimized HashMap and Hashtable
Jesse Wilson [Thu, 3 Sep 2009 20:16:01 +0000 (13:16 -0700)]
do not merge: Josh's optimized HashMap and Hashtable

This commit squashes two changes from master. The only
additional change is that I've added "implements Map<K, V>"
to the signature of HashMap, which is necessary until we
get Josh's Apicheck fix in the master branch.

commit 5483e8adebc09b7bc58eb568793868388c240116
Author: Joshua Bloch <jjb@google.com>
Date:   Mon Aug 31 17:55:19 2009 -0700

    Replaced existing Hashtable implementation with fast one.

commit 90dbc304086ba1f6f51ed0d0b3a7368cc0fd46cb
Author: Joshua Bloch <jjb@google.com>
Date:   Thu Aug 20 17:34:39 2009 -0700

    Replace existing HashMap and LinkedHashMap with faster versions.
    Among other optimizations, the new versions do no division and
    use a high-quality defensive hash function to minimize the odds
    of poor key distribution among buckets.  Third time's a charm.

14 years agomerge from donut
Jean-Baptiste Queru [Thu, 3 Sep 2009 21:12:45 +0000 (14:12 -0700)]
merge from donut

14 years agoam 16866f9c: Merge change 23208 into eclair
Elliott Hughes [Thu, 3 Sep 2009 21:04:54 +0000 (14:04 -0700)]
am 16866f9c: Merge change 23208 into eclair

Merge commit '16866f9c1fcfe8b1d1103424ed901517ce60883a' into eclair-plus-aosp

* commit '16866f9c1fcfe8b1d1103424ed901517ce60883a':
  Fix Class.getConstructor("whatever", (Class[]) null).

14 years agoMerge change 23208 into eclair
Android (Google) Code Review [Thu, 3 Sep 2009 21:03:10 +0000 (14:03 -0700)]
Merge change 23208 into eclair

* changes:
  Fix Class.getConstructor("whatever", (Class[]) null).

14 years agoFix Class.getConstructor("whatever", (Class[]) null).
Elliott Hughes [Fri, 28 Aug 2009 22:54:30 +0000 (15:54 -0700)]
Fix Class.getConstructor("whatever", (Class[]) null).

The RI treats null parameterTypes the same as an empty array.
This behavior is specified for getMethod, but only implied for getConstructor.

This patch:

* Fixes getConstructor.
* Improves javadoc for Class methods taking "Class... parameterTypes".
* Adds tests for both getConstructor and getMethod (which was already correct).
* Removes a line of debugging output to System.out.

Bug: 1824973

14 years agoam 74d65387: Update GlobalSign Root CA to one that expires in 2028.
Nagendra Modadugu [Thu, 3 Sep 2009 19:14:04 +0000 (12:14 -0700)]
am 74d65387: Update GlobalSign Root CA to one that expires in 2028.

Merge commit '74d65387394ddf242ca01db4e4d88e6374c74ed4' into eclair-plus-aosp

* commit '74d65387394ddf242ca01db4e4d88e6374c74ed4':
  Update GlobalSign Root CA to one that expires in 2028.