OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Implement checkClientTrusted"
Chad Brubaker [Wed, 25 Nov 2015 20:41:03 +0000 (20:41 +0000)]
Merge "Implement checkClientTrusted"
am: 8e19803a6a

* commit '8e19803a6a10ac44ca59cf15a2ae1f2eedb13cf8':
  Implement checkClientTrusted

8 years agoMerge "Implement checkClientTrusted"
Chad Brubaker [Wed, 25 Nov 2015 20:33:31 +0000 (20:33 +0000)]
Merge "Implement checkClientTrusted"

8 years agoImplement checkClientTrusted
Chad Brubaker [Wed, 25 Nov 2015 18:39:28 +0000 (10:39 -0800)]
Implement checkClientTrusted

Bug: 25885029
Change-Id: I07ef11a556f1a1a65456ae5e3904c56902c6e82a

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
Alex Klyubin [Wed, 25 Nov 2015 19:05:09 +0000 (19:05 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
am: e766e399c5

* commit 'e766e399c59669156284c330ae3f38f79230d930':
  Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
Alex Klyubin [Wed, 25 Nov 2015 18:59:35 +0000 (18:59 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."

8 years agoCustom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).
Alex Klyubin [Wed, 25 Nov 2015 01:22:27 +0000 (17:22 -0800)]
Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

This makes Android Keystore's Cipher implementation use a custom
implementation of engineUpdate(ByteBuffer, ByteBuffer) and
engineDoFinal(ByteBuffer, ByteBuffer). The implementation is
explicitly designed around the fact that Android Keystore transmits
input and receives output via Binder and thus there's no need to
attempt any optimizations to avoid copying input and output.

Bug: 25863382
Change-Id: I311072891f02f5e7a283628b51b8d6058b55231c

8 years agoMerge "Extend the \'qwerty\' key layout"
Jim Kaye [Tue, 24 Nov 2015 19:33:57 +0000 (19:33 +0000)]
Merge "Extend the \'qwerty\' key layout"
am: 9a83f115ad

* commit '9a83f115ade900a816f0fa2beae2cdd6f54bfc54':
  Extend the 'qwerty' key layout

8 years agoMerge "Extend the 'qwerty' key layout"
Jim Kaye [Tue, 24 Nov 2015 19:27:46 +0000 (19:27 +0000)]
Merge "Extend the 'qwerty' key layout"

8 years agoMerge "ssl: make DistinguishedNameParser a package-private class in org.apache.http...
Sergio Giro [Tue, 24 Nov 2015 15:43:06 +0000 (15:43 +0000)]
Merge "ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl"
am: d5a5d547d0

* commit 'd5a5d547d05eee9d626db1d7977c11acbf83b0c7':
  ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl

8 years agoMerge "ssl: make DistinguishedNameParser a package-private class in org.apache.http...
Sergio Giro [Tue, 24 Nov 2015 11:14:24 +0000 (11:14 +0000)]
Merge "ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl"

8 years agoExtend the 'qwerty' key layout
Jim Kaye [Mon, 23 Nov 2015 20:22:59 +0000 (12:22 -0800)]
Extend the 'qwerty' key layout

Add the App Switch (Recents) key.
Add media control keys.

These are needed to support Emulator UI
buttons for these functions.

Change-Id: I3e9479bb49e21400f7bfd1435c50886038bbe0ff

8 years agossl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl
Sergio Giro [Mon, 23 Nov 2015 15:14:52 +0000 (15:14 +0000)]
ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl

Needed by AbstractVerifier in framework/base

DistinguishedNameParser taken from libcore, commit
b5259fcf87994ee18658f07887156aef3cab3b56

Change-Id: I924dc7cd21262e5e91857edf178e46c9916f3f6b

8 years agoMerge "Don\'t back up / restore EAP network definitions"
Chris Tate [Fri, 20 Nov 2015 18:05:04 +0000 (18:05 +0000)]
Merge "Don\'t back up / restore EAP network definitions"
am: 14a0981fde

* commit '14a0981fdef45967b19c3db4fb2f298c8b5a1f7c':
  Don't back up / restore EAP network definitions

8 years agoMerge "Don't back up / restore EAP network definitions"
Chris Tate [Fri, 20 Nov 2015 18:01:10 +0000 (18:01 +0000)]
Merge "Don't back up / restore EAP network definitions"

8 years agoMerge "Update framework code after new ART options."
Nicolas Geoffray [Thu, 19 Nov 2015 15:54:21 +0000 (15:54 +0000)]
Merge "Update framework code after new ART options."
am: d7d2817ade

* commit 'd7d2817ade8459a8f6872ff814d3208613502858':
  Update framework code after new ART options.

8 years agoMerge "Update framework code after new ART options."
Nicolas Geoffray [Thu, 19 Nov 2015 15:48:01 +0000 (15:48 +0000)]
Merge "Update framework code after new ART options."

8 years agoUpdate framework code after new ART options.
Nicolas Geoffray [Thu, 19 Nov 2015 13:48:35 +0000 (13:48 +0000)]
Update framework code after new ART options.

Change-Id: I852a5975701653fe7e0cdd02e3c0b30a2b0b0b59

8 years agoDon't back up / restore EAP network definitions
Christopher Tate [Wed, 18 Nov 2015 02:01:52 +0000 (18:01 -0800)]
Don't back up / restore EAP network definitions

Bug 25725016

Change-Id: Idfef9dd53f2403bbe4c950493a0ab8fa66a3b7d4

8 years agoMerge "Frameworks/base: Make RuntimeAbort more expressive"
Andreas Gampe [Wed, 18 Nov 2015 17:47:52 +0000 (17:47 +0000)]
Merge "Frameworks/base: Make RuntimeAbort more expressive"
am: b61d3dd8a7

* commit 'b61d3dd8a773be393c738675cff28fc799497535':
  Frameworks/base: Make RuntimeAbort more expressive

8 years agoMerge "Frameworks/base: Make RuntimeAbort more expressive"
Andreas Gampe [Wed, 18 Nov 2015 17:16:59 +0000 (17:16 +0000)]
Merge "Frameworks/base: Make RuntimeAbort more expressive"

8 years agoMerge "Remove DEBUG_JIT from Zygote flags."
Nicolas Geoffray [Wed, 18 Nov 2015 10:54:19 +0000 (10:54 +0000)]
Merge "Remove DEBUG_JIT from Zygote flags."
am: cf49583bd0

* commit 'cf49583bd02d01b5d7aa57912d5469b466722c65':
  Remove DEBUG_JIT from Zygote flags.

8 years agoMerge "Remove DEBUG_JIT from Zygote flags."
Nicolas Geoffray [Wed, 18 Nov 2015 10:47:50 +0000 (10:47 +0000)]
Merge "Remove DEBUG_JIT from Zygote flags."

8 years agoRemove DEBUG_JIT from Zygote flags.
Nicolas Geoffray [Thu, 5 Nov 2015 11:29:42 +0000 (11:29 +0000)]
Remove DEBUG_JIT from Zygote flags.

The flag is being obsolete by the move to JIT.

(cherry picked from commit 9abbf45c8dcdb2e5b13b615e5138ad996fe8afa3)

Change-Id: I3ce4577e81f91e9dd55d44116e0f9e2014bd00b8

8 years agoFrameworks/base: Make RuntimeAbort more expressive
Andreas Gampe [Wed, 18 Nov 2015 00:38:59 +0000 (16:38 -0800)]
Frameworks/base: Make RuntimeAbort more expressive

Pass a message to FatalError, which will be more prominent in
aborts than "RuntimeAbort."

Change-Id: Icb3b8f50ca0cc15fd1346c530cd8e6452e951879

8 years agoMerge "Remove unsupported RS graphics API tests."
Stephen Hines [Tue, 17 Nov 2015 22:28:45 +0000 (22:28 +0000)]
Merge "Remove unsupported RS graphics API tests."
am: 7ea808b177

* commit '7ea808b17736f690eb8d23729f33e9a612b0492c':
  Remove unsupported RS graphics API tests.

8 years agoMerge "Remove unsupported RS graphics API tests."
Stephen Hines [Tue, 17 Nov 2015 22:16:35 +0000 (22:16 +0000)]
Merge "Remove unsupported RS graphics API tests."

8 years agoMerge "Add NetworkSecurityConfigProvider.install"
Chad Brubaker [Tue, 17 Nov 2015 20:59:04 +0000 (20:59 +0000)]
Merge "Add NetworkSecurityConfigProvider.install"
am: 08181cf647

* commit '08181cf647b1a1e440528f3f58ef6bf4e98a4832':
  Add NetworkSecurityConfigProvider.install

8 years agoMerge "Add NetworkSecurityConfigProvider.install"
Chad Brubaker [Tue, 17 Nov 2015 20:46:49 +0000 (20:46 +0000)]
Merge "Add NetworkSecurityConfigProvider.install"

8 years agoMerge "Handle renamed packages during default grants"
Svetoslav Ganov [Tue, 17 Nov 2015 20:06:21 +0000 (20:06 +0000)]
Merge "Handle renamed packages during default grants"
am: 140b101fcd

* commit '140b101fcdbdf413b914b5625b19577784ad9d88':
  Handle renamed packages during default grants

8 years agoMerge "Handle renamed packages during default grants"
Svetoslav Ganov [Tue, 17 Nov 2015 19:55:37 +0000 (19:55 +0000)]
Merge "Handle renamed packages during default grants"

8 years agoHandle renamed packages during default grants
Svet Ganov [Tue, 17 Nov 2015 19:53:18 +0000 (11:53 -0800)]
Handle renamed packages during default grants

If an L device has a privileged app on the system image which was
updated and an M OTA renames the app package (supported only for
privileged apps) we end up with a disabled system package setting
with no package information. Since we are not doing a null check
of the package we get from the disabled package settings during
default grants we crash leaving the system in a bad state.

bug:25687380

Change-Id: I4f2ebcaf471e4bd1696298eab4716b50c52ca5c4

8 years agoMerge "Vibra: Add loading of the vibrator hardware module."
Colin Cross [Tue, 17 Nov 2015 19:51:57 +0000 (19:51 +0000)]
Merge "Vibra: Add loading of the vibrator hardware module."
am: 5603eca33c

* commit '5603eca33c8e322997029d3101fd2442df3c274e':
  Vibra: Add loading of the vibrator hardware module.

8 years agoMerge "Vibra: Add loading of the vibrator hardware module."
Colin Cross [Tue, 17 Nov 2015 19:31:19 +0000 (19:31 +0000)]
Merge "Vibra: Add loading of the vibrator hardware module."

8 years agoMerge "Dedupe trust anchors"
Chad Brubaker [Tue, 17 Nov 2015 18:57:06 +0000 (18:57 +0000)]
Merge "Dedupe trust anchors"
am: 690b5f6c0a

* commit '690b5f6c0a0820411d72235b11f75e1c87b24031':
  Dedupe trust anchors

8 years agoMerge "Dedupe trust anchors"
Chad Brubaker [Tue, 17 Nov 2015 18:51:38 +0000 (18:51 +0000)]
Merge "Dedupe trust anchors"

8 years agoMerge "Don\'t use timestamps with all zero"
Eino-Ville Talvala [Tue, 17 Nov 2015 02:00:53 +0000 (02:00 +0000)]
Merge "Don\'t use timestamps with all zero"
am: 9574e58027

* commit '9574e58027f8edeb539ecedf2988c1a302887807':
  Don't use timestamps with all zero

8 years agoMerge "Don't use timestamps with all zero"
Eino-Ville Talvala [Tue, 17 Nov 2015 01:55:38 +0000 (01:55 +0000)]
Merge "Don't use timestamps with all zero"

8 years agoAdd NetworkSecurityConfigProvider.install
Chad Brubaker [Thu, 12 Nov 2015 18:55:28 +0000 (10:55 -0800)]
Add NetworkSecurityConfigProvider.install

This method is not currently called.

Change-Id: I73fd166b03009526868e0d9b5b209a9adaa4232f

8 years agoMerge "Insert Android Keystore JCA Provider at the correct position."
Alex Klyubin [Mon, 16 Nov 2015 20:22:51 +0000 (20:22 +0000)]
Merge "Insert Android Keystore JCA Provider at the correct position."
am: 887d348d7e

* commit '887d348d7ed5e1c2a1687eb774db46d571a8f43d':
  Insert Android Keystore JCA Provider at the correct position.

8 years agoMerge "Insert Android Keystore JCA Provider at the correct position."
Alex Klyubin [Mon, 16 Nov 2015 20:14:43 +0000 (20:14 +0000)]
Merge "Insert Android Keystore JCA Provider at the correct position."

8 years agoInsert Android Keystore JCA Provider at the correct position.
Alex Klyubin [Sat, 14 Nov 2015 01:36:45 +0000 (17:36 -0800)]
Insert Android Keystore JCA Provider at the correct position.

Security.insertProviderAt uses 1-based positions whereas the
AndroidKeyStoreProvider.install code was incorrectly passing in
0-based positions, thus installing the AndroidKeyStoreBCWorkaround
provider one level higher than intended. This change fixes the issue
in AndroidKeyStoreProvider.

Bug: 25399691
Change-Id: I4a66bf37c0d151edb9a2349db9d91939064c0574

8 years agoMerge "Revert "jni: is loggable speedup, not within signal""
Mark Salyzyn [Mon, 16 Nov 2015 16:35:58 +0000 (16:35 +0000)]
Merge "Revert "jni: is loggable speedup, not within signal""
am: 3c54ed00f3

* commit '3c54ed00f390e0ce9c555eb517594628b362705f':
  Revert "jni: is loggable speedup, not within signal"

8 years agoMerge "Revert "jni: is loggable speedup, not within signal""
Mark Salyzyn [Mon, 16 Nov 2015 16:30:57 +0000 (16:30 +0000)]
Merge "Revert "jni: is loggable speedup, not within signal""

8 years agoRevert "jni: is loggable speedup, not within signal"
Mark Salyzyn [Mon, 16 Nov 2015 16:24:52 +0000 (16:24 +0000)]
Revert "jni: is loggable speedup, not within signal"

This reverts commit c954fde0b6e31ec99509faf0bbc33c4c9e4d012a.

Bug: 25693940
Change-Id: I568051aad39e215d677318cd5758962e562187ef

8 years agoMerge "Remove obsolete profile handling from AndroidRuntime."
Calin Juravle [Mon, 16 Nov 2015 11:20:55 +0000 (11:20 +0000)]
Merge "Remove obsolete profile handling from AndroidRuntime."
am: 360e95a90d

* commit '360e95a90dab2c2522aa3ba13c6b2a3df737e626':
  Remove obsolete profile handling from AndroidRuntime.

8 years agoMerge "Remove obsolete profile handling from AndroidRuntime."
Calin Juravle [Mon, 16 Nov 2015 11:08:06 +0000 (11:08 +0000)]
Merge "Remove obsolete profile handling from AndroidRuntime."

8 years agoMerge "Various fixes in setting globals in a script group"
Yang Ni [Fri, 13 Nov 2015 21:17:33 +0000 (21:17 +0000)]
Merge "Various fixes in setting globals in a script group"
am: c011ffd842

* commit 'c011ffd84296700df4c28b9fc9fa84da9081de41':
  Various fixes in setting globals in a script group

8 years agoMerge "Various fixes in setting globals in a script group"
Yang Ni [Fri, 13 Nov 2015 21:11:25 +0000 (21:11 +0000)]
Merge "Various fixes in setting globals in a script group"

8 years agoVarious fixes in setting globals in a script group
Yang Ni [Tue, 10 Nov 2015 21:27:04 +0000 (13:27 -0800)]
Various fixes in setting globals in a script group

Bug: 25602504

1) Passing floating point values into a script group was broken,
since they were casted to long values. Fixed that in the frameworks
implementation by taking the raw bits instead.

2) Passing 64-bit values into a script group was broken on 32-bit
platforms, since they were casted to pointer-sized integers
(uintptr_t) in the JNI code. Fixed that by casting to int64_t
instead.

3) Setting global variables of Allocation type in a script group was
broken. The special size value -1 was used to indicate the value is an
Allocation. However, size was casted to size_t in the JNI code.
Fixed that by using signed integers.

Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66

