248141 Commits

Author SHA1 Message Date
Bill Yi
b2cd422851 Import translations. DO NOT MERGE
Change-Id: I0766139e2f58cfcb8ffc6fb24b1400deaaf313c6
Auto-generated-cl: translation import
2016-06-29 14:20:30 -07:00
Chia-I Wu
bbadc5d313 Merge "Use the first Vulkan layer path" into nyc-mr1-dev 2016-06-29 07:39:03 +00:00
Hugo Benichi
5e055187be Adding tests for DnsEventListenerService
Bug: 29035129
Change-Id: Iaf0d9ec781da7a473b6f7d8623060ecde44b9cbd
2016-06-29 14:28:51 +09:00
Hugo Benichi
cfddd68792 Refactor IP connectivity event logging
This patch removes static methods for logging IP connectivity events
defined in android.net.metrics and replaces them with a single log()
instance method defined on IpConnectivityLog. Event constructors are
now public also. Every classes logging such events now create an
instance of IpConnectivityLog for logging event objects directly
instantiated with new.

Removing static dependencies allow straightforward testing of logging.

This patch also removes the base IpConnectivityEvent class which is not
needed any more.

Bug: 29035129
Change-Id: I3de700f93f46deaa48a759f938f7d00e1d8bff98
2016-06-29 14:28:51 +09:00
Robert Carr
5bf74ae1b9 Merge \"Only use one SurfaceControlWithBackground per AppToken.\" into nyc-dev
am: 55427a6650

Change-Id: I8f4eae6fe2ab09cd0b14473cba7d4dbbc42dc469
2016-06-29 03:33:24 +00:00
Rob Carr
55427a6650 Merge "Only use one SurfaceControlWithBackground per AppToken." into nyc-dev 2016-06-29 03:27:48 +00:00
Robert Carr
91b2280964 Only use one SurfaceControlWithBackground per AppToken.
In the past, if an app never renders to a SurfaceView, it will be
invisible despite having FLAG_OPAQUE. This means an app could leave a
totally empty SurfaceView (never drawing in to it) on top of a second
SurfaceView, and expect the second one to be visible. This is probably
buggy app behavior because FLAG_OPAQUE means if they ever draw anything at all
in to the top SurfaceView the bottom one will become totally invisible.
However this has worked in the past, so we have to preserve things for
apps. To accomplish this we ensure only the bottom most visible
SurfaceView for a given AppToken will receive a background. We achieve
this by synchronizing through the app token whenever visibility or
layering of a SurfaceView changes.

Bug: 29580298
Change-Id: I0023326323cb961b56404fd49093384e7b72aa54
2016-06-28 20:09:09 -07:00
Winson
52cfea9c35 Move preloading to boot complete.
am: 16ef39a7f6

Change-Id: Idaf6c79e076a6b2a1c2d2a2b7282e58bb7c23bce
2016-06-29 02:20:33 +00:00
Winson
16ef39a7f6 Move preloading to boot complete.
Bug: 29320695
Change-Id: I14b5127b218597f3c32e647e0443a88b5a708ce1
2016-06-29 02:13:37 +00:00
TreeHugger Robot
634ed6bc17 Merge changes Id876f01f,If7c94cf8 into nyc-mr1-dev
* changes:
  Improving the Reset Demo Warning dialog
  Enabling auto-ota in retail demo mode
2016-06-29 01:38:02 +00:00
TreeHugger Robot
2d8c91f238 Merge "Prevent PrintSpooler from being disabled" into nyc-mr1-dev 2016-06-29 01:29:41 +00:00
Chong Zhang
8e3b57aad5 Merge "Add a few trace points for animation loading." into nyc-mr1-dev 2016-06-29 01:03:27 +00:00
Jim Miller
ef26bf0f0a Merge \"Relax security constraint around getAuthenticatorId().\" into nyc-dev
am: 60c04126c9

Change-Id: I28a3559159340d663693976cc58dc34f3c730f6c
2016-06-29 00:45:08 +00:00
Jim Miller
60c04126c9 Merge "Relax security constraint around getAuthenticatorId()." into nyc-dev 2016-06-29 00:37:42 +00:00
Hugo Benichi
41a3acc55a Merge changes I9b4e55c2,I429562a0 into nyc-mr1-dev
* changes:
  Add tests for MetricsLoggerService
  Tests for IpConnectivityMetricsLog
2016-06-29 00:15:49 +00:00
Suprabh Shukla
0271fd661d Improving the Reset Demo Warning dialog
Removing explicit call to setView which was distorting the layout
of a standard AlertDialog. Used the correct unicode characted for
apostrophe. Also removed calls to enable demo mode launcher for user 0.

