OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Restore auto-launch behavior for ACTION_CHOOSER with a single choice"
Adam Powell [Mon, 7 Mar 2016 23:46:15 +0000 (23:46 +0000)]
Merge "Restore auto-launch behavior for ACTION_CHOOSER with a single choice"

8 years agoMerge "Cleanup uses of sprintf so we can deprecate it."
George Burgess IV [Mon, 7 Mar 2016 22:51:03 +0000 (22:51 +0000)]
Merge "Cleanup uses of sprintf so we can deprecate it."

8 years agoMerge "Change libraries needed by layoutlib to "host" libs"
Neil Fuller [Fri, 4 Mar 2016 12:58:44 +0000 (12:58 +0000)]
Merge "Change libraries needed by layoutlib to "host" libs"

8 years agoMerge "Track libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33."
Narayan Kamath [Fri, 4 Mar 2016 12:54:59 +0000 (12:54 +0000)]
Merge "Track libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33."

8 years agoTrack libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33.
Narayan Kamath [Thu, 3 Mar 2016 22:35:46 +0000 (22:35 +0000)]
Track libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33.

bug: 27426688
Change-Id: I75777707f96c463ea7054eda55bb532a67ca5501

8 years agoMerge "Track libcore commit 6c5284cca0ec8cf20dd6c5e9b2b6254d813e9d24."
Narayan Kamath [Fri, 4 Mar 2016 12:41:50 +0000 (12:41 +0000)]
Merge "Track libcore commit 6c5284cca0ec8cf20dd6c5e9b2b6254d813e9d24."

8 years agoChange libraries needed by layoutlib to "host" libs
Neil Fuller [Tue, 1 Mar 2016 18:46:37 +0000 (18:46 +0000)]
Change libraries needed by layoutlib to "host" libs

They are only used on host and are one of the few places
in the build that use LOCAL_JACK_ENABLED := disabled.

Bug: 27218410
(cherry picked from commit d34e33bc831b51c62630829c188ee0039580ac60)

Change-Id: I8febfca41b3e9baaf290e53ca1449254d4cc9b46

8 years agoMerge changes I3651e5ae,I37058468
Pirama Arumuga Nainar [Fri, 4 Mar 2016 00:06:04 +0000 (00:06 +0000)]
Merge changes I3651e5ae,I37058468

* changes:
  [RenderScript] Enable untyped variants of Allocation-copy functions for FLOAT_16
  [RenderScript] Allow copyTo(short[]) etc for Float16 Allocations

8 years ago[RenderScript] Enable untyped variants of Allocation-copy functions for FLOAT_16
Pirama Arumuga Nainar [Wed, 2 Mar 2016 04:37:19 +0000 (20:37 -0800)]
[RenderScript] Enable untyped variants of Allocation-copy functions for FLOAT_16

http://b/27251511

Handle FLOAT_16 case to PER_ARRAY_TYPE macro to enable untyped variants
of Allocation-copy functions.

Untyped variants of Allocation-copy functions call
validateObjectIsPrimitiveArray(), with checkType parameter set to true,
to validate and obtain the Element type of the Allocation.  When
checkType is true, validateObjectIsPrimitiveArray() returns the actual
Element type of the Allocation (instead of the canonical SIGNED type).
Because of this, FLOAT_16 element type can reach the JNI layer,
necessitating this change to PER_ARRAY_TYPE macro.

Change-Id: I3651e5ae0ab0cd6bb4ad3157841e2910ac8699dc
(cherry picked from commit 85e8c51dbf8dc774ecfd09981ac6a8bf1b75f464)

8 years ago[RenderScript] Allow copyTo(short[]) etc for Float16 Allocations
Pirama Arumuga Nainar [Fri, 26 Feb 2016 17:16:17 +0000 (09:16 -0800)]
[RenderScript] Allow copyTo(short[]) etc for Float16 Allocations

http://b/27251511

Allow copyTo(short[]), copyFrom(short[]), and their 1D range and 2D
range variants to copy data between short[] arrays and Float16
Allocations.

Change-Id: I370584685c3b773c165bd718974ca736ed548339
(cherry picked from commit f51bb356deeb8a22414fb44cede4b8618c4b57ba)

8 years agoTrack libcore commit 6c5284cca0ec8cf20dd6c5e9b2b6254d813e9d24.
Narayan Kamath [Thu, 3 Mar 2016 22:23:37 +0000 (22:23 +0000)]
Track libcore commit 6c5284cca0ec8cf20dd6c5e9b2b6254d813e9d24.

bug: 27426688
Change-Id: I0ac1dd9a1632b42235744602e9384b8049556965