8 years agoMerge "jni: is loggable speedup, not within signal"
Mark Salyzyn [Fri, 13 Nov 2015 15:22:05 +0000 (15:22 +0000)]
Merge "jni: is loggable speedup, not within signal"
am: 96e780c99c

* commit '96e780c99c46e805989b7f1d6486cef96c7d2c27':
  jni: is loggable speedup, not within signal

8 years agoMerge "jni: is loggable speedup, not within signal"
Mark Salyzyn [Fri, 13 Nov 2015 15:16:48 +0000 (15:16 +0000)]
Merge "jni: is loggable speedup, not within signal"

8 years agoDon't use timestamps with all zero
Michal Piechowski [Wed, 15 Apr 2015 11:03:50 +0000 (13:03 +0200)]
Don't use timestamps with all zero

Although all zero (0000:00:00) is valid time, in most cases it means
that value is not present. According to http://www.exiv2.org/Exif2-2.PDF
in such case those values should be omitted, however
some cameras set them to 0 anyway. With this commit such timestamps
will be treated as they were empty.

Change-Id: I9c762b1fa04ea6bf9c0fba9e2459a20430c71c90

8 years agoMerge "Add hidden support for arrays of raw file descriptors"
Casey Dahlin [Thu, 12 Nov 2015 23:57:58 +0000 (23:57 +0000)]
Merge "Add hidden support for arrays of raw file descriptors"
am: 376d5f350c