Bug: 29520255
Change-Id: Id876f01f8e51c02634c03fce1ea93a15b111fc27
2016-06-28 16:48:34 -07:00
Jim Miller
d0063106b6 Relax security constraint around getAuthenticatorId().
Fixes bug 28603656

Change-Id: I54216d4b9a3ab23f9d5bfe0f40f2dd27e723c21e
2016-06-28 16:43:57 -07:00
Philip P. Moltmann
545a58ab6b Prevent PrintSpooler from being disabled
Change-Id: I40fb7b25174a41d04f767fbf8ee1da8c02e7156a
Fixes: 29830022
2016-06-28 23:28:48 +00:00
Ajay Panicker
58dd0cd65e Protect REFRESH_BATCHED_SCAN broadcast
Bug: 29754520
Change-Id: Id3f43d36db2c5f026a5d3a94e7370051d2e23e37
2016-06-28 23:20:37 +00:00
Chong Zhang
8784be6fe4 Add a few trace points for animation loading.
Also make sure focusMayChange is set as before commit 8c5d42.
We only want to skip the applyAnimationLocked if animation is
already set, make sure the rest are equivalent.

bug: 29405575

Change-Id: I8342b82d9e6e02fab002e16ffcde4a7479bf6867
2016-06-28 16:09:35 -07:00
Chia-I Wu
15e74c9614 Use the first Vulkan layer path
The loader will scan the current layer path once when the first valid
Vulkan command call is made.  To avoid confusions and data races, never
set the layer path more than once.

This assumes the first layer path to be the app's library search path,
which should be the case.

Bug: 29780602
Change-Id: Ibb9e4de95902ee89413d213d237ea4f62ea35b38
2016-06-29 07:09:21 +08:00
Lajos Molnar
a1df385e74 Merge \"media: document VP9 CSD for MediaCodec\" into nyc-dev
am: 1fe8871f04

Change-Id: I5f95ce25ee8099c556f04245291da8345df42584
2016-06-28 22:32:01 +00:00
Lajos Molnar
1fe8871f04 Merge "media: document VP9 CSD for MediaCodec" into nyc-dev 2016-06-28 22:27:53 +00:00
Lajos Molnar
eb6fac8029 Merge \"media: document rotation and scaling issues for MediaCodec\" into nyc-dev
am: af9d9f9b3e

Change-Id: Ie9d890df1b77c8fd79766e5ea329e5f8db4a94eb
2016-06-28 22:26:44 +00:00
Lajos Molnar
ac43565741 Merge \"media: document format keys for MediaExtractor/CodecCapabilities\" into nyc-dev
am: 556e012979

Change-Id: I248fbd3da8dd0376d724ca8aee7f8e71bfb260b0
2016-06-28 22:26:42 +00:00
Lajos Molnar
af9d9f9b3e Merge "media: document rotation and scaling issues for MediaCodec" into nyc-dev 2016-06-28 22:21:02 +00:00
Lajos Molnar
556e012979 Merge "media: document format keys for MediaExtractor/CodecCapabilities" into nyc-dev 2016-06-28 22:19:30 +00:00
Suprabh Shukla
f8c04cbe95 Enabling auto-ota in retail demo mode
Bug: 29542384
Change-Id: If7c94cf8a8e5851011f23dc5d64fc795f9a07b22
2016-06-28 14:38:29 -07:00
Oren Blasberg
9585012ce3 Merge \"Fix popup context menu appearing brokenly.\" into nyc-dev
am: 29ea814354

Change-Id: I1fdc4c75bf763a3e0c1411230e5a0cdc21ad882a
2016-06-28 21:20:02 +00:00
Oren Blasberg
29ea814354 Merge "Fix popup context menu appearing brokenly." into nyc-dev 2016-06-28 21:12:28 +00:00
Android Build Merger (Role)
b1400b142e Merge "Merge \"Remove redundant setPendingIntentWhitelistDuration() calls.\" into nyc-dev am: c1374208e3" into nyc-mr1-dev 2016-06-28 20:49:14 +00:00
Felipe Leme
1cec26c69e Merge \"Remove redundant setPendingIntentWhitelistDuration() calls.\" into nyc-dev
am: c1374208e3