8 years agoMerge "media: correctly return cached size for MediaDataSource"
Lajos Molnar [Thu, 3 Mar 2016 17:24:00 +0000 (17:24 +0000)]
Merge "media: correctly return cached size for MediaDataSource"

8 years agoMerge "Create linker-namespace for the classloader"
Dimitry Ivanov [Thu, 3 Mar 2016 17:05:15 +0000 (17:05 +0000)]
Merge "Create linker-namespace for the classloader"

8 years agomedia: correctly return cached size for MediaDataSource
Lajos Molnar [Thu, 3 Mar 2016 01:03:19 +0000 (17:03 -0800)]
media: correctly return cached size for MediaDataSource

Bug: 27431229
Change-Id: I884e43960789c139b48964deba8f56b3bc3ba590

8 years agoMerge "Track libcore change 2c423c81bfa731df2577a."
Narayan Kamath [Thu, 3 Mar 2016 11:43:49 +0000 (11:43 +0000)]
Merge "Track libcore change 2c423c81bfa731df2577a."

8 years agoMerge "Fix for framework reboot on connecting to TV through HDMI."
Michael Wright [Wed, 2 Mar 2016 23:45:38 +0000 (23:45 +0000)]
Merge "Fix for framework reboot on connecting to TV through HDMI."

8 years agoCleanup uses of sprintf so we can deprecate it.
George Burgess IV [Wed, 2 Mar 2016 21:34:44 +0000 (13:34 -0800)]
Cleanup uses of sprintf so we can deprecate it.

Change-Id: Ic66abfb547cd5551c47e03d604e65f83c84c597f

8 years agoMerge "Set flags in RS JNI calls for rsObj creation"
Yang Ni [Wed, 2 Mar 2016 18:11:08 +0000 (18:11 +0000)]
Merge "Set flags in RS JNI calls for rsObj creation"

8 years agoTrack libcore change 2c423c81bfa731df2577a.
Narayan Kamath [Wed, 2 Mar 2016 14:30:08 +0000 (14:30 +0000)]
Track libcore change 2c423c81bfa731df2577a.

bug: 27423298
Change-Id: Ibc5094812af4446ac6ff25158ca4dd0ce8271e2a

8 years agoMerge "Track libcore change 2729b8c4d26170."
Narayan Kamath [Wed, 2 Mar 2016 14:14:50 +0000 (14:14 +0000)]
Merge "Track libcore change 2729b8c4d26170."

8 years agoTrack libcore change 2729b8c4d26170.
Narayan Kamath [Wed, 2 Mar 2016 13:35:23 +0000 (13:35 +0000)]
Track libcore change 2729b8c4d26170.

bug: 27423298

Change-Id: I2d2eedd108896d5a027f06e159222a41bdcb3cb5

8 years agoMerge "Track libcore change e42e99816ad6c0626564aaabcf636e8febc1edc6"
Przemyslaw Szczepaniak [Tue, 1 Mar 2016 15:54:59 +0000 (15:54 +0000)]
Merge "Track libcore change e42e99816ad6c0626564aaabcf636e8febc1edc6"

8 years agoTrack libcore change e42e99816ad6c0626564aaabcf636e8febc1edc6
Przemyslaw Szczepaniak [Mon, 29 Feb 2016 17:23:07 +0000 (17:23 +0000)]
Track libcore change e42e99816ad6c0626564aaabcf636e8febc1edc6

Change-Id: I7b111ba383751de26c53fcdd8640115d7ddb3890

8 years agoMerge changes from topic 'java_8_layoutlib'
Neil Fuller [Mon, 29 Feb 2016 10:33:29 +0000 (10:33 +0000)]
Merge changes from topic 'java_8_layoutlib'

* changes:
  Switch LayoutLib to Java 8
  Move LayoutLib to Java 8

8 years agoCreate linker-namespace for the classloader
Dimitry Ivanov [Tue, 23 Feb 2016 22:25:50 +0000 (14:25 -0800)]
Create linker-namespace for the classloader

With this change ApplicationLoaders.getClassLoader()
creates linker-namespace for the classloader at the
construction time. Before this change the namespace
was created on first load of a jni library.

With this change we ensure that every classloader
has initialized namespace associated with it.

As an additional advantage we now can avoid storing
namespace-specific fields in the classloaders.

Bug: http://b/27189432
Bug: http://b/22548808
Change-Id: I3b160bd478a55171008682c40b2ebc13bdbd9882
(cherry picked from commit a55c7f15a3c386ec643f21eeb2f4e9fd7b03ba70)

8 years agoMerge "Fix ASAN builds after app_process change."
Nicolas Geoffray [Fri, 26 Feb 2016 14:45:02 +0000 (14:45 +0000)]
Merge "Fix ASAN builds after app_process change."