* commit '376d5f350c6618d915338a9927b5d0f5fb61eba8':
  Add hidden support for arrays of raw file descriptors

8 years agoMerge "Add hidden support for arrays of raw file descriptors"
Casey Dahlin [Thu, 12 Nov 2015 23:50:05 +0000 (23:50 +0000)]
Merge "Add hidden support for arrays of raw file descriptors"

8 years agojni: is loggable speedup, not within signal
Mark Salyzyn [Tue, 10 Nov 2015 01:56:42 +0000 (17:56 -0800)]
jni: is loggable speedup, not within signal

Speedup by telling __android_is_loggable interface it will not
be called within a signal handler. This saves two system calls.

Bug: 25563384
Change-Id: Ib8188641c8c76e5aa848476da98596be6b8e5040

8 years agoAdd hidden support for arrays of raw file descriptors
Casey Dahlin [Thu, 5 Nov 2015 20:19:13 +0000 (12:19 -0800)]
Add hidden support for arrays of raw file descriptors

Change-Id: I4013e0700369764a26485d8620ebf16d8bea1951
Test: Built and ran Android in an emulator
Bug: 25242023
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 years agoDedupe trust anchors
Chad Brubaker [Tue, 10 Nov 2015 18:52:27 +0000 (10:52 -0800)]
Dedupe trust anchors

