| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Dalvik-dev has switched to Java 7 now, so diamonds are allowed now.
This reverts commit 307e642f661f73cf22fa689ee40181481768c400.
Change-Id: Ia1893bfea09aa2de65fed997bc3e5e3805d92387
|
|
|
|
|
|
|
| |
Regrettably we're stuck with Java 1.6 in some branches, which will
not accept the diamond operator.
Change-Id: Iab1bd30bdcd70e312c2809a42d2339e0503a3250
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add CloseGuardMonitor to intercept and collate CloseGuard reports and if
necessary throw an exception listing the resource leaks.
* Add ResourceLeakageDetector to abstract away the CloseGuardMonitor which will
not work on RI.
* Add AbstractResourceLeakageDetectorTestCase as a base class for tests
that need to detect resource leaks, in future this could be handled by
modifications to Cts and Vogar test runners.
* Remove CloseGuardTester and its sole usage in ProcessBuilderTest.
* Remove CloseGuardGuard from within URLConnectionTest
* Change ZipFileTest, ProcessBuilderTest, URLConnectionTest to use new
mechanism, fix issues that are identified and do some cleanup/remove
duplicated code.
Bug: https://code.google.com/p/android/issues/detail?id=66383
Change-Id: Id026dbb6bc66091a15f07329e6371cd0d1f32cf5
|
|
|
|
|
|
| |
(cherry picked from commit 4adab737c923d0cb2796a51500498e04708f1d1e)
Change-Id: Ic8e37e97e468b42c64d4a5e8631aab532e04115a
|
|
|
|
| |
Change-Id: Ie700aa16d91fba53fc5eb2555829cb74d84b12ad
|
|
|
|
|
|
|
|
| |
The old Zygote class is moving to frameworks/base. The Zygote
class provides a set of callbacks that Zygote can call to allow
the runtime to perform pre/post fork work.
Change-Id: I7400e32906d32e80ffd196ef7a858a8733011ac3
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This field has moved to the SystemServer class.
Change-Id: Ia66340dd934e6ec62a72e3641085602cb9f252f5
|
|/
|
|
|
|
| |
Currently unused, all callers use forkAndSpecialize.
Change-Id: I61df8ed88d7657da8280e044fe99517c47ce8dff
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add isDexOptNeededInternal() to the DexFile class. This is like
isDexOptNeeded() except takes additional arguments that are used
to determine whether a profile has changed of not.
The isDexOptNeeded() method is part of the exported API and cannot
be changed. The new method is not part of the API.
Also add additional argument to the registerAppInfo() methods (the
package name). This is used to determine the profile filename.
Bug: 12877748
Change-Id: If862cc5d20fae4b9d46c488f401cda6d433b4a57
|
|
|
|
|
|
|
|
|
| |
As promised, this is the cleanup patch-set which removes the
old native "fork and specialize" API, which has been replaced
by a slightly-enhanced one which can close the Zygote socket
descriptors in the Zygote child.
Change-Id: Icaeab730bee8638354dc664524e4118cdd946d2f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID. These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.
This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected. The CLs need to be approved
together, lest the build break or the software fail to boot.
Bug: 12114500
Change-Id: I8ea69de7b1cfbd811977a5629eb0af665f6dd66a
|
|
|
|
| |
Change-Id: I7f259bd14134fc6663047b8a1237b8364f10a51d
|
|
|
|
|
|
| |
Libcore side of this change. Also changed art and frameworks base.
Change-Id: Ie26982dfb09d4098708d701b5429fd09e710a25d
|
|
|
|
|
|
|
|
| |
Gah.
(cherry picked from commit 61e8a22b0a1a9a9dcfb9a7c492ed2e03ad1f24b6)
Change-Id: I555f3166e136dc0b84ccb6d96dc9c081e083d319
|
|
|
|
|
|
|
|
| |
Add a stub for dead functionality.
(cherry picked from commit e6a4f2f6cc4721273a71d9820cb2fb6d7937a57a)
Change-Id: I0e8a050c447c23aba83fcef75eb1861762d7f123
|
|
|
|
|
|
| |
(cherry picked from commit c7abaf1f9cd06e8511bc70dd884e57226f635da2)
Change-Id: I7ec6daec54daf04a4a5bf8196b8a4a9286216dd2
|
|
|
|
|
|
| |
Just assume a file is either a .dex file or one type of zip files.
Change-Id: I9da778f9cc658295d90b240afddfe5bf5af1edf8
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Bug: 9968521
Change-Id: I3e36331980a192ab783ede095955b1f71b9ca40e
(cherry picked from commit b72f49ea6dac9cc6bf46485be8f97cafa7db3dc3)
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 9071417
Change-Id: Icdde3aace023d1d7509c932cdd71f203213b59d6
|
|
|
|
|
| |
Bug: 3484927
Change-Id: I5820267491b850b8fcc696fa48962710de123009
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I7b218f9732b36b9cca5ebc38380f3e7ef0275f34
|
|
|
|
| |
Change-Id: I6db6d91e21b8e1aca5b5338534196fd5bdef8a06
|
|
|
|
| |
Change-Id: Idc1caee3a0afb61d159cd046348ecb11db3d9e10
|
|
|
|
|
|
| |
(cherry picked from commit 8b44bdb6063816eeb90da6b4f8aa3ed9f38fe140)
Change-Id: I5da041caa3037a4093f05dec4e03aed4f466a21d
|
|
|
|
| |
Change-Id: I04498d8d8c4b065dbda8d7b30b8b77ce53e63a77
|
|
|
|
|
|
| |
(cherry picked from commit 4b5012a6cd5f7f32f33a776c9e2c94ca3f3eb1d5)
Change-Id: I8a154f8b6e39b8ed0a633fab9ba31d557b545bb5
|
|
|
|
|
| |
Change-Id: I59183e966c79c2ba879151c3ac14ff0a86c74c86
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
|
|
|
|
| |
Change-Id: Ia9ec36734d275f677279225d3068e548a3d652ec
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 Libcore support for execv() and execve().
This allows java programs to execute other programs
without having to write jni wrappers.
Change-Id: I82ddc069b5812ebd40f06b7f65ce173d496e0597
|
|
|
|
| |
Change-Id: I6a9f7d8203c91f854fef64c9acd0e0b04459724b
|
|
|
|
|
|
|
| |
Another day, another private field accessed.
Bug: 7726934
Change-Id: I1cf2e9b9c9c7c53afd43642fcbf8f1a1d203bf6c
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Bug: 7896159
Bug: http://code.google.com/p/android/issues/detail?id=34416
Change-Id: Id1225a353b52c50bb3eedfd48e92ec85dd60134b
|
|
|
|
|
|
| |
I've left java.util.concurrent alone, since that's upstream code.
Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Followup for change "Lazy parsing of zip files for Java resources."
Change-Id: Ic572dff0edda766400ce6cea9fb27344373c73df
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| |
| |
| | |
to do with setting java.io.tmpdir."
* commit 'e3b1b9ebaca89b9aaa583ba9953dfce579d32a16':
Gut dalvik.system.TemporaryDirectory, which has nothing to do with setting java.io.tmpdir.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
| |
| |
| | |
* commit 'df0d029524bc6f4aa6212e8d0e337b590731c7a4':
Make System.loadLibrary use open(2) rather than stat(2).
|
| |
| |
| |
| |
| |
| |
| | |
This will let us remove read permission from directories containing .so files.
Bug: 6485312
Change-Id: I72daa265ce54747fc91cdb9d915a05a2464041bb
|
|\ \
| |/
| |
| |
| | |
* commit '4e8aff7851667954f8c964829cd20c1e86288814':
Remove various content-free package.html files.
|
| |
| |
| |
| | |
Change-Id: I0d8097751b8a61d202b87ed5067d38ff0802c89a
|
| |
| |
| |
| |
| |
| |
| |
| | |
System services holding this permission have external storage bound
one level higher, giving them access to all users' files.
Bug: 7003520
Change-Id: I8a81582f9ef07089a1fab3e8f6c3ffe657bb1c1b
|
|/
|
|
|
|
|
| |
Add flags for mounting external storage and pass into JNI.
Bug: 6925012
Change-Id: I3704ef1616339f9f5f854f734b58efa7a02b67a4
|