summaryrefslogtreecommitdiffstats
path: root/dalvik
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch libcore over to a long in DexFile.Elliott Hughes2014-02-041-18/+9
| | | | Change-Id: I7f259bd14134fc6663047b8a1237b8364f10a51d
* Add sample profiling interface to startMethodTracing.Jeff Hao2014-01-061-6/+10
| | | | | | Libcore side of this change. Also changed art and frameworks base. Change-Id: Ie26982dfb09d4098708d701b5429fd09e710a25d
* Fix build harder.Elliott Hughes2013-11-071-1/+1
| | | | | | | | Gah. (cherry picked from commit 61e8a22b0a1a9a9dcfb9a7c492ed2e03ad1f24b6) Change-Id: I555f3166e136dc0b84ccb6d96dc9c081e083d319
* Fix build.Elliott Hughes2013-11-071-0/+8
| | | | | | | | Add a stub for dead functionality. (cherry picked from commit e6a4f2f6cc4721273a71d9820cb2fb6d7937a57a) Change-Id: I0e8a050c447c23aba83fcef75eb1861762d7f123
* Remove dead code.Elliott Hughes2013-11-071-15/+0
| | | | | | (cherry picked from commit c7abaf1f9cd06e8511bc70dd884e57226f635da2) Change-Id: I7ec6daec54daf04a4a5bf8196b8a4a9286216dd2
* Remove zip file extension whitelists when validating dex file path.Hui Lu2013-10-091-27/+26
| | | | | | Just assume a file is either a .dex file or one type of zip files. Change-Id: I9da778f9cc658295d90b240afddfe5bf5af1edf8
* Use the docs-approved Android x.y (Name) format consistently.Elliott Hughes2013-09-032-13/+9
| | | | | | | Also include the API level where the reason for mentioning the version is an API difference (as opposed to simply a behavioral difference). Change-Id: Idd69630fc5d6f6f0bd5d1c524cb32fd8c2fb750d
* Change IsMethodTracingActive to GetMethodTracingMode for libcore.Jeff Hao2013-08-301-2/+3
| | | | | | | Bug: 9968521 Change-Id: I3e36331980a192ab783ede095955b1f71b9ca40e (cherry picked from commit b72f49ea6dac9cc6bf46485be8f97cafa7db3dc3)
* Add libcore support for sample profiling from traceview gui.Jeff Hao2013-08-281-0/+387
| | | | | | | | | This change unifies the native method tracing interface between art and dalvik, and so the two files can merged again. (cherry picked from commit cd28c9550cbc77b5b856a13638f221f1cd9fc6ab) Change-Id: Id834945644615c4d8d8536140842d9036f38fbeb
* Share ClassLoader codeBrian Carlstrom2013-08-143-0/+952
| | | | | Bug: 9071417 Change-Id: Icdde3aace023d1d7509c932cdd71f203213b59d6
* Add java.nio.charsets.StandardCharsets.Elliott Hughes2013-06-281-1/+0
| | | | | Bug: 3484927 Change-Id: I5820267491b850b8fcc696fa48962710de123009
* Clean up the #read javadoc.Elliott Hughes2013-06-241-1/+1
| | | | | | | | By being more consistent in parameter naming, we can inherit more javadoc. Also fix a couple of javadoc warnings in KnownFailure and DataInputStream. Change-Id: I778f40469404fb50c51cdb1068970974f923180c
* Move dalvik.system.VMDebug to libdvmBrian Carlstrom2013-06-071-376/+0
| | | | Change-Id: I7b218f9732b36b9cca5ebc38380f3e7ef0275f34
* Fix @deprecated javadoc orthography.Elliott Hughes2013-06-063-4/+4
| | | | Change-Id: I6db6d91e21b8e1aca5b5338534196fd5bdef8a06
* Move additional files to libdvmBrian Carlstrom2013-06-052-320/+0
| | | | Change-Id: Idc1caee3a0afb61d159cd046348ecb11db3d9e10
* Change the VMStack interface used by serialization.Elliott Hughes2013-06-051-0/+16
| | | | | | (cherry picked from commit 8b44bdb6063816eeb90da6b4f8aa3ed9f38fe140) Change-Id: I5da041caa3037a4093f05dec4e03aed4f466a21d
* Move some files with dalvik dependencies to libdvmBrian Carlstrom2013-05-133-901/+0
| | | | Change-Id: I04498d8d8c4b065dbda8d7b30b8b77ce53e63a77
* Some of our helpers have moved into libnativehelpers.Elliott Hughes2013-05-092-7/+1
| | | | | | (cherry picked from commit 4b5012a6cd5f7f32f33a776c9e2c94ca3f3eb1d5) Change-Id: I8a154f8b6e39b8ed0a633fab9ba31d557b545bb5
* Replace SEAndroid with SELinux.Stephen Smalley2013-04-121-1/+1
| | | | | Change-Id: I59183e966c79c2ba879151c3ac14ff0a86c74c86 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Fix build.Elliott Hughes2013-03-271-0/+5
| | | | Change-Id: Ia9ec36734d275f677279225d3068e548a3d652ec
* Make NativeTestTarget more useful for benchmarking.Elliott Hughes2013-03-272-70/+34
| | | | | | | | | | | | There's a corresponding benchmark change in code.google.com/p/dalvik. (cherry-pick of d5d401fa8869da90b7f7d167b41fa5de6a38c592, with emptyInlineMethod added back in for now.) Conflicts: dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp Change-Id: I9b22be15b0708bf47c599bf8ce071cd6e3899d0e
* Add support for Libcore.os.exec*()Nick Kralevich2013-02-051-4/+11
| | | | | | | | Add Libcore support for execv() and execve(). This allows java programs to execute other programs without having to write jni wrappers. Change-Id: I82ddc069b5812ebd40f06b7f65ce173d496e0597
* Fix typos.Elliott Hughes2013-01-171-7/+7
| | | | Change-Id: I6a9f7d8203c91f854fef64c9acd0e0b04459724b
* More backwards compatibility for Facebook.Elliott Hughes2013-01-161-8/+12
| | | | | | | Another day, another private field accessed. Bug: 7726934 Change-Id: I1cf2e9b9c9c7c53afd43642fcbf8f1a1d203bf6c
* Stop Facebook crashing with NoSuchFieldException.Elliott Hughes2013-01-151-9/+9
| | | | | | | | The Facebook app uses reflection to access a private field of BaseDexClassLoader, and won't start if we rename that field. Bug: 7726934 Change-Id: I0b8febed1226655dbfeb5d1a539734b860558df4
* Support System.loadLibrary for libraries with transitive dependencies.Elliott Hughes2012-12-212-0/+21
| | | | | | Bug: 7896159 Bug: http://code.google.com/p/android/issues/detail?id=34416 Change-Id: Id1225a353b52c50bb3eedfd48e92ec85dd60134b
* Add detail messages to all remaining NullPointerExceptions.Elliott Hughes2012-12-042-14/+16
| | | | | | I've left java.util.concurrent alone, since that's upstream code. Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
* Support directories on the classpath, for resources.Elliott Hughes2012-12-032-41/+59
| | | | | | | | | | | | | | This lets us run tests and legacy code that uses Class.getResource to access resources, because we can put the resource directories on the classpath. I've also rewritten the toString implementation to show what path we're _really_ using, rather than parroting back the original path we were passed, because we won't actually look at all entries in the path, so that can be very misleading. (It certainly confused the hell out of me while working on this change.) Change-Id: Iec4dca2244db9c9c793ac157e258fd61557a7a5d
* Move comment to match codeBrian Carlstrom2012-11-261-5/+5
| | | | | | Followup for change "Lazy parsing of zip files for Java resources." Change-Id: Ic572dff0edda766400ce6cea9fb27344373c73df
* Lazy parsing of zip files for Java resources.Narayan Kamath2012-11-261-19/+39
| | | | | | | | | | | | | Central directories of zip files should be read lazily. They are needed only to service calls to BaseDexClassLoader#findResouce(s). Most android processes don't use these methods since they use android resources. bug:6797061 (cherry-picked from 8dd90ae77922eb05d46c797937620a4c69f758f7) Change-Id: I1a5b5d03572601707e1fb1fd4424c1ae2fd2217d
* am e3b1b9eb: Merge "Gut dalvik.system.TemporaryDirectory, which has nothing ↵Elliott Hughes2012-11-051-62/+3
|\ | | | | | | | | | | | | to do with setting java.io.tmpdir." * commit 'e3b1b9ebaca89b9aaa583ba9953dfce579d32a16': Gut dalvik.system.TemporaryDirectory, which has nothing to do with setting java.io.tmpdir.
| * Gut dalvik.system.TemporaryDirectory, which has nothing to do with setting ↵Elliott Hughes2012-11-051-62/+3
| | | | | | | | | | | | | | | | | | java.io.tmpdir. This has been dead since at least Froyo, but shows up if you're searching trying to find out who's really responsible for setting java.io.tmpdir. Change-Id: I539ad9aeac4ba4556a491cddeddfb6fbc6766b5c
* | am df0d0295: Merge "Make System.loadLibrary use open(2) rather than stat(2)."Elliott Hughes2012-11-051-30/+17
|\ \ | |/ | | | | | | * commit 'df0d029524bc6f4aa6212e8d0e337b590731c7a4': Make System.loadLibrary use open(2) rather than stat(2).
| * Make System.loadLibrary use open(2) rather than stat(2).Elliott Hughes2012-11-051-30/+17
| | | | | | | | | | | | | | This will let us remove read permission from directories containing .so files. Bug: 6485312 Change-Id: I72daa265ce54747fc91cdb9d915a05a2464041bb
* | am 4e8aff78: Merge "Remove various content-free package.html files."Elliott Hughes2012-10-113-22/+0
|\ \ | |/ | | | | | | * commit '4e8aff7851667954f8c964829cd20c1e86288814': Remove various content-free package.html files.
| * Remove various content-free package.html files.Elliott Hughes2012-10-113-22/+0
| | | | | | | | Change-Id: I0d8097751b8a61d202b87ed5067d38ff0802c89a
* | Access to all users' external storage.Jeff Sharkey2012-08-281-0/+2
| | | | | | | | | | | | | | | | System services holding this permission have external storage bound one level higher, giving them access to all users' files. Bug: 7003520 Change-Id: I8a81582f9ef07089a1fab3e8f6c3ffe657bb1c1b
* | Multi-user external storage support.Jeff Sharkey2012-08-161-36/+19
|/ | | | | | | Add flags for mounting external storage and pass into JNI. Bug: 6925012 Change-Id: I3704ef1616339f9f5f854f734b58efa7a02b67a4
* Include library path information in BaseDexClassLoader for better error ↵Brian Carlstrom2012-08-011-1/+6
| | | | | | | | reporting in Runtime.loadLibrary (cherry-pick of b6a576f43f1c23bb92493590a04bf9c72f092438.) Change-Id: I6f34862327cf99d8c6f9a7e9aa3aeab47985969b
* Improve the BaseDexClassLoader detail message, and make ScopedLocalRef more ↵Elliott Hughes2012-08-011-1/+1
| | | | | | | | | | | | unique_ptr-like. (cherry-pick of 1c459db4ea31c1f284353bc71bfd2dbc97ca53d7.) Conflicts: include/ScopedLocalRef.h Change-Id: Id01cb907406cc93f6b0f6ddaa8e7fb3714d18c53
* Use float comparison for setTargetHeapUtilization constants.Ian Rogers2012-08-011-1/+1
| | | | | | (cherry-pick of f655188036ceab8968a510ae67455a27917546cf.) Change-Id: I587ad497ee9ac38f4052cdfdd861e8b24dd80712
* Fix HttpURLConnection CloseGuard warning due to lack of close on GZIPInputStreamBrian Carlstrom2012-07-271-2/+2
| | | | | | | | | | | | | | | | java.lang.Throwable: Explicit termination method 'end' not called at dalvik.system.CloseGuard.open(CloseGuard.java:184) at java.util.zip.Inflater.<init>(Inflater.java:82) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:96) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:81) at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:523) at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:831) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) at ... Bug: 6602529 Change-Id: I9b49cbca561f8780d08844e566820087fdffc4d7
* am 4ee3fff2: Merge "Extend forkAndSpecialize to take further input arguments."Kenny Root2012-06-211-5/+8
|\ | | | | | | | | * commit '4ee3fff217e72eccf5d1b1d7e252a214b0233bb3': Extend forkAndSpecialize to take further input arguments.
| * Extend forkAndSpecialize to take further input arguments.Stephen Smalley2012-01-181-5/+8
| | | | | | | | | | | | | | | | | | Extend forkAndSpecialize to take two further input arguments, a seInfo string and the niceName for the process. These can be used as further selectors in determining the SELinux security context for the process. Change-Id: If3a654070025e699b2266425f6eb8ab7e6b8c562
* | Merge "Refuse to write optimized dex files to a non-private directory."Jesse Wilson2012-01-081-0/+16
|\ \
| * | Refuse to write optimized dex files to a non-private directory.Jesse Wilson2012-01-061-0/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's infeasible to test if other applications can write to a given directory, particularly since directories like /sdcard/ are accessible to named groups like sdcard_rw. Instead we take a shortcut and just test that the optimized directory is owned by the current process. I tested this manually; the '/data/data/vogar.test.java.StatTest/' app directory could be successfully used but other directories ('/data', '/sdcard', '/') throw exceptions as expected. Bug: http://b/4609061 Change-Id: Ia72b50aa3c73051b0c03c06c0bc7c0470f76b212
* | Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-051-1/+1
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: Ia340ff04d8e9c6344df07a9f921147d06f367bfe
* | Track removal of unsupported experimental opcodes.Elliott Hughes2012-01-052-2/+42
|/ | | | Change-Id: Id97e603ce8dc4cc3246f99c5b215b0f862a700dd
* Only tag/untag sockets when open.Jeff Sharkey2011-10-251-2/+6
| | | | | Bug: 5274621 Change-Id: Icc42a80c8cce6adb20d16ca2bb1fb51e2a8e8e1b
* Fix typo in Javadoc for onReadFromDiskCasey Ho2011-08-171-1/+1
| | | | Change-Id: I7d8d683bd81fd96e826584cf502e418b29acab61