OSDN Git Service

android-x86/dalvik.git
9 years agoMerge tag 'android-4.4.4_r2' into kitkat-x86 kitkat-x86 android-x86-4.4-r2 android-x86-4.4-r3
Chih-Wei Huang [Wed, 27 Aug 2014 10:35:20 +0000 (18:35 +0800)]
Merge tag 'android-4.4.4_r2' into kitkat-x86

Android 4.4.4 Release 2

Conflicts:
vm/JarFile.cpp

9 years agoChanged dvmDexCacheStatus to check for odex file first. android-x86-4.4-r1
Jeff Hao [Mon, 17 Mar 2014 20:49:35 +0000 (13:49 -0700)]
Changed dvmDexCacheStatus to check for odex file first.

This prevents the generation of a new dexfile when an odex file already
exists when switching between Art and Dalvik.

(cherry picked from commit 36e356c96640775f0a3f167bd2426ea0f0093b8b)

Change-Id: Ieafdca8453f70c96edb787b5a3a3ac7c7aeea021

10 years agoChanged dvmDexCacheStatus to check for odex file first.
Jeff Hao [Mon, 17 Mar 2014 19:48:17 +0000 (12:48 -0700)]
Changed dvmDexCacheStatus to check for odex file first.

This prevents the generation of a new dexfile when an odex file already
exists when switching between Art and Dalvik.

Bug: 13463154
Change-Id: I55ef9abe1fe172ee656550e78556381f95698c33

10 years agoDalvik houdini hook rebase on KK
llin4 [Tue, 12 Nov 2013 08:38:39 +0000 (16:38 +0800)]
Dalvik houdini hook rebase on KK

Including positive hash code patch port from OTC https://otc-android.intel.com/gerrit/#/c/13089/:
Make x86 version of Dalvik to always return positive hash code
when Houdini is enabled in the platform, to match
the ARM app's assumption on its native platform.
MiTalk fails without this fix.

Category: feature differentiation
Domain: AOSP.Houdini-Integration

Change-Id: I3d5df892360cfccb1acd7a4f13315795384375eb
Signed-off-by: llin4 <ling.lin@intel.com>
10 years agoMerge "Deactivate multi-thread in multi-dex mode" into klp-dev
Xavier Ducrohet [Wed, 4 Dec 2013 21:28:38 +0000 (21:28 +0000)]
Merge "Deactivate multi-thread in multi-dex mode" into klp-dev

10 years agoMerge "Fix synchronization when preparing ids." into klp-dev
Xavier Ducrohet [Wed, 4 Dec 2013 21:28:30 +0000 (21:28 +0000)]
Merge "Fix synchronization when preparing ids." into klp-dev

10 years agoFix BufferOverflowException when merging dexes
Benoit Lamarche [Wed, 27 Nov 2013 15:38:17 +0000 (16:38 +0100)]
Fix BufferOverflowException when merging dexes

Bug: 11519714

The bug was due to the fact that when merging 2 dexes, not enough size may be reserved for the "typeLists" section.
This is because we only aligned the sum of the size of both sections.
If both typeLists sections were aligned with 2 and not with 4, we are 4 bytes short when writing.

Change-Id: I73b51eb25434a622143011741a69b88d42507f43
(cherry picked from commit 2241dbe132cf90b58f93c014bdd807405b7f82f5)

10 years agoFix synchronization when preparing ids.
Yohann Roussel [Mon, 18 Nov 2013 16:38:03 +0000 (17:38 +0100)]
Fix synchronization when preparing ids.

Synchronized blocks were using different locks.
Replaced by a safer version: marking intern method synchronized.
This means synchronizing more than necessary but it had no
mesurable perfomance impact.

Bug 11744785

Change-Id: I35e691232cd6971d13735be9b72969739ef71e09
(cherry picked from commit 5c4883e75b26a002c67bfa1c0053c50e17dbac90)

10 years agoDeactivate multi-thread in multi-dex mode
Benoit Lamarche [Tue, 22 Oct 2013 16:57:39 +0000 (18:57 +0200)]
Deactivate multi-thread in multi-dex mode

It should already have been the case, but it wasn't and it crashed.