8 years agoFix ASAN builds after app_process change.
Nicolas Geoffray [Fri, 26 Feb 2016 13:16:50 +0000 (13:16 +0000)]
Fix ASAN builds after app_process change.

Bug:27245894

(cherry picked from commit 573895bbea7cf349d615606004cdb85ba2ca814d)

Change-Id: I1b879f23cd2bb49070cbfee40ae1b8a586a328dc

8 years agoMerge "zygote to preload public native libraries"
Nicolas Geoffray [Fri, 26 Feb 2016 13:33:51 +0000 (13:33 +0000)]
Merge "zygote to preload public native libraries"

8 years agozygote to preload public native libraries
Dimitry Ivanov [Mon, 22 Feb 2016 19:22:11 +0000 (11:22 -0800)]
zygote to preload public native libraries

Preload public native libraries when starting a zygote
This lets other users of libnativeloader (like dex2oat)
avoid unnecessary cold loads of libandroid.so which could
take up to a second.

Bug: http://b/27245894

(cherry picked from commit b0824979be2653ba300382b52c1b1236fd44f0de)

Change-Id: I04a640c104dba5b585a59d63270e81b6c9ad6f7e

8 years agoMerge "Construct classloader for apps with no java code"
Dimitry Ivanov [Thu, 25 Feb 2016 19:35:55 +0000 (19:35 +0000)]
Merge "Construct classloader for apps with no java code"

8 years agoMerge "ImageReader: override the flexible YUV compatible formats"
Zhijun He [Wed, 24 Feb 2016 01:46:12 +0000 (01:46 +0000)]
Merge "ImageReader: override the flexible YUV compatible formats"

8 years agoConstruct classloader for apps with no java code
Dimitry Ivanov [Fri, 19 Feb 2016 22:09:20 +0000 (14:09 -0800)]
Construct classloader for apps with no java code

The commit 6f06ad7df1362e9e5b252689f452bdeee2e5af46
fixed a way to load native library for NativeActivity
by using classloader logic to find the library; which
also fixed the problem of native activity not working
when library is supposed to be opened directly from
the apk.

As a side effect it introduced regression - apps without
java code did not have correctly initialized classloader.
This change fixes this by constructing classloader with
empty dexpath but valid nativeLibrarySearchPath.

Bug: http://b/26015561
Bug: http://b/27250344
Change-Id: I50f1119f0976a95edd75d88efb9fcdedc57efbc3
(cherry picked from commit b9c9026bdd0076014aeca62b088053d8fbce2326)

8 years agoMerge "Suppress output for Protobuf data if Bluetooth is disabled"
Pavlin Radoslavov [Tue, 23 Feb 2016 23:43:33 +0000 (23:43 +0000)]
Merge "Suppress output for Protobuf data if Bluetooth is disabled"

8 years agoSuppress output for Protobuf data if Bluetooth is disabled
Pavlin Radoslavov [Tue, 23 Feb 2016 19:54:37 +0000 (11:54 -0800)]
Suppress output for Protobuf data if Bluetooth is disabled

If Bluetooth is disabled or there is some other error,
don't print anything when extracting the Metrics-related data
in Protobuf format.

Bug: 27315491
Change-Id: Ic1ec5334fbf0b524909400f080e2eac3ec34edf4

8 years agoMerge "Make accessing mWaitingForDrawn thread-safe"
Wale Ogunwale [Tue, 23 Feb 2016 15:34:52 +0000 (15:34 +0000)]
Merge "Make accessing mWaitingForDrawn thread-safe"

8 years agoMerge "Fix NPE in BaseStatusbar in onListenerConnected"
Jason Monk [Tue, 23 Feb 2016 13:51:22 +0000 (13:51 +0000)]
Merge "Fix NPE in BaseStatusbar in onListenerConnected"

8 years agoMake accessing mWaitingForDrawn thread-safe
tiger_huang [Tue, 23 Feb 2016 12:34:52 +0000 (20:34 +0800)]
Make accessing mWaitingForDrawn thread-safe

mWaitingForDrawn can be accessed by multiple threads, but it was not
protected by the mWindowMap lock perfectly.

Change-Id: I128ba1a00f40af83b051c0d1df4350d0635a9dff

8 years agoMerge "Add stubs needed to enable javac to compile lambdas"
Neil Fuller [Tue, 23 Feb 2016 11:55:09 +0000 (11:55 +0000)]
Merge "Add stubs needed to enable javac to compile lambdas"

8 years agoAdd stubs needed to enable javac to compile lambdas
Neil Fuller [Thu, 18 Feb 2016 13:57:43 +0000 (13:57 +0000)]
Add stubs needed to enable javac to compile lambdas

