Sebastien Hertz
60a2716f72
am 3244dc22: am 677cd087: am e9de1b4c: am 9a010d0a: Merge "Allow debugging only for apps forked from zygote" into mnc-dev
...
* commit '3244dc229af4d4c8b764bf9ca1e108b5cd933d90':
Allow debugging only for apps forked from zygote
2015-08-18 09:52:46 +00:00
Sebastien Hertz
e9de1b4cef
am 9a010d0a: Merge "Allow debugging only for apps forked from zygote" into mnc-dev
...
* commit '9a010d0a4157f97870bc38bd3dd0a8f4fd18a172':
Allow debugging only for apps forked from zygote
2015-08-18 07:50:06 +00:00
Sebastien Hertz
9a010d0a41
Merge "Allow debugging only for apps forked from zygote" into mnc-dev
2015-08-18 07:41:50 +00:00
Eino-Ville Talvala
3a94b2d22e
am 028c2e4e: am 33689420: am eec25a4f: am 1017f986: Merge "Camera2: Add camera type to getNumberOfCameras." into mnc-dev
...
* commit '028c2e4e264d1d2235e4d0f95d178fdf77510e7e':
Camera2: Add camera type to getNumberOfCameras.
2015-08-16 02:55:33 +00:00
Eino-Ville Talvala
eec25a4ffe
am 1017f986: Merge "Camera2: Add camera type to getNumberOfCameras." into mnc-dev
...
* commit '1017f9862fb2cdfbff0abe12ef7d20b657a38e36':
Camera2: Add camera type to getNumberOfCameras.
2015-08-16 01:34:42 +00:00
Eino-Ville Talvala
5717612ba9
Camera2: Add camera type to getNumberOfCameras.
...
Do not list strange cameras in old API; ensure new API gets all
cameras.
Bug: 23194168
Change-Id: Ia1fdffac245525674c913fefb1ec06e9094fe8d3
2015-08-14 14:52:57 -07:00
Narayan Kamath
0d2e3d3ea3
am c42acbdb: am 088c4155: am 86b6d204: am bf88205b: Fall back to persist.sys.language/country if locale isn\'t set.
...
* commit 'c42acbdb65d89b1e5fc1cafde4cbe0996c104f7a':
Fall back to persist.sys.language/country if locale isn't set.
2015-08-12 10:55:33 +00:00
Narayan Kamath
86b6d204a5
am bf88205b: Fall back to persist.sys.language/country if locale isn\'t set.
...
* commit 'bf88205bef88f78ade5c6830e6203aa343387820':
Fall back to persist.sys.language/country if locale isn't set.
2015-08-12 10:39:13 +00:00
Narayan Kamath
bf88205bef
Fall back to persist.sys.language/country if locale isn't set.
...
This will prevent users from losing their language setting when they
take an OTA to M.
bug: 23021286
Change-Id: Ifb66f6bf6a940ab745edac709321f3009ec6eab4
2015-08-12 11:03:46 +01:00
Andreas Gampe
d38110bdcd
am 1be6e1c7: am 9502cc54: am d0669693: am b08c24a3: Frameworks/base: Disable Clang in core/jni
...
* commit '1be6e1c7643859839157534d45677fa20169fd1d':
Frameworks/base: Disable Clang in core/jni
2015-08-11 06:56:19 +00:00
Andreas Gampe
d06696939b
am b08c24a3: Frameworks/base: Disable Clang in core/jni
...
* commit 'b08c24a3e4f5362bbddc3735802e844e1992cd46':
Frameworks/base: Disable Clang in core/jni
2015-08-11 06:35:42 +00:00
Andreas Gampe
b08c24a3e4
Frameworks/base: Disable Clang in core/jni
...
thread_local does not work with Clang at the moment.
Bug: 22414716
Change-Id: I4059b63a1621c346bfc72dbbec0b9cb165485e26
(cherry picked from commit 2bc67a1b5f9d4662ef7da4645ca8e580302b3553)
2015-08-11 06:18:49 +00:00
Sebastien Hertz
7a09b8322c
Allow debugging only for apps forked from zygote
...
When starting the runtime from app_process, we only pass JDWP options
if starting zygote. It prevents from opening a JDWP connection in
non-zygote programs while Android apps (forked from zygote) remain
debuggable.
Bug: 23050463
Change-Id: If8ea719063a65db4cdeed69a838b52e87b078b08
2015-08-10 20:39:13 +02:00
Ruben Brunk
ffbe794353
am 1a232510: am 3b006485: am ae81ebf8: Merge "camera2: Update DngCreator with bad pixel opcode." into mnc-dr-dev
...
* commit '1a2325105f88b6160409299ca9b6668e128a1beb':
camera2: Update DngCreator with bad pixel opcode.
2015-08-07 23:34:40 +00:00
Ruben Brunk
ae81ebf892
Merge "camera2: Update DngCreator with bad pixel opcode." into mnc-dr-dev
2015-08-07 23:11:50 +00:00
Jeff Sharkey
ce8f8edcc4
am 48697332: am 0c2df694: am 7d28ad9b: am cb54ffb2: Merge "Protect runtime storage mount points." into mnc-dev
...
* commit '48697332c7793d17a12887b5d508aeb96049c7f7':
Protect runtime storage mount points.
2015-08-06 21:31:49 +00:00
Jeff Sharkey
7d28ad9b63
am cb54ffb2: Merge "Protect runtime storage mount points." into mnc-dev
...
* commit 'cb54ffb2cb9583eaf6b58dcc636681c4e4e07a7d':
Protect runtime storage mount points.
2015-08-06 19:36:01 +00:00
Jeff Sharkey
928e1ecfe2
Protect runtime storage mount points.
...
We have a bunch of magic that mounts the correct view of storage
access based on the runtime permissions of an app, but we forgot to
protect the real underlying data sources; oops.
This series of changes just bumps the directory heirarchy one level
to give us /mnt/runtime which we can mask off as 0700 to prevent
people from jumping to the exposed internals.
Also add CTS tests to verify that we're protecting access to
internal mount points like this.
Bug: 22964288
Change-Id: I74dbdcb01d4fabe92166b8043a74c6a1e93c6d5f
2015-08-06 11:46:30 -07:00
Tim Murray
edd15f39f5
am 34f4e88d: am ffd8889a: am f76806a9: Merge "Add boost to increase the load on newly-forked zygote processes." into mnc-dr-dev
...
* commit '34f4e88d7e08b2c2cbfb28b3c7f7aa627709f95b':
Add boost to increase the load on newly-forked zygote processes.
2015-08-05 23:32:45 +00:00
Tim Murray
6d43a861d0
Add boost to increase the load on newly-forked zygote processes.
...
Makes it more likely for app launches to end up on a large core in
an HMP environment.
bug 21915482
Change-Id: Ieac192a4bc1237dd03b9492fcad3a78de5510a58
2015-08-05 14:32:44 -07:00
John Reck
3b68ca168a
am 96160dea: am 8e645d58: am 649c3c44: am 7290d93d: Merge "Yell loudly about undefined behind in Bitmap, but work anyway" into mnc-dev
...
* commit '96160dea490ade7ac6ba106457c9ce3f29d719d9':
Yell loudly about undefined behind in Bitmap, but work anyway
2015-08-04 01:30:44 +00:00
John Reck
649c3c440e
am 7290d93d: Merge "Yell loudly about undefined behind in Bitmap, but work anyway" into mnc-dev
...
* commit '7290d93df99de9d21ac8a9ddf72bc095b319af4b':
Yell loudly about undefined behind in Bitmap, but work anyway
2015-08-04 01:00:04 +00:00
John Reck
01a0af31d7
Yell loudly about undefined behind in Bitmap, but work anyway
...
Bug: 22214367
Previous releases would let the getters on a recycle()'d bitmap to still
work despite being firmly in undefined behavior per the documentation
on Bitmap#recycle().
As there are apps relying on this, yell very loudly about this behavior
in the log and give them a bit of time to fix it
Change-Id: I857be7e74cb217877973d9c6f03eb761d12fd056
2015-08-03 20:57:22 +00:00
Ruben Brunk
9ce22a0956
camera2: Update DngCreator with bad pixel opcode.
...
Bug: 22463079
Change-Id: Id40f02f565d5ce3427479968bc8c3a9e78c04816
2015-08-03 20:02:11 +00:00
Ruben Brunk
1055dbe469
am a9b4ed9e: am 20733ba9: am b1286a7a: am 7469060e: Merge "Make vendor keys visible in Camera2 java APIs." into mnc-dev
...
* commit 'a9b4ed9ee65c3db1975defe1b6bb1afd91cd7ba6':
Make vendor keys visible in Camera2 java APIs.
2015-08-03 16:38:17 +00:00
Ruben Brunk
b1286a7a72
am 7469060e: Merge "Make vendor keys visible in Camera2 java APIs." into mnc-dev
...
* commit '7469060e7855ca5b32f66fbad1a0a4f88737c754':
Make vendor keys visible in Camera2 java APIs.
2015-08-03 16:16:12 +00:00
Ruben Brunk
7469060e78
Merge "Make vendor keys visible in Camera2 java APIs." into mnc-dev
2015-08-03 16:09:07 +00:00
Ruben Brunk
c620eb7e86
Make vendor keys visible in Camera2 java APIs.
...
- Add vendor keys to getKeys() calls for CameraCharacteristics,
CaptureRequest, and CaptureResult.
- Vendors can specify whether custom keys show up by listing
visible keys in the REQUEST_AVAILABLE_RESULT_KEYS field.
- Vendor key types are always treated as a primitive (or Rational)
array type corresponding to one of the valid types for
a camera metadata entry.
Bug: 22067625
Change-Id: I6e7dd3db7a8bf533c2ec15ff69ca38824134e971
2015-07-31 17:14:18 -07:00
Aravind Akella
eb648679bf
am e01a4afb: am e025f4d9: am ccaf066d: Merge "Call getInstanceForPackage instead of creating a new SensorManager instance." into mnc-dr-dev
...
* commit 'e01a4afb618159d68b5b5b00e29cbd8ced56f3dd':
Call getInstanceForPackage instead of creating a new SensorManager instance.
2015-07-30 22:02:43 +00:00
Aravind Akella
2af91d0e10
Call getInstanceForPackage instead of creating a new SensorManager instance.
...
Bug: 22529981
Change-Id: If077e042a4af940dfb1fc9c4ac8b9d352dd32685
2015-07-30 19:04:40 +00:00
Narayan Kamath
7cd90763d1
am 4aac30fa: am 8fcb5697: am ff01fcec: am 7157c2ca: Merge "Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."" into mnc-dev
...
* commit '4aac30faf253047fb68358ae6acb7a76e7023c81':
Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."
2015-07-29 11:06:40 +00:00
Narayan Kamath
7157c2ca81
Merge "Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."" into mnc-dev
2015-07-29 09:41:22 +00:00
Narayan Kamath
8d1e344f40
Revert "Call getInstanceForPackage instead of creating a new SensorManager instance."
...
This reverts commit 5967ddbf05f146bdb6744207e3daed1aa76fc637.
Change-Id: I6d58129585a30d7c2ef39c8cbe796fd696c93f56
2015-07-29 09:35:46 +00:00
Aravind Akella
79d0d7c13d
am 25931a50: am 33aeb1fe: am 822456eb: am 15938235: Merge "Call getInstanceForPackage instead of creating a new SensorManager instance." into mnc-dev
...
* commit '25931a507722a15383f5a554eee37eebe61488a7':
Call getInstanceForPackage instead of creating a new SensorManager instance.
2015-07-29 01:46:55 +00:00
Aravind Akella
15938235d2
Merge "Call getInstanceForPackage instead of creating a new SensorManager instance." into mnc-dev
2015-07-29 00:21:18 +00:00
Ruben Brunk
37f29f07a5
am 54f37477: am 0e3ab7b4: am 2384e2a4: am ee2a16b5: Merge "Update DngCreator to correctly handle array sizes." into mnc-dev
...
* commit '54f3747738e68a92da42855d1cf5d941e2eb95a6':
Update DngCreator to correctly handle array sizes.
2015-07-28 00:57:40 +00:00
Ruben Brunk
ee2a16b551
Merge "Update DngCreator to correctly handle array sizes." into mnc-dev
2015-07-28 00:11:36 +00:00
Ruben Brunk
2079612e58
Update DngCreator to correctly handle array sizes.
...
- Allow both pixelArraySize and preCorrectionArraySize
buffer dimensions for input buffers.
- Adjust crop, active area, and dimensions used for
opcode lists based on the input buffer size.
Bug: 22302614
Bug: 22210811
Change-Id: I16fb8921a144b0a251d555037ca45fdc12f7dd18
2015-07-27 22:48:13 +00:00
Aravind Akella
5967ddbf05
Call getInstanceForPackage instead of creating a new SensorManager instance.
...
Bug: 22529981
Change-Id: Id3adfbcf55d1268db1a555c72a06456a5219c086
2015-07-27 14:19:31 -07:00
Chris Craik
6c3fc22c62
am 5a70e76f: am 53a82e35: am 520a5c56: am 4604c1dc: Merge "Fix bitmap get/set pixels for ALPHA_8" into mnc-dev
...
* commit '5a70e76f40c19555a7ca09bd30a89b7bbaf985b5':
Fix bitmap get/set pixels for ALPHA_8
2015-07-27 18:47:19 +00:00
Chris Craik
4604c1dc67
Merge "Fix bitmap get/set pixels for ALPHA_8" into mnc-dev
2015-07-27 17:23:52 +00:00
Andreas Gampe
d1fffe1c89
am 505a252c: am 851f5185: am 08edf246: am 9a755e36: Merge "Frameworks/base: Hand fingerprint to ART" into mnc-dev
...
* commit '505a252cf7120dda0f1afb72f532bd99ada23baa':
Frameworks/base: Hand fingerprint to ART
2015-07-24 22:28:35 +00:00
Chris Craik
6260b22501
Fix bitmap get/set pixels for ALPHA_8
...
bug:22724734
Change-Id: If8307854f6bad6fac9ee0b394bf0b044c61183e5
2015-07-24 15:27:48 -07:00
Andreas Gampe
e60825033f
Frameworks/base: Hand fingerprint to ART
...
To allow ANR dumps to be symbolized easily, hand the build
fingerprint to the runtime.
Bug: 22693991
Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508
2015-07-24 14:19:44 -07:00
John Reck
cbb968ccd7
am dc7368cb: am 78c93dfc: am 459337c8: am 8657d9e8: Merge "JNI optimization tweaks to Paint high-frequency methods" into mnc-dev
...
* commit 'dc7368cb856025b4c9813bc6ff96d5b7c311b690':
JNI optimization tweaks to Paint high-frequency methods
2015-07-14 16:25:52 +00:00
Neil Fuller
b662579ec0
am 3ecbca50: am 886630c0: Merge "Switch shutdownInput / shutdownOutput to using Os.shutdown."
...
* commit '3ecbca5081f26ca03ef6b8b68767753343e67f38':
Switch shutdownInput / shutdownOutput to using Os.shutdown.
2015-07-13 15:26:09 +00:00
John Reck
46b9d33921
am ee3c1ea5: am 4108f565: am b25c0bb7: am 525ac80d: Merge "Create a thread_local cache for textLocale" into mnc-dev
...
* commit 'ee3c1ea59dfe357b9ac59b4aae056280ccc6417b':
Create a thread_local cache for textLocale
2015-07-10 18:42:48 +00:00
John Reck
c6024cdd35
JNI optimization tweaks to Paint high-frequency methods
...
Bug: 22378829
Use fast-jni for getFontMetrics, drops from 35us -> 30us
Note the "heavy" part of the method, getMetricsInternal, is
already called by other fast-jni methods.
Use critical array access for getRunAdvance_* methods. This
will avoid the copy and the access is appropriately scoped
and fast enough to not significantly block the moving GC.
Improves from 88us -> 79us on short text
Change-Id: I7c1481c23f6dba3420fbcf48220f6335cf9f6d10
2015-07-10 10:58:46 -07:00
John Reck
476f715822
Create a thread_local cache for textLocale
...
Bug:22378829
toLanguageTag is significantly more expensive than previously
thought (note ULOC_FULLNAME_CAPACITY is 157) and weighs
in at around 40us. Given that this is called on every Paint
and that there are typically thousands of Paint objects
created this adds up very quickly.
Given that the locale is almost always Locale.getDefault(),
a very simple thread_local cache of size 1 fixes this trivially
Change-Id: I819e60cac7a4b27e9dd5538332c22ce5bbd0851c
2015-07-10 10:08:31 -07:00
Neil Fuller
a7f7c248c7
Switch shutdownInput / shutdownOutput to using Os.shutdown.
...
Bug: 3106438
Change-Id: I2c4817e435c6b253d6c507ea57bdfdfe45df8862
2015-07-10 12:30:07 +01:00