Change-Id: Ie02a847ac513f89c1c430af0e3f559cf0bc2039d
2016-06-28 20:48:51 +00:00
TreeHugger Robot
23bc74a8d5 Merge "Define deprecated fields in IntDef's" into nyc-mr1-dev 2016-06-28 20:48:37 +00:00
TreeHugger Robot
c1374208e3 Merge "Remove redundant setPendingIntentWhitelistDuration() calls." into nyc-dev 2016-06-28 20:45:40 +00:00
TreeHugger Robot
9d07eed168 Merge "Show notification while PRE_BOOT receivers run." into nyc-mr1-dev 2016-06-28 20:18:59 +00:00
Oren Blasberg
0e8ce872f1 Fix popup context menu appearing brokenly.
Add missing attribute to the base Theme to ensure the context menu
does not appear completely invisibly.

Bug: 29796385
Change-Id: I4f50579622e97656e09a5ddb6e13313f84efc972
2016-06-28 12:41:30 -07:00
Felipe Leme
ef5c3aad4d Merge \"Fixed whitelistManager set on unbindServiceLocked()\" into nyc-dev
am: 8d78c33c9b

Change-Id: I0339e6ae9261b1ebdd7bbed54540ca253b1b6fd9
2016-06-28 19:22:23 +00:00
Todd Kennedy
a1066ed6c2 Merge \"Default minSdkVersion to \'1\'\" into nyc-dev
am: a98e3e3ede

Change-Id: I8d2b7205f80b3cae5dce04839890df6aafa8449e
2016-06-28 19:16:40 +00:00
TreeHugger Robot
8d78c33c9b Merge "Fixed whitelistManager set on unbindServiceLocked()" into nyc-dev 2016-06-28 19:15:34 +00:00
Todd Kennedy
1f397f4e7b Define deprecated fields in IntDef's
Tools need all of the valid constants to handle legacy apps; even
though we want developers to use the new constant names.

Bug: 29824931
Change-Id: I5f8055d50d1d3f32cfbed7459d8a497cfbd3661e
2016-06-28 12:14:11 -07:00
TreeHugger Robot
a98e3e3ede Merge "Default minSdkVersion to '1'" into nyc-dev 2016-06-28 19:12:49 +00:00
TreeHugger Robot
41f0e20739 Merge "media: document format keys for MediaExtractor/CodecCapabilities" into nyc-mr1-dev 2016-06-28 18:54:24 +00:00
Jeff Sharkey
c4bcacb98e Show notification while PRE_BOOT receivers run.
Awhile back, we switched to running PRE_BOOT receivers after the user
is unlocked.  Since these receivers include providers like Contacts
and MediaStore that can take a long time to upgrade, it may result in
apps like Dialer or Photos appearing to hang, so we need to help the
user understand that the system is still upgrading in the background.

Bug: 28164677
Change-Id: I18448534b6067f8508b1ffb2d43c106c02c265a0
2016-06-28 12:51:58 -06:00
Felipe Leme
dd85da6e94 Remove redundant setPendingIntentWhitelistDuration() calls.
Since all pending intents are stored on a Set in the Notication object,
there is no need to individually check for specific pending intents.

BUG: 29480440
Change-Id: I27a18bb535a9a4bb6cb4e76bdc189e6c315a684a
2016-06-28 11:34:54 -07:00
TreeHugger Robot
694acb1e36 Merge "Clip GradientDrawable's saveLayer" into nyc-mr1-dev 2016-06-28 18:24:25 +00:00
Philip P. Moltmann
fd28d8ebd1 Merge "Always reload print services" into nyc-mr1-dev 2016-06-28 18:15:38 +00:00
Felipe Leme
a7778b0654 Fixed whitelistManager set on unbindServiceLocked()
It must call updateWhitelistManagerLocked() because the app might have
other services with the whitelistManager set, in which case the process
record should not have whitelistManager reset.

Fixes: 29480440

Change-Id: I268278c646aaa89a352f02178b294c02c3c11d35
2016-06-28 10:41:45 -07:00
Lajos Molnar
4461356ea8 media: document rotation and scaling issues for MediaCodec
Bug: 23709311
Bug: 28512795
Change-Id: Iddebd13b4cd4c50bca8736d3aca71571ad16633a
2016-06-28 10:38:34 -07:00
Chris Craik
754ea612ec Merge "Fix savelayer rounding" into nyc-mr1-dev 2016-06-28 17:33:27 +00:00
Todd Kennedy
4f6570878c Default minSdkVersion to '1'
Exception when targetSdkVersion is a letter API [eg 'N']. While this
is technically not according to the external docs, it's the behaviour
with prior platforms.

Bug: 29817839
Change-Id: I8382909dbe62de7b2ddfb7995ce11d5c2f43372e
2016-06-28 10:31:05 -07:00