This enables framework.jar code to include lambdas.
framework.jar is still built with javac (as well as
jack) for things like doclava.

Bug: 26753820
(cherry picked from commit 801f90e61b971984c92767acd6fb62d56911664b)

Change-Id: Icdc9e003b09bd1e14e991b32934b3c4c4a268b1a

8 years agoFix NPE in BaseStatusbar in onListenerConnected
Kent Persson [Wed, 10 Dec 2014 15:40:13 +0000 (16:40 +0100)]
Fix NPE in BaseStatusbar in onListenerConnected

If NotificationListenerService is not bound the
getActiveNotifications function will return null.
This will result in a Nullpointer exception in BaseStatusbar
onListenerConnected if it is called. A Nullpointer check was
added in onListenerConnected to avoid this Nullpointer exception.

Change-Id: I0aec040f11101e8f7b5863879b3774dc2bb6ce2b

8 years agoMerge "Camera2: Fix getInternalFormatSizes for depth"
Chien-Yu Chen [Tue, 23 Feb 2016 01:10:26 +0000 (01:10 +0000)]
Merge "Camera2: Fix getInternalFormatSizes for depth"

8 years agoCamera2: Fix getInternalFormatSizes for depth
Chien-Yu Chen [Tue, 16 Feb 2016 22:28:50 +0000 (14:28 -0800)]
Camera2: Fix getInternalFormatSizes for depth

All depth formats are considered as non-high-res. Also compare depth
minimum frame durations instead of regular minimum frame durations
for depth formats.

Bug: 26687093
Change-Id: I65b691fe450077b0e3ace15f6ac0289b41caf42f

8 years agoSet flags in RS JNI calls for rsObj creation
Yang Ni [Thu, 7 Jan 2016 22:57:16 +0000 (14:57 -0800)]
Set flags in RS JNI calls for rsObj creation

Bug: 25570907

Added a flag to all RS runtime API for rsObj creation to indicate a
call is from Java. This flag will help us avoid incrementing the user
ref count for rsObj's created from Single-Source RS, and therefore
avoid memory leaks for such objects.

Change-Id: Id3604f93b166089e3aca896d1c6c509b3ea19bcf

8 years agoMerge "Preload2: Fix object to sync on"
Andreas Gampe [Mon, 22 Feb 2016 18:00:49 +0000 (18:00 +0000)]
Merge "Preload2: Fix object to sync on"

8 years agoSwitch LayoutLib to Java 8
Deepanshu Gupta [Thu, 18 Feb 2016 04:42:31 +0000 (20:42 -0800)]
Switch LayoutLib to Java 8

The main build hasn't swtiched to java 8, but lambdas are already used
in layoutlib. This fixes the build break.

(cherry picked from commit 7914e4ca03322427740d6f8c00837375dbf3031a)

Change-Id: Ice5741dcb8b93faf739a3c21f2ed8be95f92ad08

8 years agoMove LayoutLib to Java 8
Deepanshu Gupta [Wed, 7 Oct 2015 00:56:37 +0000 (17:56 -0700)]
Move LayoutLib to Java 8

Partial cherry-pick of commit 491523d52cd8368ef9a92e95fb3e9332bf86a996

Change-Id: Ic64fb20a00ba2ca8b3016f548222729e3f009e9f

8 years agoMerge "Track libcore commit aff7af3b344bf882620489631633e09fabfcd58d."
Narayan Kamath [Mon, 22 Feb 2016 11:45:55 +0000 (11:45 +0000)]
Merge "Track libcore commit aff7af3b344bf882620489631633e09fabfcd58d."

8 years agoTrack libcore commit aff7af3b344bf882620489631633e09fabfcd58d.
Narayan Kamath [Mon, 22 Feb 2016 11:42:07 +0000 (11:42 +0000)]
Track libcore commit aff7af3b344bf882620489631633e09fabfcd58d.

bug: 27186457

Change-Id: I257eb422d6edcc1c52fc948995569fba6baf594f

8 years agoPreload2: Fix object to sync on
Andreas Gampe [Fri, 19 Feb 2016 17:24:43 +0000 (09:24 -0800)]
Preload2: Fix object to sync on

When moving to sync on the right objects, these waits() have been
forgotten.

Change-Id: I61b0d3c5cc41b7f46fbdd3099ec44221e653001a

8 years agoMerge "Add flags needed to switch Jack to 1.8 for CTS targets"
Neil Fuller [Fri, 19 Feb 2016 11:49:18 +0000 (11:49 +0000)]
Merge "Add flags needed to switch Jack to 1.8 for CTS targets"