When getting trust anchors we need to dedup them based on the
certificate to avoid having multiple trust anchors with the same cert
but different pin override behavior. If there are multiple trust anchors
with the same cert, the trust anchor which overrides pins wins.

Change-Id: Ida31f2551f56997418b8b091bb2598c5593cb069

8 years agoMerge "Support X509TrustManagerExtensions methods"
Chad Brubaker [Thu, 12 Nov 2015 19:34:52 +0000 (19:34 +0000)]
Merge "Support X509TrustManagerExtensions methods"
am: b324fb18d9

* commit 'b324fb18d916d7037ef7c94a1d54b55d50ffc9c7':
  Support X509TrustManagerExtensions methods

8 years agoMerge "Use duck typing in X509TrustManagerExtensions"
Chad Brubaker [Thu, 12 Nov 2015 19:33:31 +0000 (19:33 +0000)]
Merge "Use duck typing in X509TrustManagerExtensions"
am: 9c3982f75d

* commit '9c3982f75da19e2c0e146e7f251514a44412da0c':
  Use duck typing in X509TrustManagerExtensions

8 years agoMerge "Support X509TrustManagerExtensions methods"
Chad Brubaker [Thu, 12 Nov 2015 19:28:54 +0000 (19:28 +0000)]
Merge "Support X509TrustManagerExtensions methods"