Change-Id: Icb461d6e43ef2d113f59038d8c2327f3cfaff86c
(cherry picked from commit cf069ca52f2af9f70fcbeac99443f00401d43b4a)

10 years agomerge in klp-release (no-op)
Ed Heyl [Thu, 17 Oct 2013 00:35:07 +0000 (17:35 -0700)]
merge in klp-release (no-op)

10 years agoFix static method preloading
Brian Carlstrom [Wed, 16 Oct 2013 07:44:32 +0000 (00:44 -0700)]
Fix static method preloading

Bug: 11045348

Change-Id: Ib13f96563f3b7ead17620e409735a0e9abb2a109

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 9 Oct 2013 13:00:35 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoPreload DexCaches
Brian Carlstrom [Tue, 8 Oct 2013 00:47:57 +0000 (17:47 -0700)]
Preload DexCaches

Bug: 11045348
Change-Id: I287703eaa964dcbd2e8d5a6c7db7ac378e19e2c1

10 years agomerge in KQS81M
Ed Heyl [Tue, 8 Oct 2013 22:35:41 +0000 (15:35 -0700)]
merge in KQS81M

10 years agoInvert sense of a test.
Ian Rogers [Tue, 24 Sep 2013 23:47:26 +0000 (16:47 -0700)]
Invert sense of a test.

Bug 10907247

Change-Id: I0665cce648dd892db4cc59e82c325b376dad97dd

10 years agoInvert sense of a test.
Ian Rogers [Tue, 24 Sep 2013 23:47:26 +0000 (16:47 -0700)]
Invert sense of a test.

Bug 10907247

Change-Id: I0665cce648dd892db4cc59e82c325b376dad97dd

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 24 Sep 2013 13:00:39 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoNarrow the scope of a lock on dex to avoid deadlock.
Ian Rogers [Tue, 24 Sep 2013 01:07:59 +0000 (18:07 -0700)]
Narrow the scope of a lock on dex to avoid deadlock.