8 years agoAdd flags needed to switch Jack to 1.8 for CTS targets
Neil Fuller [Fri, 19 Feb 2016 11:46:19 +0000 (11:46 +0000)]
Add flags needed to switch Jack to 1.8 for CTS targets

When linking against .jack files that contain 1.8 language
features Jack (currently) requires -D jack.java.source.version=1.8.

"core-tests" includes 1.8 language features.

Bug: 27113322
Bug: 26953739
Change-Id: I640b2ae6eeec17cab5cbc0bf7a4d54c4e4d35ccd

8 years agoMerge changes from topic 'java_util_function_tests'
Neil Fuller [Fri, 19 Feb 2016 10:28:29 +0000 (10:28 +0000)]
Merge changes from topic 'java_util_function_tests'

* changes:
  Add flags needed to switch Jack to 1.8 for CTS targets
  Add flags needed to switch Jack to 1.8 for CTS targets

8 years agoMerge "Add dumpsys meminfo --unreachable"
Colin Cross [Fri, 19 Feb 2016 06:10:36 +0000 (06:10 +0000)]
Merge "Add dumpsys meminfo --unreachable"

8 years agoRestore auto-launch behavior for ACTION_CHOOSER with a single choice
Adam Powell [Thu, 18 Feb 2016 20:43:47 +0000 (12:43 -0800)]
Restore auto-launch behavior for ACTION_CHOOSER with a single choice

For the initial release of Marshmallow auto-launching was suppressed
for ChooserActivity if there was only a single choice in order to let
the user confirm what would be launched. In practice, many apps use
ACTION_CHOOSER when they should probably use implicit intents, but
still others have use cases where setting a default doesn't make sense
and the user should still be able to make a choice when one is
available.

As the user confirmation didn't buy much in terms of developer API
expectations (ACTION_CHOOSER being a forced choice) and it adds
speedbumps to existing apps in the ecosystem, revert this change.

Bug 27243827

Change-Id: Id8fd5385d5b1f459e80b0096efe7e2944264739a

8 years agoAdd flags needed to switch Jack to 1.8 for CTS targets
Neil Fuller [Mon, 15 Feb 2016 12:05:44 +0000 (12:05 +0000)]
Add flags needed to switch Jack to 1.8 for CTS targets

When linking against .jack files that contain 1.8 language
features Jack (currently) requires -D jack.java.source.version=1.8.

"core-tests" includes 1.8 language features.

Bug: 27113322
Bug: 26953739
(cherry-picked from commit a835180b74af2cad853db08e8d41a7b04773759b)

Change-Id: I2be4db6788b14558f74534c24bb007f7fb8b6b67

8 years agoAdd flags needed to switch Jack to 1.8 for CTS targets
Neil Fuller [Fri, 12 Feb 2016 15:38:34 +0000 (15:38 +0000)]
Add flags needed to switch Jack to 1.8 for CTS targets

When linking against .jack files that contain 1.8 language
features Jack (currently) requires -D jack.java.source.version=1.8.

"core-tests" includes 1.8 language features.

Bug: 27113322
Bug: 26953739
(cherry-picked from commit 3269825f0be29ec8ea08e0b7930d801f3d0206b4)

Change-Id: I294b50edb898699b57684eaf25016553338cb6a2

8 years agoMerge "Add java.util.function APIs"
Neil Fuller [Thu, 18 Feb 2016 13:32:30 +0000 (13:32 +0000)]
Merge "Add java.util.function APIs"

8 years agoAdd java.util.function APIs
Neil Fuller [Tue, 19 Jan 2016 00:43:38 +0000 (16:43 -0800)]
Add java.util.function APIs

Bug: 26814204
(cherry-picked from commit 311a97e7f41c494bc355f5d77adc276e2a400970)

Change-Id: Id00ac095e45dbdc63e9542f4f3a20c2179c3ab72

8 years agoImageReader: override the flexible YUV compatible formats
Zhijun He [Thu, 18 Feb 2016 01:24:04 +0000 (17:24 -0800)]
ImageReader: override the flexible YUV compatible formats

For gralloc HAL v0.1 devices, if the producer buffer format is NV21 or YV12,
the returned flexFormat will be NV21 or YV12, which causes CTS failure
for ImageReader decoder test. This change overrides the NV21 or YV12 image
formats to HAL_PIXEL_FORMAT_YCbCr_420_888 for such case. With this, the
ImageReader will work for the devices with older gralloc HAL implementations
for HAL_PIXEL_FORMAT_YCbCr_420_888 compatible formats.

Bug: 27136665
Change-Id: Ib4722f1f8dc20ad6561088755e4ab9d2e68f1b47

8 years agoMerge "Add keylayout for Xbox One controller"
Michael Wright [Wed, 17 Feb 2016 22:37:21 +0000 (22:37 +0000)]
Merge "Add keylayout for Xbox One controller"