8 years agoMerge "Use duck typing in X509TrustManagerExtensions"
Chad Brubaker [Thu, 12 Nov 2015 19:28:21 +0000 (19:28 +0000)]
Merge "Use duck typing in X509TrustManagerExtensions"

8 years agoMerge "System crash fixed when turn off MagnificationGesture"
Svetoslav Ganov [Thu, 12 Nov 2015 16:05:07 +0000 (16:05 +0000)]
Merge "System crash fixed when turn off MagnificationGesture"
am: 8f87949340

* commit '8f87949340e858ff4e24615709080978b017f644':
  System crash fixed when turn off MagnificationGesture

8 years agoMerge "Avoid configuration of callback being reset after relayout."
Wale Ogunwale [Thu, 12 Nov 2015 16:01:22 +0000 (16:01 +0000)]
Merge "Avoid configuration of callback being reset after relayout."
am: cbcafde45e

* commit 'cbcafde45ec28d62ce674d215c0264f41580d9a6':
  Avoid configuration of callback being reset after relayout.

8 years agoMerge "System crash fixed when turn off MagnificationGesture"
Svetoslav Ganov [Thu, 12 Nov 2015 16:00:28 +0000 (16:00 +0000)]
Merge "System crash fixed when turn off MagnificationGesture"

8 years agoMerge "Avoid configuration of callback being reset after relayout."
Wale Ogunwale [Thu, 12 Nov 2015 15:55:18 +0000 (15:55 +0000)]
Merge "Avoid configuration of callback being reset after relayout."

8 years agoAvoid configuration of callback being reset after relayout.
riddle_hsu [Thu, 12 Nov 2015 06:07:12 +0000 (14:07 +0800)]
Avoid configuration of callback being reset after relayout.

mPendingConfiguration is a parameter of IWindowSession.relayout.
And IWindowSession.aidl declared "out Configuration outConfig",
it will always create a new configuration for remote side to write.
If remote side does not write (WMS does not have config change),
the new default configuration will be returned.

In original code passes mPendingConfiguration to updateConfiguration
directly, then callbacks (sConfigCallbacks) receive the same
instance of mPendingConfiguration. And because the implementation
of callback may use the configuration after relayout has reset
the configuration to default, then it may have timing that results
"showing hybrid of portrait and landscape modes" which try to fix
in commit e36d6e27.

