summaryrefslogtreecommitdiffstats
path: root/dalvik
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add open(2).Elliott Hughes2011-03-221-8/+0
| | | | | | | | | | Bug: 3107501 Change-Id: I404030b4c678862465d04f723a6a324663e0af25
* | Merge "Remove more dead SecurityManager cruft." into dalvik-devElliott Hughes2011-03-221-7/+2
|\ \
| * | Remove more dead SecurityManager cruft.Elliott Hughes2011-03-221-7/+2
| | | | | | | | | | | | | | | | | | (Requires corresponding dalvik change.) Change-Id: I65cd76ae056d4a1ff5f1a3e168b118a47cf09ff5
* | | Move finalization into the core library.Carl Shapiro2011-03-214-12/+49
|/ / | | | | | | Change-Id: I969ecc25f2a7e655e1093855514102662846dfe1
* | Add lseek(2).Elliott Hughes2011-03-181-4/+0
| | | | | | | | | | Bug: 3107501 Change-Id: Ie27e2ae1c7d37de5f02b1d81ee2005182339f881
* | Add ftruncate(2).Elliott Hughes2011-03-181-5/+0
| | | | | | | | | | | | | | | | | | The claim that "the port library" modifies the file offset appears to only ever have been true of Harmony's Win32 implementation. Certainly, this is not the behavior of ftruncate(2), so we can lose the cruft. Bug: 3107501 Change-Id: I35092fd986296b78c4847c7215765f9997339f37
* | Add sysconf(3).Elliott Hughes2011-03-181-4/+0
| | | | | | | | | | | | | | | | This gives us a getpagesize(3) replacement right now, and will let us implement Runtime.availableProcessors here rather than in the VM in a later change. Bug: 3107501 Change-Id: I6fc1f83d36b026fbe8d37eca525550479677f2de
* | Add fstat(2), lstat(2), and stat(2).Elliott Hughes2011-03-171-4/+0
| | | | | | | | | | Bug: 3107501 Change-Id: Ic36f9ffd03446d6e0189470f42abdadde57327df
* | Add fsync(2) and fdatasync(2).Elliott Hughes2011-03-171-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Interesting parts to this change: * first BlockGuard support (and general delegation support). * first rethrowing of ErrnoException as IOException. * switching FileChannelImpl from int to FileDescriptor. The special case in FileDescriptor.sync has been removed. Testing with the RI showed that it doesn't treat syncing a FileDescriptor that corresponds to a socket as a special case --- it throws SyncFailedException just like normal. Bug: 3107501 Change-Id: I99faf120bd802aec0397a79772ed38c5e1542fed
* | Expose POSIX constants.Elliott Hughes2011-03-151-6/+4
| | | | | | | | | | | | | | | | | | And use them, too. This patch is a little confusing because we already had constants in Java that were using the POSIX names but that didn't actually correspond to the constants whose names they'd stolen. Ugh. Bug: 3107501 Change-Id: Ib64a109c9340b0ecdf80bec91074206c001f455a
* | Remove the stopAtPrivileged argument.Dan Bornstein2011-03-101-8/+4
| | | | | | | | | | | | It's superfluous now. Change-Id: I5628797b1296a41bfe72e535efaf18cd17e12fd4
* | 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