8 years agoMerge "[RenderScript] Fix potential leak in RS JNI"
Miao Wang [Wed, 17 Feb 2016 18:50:54 +0000 (18:50 +0000)]
Merge "[RenderScript] Fix potential leak in RS JNI"

8 years agoAdd keylayout for Xbox One controller
Tim Clark [Tue, 5 Jan 2016 16:25:46 +0000 (09:25 -0700)]
Add keylayout for Xbox One controller

Change-Id: Ifb4005ed7b6345c9af126d8f1bd22c7e2921871f

8 years agoMerge "Suppress warnings of MultiDexLegacyAndException"
Yohann Roussel [Wed, 17 Feb 2016 15:15:57 +0000 (15:15 +0000)]
Merge "Suppress warnings of MultiDexLegacyAndException"

8 years agoSuppress warnings of MultiDexLegacyAndException
Yohann Roussel [Wed, 17 Feb 2016 11:14:33 +0000 (12:14 +0100)]
Suppress warnings of MultiDexLegacyAndException

To clean build logs without disturbing the test.

Bug: 27155813

Change-Id: If80d7ad044dc9b4dfde5ded332e9ba566e536054

8 years agoMerge "Support persist.sys.audit_safemode"
Sami Tolvanen [Tue, 16 Feb 2016 21:52:13 +0000 (21:52 +0000)]
Merge "Support persist.sys.audit_safemode"

8 years agoMerge "Frameworks/base: Fix registration function"
Andreas Gampe [Tue, 16 Feb 2016 20:41:30 +0000 (20:41 +0000)]
Merge "Frameworks/base: Fix registration function"

8 years agoFrameworks/base: Fix registration function
Andreas Gampe [Tue, 16 Feb 2016 18:09:31 +0000 (10:09 -0800)]
Frameworks/base: Fix registration function

Registration functions return "int."

(cherry picked from commit faa1033dc7d6b1ea6c17a483e586eaa167d154f9)

Change-Id: Icb8d35f3bc23794cdb22db1c1adda236c9d8676e

8 years agoMerge "Add missing liblog dependency"
Dimitry Ivanov [Sat, 13 Feb 2016 01:03:41 +0000 (01:03 +0000)]
Merge "Add missing liblog dependency"

8 years agoAdd missing liblog dependency
Dimitry Ivanov [Sat, 13 Feb 2016 00:44:33 +0000 (16:44 -0800)]
Add missing liblog dependency

Bug: http://b/27171986
Change-Id: I40b93ac0d4bfacfc38c08b5dbc5d2b3358a976cb

8 years agoMerge "When the device boots up, netd works more than required"
Amith Yamasani [Fri, 12 Feb 2016 18:35:11 +0000 (18:35 +0000)]
Merge "When the device boots up, netd works more than required"

8 years agoMerge "onAccountsUpdated shouldn't be called back after listener unregistered"
Amith Yamasani [Fri, 12 Feb 2016 17:50:17 +0000 (17:50 +0000)]
Merge "onAccountsUpdated shouldn't be called back after listener unregistered"

8 years ago[RenderScript] Fix potential leak in RS JNI
Miao Wang [Thu, 11 Feb 2016 20:32:39 +0000 (12:32 -0800)]
[RenderScript] Fix potential leak in RS JNI

Bug: 27145639
Change-Id: I80cf2971d803a3366a63caa3612a503a88639040

8 years agoMerge "Hide java.security.Signatue#getCurrentSpi"
Przemyslaw Szczepaniak [Thu, 11 Feb 2016 13:27:46 +0000 (13:27 +0000)]
Merge "Hide java.security.Signatue#getCurrentSpi"

8 years agoHide java.security.Signatue#getCurrentSpi
Przemyslaw Szczepaniak [Thu, 11 Feb 2016 11:56:21 +0000 (11:56 +0000)]
Hide java.security.Signatue#getCurrentSpi

Internal implementation detail, shouldn't
be public.

Bug: 26689841
Change-Id: Ie0b7f9fc2659cb21f58f59c17df52c83e025a87c

8 years agoMerge "Remove java.nio.channels.* classes without test coverage."
Przemyslaw Szczepaniak [Thu, 11 Feb 2016 10:06:55 +0000 (10:06 +0000)]
Merge "Remove java.nio.channels.* classes without test coverage."

8 years agoRemove java.nio.channels.* classes without test coverage.
Przemyslaw Szczepaniak [Wed, 10 Feb 2016 15:16:39 +0000 (15:16 +0000)]
Remove java.nio.channels.* classes without test coverage.