To avoid this, always create a copy to updateConfiguration.
MSG_RESIZED_REPORT from dispatchResized also did the same thing.

Related commit:
e36d6e277e49475076b7872d36ea6a5c5b996e9d
694f79b5d1196640d1beb680b7d1fc68e6e77cbd

Change-Id: Ic1abd596e384918224b3a7020583d9a04641cccc

8 years agoSupport X509TrustManagerExtensions methods
Chad Brubaker [Tue, 10 Nov 2015 23:50:08 +0000 (15:50 -0800)]
Support X509TrustManagerExtensions methods

Change-Id: I14a405e90f139b8d73eb9f88597fac804a7c18f3

8 years agoUse duck typing in X509TrustManagerExtensions
Chad Brubaker [Tue, 10 Nov 2015 23:40:26 +0000 (15:40 -0800)]
Use duck typing in X509TrustManagerExtensions

X509TrustManagerExtensions assumes that the default X509TrustManager is
an instance of conscrypt's TrustManagerImpl. That's no longer going to
always be the case. Instead use duck typing to support any
X509TrustManagers that have the extra methods required for
X509TrustManagerExtensions.

Change-Id: If23471bda590d5e131bb1e802a60599957bc7f37

8 years agoMerge "Add NetworkSecurityConfigProvider"
Chad Brubaker [Wed, 11 Nov 2015 20:32:03 +0000 (20:32 +0000)]
Merge "Add NetworkSecurityConfigProvider"
am: d1c469e876

* commit 'd1c469e8769822c48584034076861331fd792a7c':
  Add NetworkSecurityConfigProvider

8 years agoMerge "Fix system watchdog timeout when reading too many usage events."
Amith Yamasani [Wed, 11 Nov 2015 20:30:32 +0000 (20:30 +0000)]
Merge "Fix system watchdog timeout when reading too many usage events."
am: 10b0bae06f

* commit '10b0bae06ffdeb79494ddd1aff19387b56770960':
  Fix system watchdog timeout when reading too many usage events.

8 years agoMerge "Add NetworkSecurityConfigProvider"
Chad Brubaker [Wed, 11 Nov 2015 20:25:04 +0000 (20:25 +0000)]
Merge "Add NetworkSecurityConfigProvider"

8 years agoMerge "Fix system watchdog timeout when reading too many usage events."
Amith Yamasani [Wed, 11 Nov 2015 20:24:39 +0000 (20:24 +0000)]
Merge "Fix system watchdog timeout when reading too many usage events."

8 years agoMerge "Add support for debug-overrides configuration"
Chad Brubaker [Wed, 11 Nov 2015 19:21:32 +0000 (19:21 +0000)]
Merge "Add support for debug-overrides configuration"
am: f1e813ea33

* commit 'f1e813ea334c947ae0397bfa3a8e42be4fd4ae8c':
  Add support for debug-overrides configuration

8 years agoMerge "Add support for debug-overrides configuration"
Chad Brubaker [Wed, 11 Nov 2015 19:03:30 +0000 (19:03 +0000)]
Merge "Add support for debug-overrides configuration"

8 years agoAdd NetworkSecurityConfigProvider
Chad Brubaker [Tue, 10 Nov 2015 20:26:18 +0000 (12:26 -0800)]
Add NetworkSecurityConfigProvider

Change-Id: I321e3ca94cc2a8d5e0e5d82a83b255ff5b8a71d2

8 years agoMerge "Fix memory corruption in SpotShadow"
John Reck [Wed, 11 Nov 2015 17:59:16 +0000 (17:59 +0000)]
Merge "Fix memory corruption in SpotShadow"
am: 8c85c00b5e

* commit '8c85c00b5e8fffb226f4af225a67425b8d0f190b':
  Fix memory corruption in SpotShadow

8 years agoMerge "Fix memory corruption in SpotShadow"
John Reck [Wed, 11 Nov 2015 17:52:08 +0000 (17:52 +0000)]
Merge "Fix memory corruption in SpotShadow"

8 years agoMerge "Parse method-trace properties only in debug builds."
Calin Juravle [Wed, 11 Nov 2015 17:00:22 +0000 (17:00 +0000)]
Merge "Parse method-trace properties only in debug builds."
am: 8fa7e93050

* commit '8fa7e93050f5b3d7ccac8775fee302f1f4394d4f':
  Parse method-trace properties only in debug builds.