Bug: 10899202.
Change-Id: I6247f895a11b41a70d7f43562d868dd91e8b1a91

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 22 Sep 2013 17:50:31 +0000 (10:50 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "Ignore invalid access flags." into klp-dev
Jeff Hao [Thu, 19 Sep 2013 23:28:47 +0000 (23:28 +0000)]
Merge "Ignore invalid access flags." into klp-dev

10 years agoFix mac sdk build
Kenny Root [Thu, 19 Sep 2013 17:29:16 +0000 (10:29 -0700)]
Fix mac sdk build

Macs don't have off64_t and instead use loff_t. This is taken care of in
the Compat.h header from system/core.  Include that.

Bug: 10424836
Change-Id: Ic892e1edfecab502159209d463394864370c5537

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 19 Sep 2013 13:01:04 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoReconcile differences between zip implementations
Kenny Root [Wed, 18 Sep 2013 23:49:51 +0000 (16:49 -0700)]
Reconcile differences between zip implementations

Copy new behavior of ZipFileRO to dalvik's ZipArchive.cpp

Bug: 10424836
Change-Id: Ic0ce11281f7318abda9d3c8062a095186448d2a9

10 years agoAllow traversal into /storage paths.
Jeff Sharkey [Tue, 17 Sep 2013 23:25:05 +0000 (16:25 -0700)]
Allow traversal into /storage paths.

Apps are no longer required to have sdcard_r or sdcard_rw to access
some parts of external storage.  Relax the mount parameters to allow
everyone to traverse.

Bug: 10577808
Change-Id: I620c8f02f08b149437dfa5705e05a27b6994d2db

10 years agoIgnore invalid access flags.
Elliott Hughes [Fri, 2 Aug 2013 22:41:00 +0000 (15:41 -0700)]
Ignore invalid access flags.

Bug: 10134551
Change-Id: I9df8f7a2541e0c9bd2f9294a202fef2afce815f8

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 11 Sep 2013 13:00:17 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoRemove OBB bind mounts, now provided by FUSE.
Jeff Sharkey [Wed, 11 Sep 2013 01:25:19 +0000 (18:25 -0700)]
Remove OBB bind mounts, now provided by FUSE.

The OBB storage area is now presented on a per-user basis by the FUSE
daemon, so we no longer need to create bind mounts.  (In fact, we
must use the FUSE daemon since it now correctly synthesizes UID
ownership on a per-user basis.)

Bug: 10506809
Change-Id: I2d6c5643d7c89d7a15ceb28af871e44618ad33ad

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 9 Sep 2013 13:00:53 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoSupport apps that pass JNI_VERSION_1_1 to GetEnv.
Elliott Hughes [Fri, 6 Sep 2013 19:03:24 +0000 (12:03 -0700)]
Support apps that pass JNI_VERSION_1_1 to GetEnv.

Bug: 10649815

(cherry picked from commit 89ee8af81cfe231ed3cd21b050ec16fbcf419683)

Change-Id: If28fab8c87222a9d182398a4deca167a8ca5c677

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 2 Sep 2013 13:00:24 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoChange IsMethodTracingActive to GetMethodTracingMode.
Jeff Hao [Thu, 29 Aug 2013 21:04:34 +0000 (14:04 -0700)]
Change IsMethodTracingActive to GetMethodTracingMode.

This allows traceview to tell whether tracing is active, and whether
it is sampling or method tracing.

Bug: 9968521

Change-Id: I72100d1536ea3168998110ec1cfa5a183b55a67c
(cherry picked from commit 9d3a0a2e253aecd07c4a053c19cf9b0ccaa2db49)

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 29 Aug 2013 13:00:34 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoAdd dalvik support for sample profiling from traceview gui.
Jeff Hao [Tue, 27 Aug 2013 20:33:08 +0000 (13:33 -0700)]
Add dalvik support for sample profiling from traceview gui.

(cherry picked from commit 86bb14a3e4d7ef3b8b4240bbc2a8b989a1b8c7c0)

Change-Id: Ifece45f6a6644c20b6681a58dd3eae3534ad47e4

10 years agoAdd support for sample profiling in traceview.
Jeff Hao [Wed, 21 Aug 2013 23:54:45 +0000 (16:54 -0700)]
Add support for sample profiling in traceview.

Instead of method instrumentation, allow traceview to periodically
sample stack traces of threads. Disabled by default until we add
gui support for this new mode.

(cherry picked from commit 676f8a527fb62abd39663d55c7d9208f5ca03093)

Change-Id: Ia5d0d57012305a5830d042bcb903a429432b035b

10 years agoMake a more verbose too many id error message.
Yohann Roussel [Thu, 22 Aug 2013 21:46:44 +0000 (23:46 +0200)]
Make a more verbose too many id error message.

This restores the old message, replacing "ids" by "references" and
advertising for multidex otpions.

Updates dalvik/tests/089-many-methods accordingly.

(cherry picked from commit d352de04f03b848e0246119344ea13e7233018f0)

Change-Id: I5934bc9fb7812b66c0e38935946cacdf1c35a402

10 years agoIncrement dx version to 1.8
Yohann Roussel [Thu, 22 Aug 2013 11:28:45 +0000 (13:28 +0200)]
Increment dx version to 1.8

(cherry picked from commit 39bcbf75923303d209b7e6640590cd7f5eaaa65a)

Change-Id: Iaddb2020b75f2bbba2e2ebda3a4465a890e361ca

10 years agoFix 2 filtering problems in multi dex + main list.
Yohann Roussel [Wed, 21 Aug 2013 19:17:24 +0000 (21:17 +0200)]
Fix 2 filtering problems in multi dex + main list.

- Classes in archives were added in all dexes.
- Adding resources could be done twice in non "strictNameCheck" mode
(when using BestEffortMainDexListFilter) if there was 2 secondary
dex.

(cherry picked from commit ad27e19691c6723a801b127f8802f5cdf4f44359)

Change-Id: I5cbc1b273518e868fdd3d642d50488ddcbec2af6

10 years agoIntroduce --multi-dex option in dx.
Benoit Lamarche [Wed, 31 Jul 2013 10:15:10 +0000 (12:15 +0200)]
Introduce --multi-dex option in dx.

Add --multi-dex options to dx command line to allow the generation of
several dex files when method index limit is about to be reached.
Also add
  --main-dex-list allowing to force some classes in the main dex.
  --minimal-main-dex to keep in main edx only classes specified by
      main-dex-list.
  --set-max-idx-number to set an arbitrary idx limit for the
      splitting.

(cherry picked from commit c7daf656da3a4854296b6a8bb702e3ee418450e5)

Change-Id: I2b42272be91484a75783eb94cd30581159948975

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 26 Aug 2013 13:00:46 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoFix native allocation tracking on Dalvik.
Mathieu Chartier [Thu, 22 Aug 2013 21:25:55 +0000 (14:25 -0700)]
Fix native allocation tracking on Dalvik.

Fixed issue where we had inverted logic when checking for
pending exceptions.

Changed the logic to not update the native allocation watermarks
after concurrent GC since the finalizers may not have been run at
this point.

Copied over the test from ART for ensuring that it is working.

Bug: 10444866

Change-Id: Ie26170f9c4703f11e993233cdc9c5f46396fca84

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 22 Aug 2013 13:00:40 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agolibdvm should block SIGPIPE like the RI does.
Elliott Hughes [Wed, 21 Aug 2013 20:10:37 +0000 (13:10 -0700)]
libdvm should block SIGPIPE like the RI does.

Normally AndroidRuntime.cpp patches over this lapse, but that means
that tests run by vogar or any other kind of "bare" VM doesn't handle
SIGPIPE correctly. I'll remove the workaround from AndroidRuntime.cpp.

Bug: 10211309
Change-Id: I51380486867af011d58ddbefbdef8d120f736ad9

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 19 Aug 2013 13:01:11 +0000 (06:01 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoMerge "Run-test for suspend in an infinite loop." into klp-dev
buzbee [Fri, 16 Aug 2013 11:26:20 +0000 (11:26 +0000)]
Merge "Run-test for suspend in an infinite loop." into klp-dev

10 years agoTracking DexFile rename of defineClass to defineClassNative
Brian Carlstrom [Mon, 12 Aug 2013 23:02:33 +0000 (16:02 -0700)]
Tracking DexFile rename of defineClass to defineClassNative

Bug: 9071417
Change-Id: I49429db9bde41065281512915cd1fbb18de6f951

10 years agoTracking DexFile rename of defineClass to defineClassNative
Brian Carlstrom [Mon, 12 Aug 2013 23:02:33 +0000 (16:02 -0700)]
Tracking DexFile rename of defineClass to defineClassNative

Bug: 9071417
Change-Id: I49429db9bde41065281512915cd1fbb18de6f951

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 14 Aug 2013 13:05:01 +0000 (06:05 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoIf CheckJNI is enabled don't allow app workarounds
Ian Rogers [Wed, 14 Aug 2013 00:07:05 +0000 (17:07 -0700)]
If CheckJNI is enabled don't allow app workarounds

(cherry picked from commit 46963dff1d1592729ba1e8b274835bf6c80a50bd)

Change-Id: I2d054bf0824ec8378291d2035fc0586c6ec9aa2e

10 years agoRun-test for suspend in an infinite loop.
buzbee [Mon, 12 Aug 2013 17:21:32 +0000 (10:21 -0700)]
Run-test for suspend in an infinite loop.

Make sure that we can break out of an infinite loop for
gc or other purposes.

Change-Id: I467a5f4383707b2952901d90444ef95e21a0caba

10 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 12 Aug 2013 13:00:50 +0000 (06:00 -0700)]
merge in klp-release history after reset to klp-dev

10 years agoRemove updateProcessState.
Mathieu Chartier [Wed, 7 Aug 2013 18:33:19 +0000 (11:33 -0700)]
Remove updateProcessState.

Change-Id: I46588f15f92c8298130c49773951c62b05b44a4f
(cherry picked from commit 6d6dfeaa7f9d22fcf323f35712ab82d541ca3030)

10 years agoFix the protection of code cache for x86 JIT
Jun Tian [Tue, 6 Aug 2013 07:03:15 +0000 (15:03 +0800)]
Fix the protection of code cache for x86 JIT

During generation of code into code cache
an unprotected region of memory does not correspond to
protected one, The patch fixes that.

Author: Katkov Serguei <serguei.i.katkov@intel.com>

(cherry picked from commit 74a62214ef262380371bc21be2a1c42295046fb2)

Change-Id: I362a10897564b987c8a3b2dfc9ded8f0a9efd56a

10 years agoam 13aeac96: Merge "Fix broken card table asserts."
Ian Rogers [Thu, 8 Aug 2013 23:21:57 +0000 (16:21 -0700)]
am 13aeac96: Merge "Fix broken card table asserts."

* commit '13aeac968f2473fcb4f31ccc6f43c6afc62db4bf':
  Fix broken card table asserts.

10 years agoMerge "Fix broken card table asserts."
Ian Rogers [Thu, 8 Aug 2013 21:15:59 +0000 (21:15 +0000)]
Merge "Fix broken card table asserts."

10 years agoFix broken card table asserts.
Mathieu Chartier [Thu, 8 Aug 2013 18:43:30 +0000 (11:43 -0700)]
Fix broken card table asserts.

We had an off by one error due to getting the card for the heap
source limit. This is not a valid card when the heap is at
maximum size, but doesn't need to be since we do less than
comparison on it. Fixed another error where we didn't take into
account the biased begin in an assert.

Did a bit of refactoring by removing useless if statement.

Fixes 061-out-of-memory, 080-oom-throw.

Bug: https://code.google.com/p/android/issues/detail?id=42868

(cherry picked from commit ee903e174872edd0ecc6f1940c7412892cd49123)

Change-Id: If677c93e46fe1ee5729eec1820b1bd9682b4f924

10 years agoFix broken card table asserts.
Mathieu Chartier [Thu, 8 Aug 2013 18:43:30 +0000 (11:43 -0700)]
Fix broken card table asserts.

We had an off by one error due to getting the card for the heap
source limit. This is not a valid card when the heap is at
maximum size, but doesn't need to be since we do less than
comparison on it. Fixed another error where we didn't take into
account the biased begin in an assert.

Did a bit of refactoring by removing useless if statement.

Fixes 061-out-of-memory.

Bug: 8282011
Change-Id: I66e3026e7b98b738ecfbced101846ec9f184ab70
(cherry picked from commit ee903e174872edd0ecc6f1940c7412892cd49123)

10 years agomerge in klp-release history after reset to master
The Android Automerger [Tue, 6 Aug 2013 15:16:59 +0000 (08:16 -0700)]
merge in klp-release history after reset to master

10 years agoam cec783df: Merge "More consistent JNI error reporting."
Elliott Hughes [Mon, 5 Aug 2013 22:51:57 +0000 (15:51 -0700)]
am cec783df: Merge "More consistent JNI error reporting."

* commit 'cec783df5a51233dab94f2fa4506f677d45132e8':
  More consistent JNI error reporting.

10 years agoMerge "More consistent JNI error reporting."
Elliott Hughes [Mon, 5 Aug 2013 22:15:28 +0000 (22:15 +0000)]
Merge "More consistent JNI error reporting."

10 years agoMore consistent JNI error reporting.
Elliott Hughes [Mon, 5 Aug 2013 22:07:43 +0000 (15:07 -0700)]
More consistent JNI error reporting.

Always include the JNI function's name in the log message.

Bug: 10162113
Change-Id: I4ebd83c48f094f753190f70f644f5a59359b6327

10 years agomerge in klp-release history after reset to master
The Android Automerger [Mon, 5 Aug 2013 13:00:53 +0000 (06:00 -0700)]
merge in klp-release history after reset to master

10 years agoam d76fe5d0: Merge "Not all shared libraries have a JNI_OnLoad."
Elliott Hughes [Sat, 3 Aug 2013 00:59:04 +0000 (17:59 -0700)]
am d76fe5d0: Merge "Not all shared libraries have a JNI_OnLoad."

* commit 'd76fe5d00d0df2ff09dd311688112a496f782b9b':
  Not all shared libraries have a JNI_OnLoad.

10 years agoam f20307a9: Merge "Returning JNI_ERR from JNI_OnLoad is still an error!"
Elliott Hughes [Sat, 3 Aug 2013 00:59:03 +0000 (17:59 -0700)]
am f20307a9: Merge "Returning JNI_ERR from JNI_OnLoad is still an error!"

* commit 'f20307a9e7ba4216790a36caa971e12183544ef8':
  Returning JNI_ERR from JNI_OnLoad is still an error!

10 years agoam 8c82bccc: Merge "Check JNI versions handed to JNI and JII functions."
Elliott Hughes [Sat, 3 Aug 2013 00:59:02 +0000 (17:59 -0700)]
am 8c82bccc: Merge "Check JNI versions handed to JNI and JII functions."

* commit '8c82bcccdf3f179a8e5d7fe2753e212a88e20dd6':
  Check JNI versions handed to JNI and JII functions.

10 years agoMerge "Not all shared libraries have a JNI_OnLoad."
Elliott Hughes [Sat, 3 Aug 2013 00:42:00 +0000 (00:42 +0000)]
Merge "Not all shared libraries have a JNI_OnLoad."

10 years agoNot all shared libraries have a JNI_OnLoad.
Elliott Hughes [Sat, 3 Aug 2013 00:41:25 +0000 (17:41 -0700)]
Not all shared libraries have a JNI_OnLoad.

Change-Id: Iace5d33cbeafbf8b840bebb4bb709e32053f142d

10 years agoMerge "Returning JNI_ERR from JNI_OnLoad is still an error!"
Elliott Hughes [Fri, 2 Aug 2013 23:53:10 +0000 (23:53 +0000)]
Merge "Returning JNI_ERR from JNI_OnLoad is still an error!"

10 years agoReturning JNI_ERR from JNI_OnLoad is still an error!
Elliott Hughes [Fri, 2 Aug 2013 23:49:57 +0000 (16:49 -0700)]
Returning JNI_ERR from JNI_OnLoad is still an error!

Fixes a bug introduced in the previous patch.

Change-Id: I34ea63d323a0125c3c4ae140a2ae9b8e9ed3e1df

10 years agoMerge "Check JNI versions handed to JNI and JII functions."
Elliott Hughes [Fri, 2 Aug 2013 23:35:59 +0000 (23:35 +0000)]
Merge "Check JNI versions handed to JNI and JII functions."

10 years agoCheck JNI versions handed to JNI and JII functions.
Elliott Hughes [Fri, 2 Aug 2013 23:02:34 +0000 (16:02 -0700)]
Check JNI versions handed to JNI and JII functions.

Bug: https://code.google.com/p/android/issues/detail?id=58012
Change-Id: I7b062564573107df54f9e8d71df0e1583d83d421

10 years agoam 813a3a2d: Merge "If dalvik wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 19:41:40 +0000 (12:41 -0700)]
am 813a3a2d: Merge "If dalvik wants ASCII casing, it needs to ask for it."

* commit '813a3a2d1c295266299425cac35a817b06f026e3':
  If dalvik wants ASCII casing, it needs to ask for it.

10 years agoresolved conflicts for merge of ae77d6b6 to master
Brian Carlstrom [Fri, 2 Aug 2013 19:28:22 +0000 (12:28 -0700)]
resolved conflicts for merge of ae77d6b6 to master

Change-Id: If7712cbddd6786c91648c4fc31f04e96937d4670

10 years agoMerge "If dalvik wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 18:51:50 +0000 (18:51 +0000)]
Merge "If dalvik wants ASCII casing, it needs to ask for it."

10 years agoMerge "Remove dependency on frameworks/native"
Brian Carlstrom [Fri, 2 Aug 2013 18:27:16 +0000 (18:27 +0000)]
Merge "Remove dependency on frameworks/native"

10 years agoIf dalvik wants ASCII casing, it needs to ask for it.
Elliott Hughes [Fri, 2 Aug 2013 17:34:29 +0000 (10:34 -0700)]
If dalvik wants ASCII casing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I1601cda215ebc5995117323e40a684ad352fe733

10 years agoam f65d478a: Merge "Throw NoSuchMethodError if RegisterNatives fails."
Elliott Hughes [Fri, 2 Aug 2013 15:52:03 +0000 (08:52 -0700)]
am f65d478a: Merge "Throw NoSuchMethodError if RegisterNatives fails."

* commit 'f65d478a7005230264596f4814c94a0a9571259f':
  Throw NoSuchMethodError if RegisterNatives fails.

10 years agoMerge "Throw NoSuchMethodError if RegisterNatives fails."
Elliott Hughes [Fri, 2 Aug 2013 15:44:29 +0000 (15:44 +0000)]
Merge "Throw NoSuchMethodError if RegisterNatives fails."

10 years agoRemove dependency on frameworks/native
Brian Carlstrom [Fri, 2 Aug 2013 06:30:07 +0000 (23:30 -0700)]
Remove dependency on frameworks/native

Change-Id: I66e226f8390bd499e956b00e4088bc0e1e150cb1

10 years agoThrow NoSuchMethodError if RegisterNatives fails.
Elliott Hughes [Fri, 2 Aug 2013 00:29:14 +0000 (17:29 -0700)]
Throw NoSuchMethodError if RegisterNatives fails.

Bug: 9963858
Change-Id: I5b3ce3d3dbdc949e69f3389e2df19bcca5648d7e

10 years agoMerge "Fix Class.getDex."
Elliott Hughes [Wed, 31 Jul 2013 17:47:22 +0000 (17:47 +0000)]
Merge "Fix Class.getDex."

10 years agoShow size/alloc/free per Dalvik heap space in dumpsys
Hiroshi Yamauchi [Mon, 15 Jul 2013 21:20:41 +0000 (14:20 -0700)]
Show size/alloc/free per Dalvik heap space in dumpsys

Add the heap size/alloc/free stats to the Dalvik heap space breakdown section in dumpsys meminfo.

Also, now the zygote heap has a distict ashmem region name.

Bug: 9532137
Bug: 8266259

(cherry picked from commit 3edfe0b32753309ad7dcccd894239cb0a8aefb85)

Change-Id: I9b32727e4211f571a5205b6b7281958514d245d4

10 years agoMerge "Show size/alloc/free per Dalvik heap space in dumpsys"
Brian Carlstrom [Wed, 31 Jul 2013 18:43:36 +0000 (18:43 +0000)]
Merge "Show size/alloc/free per Dalvik heap space in dumpsys"

10 years agoam 58de514b: Merge "Fix Class.getDex."
Elliott Hughes [Wed, 31 Jul 2013 18:04:21 +0000 (11:04 -0700)]
am 58de514b: Merge "Fix Class.getDex."

* commit '58de514b160674a483bcb912d367072c7354cc1e':
  Fix Class.getDex.

10 years agoMerge "Fix Class.getDex."
Elliott Hughes [Wed, 31 Jul 2013 17:47:22 +0000 (17:47 +0000)]
Merge "Fix Class.getDex."

10 years agoFix Class.getDex.
Elliott Hughes [Wed, 31 Jul 2013 16:41:16 +0000 (09:41 -0700)]
Fix Class.getDex.

Dalvik doesn't check its own .so when looking for JNI methods, so
manually register Class.getDex. Also fix a bug in that native method's
implementation.

Change-Id: Ic87484fac888e9eea0e5d51a2d2447eee860ece5

10 years agoShow size/alloc/free per Dalvik heap space in dumpsys
Hiroshi Yamauchi [Mon, 15 Jul 2013 21:20:41 +0000 (14:20 -0700)]
Show size/alloc/free per Dalvik heap space in dumpsys

Add the heap size/alloc/free stats to the Dalvik heap space breakdown section in dumpsys meminfo.

Also, now the zygote heap has a distict ashmem region name.

Bug: 9532137
Bug: 8266259

(cherry picked from commit 3edfe0b32753309ad7dcccd894239cb0a8aefb85)

Change-Id: I9b32727e4211f571a5205b6b7281958514d245d4

10 years agoam 73a09433: Merge "Minor code cleanup to address warnings found by Clang."
Ben Cheng [Mon, 29 Jul 2013 20:40:51 +0000 (13:40 -0700)]
am 73a09433: Merge "Minor code cleanup to address warnings found by Clang."

* commit '73a0943392a2927dae96195f5293940877f11c05':
  Minor code cleanup to address warnings found by Clang.

10 years agoMerge "Minor code cleanup to address warnings found by Clang."
Ben Cheng [Mon, 29 Jul 2013 20:29:27 +0000 (20:29 +0000)]
Merge "Minor code cleanup to address warnings found by Clang."

10 years agoMinor code cleanup to address warnings found by Clang.
Ben Cheng [Fri, 26 Jul 2013 16:46:06 +0000 (09:46 -0700)]
Minor code cleanup to address warnings found by Clang.

cherry-picked from internal Android branch
55617c82a73d84ff3695bdd5526159448262d009

Change-Id: I0f78ca6b8293c13d7dbb535556543f6ea9f4dd45

10 years agoam 4550b42e: Merge "Implement the dalvik side of libcore.reflect."
Elliott Hughes [Mon, 29 Jul 2013 20:17:48 +0000 (13:17 -0700)]
am 4550b42e: Merge "Implement the dalvik side of libcore.reflect."

* commit '4550b42e776ecfe26b0b5538d14a4d57342b5ce0':
  Implement the dalvik side of libcore.reflect.

10 years agoMerge "Implement the dalvik side of libcore.reflect."
Elliott Hughes [Mon, 29 Jul 2013 20:06:13 +0000 (20:06 +0000)]
Merge "Implement the dalvik side of libcore.reflect."

10 years agoam fb1d9461: Merge "dx.bat: Don\'t change directory."
Elliott Hughes [Mon, 29 Jul 2013 19:57:23 +0000 (12:57 -0700)]
am fb1d9461: Merge "dx.bat: Don\'t change directory."

* commit 'fb1d9461a57c67a7fcf1f8667d9fa65b609d2f61':
  dx.bat: Don't change directory.

10 years agoMerge "dx.bat: Don't change directory."
Elliott Hughes [Mon, 29 Jul 2013 19:49:36 +0000 (19:49 +0000)]
Merge "dx.bat: Don't change directory."

10 years agoImplement the dalvik side of libcore.reflect.
Elliott Hughes [Fri, 26 Jul 2013 00:43:39 +0000 (17:43 -0700)]
Implement the dalvik side of libcore.reflect.

(Cherry-pick of b4d5cf78d4731ffc6211d07a0d69c92c559ba792.)

Change-Id: I5d1b41f029c9c49a2d60a066a5fb0ed0f52f4b52

10 years agodx.bat: Don't change directory.
Ray Donnelly [Fri, 3 May 2013 00:41:36 +0000 (01:41 +0100)]
dx.bat: Don't change directory.

Changing directory to that of dx.bat prevents dx.bat from being
used with relative directories. This leads to all sorts of
issues integrating it with build systems that expect this to
work.

I've tested that this change works under the following conditions:
1. Android SDK in a path containing spaces.
2. java.exe in a path containing spaces.
3. Java object files in a path containing spaces.
4. Output jar file in a path containing spaces.
5. Java object files specified with relative paths.
6. Java object files specified with absolute paths.
7. Output jar file specified with relative paths.
8. Output jar file specified with absolute paths.

Change-Id: I1b47a6cc73169607cc6238acf197e3b467c9bcbc

10 years agoImplement the dalvik side of libcore.reflect.
Elliott Hughes [Fri, 26 Jul 2013 00:43:39 +0000 (17:43 -0700)]
Implement the dalvik side of libcore.reflect.

Change-Id: I9ef0da6f715e2727d8530aa7a8edee97b5bfa48d

10 years agoMerge "libenc: remove libutils dependency"
Alex Ray [Wed, 24 Jul 2013 05:13:45 +0000 (05:13 +0000)]
Merge "libenc: remove libutils dependency"

10 years agoMerge "add static dependency on liblog"
Colin Cross [Wed, 24 Jul 2013 01:05:04 +0000 (01:05 +0000)]
Merge "add static dependency on liblog"

10 years agolibenc: remove libutils dependency
Alex Ray [Wed, 24 Jul 2013 00:48:05 +0000 (17:48 -0700)]
libenc: remove libutils dependency

Change-Id: I679fd6f06e007921251d15d7003615d7b0d91c52

10 years agoadd static dependency on liblog
Colin Cross [Wed, 24 Jul 2013 00:45:23 +0000 (17:45 -0700)]
add static dependency on liblog

Change-Id: Id431382f0fc71ef126dd35e5949d5de2abe2b785