Removed classes come from openJdk 1.7 and were never
implemented before. We lack a testing suite to verify that
they are working correctly. Those clasess might by
re-added in further releases

Bug: 27117463
Change-Id: Ia7554a9182507b9fa1c1b6db9573ab68cb641f36

8 years agoMerge "Java 8 in layoutlib-create"
Brian Carlstrom [Wed, 10 Feb 2016 03:29:28 +0000 (03:29 +0000)]
Merge "Java 8 in layoutlib-create"

8 years agoJava 8 in layoutlib-create
Deepanshu Gupta [Thu, 7 Jan 2016 23:54:27 +0000 (15:54 -0800)]
Java 8 in layoutlib-create

Upgrade to ASM 5 and diamond operators.

Also minor fixes here and there.

Bug: 26442940

(cherry picked from commit 23e47f5621271db9b84f53f15a3e3d81d8b8b48d)

Change-Id: I770d80626ef7a7b8cba82ce2c5fbc54c8874bc6b

8 years agoMerge "The NDK samples moved a while back."
Elliott Hughes [Wed, 10 Feb 2016 01:17:33 +0000 (01:17 +0000)]
Merge "The NDK samples moved a while back."

8 years agoThe NDK samples moved a while back.
Elliott Hughes [Wed, 10 Feb 2016 00:12:02 +0000 (16:12 -0800)]
The NDK samples moved a while back.

Change-Id: I10f419b0ad58f9c5417a3f06775e298c74f284dc

8 years agoSupport persist.sys.audit_safemode
Sami Tolvanen [Fri, 5 Feb 2016 22:30:45 +0000 (14:30 -0800)]
Support persist.sys.audit_safemode

Don't leave safe more if persist.sys.audit_safemode is set, unless the
current build date is newer than the specified value.

This allows us to keep the device in safe mode across reboots until an
OTA has been applied or user data is wiped.

Bug: 26902605
Change-Id: I781c3059ea8d4fb2f0c923e4488b1932d69678d3

8 years agoMerge "Remove public InetAddress#getAddressInternal()"
Przemyslaw Szczepaniak [Tue, 9 Feb 2016 17:07:10 +0000 (17:07 +0000)]
Merge "Remove public InetAddress#getAddressInternal()"

8 years agoMerge "SocketImpl#getFileDescriptor shouldn't be public"
Przemyslaw Szczepaniak [Tue, 9 Feb 2016 17:05:48 +0000 (17:05 +0000)]
Merge "SocketImpl#getFileDescriptor shouldn't be public"

8 years agoMerge "Replace usages of ShortNumberUtil with ShortNumberInfo"
Paul Duffin [Tue, 9 Feb 2016 16:51:09 +0000 (16:51 +0000)]
Merge "Replace usages of ShortNumberUtil with ShortNumberInfo"

8 years agoReplace usages of ShortNumberUtil with ShortNumberInfo
Paul Duffin [Tue, 9 Feb 2016 16:40:53 +0000 (16:40 +0000)]
Replace usages of ShortNumberUtil with ShortNumberInfo

The ShortNumberInfo class appears to support the exact same
methods as the ShortNumberUtil class (at least in terms of the
methods used by this project) but is a singleton and so
instances cannot be created directly but instead must be
retrieved using the static getInstance() method.

The ShortNumberUtil class was deprecated in version 5.8 and
removed in 7.2.3 of libphonenumber. This change is required in
order to allow libphonenumber to be upgraded to 7.2.4.

Bug: 26975810
Change-Id: Ide40c65d12cb44453f84600fc4b5ad1ee1088470

8 years agoRemove public InetAddress#getAddressInternal()
Przemyslaw Szczepaniak [Mon, 8 Feb 2016 14:37:34 +0000 (14:37 +0000)]
Remove public InetAddress#getAddressInternal()

This method shouldn't be public + can be replaced by
the #getAddress method

Bug: 26689841
Change-Id: I1a15e4b2085049564b1de57dbfb200d157d5ebe5

8 years agoSocketImpl#getFileDescriptor shouldn't be public
Przemyslaw Szczepaniak [Mon, 8 Feb 2016 15:53:44 +0000 (15:53 +0000)]
SocketImpl#getFileDescriptor shouldn't be public

It's protected, as it was before openJdk switch. Added
hidden public method getFD$ for tests.

Bug: 26689841
Change-Id: If275e249d2b46ee6cf22a06d62374bbf47c55342

8 years agoAdd dumpsys meminfo --unreachable
Colin Cross [Wed, 3 Feb 2016 00:51:15 +0000 (16:51 -0800)]
Add dumpsys meminfo --unreachable

dumpsys meminfo --unreachable will search the native heap for
allocations that are unreachable.