8 years agoMerge "Parse method-trace properties only in debug builds."
Calin Juravle [Wed, 11 Nov 2015 16:54:52 +0000 (16:54 +0000)]
Merge "Parse method-trace properties only in debug builds."

8 years agoFix memory corruption in SpotShadow
Keith Mok [Wed, 11 Nov 2015 00:52:05 +0000 (16:52 -0800)]
Fix memory corruption in SpotShadow

The array list is too small and causing stack corruption

Change-Id: I0e34dad39357fb63977d2ce6f183ced7b6a632be

8 years agoParse method-trace properties only in debug builds.
Calin Juravle [Tue, 10 Nov 2015 19:30:45 +0000 (19:30 +0000)]
Parse method-trace properties only in debug builds.

Bug: 25612377
Change-Id: Ia1d8e6c5afbdd70486d5aa8c059e70e27b03367d

8 years agoMerge "Fix HWUI Path Cache dangling pointer"
John Reck [Tue, 10 Nov 2015 23:26:01 +0000 (23:26 +0000)]
Merge "Fix HWUI Path Cache dangling pointer"
am: 37bf3ec9d2

* commit '37bf3ec9d2fb3dfdccfe043e51723e4e543f0703':
  Fix HWUI Path Cache dangling pointer

8 years agoMerge "Fix HWUI Path Cache dangling pointer"
John Reck [Tue, 10 Nov 2015 23:20:03 +0000 (23:20 +0000)]
Merge "Fix HWUI Path Cache dangling pointer"

8 years agoAdd support for debug-overrides configuration
Chad Brubaker [Mon, 9 Nov 2015 21:38:51 +0000 (13:38 -0800)]
Add support for debug-overrides configuration

Debug overrides are only used if the application is debuggable in
order to help local debugging and development by trusting additional
CAs. In a non-debuggable version of the application the debug-overrides
are ignored.

Trust anchors in the debug override configuration have two key
differences from those in base-config and domain-config:
1) trust anchors in the debug-overrides are trusted for all connections
in addition to any trust anchors included in the relevant base/domain
configs.
2) By default trust anchors in the debug config override pins, as their
purpose is for connecting to non-standard servers for debugging and
testing and those servers should not be pinned in the production
configuration.

Change-Id: I15ee98eae182be0ffaa49b06bc5e1c6c3d22baee

8 years agoMerge "Avoid NPE in printspooler when changing language"
Svetoslav Ganov [Tue, 10 Nov 2015 01:03:05 +0000 (01:03 +0000)]
Merge "Avoid NPE in printspooler when changing language"
am: 8d8515e708

* commit '8d8515e708f0cebf69587750bbb3abcb315cc61e':
  Avoid NPE in printspooler when changing language

8 years agoMerge "Avoid NPE in printspooler when changing language"
Svetoslav Ganov [Tue, 10 Nov 2015 00:58:28 +0000 (00:58 +0000)]
Merge "Avoid NPE in printspooler when changing language"

8 years agoMerge "system_server: allow /proc read access to other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:28:30 +0000 (20:28 +0000)]
Merge "system_server: allow /proc read access to other UIDs"
am: 51b48b3877

* commit '51b48b38774b8babe339890e1c888dfd8647ee72':
  system_server: allow /proc read access to other UIDs

8 years agoMerge "system_server: allow /proc read access to other UIDs"
Nick Kralevich [Mon, 9 Nov 2015 20:05:22 +0000 (20:05 +0000)]
Merge "system_server: allow /proc read access to other UIDs"

8 years agoFix HWUI Path Cache dangling pointer
Digish Pandya [Wed, 4 Nov 2015 05:30:28 +0000 (11:00 +0530)]
Fix HWUI Path Cache dangling pointer

When precache, PathTexture is added to PathCache, and it is released after drawn if we want to clean it.
But the PathCache LRU still holds the entry of the PathTexture object. When trim the cache in
the end of each frame, LRU finds that its mListener is not NULL and invoke the functor, however,
mListerer points to the released PathTexture object and is a dangling pointer, thus leads to crash.
Smart pointer don't help here since they only manage scopes, while PathTexture is also controled by
its cleanup field.
The fix is to also remove the LRU entry of PathTexture*, it will also release the texture object
and there won't be texture leaks.

Change-Id: Iaa0621df5dc71532e9e75b38ad94384353930b95

8 years agoFix system watchdog timeout when reading too many usage events.
Mark Lu [Fri, 6 Nov 2015 07:26:15 +0000 (15:26 +0800)]
Fix system watchdog timeout when reading too many usage events.

Symptom:
As issue link:
https://code.google.com/p/android/issues/detail?id=193100

