summaryrefslogtreecommitdiffstats
path: root/dalvik
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use -fvisibility and clean up a little.Elliott Hughes2011-03-081-4/+0
| | | | | | | | | | | | | | The visibility change isn't obviously useful, but it's a good excuse to clean up some of our networking code a little. Change-Id: I165b32b9c76a3707c512e07de07992f63673ab4f
* | Clean up of test-related dalvik.annotation classesBrian Carlstrom2011-03-037-241/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused dalvik.annotations related to tests dalvik.annotation.HostController dalvik.annotation.TestInfo dalvik.annotation.TestStatus dalvik.annotation.Timeout dalvik.annotation.VirtualTestTarget Deprecate two public dalvik.annotations related to tests. While they appear in the api xml files, they aren't show in our javadoc. dalvik.annotation.TestTarget dalvik.annotation.TestTargetClass Change-Id: I2f2aa41da0941718e4717d7ee8021606910f75f2
* | Fix more FindBugs warnings: RR_NOT_CHECKED.Elliott Hughes2011-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | "This method ignores the return value of one of the variants of java.io.InputStream.read() which can return multiple bytes. If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes were read than the caller requested. This is a particularly insidious kind of bug, because in many programs, reads from input streams usually do read the full amount of data requested, causing the program to fail only sporadically." Change-Id: I7d7c62836f2037f0cbb4bb0708bd4f034a22a2fc
* | am 2f323ffc: Merge "Move state from Sampler to SamplingProfiler that needs ↵Brian Carlstrom2011-02-241-25/+30
|\ \ | |/ | | | | | | | | | | to be preserved across a profiler restart" * commit '2f323ffc114d439cbeeb780845e5d1b2a88f85f9': Move state from Sampler to SamplingProfiler that needs to be preserved across a profiler restart
| * Move state from Sampler to SamplingProfiler that needs to be preserved ↵Brian Carlstrom2011-02-241-25/+30
| | | | | | | | | | | | across a profiler restart Change-Id: I39acb54cca5b98c7f147e2d9cc083c6ab4b17707
* | Simplify internal libcore logging.Elliott Hughes2011-02-223-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose LOGE and friends for use from Java. This is handy because it lets me use printf debugging even when I've broken String or CharsetEncoder or something equally critical. It also lets us remove internal use of java.util.logging, which is slow and ugly. I've also changed Thread.suspend/resume/stop to actually throw UnsupportedOperationException rather than just logging one and otherwise doing nothing. Bug: 3477960 Change-Id: I0c3f804b1a978bf9911cb4a9bfd90b2466f8798f
* | Fix various FindBugs warnings.Elliott Hughes2011-02-171-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | Only the ChunkHandler and ZoneInfo ones were real bugs. The former is only called with one input value that doesn't exercise the bug, and the latter would cause us to think that a time zone that stopped using daylight time before 1970 was still using daylight time (which would defeat various optimizations, but should otherwise be harmless). The other stuff is trivia not worth individual changes. Change-Id: Ib0752560cd16edc6538d1fc2b234451a66d48171
* | Fix dalvik.system FindBugs warnings.Elliott Hughes2011-02-172-2/+5
| | | | | | | | Change-Id: I9cb09b8b9b0b21c899b08a852cc6f277dbb67bcf
* | Refactor DexClassLoader and PathClassLoader.Dan Bornstein2011-02-164-734/+595
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This resulted in the creation of two new classes: DexPathList contains most of the common functionality, namely managing the two path lists (dex/resource files and native library directories) plus all the salient initialization and lookup code. BaseDexClassLoader provides the ClassLoader API, mostly by making calls to a contained DexPathList instance. The two original classes just become trivial subclasses which take different constructor args and make correspondingly different super() calls in their respective constructors. I took the opportunity to remove the ability for PathClassLoader to take directories on the dex/resource list. This functionality hadn't ever been used, at least not since well before 1.0. Change-Id: I92ed300417431d0e0ac4c5ecf2f10d6a9b0691c7
* | Remove the obsolete TouchDex code.Elliott Hughes2011-02-104-716/+0
| | | | | | | | | | | | | | Apparently, this is how we did the first-boot dexing before we had a package manager. Change-Id: I6fce0fb30ab9dc2e7ebb0c4177540e92677c92b9
* | Move more of the system properties handling into managed code.Elliott Hughes2011-02-103-32/+26
| | | | | | | | | | Bug: 3413364 Change-Id: Ifc9b54255e11fd7df5517b88d8774dd747a7ec3d
* | am 7190be77: Restore the code for optimized file specification.Dan Bornstein2011-02-091-3/+4
|\ \ | |/ | | | | | | * commit '7190be77a29ad8f35b044ec591cb2b449f3ea8a1': Restore the code for optimized file specification.
| * Restore the code for optimized file specification.Dan Bornstein2011-02-091-3/+4
| | | | | | | | | | | | | | This bit got removed due to a copy-paste mishap. Bug: 3439372 Change-Id: If4653ec77bdc9b629ed4f5ba953be3eef6315b97
* | Merge "Stub out and deprecate gcSoftReferences." into dalvik-devCarl Shapiro2011-02-081-3/+4
|\ \
| * | Stub out and deprecate gcSoftReferences.Carl Shapiro2011-02-071-3/+4
| | | | | | | | | | | | Change-Id: I5c4fe0bc9ed1dd4b4e1324e2c090815f97e4463f
* | | resolved conflicts for merge of 6186821c to dalvik-devJesse Wilson2011-02-071-2/+1
|\ \ \ | |/ / |/| / | |/ Change-Id: Ic6f0172767d6feedb188d3a5e7488a67702ef8c4
| * Move libcore.base classes to libcore.util and libcore.io.Jesse Wilson2011-02-071-2/+1
| | | | | | | | Change-Id: I2340a9dbad3561fa681a8ab47d4f406e72c913e3
* | am 82c16e90: am d57cdc2f: am 766776ce: Remove broken+deprecated ↵Jesse Wilson2011-01-231-12/+0
|\ \ | |/ | | | | | | | | | | SamplingProfiler.writeHprofData * commit '82c16e90fc5c1f81d6256ca05b45bc53e695316a': Remove broken+deprecated SamplingProfiler.writeHprofData
| * Remove broken+deprecated SamplingProfiler.writeHprofDataJesse Wilson2011-01-231-12/+0
| | | | | | | | | | Change-Id: I7af108e06a2708fe8d1d8ace4e02210b2cfd486b http://b/3381260
* | am b0886c84: am d26f4e0d: am 6fcb5467: Merge "Expose an interface for ↵Carl Shapiro2011-01-181-0/+6
|\ \ | |/ | | | | | | | | | | clearing a heap growth limit." into honeycomb * commit 'b0886c849bcbf547b1983bfcb09b9ea4623c70c8': Expose an interface for clearing a heap growth limit.
| * Expose an interface for clearing a heap growth limit.Carl Shapiro2011-01-181-0/+6
| | | | | | | | Change-Id: I55a9b2415a28c9365af68a5a78b0208075dfd1cd
* | am 0d46536e: am cbd2876d: am be9c142f: Minor doc tweaks.Andy McFadden2011-01-181-9/+4
|\ \ | |/ | | | | | | * commit '0d46536ec1069aa2a7181deaf839cc1ba26d45d7': Minor doc tweaks.
| * Minor doc tweaks.Andy McFadden2011-01-181-9/+4
| | | | | | | | | | | | Bug 3347172. Change-Id: I9954e6ae929c6e8ef5223ada02012f3909e1204e
* | am 16ed9750: am a04850bc: am 6044fd95: Synch up file opening code in ↵Dan Bornstein2011-01-142-17/+25
|\ \ | |/ | | | | | | | | | | PathClassLoader and DexClassLoader. * commit '16ed9750d423f641e357d4cc8e410646f6ca32e1': Synch up file opening code in PathClassLoader and DexClassLoader.
| * Synch up file opening code in PathClassLoader and DexClassLoader.Dan Bornstein2011-01-142-17/+25
| | | | | | | | | | | | The version in PathClassLoader was more correct. Change-Id: I92a205403d33c13378c7f392b835669cb97f6ac4
* | am 3c61f6c5: am fb641fa5: am c4379294: Remove @cts comments from hidden classes.Carl Shapiro2011-01-122-5/+0
|\ \ | |/ | | | | | | * commit '3c61f6c5fa99f7558f2b0386b0365b9430ed41fd': Remove @cts comments from hidden classes.
| * Remove @cts comments from hidden classes.Carl Shapiro2011-01-122-5/+0
| | | | | | | | Change-Id: I948fc13d0fc236b07dad5864cab2e5c4eba2c06c
* | am bc307281: am 2ce1fb3e: am 55fa6d07: Merge "Remove the allocation limits ↵Carl Shapiro2011-01-121-26/+12
|\ \ | |/ | | | | | | | | | | interfaces." into honeycomb * commit 'bc307281679f1b9b6d223fd962c37a8160510125': Remove the allocation limits interfaces.
| * Remove the allocation limits interfaces.Carl Shapiro2011-01-121-26/+12
| | | | | | | | Change-Id: I85c3b48cb11823cfccd1901cac685d0c457a74b3
* | am 2d71deb0: am 651d1905: am 79214492: Fix a droid doc error caused by the ↵Carl Shapiro2011-01-121-1/+1
|\ \ | |/ | | | | | | | | | | erroneous inflection of @return. * commit '2d71deb0336bf57ba74df1afe223c85e50ed5575': Fix a droid doc error caused by the erroneous inflection of @return.
| * Fix a droid doc error caused by the erroneous inflection of @return.Carl Shapiro2011-01-121-1/+1
| | | | | | | | Change-Id: I61a3c8cc34d129a37c6556b9def5fa5fe0cafe46
* | am 706ea0b9: am 5e7fa214: am f6dbefb3: Merge "Remove method level hiding ↵Carl Shapiro2011-01-125-39/+1
|\ \ | |/ | | | | | | | | | | within hidden classes." into honeycomb * commit '706ea0b90e80b9f77b178d13f3a5c6b1cf434a35': Remove method level hiding within hidden classes.
| * Merge "Remove method level hiding within hidden classes." into honeycombCarl Shapiro2011-01-125-39/+1
| |\
| | * Remove method level hiding within hidden classes.Carl Shapiro2011-01-125-39/+1
| | | | | | | | | | | | | | | | | | | | | This change also removes braces surrounding a properly placed @hide annotation. Change-Id: I8b7b32567068099f9081e7bcb2f30b80b71441f7
* | | am 04874adf: am 36dc3b8d: am cb966aef: Remove support for setting the ↵Carl Shapiro2011-01-121-28/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | minimum size of the heap at runtime. * commit '04874adf6cd82647a40fc0480e3cfe9809b46ff6': Remove support for setting the minimum size of the heap at runtime.
| * | Remove support for setting the minimum size of the heap at runtime.Carl Shapiro2011-01-121-28/+9
| |/ | | | | | | Change-Id: I299fd6806350eb35c768d7370f11b689ab8232b8
* | am 66d9e787: am cbe26f42: am c8dde40c: Merge "Get memory for direct byte ↵Elliott Hughes2011-01-101-0/+13
|\ \ | |/ | | | | | | | | | | buffers from the Java heap rather than the native heap." into honeycomb * commit '66d9e787af999d3c6b26cfd46e10e0750a5f3e6e': Get memory for direct byte buffers from the Java heap rather than the native heap.
| * Get memory for direct byte buffers from the Java heap rather than the native ↵Elliott Hughes2011-01-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | heap. Since the removal of tracked external allocations, there's been no accounting of direct byte buffers. This fixes that, and moves us to a much simpler situation where the GC is responsible for this memory too. It also means that we don't need finalizers: now only memory-mapped blocks need finalizers (to call munmap(3)). Change-Id: I6b43f74074e496eeb2a36b620af19e4926ceb8cf
* | Tell editors that these are Makefiles (or fragments thereof).Elliott Hughes2011-01-071-0/+1
|/ | | | Change-Id: I0c5e29ac750b9605b1e8f823d6998d31a933b7a4
* Adding binary hprof support to SamplingProfilerBrian Carlstrom2010-12-222-204/+1642
| | | | | | | | | | | | | | | | | | | | | SamplingProfiler refactored: - HprofData is now a separate class, the common data structure - SamplingProfiler uses HprofData as its runtime format - AsciiHprofWriter refactored from profiler, takes an HprofData - new BinaryHprofWriter to output HprofData in binary format - new BinaryHprofReader can recreate HprofData from binary file - new HprofBinaryToAscii command line tool to convert formats dalvik/src/main/java/dalvik/system/SamplingProfiler.java SamplingProfilerTest expanded to cover new HprofData class directly. Includes testing of conversion from various hand constructed HprofData to ascii and binary formats as well as from binary back to HprofData with out loss of data. dalvik/src/test/java/dalvik/system/SamplingProfilerTest.java Change-Id: I6fe06f5dbdbf2f0bf2de228d9761f84d75290ba7
* Revert "Remove inline natives for an unused performance test." (libcore)Jesse Wilson2010-12-223-1/+138
| | | | Change-Id: I7ea69f84c008c5bdbdf8af6134fb81d80f0a958e
* Remove native targets for unused performance tests.Jesse Wilson2010-12-223-138/+1
| | | | Change-Id: Ia61172cd52de031290a811c3ec73edb929f40c10
* Revert "Remove native targets for unused performance tests."Ben Cheng2010-12-212-1/+70
| | | | This reverts commit 272a383283a974a4c32a94469b8a8b021d93a480.
* Remove native targets for unused performance tests.Jesse Wilson2010-12-212-70/+1
| | | | | | See also change I5a252e31. Change-Id: I3880a81f1f7e90247ce12860b5a2f597037123a7
* Remove the external allocation facility.Carl Shapiro2010-12-171-29/+16
| | | | Change-Id: Ic21a01ff1f82f6b2d22d089711a2843b5a497eda
* We always wantDex at this point.Dan Bornstein2010-12-162-29/+26
| | | | | | | | | So, there was no longer a need to check for it. Cleaned up some comments and minor code convention violations while I was in the territory. Change-Id: I717fa74bad05cdbf02bd4f6d24108196579c451a
* Don't bother trying to unzip a file named "*.dex".Dan Bornstein2010-12-161-8/+17
| | | | | | | This avoids a bit of work that would inevitably fail. I also updated some comments to better reflect the status quo. Change-Id: I7435ec0abd4d0a8173d61c1f4b894bfafbc6f609
* Plumbing for loading byte[]-based dex files.Dan Bornstein2010-12-151-0/+6
| | | | | | | This is not yet complete. See related change I06af6df3 in the dalvik project. Change-Id: Iac4739c0e75bf95e1d5f019e946b8ddb256d3a26
* Add BlockGuardPolicyException constructor with a messageBrad Fitzpatrick2010-12-101-1/+8
| | | | Change-Id: Ied7ca5e1a1d7dbcf44d5bcf6834c04076461d605
* Fix a bunch of javac -Xlint warnings in our code.Elliott Hughes2010-12-082-25/+4
| | | | | | | | | I think "fallthrough" uncovered a couple of real bugs in the kxml code, but other than that there's nothing very exciting here. This addresses all but one of the non-xml warnings. I'm assuming that we'll move the xml cruft out into external at some point (since we're deliberately not maintaining it). Change-Id: Ice81253b019df7b19d6557e719663b7bdc11fb22