Change-Id: I40ab1c261cb222ca71d04ab8408f355bcb18ed94

8 years agoMerge "libhwui: handle eglSwapBuffers with EGL_BAD_NATIVE_WINDOW error case"
John Reck [Fri, 5 Feb 2016 23:38:10 +0000 (23:38 +0000)]
Merge "libhwui: handle eglSwapBuffers with EGL_BAD_NATIVE_WINDOW error case"

8 years agoMerge "Fix typo in KeyInfo Javadoc."
Alex Klyubin [Fri, 5 Feb 2016 22:26:56 +0000 (22:26 +0000)]
Merge "Fix typo in KeyInfo Javadoc."

8 years agoFix typo in KeyInfo Javadoc.
Alex Klyubin [Fri, 5 Feb 2016 22:18:19 +0000 (14:18 -0800)]
Fix typo in KeyInfo Javadoc.

Change-Id: I801005a93aee71b93b3d6cf3f7c38361493ff203

8 years agoMerge "api: Un-hide new reflection 1.8 APIs"
Igor Murashkin [Fri, 5 Feb 2016 17:53:04 +0000 (17:53 +0000)]
Merge "api: Un-hide new reflection 1.8 APIs"

8 years agoapi: Un-hide new reflection 1.8 APIs
Igor Murashkin [Fri, 5 Feb 2016 05:04:29 +0000 (21:04 -0800)]
api: Un-hide new reflection 1.8 APIs

(cherry-picked from commit 2b11b688b841a00afe5eda8bda02409172751318)
Change-Id: Ica3dba651f4a9239c39c4c90fb8478a5f6ff8b71

8 years agoMerge "Improve NFC-F transceive() docs."
Martijn Coenen [Fri, 5 Feb 2016 09:38:16 +0000 (09:38 +0000)]
Merge "Improve NFC-F transceive() docs."

8 years agoImprove NFC-F transceive() docs.
Martijn Coenen [Fri, 5 Feb 2016 09:24:49 +0000 (10:24 +0100)]
Improve NFC-F transceive() docs.

It wrongly said the SoD included the length;
put a sample frame in the docs to help devs.

Change-Id: I8ea74f37e7335f3e05f7df81fc303bf6195ac3cc

8 years agoMerge "Transit to correct state after alarm is fired"
Amith Yamasani [Thu, 4 Feb 2016 21:52:54 +0000 (21:52 +0000)]
Merge "Transit to correct state after alarm is fired"

8 years agoTransit to correct state after alarm is fired
Koji Fukui [Wed, 16 Dec 2015 10:43:01 +0000 (19:43 +0900)]
Transit to correct state after alarm is fired

Symptom:
When AlarmClock fires in IDLE, state is changed to ACTIVE.
But the ACTIVE state continues under some conditions.

Root cause:
Transition from IDLE state to ACTIVE state when AlarmClock fires
1. Send ACTION_STEP_IDLE_STATE intent
2. Calles onReceive() in BroadcastReceiver
3. Calles stepIdleStateLocked()
4. Calles becomeActiveLocked() 

Check point (1) to change from ACTIVE state to INACTIVE
(Display On -> Off)
1. onDisplayChanged()
2. updateDisplayLocked()
3. becomeInactiveIfAppropriateLocked()

Check point (2) to change from ACTIVE state to INACTIVE
(charging -> not charging)
1. ACTION_BATTERY_CHANGED
2. updateChargingLocked()
3. becomeInactiveIfAppropriateLocked()

There are only two check points to change from ACTIVE to INACTIVE.
If state transition, from IDLE to ACTIVE,
happened by AlarmClock when display is off and not charging,
ACTIVE state will be kept and never changes to INACTIVE state.

Change-Id: I93398366307f529b9c0074ac58b19ad6e4695790

8 years agoMerge "Implementation of BluetoothDevice.createBondOutOfBand"
Andre Eisenbach [Thu, 4 Feb 2016 00:25:34 +0000 (00:25 +0000)]
Merge "Implementation of BluetoothDevice.createBondOutOfBand"

8 years agoImplementation of BluetoothDevice.createBondOutOfBand
Jakub Pawlowski [Tue, 29 Dec 2015 21:19:21 +0000 (13:19 -0800)]
Implementation of BluetoothDevice.createBondOutOfBand

This patch implements out of band pairing that uses optional data.
Currently, it works only for LE transport, using Temporary Key value.
In the future fields might be added to OOBData to support other options for
optional data.

Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1

8 years agoMerge "Bluetooth: Restrict gain for Absolute volume case"
Eric Laurent [Wed, 3 Feb 2016 17:30:39 +0000 (17:30 +0000)]
Merge "Bluetooth: Restrict gain for Absolute volume case"