RootCause:
UsageStatsService.onDisplayChanged executed in system main thread,
If calling UsageStatsManager.queryEvents with too many events before it
(i.e. in daily usage event file,
too many activity resume / pause events or configuration change
during monkey test),
System will be blocked then watchdog timeout.

Solution:
Let display listener executed in background thread handler

Change-Id: Ic894d112612400ed8fb7ba843b3309fdc4f66fe1

8 years agosystem_server: allow /proc read access to other UIDs
Nick Kralevich [Sun, 8 Nov 2015 01:04:04 +0000 (17:04 -0800)]
system_server: allow /proc read access to other UIDs

Add system_server to AID_READPROC, to allow system_server to read
/proc entries associated with other UIDs.

Bug: 23310674
Change-Id: I1602b8ee30670cde4ed56e2f901524c105895352

8 years agoMerge "Support nested domain-config elements"
Chad Brubaker [Sat, 7 Nov 2015 22:16:10 +0000 (22:16 +0000)]
Merge "Support nested domain-config elements"
am: 749501e88e

* commit '749501e88e5fa6bdc6594a9db5c232e31bdda867':
  Support nested domain-config elements

8 years agoMerge "Add xml source for network security configuration"
Chad Brubaker [Sat, 7 Nov 2015 22:14:36 +0000 (22:14 +0000)]
Merge "Add xml source for network security configuration"
am: ead46ecc84

* commit 'ead46ecc843e3686ff5ae8008f4452fc79f847e7':
  Add xml source for network security configuration

8 years agoMerge "Support nested domain-config elements"
Chad Brubaker [Sat, 7 Nov 2015 22:11:04 +0000 (22:11 +0000)]
Merge "Support nested domain-config elements"

8 years agoMerge "Add xml source for network security configuration"
Chad Brubaker [Sat, 7 Nov 2015 22:10:50 +0000 (22:10 +0000)]
Merge "Add xml source for network security configuration"

8 years agoSupport nested domain-config elements
Chad Brubaker [Sat, 7 Nov 2015 07:02:37 +0000 (23:02 -0800)]
Support nested domain-config elements

Nested domain-config inherit unset parameters from the domain-config
they are nested in. This helps avoid copy and pasted configs that are
almost the same except a few minor differences for a domain with
slightly different requirements.

For example: Consider a domain-config for example.com that, among other
settings, does not enforce hsts. Now if you want the rules for
example.com to apply to secure.example.com except that hsts _is_
enforced you can make a nested domain-config for secure.example.com
under example.com that sets hstsEnforced="true" and nothing else.

Change-Id: I9e33f7e62127fd7f4f15c3560fff2f2626477bd4

8 years agoAdd xml source for network security configuration
Chad Brubaker [Thu, 5 Nov 2015 07:55:29 +0000 (23:55 -0800)]
Add xml source for network security configuration

XmlConfigSource parses an ApplicationConfig from an xml resource.
Currently this supports app-wide default configuration via the
base-config element, per domain via the domain-config element and
inheritance of unset properties at parse time.

Inheritance of unset properties is currently only:
domain-config -> base-config -> platform default configuration
Where the most specific value is used.
For example: If the base-config specifies trust anchors, all connections
will use those anchors except for connections to a domain which has a
domain-config that specifies trust anchors, in which case the
domain-config's trust anchors will be used. If the domain-config or
base-config don't set trust anchors, or don't exist, then the platform
default trust anchors will be used.

Nested domain-config entries, debug-overrides, and thorough
documentation of the xml format will follow in later commits.

Change-Id: I1232ff1e8079a81b340bc12e142f0889f6947aa0

8 years agoMerge "Fix incorrect hstsEnforced lookup"
Chad Brubaker [Sat, 7 Nov 2015 02:42:05 +0000 (02:42 +0000)]
Merge "Fix incorrect hstsEnforced lookup"
am: 1347cb81f4

* commit '1347cb81f402c628f3346ea350a5862749901d59':
  Fix incorrect hstsEnforced lookup

8 years agoMerge "Fix incorrect hstsEnforced lookup"
Chad Brubaker [Sat, 7 Nov 2015 02:37:45 +0000 (02:37 +0000)]
Merge "Fix incorrect hstsEnforced lookup"

8 years agoFix incorrect hstsEnforced lookup
Chad Brubaker [Sat, 7 Nov 2015 02:08:12 +0000 (18:08 -0800)]
Fix incorrect hstsEnforced lookup

Change-Id: I00364d8c1d3311bebd3ad88e557860e694ba5018