OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "make the notification enqueue rate threshold a setting" into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 15:08:02 +0000 (15:08 +0000)]
Merge "make the notification enqueue rate threshold a setting" into nyc-dev

8 years agomake the notification enqueue rate threshold a setting
Chris Wren [Tue, 31 May 2016 21:14:12 +0000 (17:14 -0400)]
make the notification enqueue rate threshold a setting

Bug: 28693065
Change-Id: I08bd2ed342d5347c0075183b239558c50ada4a0a

8 years agoMerge "Do not use cached tile specs value in QSTileHost.addTile()" into nyc-dev
Ricky Wai [Thu, 2 Jun 2016 14:56:50 +0000 (14:56 +0000)]
Merge "Do not use cached tile specs value in QSTileHost.addTile()" into nyc-dev

8 years agoDo not use cached tile specs value in QSTileHost.addTile()
Ricky Wai [Thu, 2 Jun 2016 10:42:16 +0000 (11:42 +0100)]
Do not use cached tile specs value in QSTileHost.addTile()

As addTile() can be run multiple times before listener receives
the update, addTile() should always use the latest updated value
from settings but not from the cache value.

Bug: 28185436
Change-Id: I8c840343b797b00373a6f40cc5ea125efe68a6e1

8 years agoMerge "Don't create or check permissions on profiles during app startup" into nyc-dev
Calin Juravle [Thu, 2 Jun 2016 10:10:35 +0000 (10:10 +0000)]
Merge "Don't create or check permissions on profiles during app startup" into nyc-dev

8 years agomedia: fix issues with video profile levels
Lajos Molnar [Wed, 1 Jun 2016 05:35:27 +0000 (22:35 -0700)]
media: fix issues with video profile levels

Support additional corner cases in level ordering:
- MPEG4Level1 only implies support for MPEG4Level0
- HEVC high tier levels are only supported by other high tier levels

H263 unusual level definitions:
- levels 45/50+ define minimum requirements that codecs can extend
- levels 10-45 define minimum size
- restrict to QCIF and CIF only if codecs only supports levels 10-40
  (or 45 in profiles 0 and 2)

MPEG4 max width/height/frame rate:
- Only specified for MPEG4Level0/0b
- Using arbitrary 2:1 aspect ratio and 60fps for other levels
  This is sure to include typical sizes for levels

Fix level limits:
- MPEG2LevelML max 25fps for D1 PAL
- H263Level20 max 30fps, but only 15fps for CIF
- H263Level45 max 15fps
- H263Level45+ min alignment is 4
- MPEG4Level0b max 15fps
- add support for VP9 HDR profiles
- fix HEVC overflow for Level62 calculations

Bug: 28671284
Change-Id: Ie75ae1d19f20d5c6eb40807d03c3b487854eb9a0

8 years agoMerge "HWUI: do not call glCopyTexSubImage2D on empty area." into nyc-dev
Sergei Vasilinetc [Thu, 2 Jun 2016 01:36:34 +0000 (01:36 +0000)]
Merge "HWUI: do not call glCopyTexSubImage2D on empty area." into nyc-dev

8 years agoMerge "Handle the uncommon case that a name is null" into nyc-dev
Philip P. Moltmann [Thu, 2 Jun 2016 00:28:50 +0000 (00:28 +0000)]
Merge "Handle the uncommon case that a name is null" into nyc-dev

8 years agoMerge "TIF: Release an existing audio patch before creating a new one" into nyc-dev
Jae Seo [Thu, 2 Jun 2016 00:04:16 +0000 (00:04 +0000)]
Merge "TIF: Release an existing audio patch before creating a new one" into nyc-dev

8 years agoMerge "Fix documentation for channel types" into nyc-dev
Jae Seo [Thu, 2 Jun 2016 00:03:52 +0000 (00:03 +0000)]
Merge "Fix documentation for channel types" into nyc-dev

8 years agoMerge "Use text input to deal with fullscreen IME" into nyc-dev
Philip P. Moltmann [Wed, 1 Jun 2016 23:57:19 +0000 (23:57 +0000)]
Merge "Use text input to deal with fullscreen IME" into nyc-dev

8 years agoHWUI: do not call glCopyTexSubImage2D on empty area.
sergeyv [Wed, 1 Jun 2016 21:53:35 +0000 (14:53 -0700)]
HWUI: do not call glCopyTexSubImage2D on empty area.

Previous check .isEmpty() is not sufficient, because getWidth() may have
value 0.5, so technically it is not empty, but when this size is passed
to texture calls it is converted to uint_32 and it becomes zero.

bug:28941093
Change-Id: Ia7c2bf0340466d5376f235fb5da54ad2ddfa0a03

8 years agoMerge "media: avoid NPE in CodecCapabilities.createFromProfileLevel" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 23:29:48 +0000 (23:29 +0000)]
Merge "media: avoid NPE in CodecCapabilities.createFromProfileLevel" into nyc-dev

8 years agoMerge "Skip cancelling jobs with FLAG_WILL_BE_FOREGROUND." into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 23:15:19 +0000 (23:15 +0000)]
Merge "Skip cancelling jobs with FLAG_WILL_BE_FOREGROUND." into nyc-dev

8 years agoMerge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API referenc...
Sreevani Sreejith [Wed, 1 Jun 2016 22:54:06 +0000 (22:54 +0000)]
Merge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference." into mnc-io-docs am: 2d6015b18b
am: 441209abc7

* commit '441209abc78b8c6bcbcc6b1eb08d2f41219ce344':
  docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference.

Change-Id: I761a39db759030d4f07cb6e77326fc45db215677

8 years agoMerge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API referenc...
sreevanis [Wed, 1 Jun 2016 22:46:44 +0000 (22:46 +0000)]
Merge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference." into mnc-io-docs
am: 2d6015b18b

* commit '2d6015b18ba0bf52ebe402503c7c66ddae23d8bd':
  docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference.

Change-Id: I76168738a10e3f379134a88a89667a63d818323d

8 years agoMerge "Installer connection support for dump_profiles" into nyc-dev
David Sehr [Wed, 1 Jun 2016 22:16:03 +0000 (22:16 +0000)]
Merge "Installer connection support for dump_profiles" into nyc-dev

8 years agoMerge "Release AssetManagers when ejecting storage." into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 22:14:56 +0000 (22:14 +0000)]
Merge "Release AssetManagers when ejecting storage." into nyc-dev

8 years agoMerge "Fix clipRect transform rounding errors" into nyc-dev
Chia-I Wu [Wed, 1 Jun 2016 22:11:37 +0000 (22:11 +0000)]
Merge "Fix clipRect transform rounding errors" into nyc-dev

8 years agoUse text input to deal with fullscreen IME
Philip P. Moltmann [Wed, 1 Jun 2016 22:07:04 +0000 (15:07 -0700)]
Use text input to deal with fullscreen IME

The full screen "number" keyboard strips all non-numeric letters
out of the text field.

Bug: 29004437
Change-Id: Ic7e79106a7fcf0716a28061592221557b9d62f52

8 years agoMerge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API referenc...
Sreevani Sreejith [Wed, 1 Jun 2016 21:58:20 +0000 (21:58 +0000)]
Merge "docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference." into mnc-io-docs

8 years agoMerge "Use correct cert chain from PKCS#7 SignedData block." into nyc-dev
Alex Klyubin [Wed, 1 Jun 2016 21:55:04 +0000 (21:55 +0000)]
Merge "Use correct cert chain from PKCS#7 SignedData block." into nyc-dev

8 years agoSkip cancelling jobs with FLAG_WILL_BE_FOREGROUND.
Jeff Sharkey [Wed, 1 Jun 2016 21:51:19 +0000 (15:51 -0600)]
Skip cancelling jobs with FLAG_WILL_BE_FOREGROUND.

When FLAG_WILL_BE_FOREGROUND is set on a job (such as a download), we
need to treat the job as if it had a foreground service running so
it can continue making forward progress.  We already ignore the device
idle state when offering to start the job, so this just avoids the
hiccup of stopping the job only to restart it a minute later.

Bug: 26571724
Change-Id: I348903dd3a7dd7104b0c1bf4310e2a48655d2588

8 years agodocs: Fixed setAllowGeneratedReplies() link to point to Android N API reference.
sreevanis [Wed, 1 Jun 2016 19:37:12 +0000 (12:37 -0700)]
docs: Fixed setAllowGeneratedReplies() link to point to Android N API reference.

Bug:29071043
Change-Id: Iac88710234277210997150e2a6725322928276c3

8 years agoRelease AssetManagers when ejecting storage.
Jeff Sharkey [Thu, 26 May 2016 17:56:57 +0000 (11:56 -0600)]
Release AssetManagers when ejecting storage.

When ejecting a storage device, the system process needs to rapidly
release any open FDs to prevent itself from being killed by vold.

This change examines all ResourceImpls cached inside the system
process and evicts any that reference the storage device being
ejected.  (ResourcesManager will gladly recreate any evicted entries
when asked again in the future.)

Also replace broken use of WeakHashMap, since we want the values to
be weak references, not the keys.

Bug: 28867548
Change-Id: Ib9cfc66497149b6d3f8d49213e9779408a331d2a

8 years agoMerge "Only call finish on operations that have started." into nyc-dev
Julia Reynolds [Wed, 1 Jun 2016 20:37:07 +0000 (20:37 +0000)]
Merge "Only call finish on operations that have started." into nyc-dev

8 years agoMerge "Fix DirectReply bug when reapply fails" into nyc-dev
Adrian Roos [Wed, 1 Jun 2016 19:41:46 +0000 (19:41 +0000)]
Merge "Fix DirectReply bug when reapply fails" into nyc-dev

8 years agoMerge "Do not sanitize override config for fullscreen" into nyc-dev
Chong Zhang [Wed, 1 Jun 2016 19:34:02 +0000 (19:34 +0000)]
Merge "Do not sanitize override config for fullscreen" into nyc-dev

8 years agoMerge "Fix issue #29058724: Improve JobScheduler API demo" into nyc-dev
Dianne Hackborn [Wed, 1 Jun 2016 19:29:41 +0000 (19:29 +0000)]
Merge "Fix issue #29058724: Improve JobScheduler API demo" into nyc-dev

8 years agoMerge "Fix issue #29069028 NYC: device boot failure: NPE in AppIdleController" into...
Dianne Hackborn [Wed, 1 Jun 2016 19:26:07 +0000 (19:26 +0000)]
Merge "Fix issue #29069028 NYC: device boot failure: NPE in AppIdleController" into nyc-dev

8 years agoFix DirectReply bug when reapply fails
Adrian Roos [Wed, 1 Jun 2016 18:34:58 +0000 (11:34 -0700)]
Fix DirectReply bug when reapply fails

RemoteInputView failed to notice updates where the
reapply failed, causing it to reopen upon success.

Change-Id: I4fdd4d3240da6e38878d281fbf8c654ee9a682c3
Fixes: 29057180

8 years agoDo not sanitize override config for fullscreen
Chong Zhang [Wed, 1 Jun 2016 19:20:10 +0000 (12:20 -0700)]
Do not sanitize override config for fullscreen

bug: 29063336
Change-Id: I65c5d635133a6b3791ce1aef63547f8d38ca24b5

8 years agoMerge "Fixes a few bugs on the keyguard with font density changes" into nyc-dev
Selim Cinek [Wed, 1 Jun 2016 19:03:40 +0000 (19:03 +0000)]
Merge "Fixes a few bugs on the keyguard with font density changes" into nyc-dev

8 years agoMerge "Move DownloadsManager to permanent whitelist." into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 18:49:41 +0000 (18:49 +0000)]
Merge "Move DownloadsManager to permanent whitelist." into nyc-dev

8 years agoOnly call finish on operations that have started.
Julia Reynolds [Wed, 1 Jun 2016 18:17:58 +0000 (14:17 -0400)]
Only call finish on operations that have started.

Change-Id: I77d10913a68be529ea2c5a3f2a53ad91a4a41f47
Fixes: 29069613

8 years agoMerge "Don't crash activity manager when supplying invalid URI" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 18:37:34 +0000 (18:37 +0000)]
Merge "Don't crash activity manager when supplying invalid URI" into nyc-dev

8 years agoMerge "docs: Fixed \'MessageStyle\' typo" into mnc-io-docs am: 8ef79a9246
Eric Schmidt [Wed, 1 Jun 2016 18:25:35 +0000 (18:25 +0000)]
Merge "docs: Fixed \'MessageStyle\' typo" into mnc-io-docs am: 8ef79a9246
am: 51500a1c5a

* commit '51500a1c5ad6ce1bde1f8966f9835b42d9419a95':
  docs: Fixed 'MessageStyle' typo

Change-Id: I87addb7b46d0985b2cbfc92e6f0f9a7d44ce8963

8 years agoMerge "docs: Fixed \'MessageStyle\' typo" into mnc-io-docs
Eric Schmidt [Wed, 1 Jun 2016 18:16:17 +0000 (18:16 +0000)]
Merge "docs: Fixed \'MessageStyle\' typo" into mnc-io-docs
am: 8ef79a9246

* commit '8ef79a9246eba129c22e5d54654ecb85414edf22':
  docs: Fixed 'MessageStyle' typo

Change-Id: Ie9bfc94d89f388763e360841ae129d214156d6d2

8 years agoMerge "AppError: Change "close" to "close app"" into nyc-dev
Adrian Roos [Wed, 1 Jun 2016 18:14:41 +0000 (18:14 +0000)]
Merge "AppError: Change "close" to "close app"" into nyc-dev

8 years agocherry-pick: docs: Added note that <application> at end of manifest. am: d5368b8185
Kevin Hufnagle [Wed, 1 Jun 2016 18:10:43 +0000 (18:10 +0000)]
cherry-pick: docs: Added note that <application> at end of manifest. am: d5368b8185
am: f5250c5b37

* commit 'f5250c5b372ce3246bdc1e67212dc1fc7ca468ad':
  cherry-pick: docs: Added note that <application> at end of manifest.

Change-Id: I55b4b106e27d642878f8c1050c82594a21ff4574

8 years agoMerge "docs: Fixed 'MessageStyle' typo" into mnc-io-docs
Eric Schmidt [Wed, 1 Jun 2016 18:04:55 +0000 (18:04 +0000)]
Merge "docs: Fixed 'MessageStyle' typo" into mnc-io-docs

8 years agocherry-pick: docs: Added note that <application> at end of manifest.
Kevin Hufnagle [Wed, 1 Jun 2016 18:02:22 +0000 (18:02 +0000)]
cherry-pick: docs: Added note that <application> at end of manifest.
am: d5368b8185

* commit 'd5368b81857a04879ed55be2a67f034cce4e5094':
  cherry-pick: docs: Added note that <application> at end of manifest.

Change-Id: Ie8343e36136e7f3829bf92d7ac26488faf01b489

8 years agoMerge "Radio buttons belong in a radio group." into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 18:01:34 +0000 (18:01 +0000)]
Merge "Radio buttons belong in a radio group." into nyc-dev

8 years agoFix issue #29069028 NYC: device boot failure: NPE in AppIdleController
Dianne Hackborn [Wed, 1 Jun 2016 17:55:13 +0000 (10:55 -0700)]
Fix issue #29069028 NYC: device boot failure: NPE in AppIdleController

Make sure the core parts of JobSchedulerService are initialized
before we start creating the controllers.

Change-Id: I497df12f7e6fbd93581291ec691c4b45104d67d0

8 years agoFix issue #29058724: Improve JobScheduler API demo
Dianne Hackborn [Wed, 1 Jun 2016 17:48:43 +0000 (10:48 -0700)]
Fix issue #29058724: Improve JobScheduler API demo

We can now include it in the java docs!

Change-Id: I46b4f58e6220347e4f3f12139c9484d1b964c6a2

8 years agoMerge "Fix call to equals that could never succeed." into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 17:46:01 +0000 (17:46 +0000)]
Merge "Fix call to equals that could never succeed." into nyc-dev

8 years agoMerge "QS: Fix single expanded frame from layout" into nyc-dev
Jason Monk [Wed, 1 Jun 2016 17:26:52 +0000 (17:26 +0000)]
Merge "QS: Fix single expanded frame from layout" into nyc-dev

8 years agoMerge "QS: Followup to scroll fixes" into nyc-dev
Jason Monk [Wed, 1 Jun 2016 17:20:16 +0000 (17:20 +0000)]
Merge "QS: Followup to scroll fixes" into nyc-dev

8 years agoMerge "Fix deadlock when showing subtitles MediaPlayer" into nyc-dev
Robert Shih [Wed, 1 Jun 2016 17:16:59 +0000 (17:16 +0000)]
Merge "Fix deadlock when showing subtitles MediaPlayer" into nyc-dev

8 years agoMerge "PackageManager: Don't clear app profiles during system upgrades." into nyc-dev
Brian Carlstrom [Wed, 1 Jun 2016 17:06:19 +0000 (17:06 +0000)]
Merge "PackageManager: Don't clear app profiles during system upgrades." into nyc-dev

8 years agoMerge "QS: Only put visible tiles in listening state" into nyc-dev
Jason Monk [Wed, 1 Jun 2016 17:04:24 +0000 (17:04 +0000)]
Merge "QS: Only put visible tiles in listening state" into nyc-dev

8 years agoMerge "QS: Protect against crash with no icon" into nyc-dev
Jason Monk [Wed, 1 Jun 2016 17:04:20 +0000 (17:04 +0000)]
Merge "QS: Protect against crash with no icon" into nyc-dev

8 years agoMerge "MessagingStyle: Generate EXTRA_TITLE and EXTRA_TEXT" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 17:01:58 +0000 (17:01 +0000)]
Merge "MessagingStyle: Generate EXTRA_TITLE and EXTRA_TEXT" into nyc-dev

8 years agoMerge "Adds alpha to dimmed backgrounds" into nyc-dev
Mady Mellor [Wed, 1 Jun 2016 16:53:49 +0000 (16:53 +0000)]
Merge "Adds alpha to dimmed backgrounds" into nyc-dev

8 years agoMerge "trim and strip html tags for load safe label name" into nyc-dev
Chen Xu [Wed, 1 Jun 2016 16:47:17 +0000 (16:47 +0000)]
Merge "trim and strip html tags for load safe label name" into nyc-dev

8 years agoFixes a few bugs on the keyguard with font density changes
Selim Cinek [Tue, 31 May 2016 22:28:28 +0000 (15:28 -0700)]
Fixes a few bugs on the keyguard with font density changes

The reinflation of the system icons was not working correctly
and all the paddings were of.
Also the affordance icons were outdated and had to be reloaded.

Change-Id: I3cf338d33a82c8be94d01561d7b7d9a37a563ad9
Fixes: 28968657
Fixes: 28672410

8 years agoRadio buttons belong in a radio group.
Julia Reynolds [Wed, 1 Jun 2016 15:37:29 +0000 (11:37 -0400)]
Radio buttons belong in a radio group.

Fix for 'multiple buttons selected at once' issue.

Change-Id: Iec54eac699886ed1c7b8afd91382ff9b5750c696
Fixes: 27698976

8 years agoFix call to equals that could never succeed.
Ian Rogers [Mon, 30 May 2016 22:16:30 +0000 (15:16 -0700)]
Fix call to equals that could never succeed.

Caught by Error Prone.
Bug: 29045331

Change-Id: I5901a3ca06e0cc85620f596cfa4178f5ad61d1a7
(cherry picked from commit edf2f5747b9adc3399b59eb478c94641b1021222)

8 years agoMerge "Work on issue #28942589: Tune job scheduler" into nyc-dev
Dianne Hackborn [Wed, 1 Jun 2016 16:27:04 +0000 (16:27 +0000)]
Merge "Work on issue #28942589: Tune job scheduler" into nyc-dev

8 years agoPackageManager: Don't clear app profiles during system upgrades.
Narayan Kamath [Wed, 1 Jun 2016 14:18:14 +0000 (15:18 +0100)]
PackageManager: Don't clear app profiles during system upgrades.

They don't need to be cleared and will remain valid as long as
the application itself hasn't changed.

bug: 28998083
bug: 29067239
Change-Id: I2e4a4ee1b168da81073b8e70b12918db592fe691

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 15:26:42 +0000 (15:26 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 15:25:34 +0000 (15:25 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoFix documentation for channel types
Jae Seo [Tue, 31 May 2016 22:59:02 +0000 (15:59 -0700)]
Fix documentation for channel types

Bug: 28747244
Change-Id: I492bdb94400b298d7f2e0ccf9054761e60c5a548

8 years agoInstaller connection support for dump_profiles
David Sehr [Tue, 24 May 2016 22:25:23 +0000 (15:25 -0700)]
Installer connection support for dump_profiles

Bug: 28748264
Change-Id: I22322b5a0716a030d9873edcc6dfd7f3ef2d3bca

8 years agoQS: Fix single expanded frame from layout
Jason Monk [Wed, 1 Jun 2016 15:19:26 +0000 (11:19 -0400)]
QS: Fix single expanded frame from layout

During animation it was resetting the QS expansion on layout which
made a frame of fully expanded appear.

Bug: 28008271
Change-Id: I6ac44cb918bdf53da0653332eabf0f4e96779cff

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 15:15:57 +0000 (15:15 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoQS: Protect against crash with no icon
Jason Monk [Wed, 1 Jun 2016 14:25:01 +0000 (10:25 -0400)]
QS: Protect against crash with no icon

Change-Id: I65d594c9bf15190418d96cc6d2c426df00fed212
Fixes: 28941131

8 years agoFix action mode animation on recreations - framework edition
Chris Banes [Wed, 1 Jun 2016 10:39:54 +0000 (11:39 +0100)]
Fix action mode animation on recreations - framework edition

Currently if an action mode is started in onCreate()
it will fade in. This isn't ideal though, especially
since Activities are recreated routinely with
multi-window and resizable Activities. In that instance
we fade it in on every recreate.

This CL fixes this in both the decor and toolbar action
modes to only fade in if the decor has been laid out.

BUG: 29036694

Change-Id: Iae985efcced170a0a4229124c1c132355c2aa71e

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 1 Jun 2016 13:09:15 +0000 (06:09 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ia172193f8f33ba21461ea85c092248433d254780
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 1 Jun 2016 08:51:04 +0000 (01:51 -0700)]
Import translations. DO NOT MERGE

Change-Id: I95a9ffff8b53c291bd9eb314641b310c4ca1cbad
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 1 Jun 2016 08:19:56 +0000 (01:19 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib90c671ec93583cc219bfc9bb18f199c71963f04
Auto-generated-cl: translation import

8 years agocherry-pick: docs: Added note that <application> at end of manifest.
Kevin Hufnagle [Tue, 31 May 2016 21:56:34 +0000 (14:56 -0700)]
cherry-pick: docs: Added note that <application> at end of manifest.

After cherry picking, removed trailing whitespace at end of lines.

Bug: 28823898
Change-Id: I30d69f1877d772893965e1512455f3addb397c80
Original-Change-Id: I9d4e67c30a0e95e78a596c933c9b9d4804eb4d6a

8 years agotrim and strip html tags for load safe label name
fionaxu [Tue, 31 May 2016 21:47:14 +0000 (14:47 -0700)]
trim and strip html tags for load safe label name

Bug: 28557603
Change-Id: I30b6c1d32e97c1fb71ba83c2845c310fe3b7f579

8 years agoWork on issue #28942589: Tune job scheduler
Dianne Hackborn [Sat, 28 May 2016 00:59:40 +0000 (17:59 -0700)]
Work on issue #28942589: Tune job scheduler

We now have a new settings key that provides all of the existing
tuning parameters, plus some newly redone ones for dealing with
different memory levels.

Changed the minimum batching for overall jobs from 2 to 1, so
we will never get in the way of immediately scheduling jobs
when the developer asks for this.  We should now be able to rely
on the doze modes to do better batching of jobs for us when it
is really important.

Also work on issue #28981330: Excessive JobScheduler wakeup alarms.
Use a work source with scheduled alarms to blame them on the app
whose job they are being scheduled for, and add a check for whether
a job's timing constraint has been satisfied before considering it
a possible candidate for the next alarm.  (If it is satisified,
the time is in the past, so we should not schedule an alarm for it.)

Finally clean up a bunch of the dumpsys output to make it easier
to understand.

Change-Id: I06cf2c1310448f47cf386f393e9b267335fabaeb

8 years agoMerge "Update override config to include some changes from global config" into nyc-dev
Andrii Kulian [Wed, 1 Jun 2016 01:08:36 +0000 (01:08 +0000)]
Merge "Update override config to include some changes from global config" into nyc-dev

8 years agoMerge "media: avoid recursion when evaluating profile support" into nyc-dev
TreeHugger Robot [Wed, 1 Jun 2016 00:58:28 +0000 (00:58 +0000)]
Merge "media: avoid recursion when evaluating profile support" into nyc-dev

8 years agoMove DownloadsManager to permanent whitelist.
Felipe Leme [Wed, 1 Jun 2016 00:50:39 +0000 (17:50 -0700)]
Move DownloadsManager to permanent whitelist.

DownloadProvider is now based completely on JobScheduler, and deep
inside the platform we allow foreground
downloads (FLAG_WILL_BE_FOREGROUND) to run even while the device is in
doze, so it doesn't need to be temporarily whitelisted anymore.

BUG: 29056149
Change-Id: I3658bb42aeeee5d5528f91ec990d6e1bc54257b6

8 years agoMerge "Add null check in showLockTaskToast" into nyc-dev
Hall Liu [Wed, 1 Jun 2016 00:25:04 +0000 (00:25 +0000)]
Merge "Add null check in showLockTaskToast" into nyc-dev

8 years agoMerge "HWUI: do nothing in case of empty layer" into nyc-dev
Sergei Vasilinetc [Wed, 1 Jun 2016 00:15:30 +0000 (00:15 +0000)]
Merge "HWUI: do nothing in case of empty layer" into nyc-dev

8 years agomedia: avoid recursion when evaluating profile support
Lajos Molnar [Tue, 31 May 2016 23:02:57 +0000 (16:02 -0700)]
media: avoid recursion when evaluating profile support

Bug: 28671284
Bug: 29041205
Change-Id: Ia9b3596a122bd5ba554a4b4ede875ebcadc67b67

8 years agoDon't crash activity manager when supplying invalid URI
Jorim Jaggi [Tue, 31 May 2016 22:49:01 +0000 (15:49 -0700)]
Don't crash activity manager when supplying invalid URI

Change-Id: I30a058f14d5d0a09ba86fdd10312a51db7a4a9df
Fixes: 29039290

8 years agoUse correct cert chain from PKCS#7 SignedData block.
Alex Klyubin [Tue, 31 May 2016 23:04:49 +0000 (16:04 -0700)]
Use correct cert chain from PKCS#7 SignedData block.

This fixes a bug where APK JAR signature verifier returned the wrong
certificate chain. Rather than returning the cert chain of the
verified SignerInfo, it was returning the bag of certs of the PKCS#7
SignedData block.

This issue was introduced in Android N and thus does not affect
earlier Android platform versions.

Bug: 29055836
Change-Id: I684c0f8e9ff47b922030645e07b6a114c0eb0963

8 years agoMerge "Don't bother with WeakHashMap for direct alarm bookkeeping" into nyc-dev
Chris Tate [Tue, 31 May 2016 22:59:24 +0000 (22:59 +0000)]
Merge "Don't bother with WeakHashMap for direct alarm bookkeeping" into nyc-dev

8 years agoAdd null check in showLockTaskToast
Hall Liu [Tue, 31 May 2016 22:50:48 +0000 (15:50 -0700)]
Add null check in showLockTaskToast

Bug: 29056498
Change-Id: Ic4333ec4f43e3c2916a4963b5ddf9e6ad10136ed

8 years agoMerge "Enforce background fallback to be non-translucent" into nyc-dev
Jorim Jaggi [Tue, 31 May 2016 22:50:08 +0000 (22:50 +0000)]
Merge "Enforce background fallback to be non-translucent" into nyc-dev

8 years agoDon't bother with WeakHashMap for direct alarm bookkeeping
Christopher Tate [Tue, 31 May 2016 22:08:04 +0000 (15:08 -0700)]
Don't bother with WeakHashMap for direct alarm bookkeeping

Call cancel() explicitly before dropping local references to your
callback objects; they won't just quietly go away.

Bug 28987260

Change-Id: Id9da66ed86a46b4fb38127e2ddd7a7d84fd2313a

8 years agoMerge "Don't assert on uris with stack." into nyc-dev
TreeHugger Robot [Tue, 31 May 2016 22:03:27 +0000 (22:03 +0000)]
Merge "Don't assert on uris with stack." into nyc-dev

8 years agoMerge "Turn this wtf into just a log." into nyc-dev
TreeHugger Robot [Tue, 31 May 2016 21:42:45 +0000 (21:42 +0000)]
Merge "Turn this wtf into just a log." into nyc-dev

8 years agoMerge "Better handling of confused finish transition." into nyc-dev
TreeHugger Robot [Tue, 31 May 2016 21:31:28 +0000 (21:31 +0000)]
Merge "Better handling of confused finish transition." into nyc-dev

8 years agoHWUI: do nothing in case of empty layer
sergeyv [Tue, 31 May 2016 21:18:02 +0000 (14:18 -0700)]
HWUI: do nothing in case of empty layer

bug:28862058
Change-Id: I8e09a5c33d0eb00a829be4df706dab49cad48b1e

8 years agoMerge "Remove STOPSHIP" into nyc-dev
Todd Kennedy [Tue, 31 May 2016 21:07:33 +0000 (21:07 +0000)]
Merge "Remove STOPSHIP" into nyc-dev

8 years agoAppError: Change "close" to "close app"
Adrian Roos [Tue, 31 May 2016 21:02:16 +0000 (14:02 -0700)]
AppError: Change "close" to "close app"

Change-Id: Ib7205e103a93c559ef2fc50921248699e9457a62
Fixes: 28813950

8 years agoMerge "Fix crash with intent-less actions" into nyc-dev
Adrian Roos [Tue, 31 May 2016 20:51:49 +0000 (20:51 +0000)]
Merge "Fix crash with intent-less actions" into nyc-dev

8 years agoDon't assert on uris with stack.
Steve McKay [Tue, 31 May 2016 17:54:23 +0000 (10:54 -0700)]
Don't assert on uris with stack.

This is legal arrangement when viewing Archives.
Bug: 28923366

Change-Id: I75a26edc8dac865f536a7c5bcdef1ba00b0883f0
(cherry picked from commit a379fad3b9b9e708e9211f7c026ddd13572fc16e)

8 years agoUpdate override config to include some changes from global config
Andrii Kulian [Sat, 28 May 2016 00:30:16 +0000 (17:30 -0700)]
Update override config to include some changes from global config

In override config for task we set Configuration#screenLayout field based on
initial global config + shrink to fit the area on screen given for this task.
However this field also contains information (like layout direction) that we
do not intend to override and it can be changed in global config separately.
In this case we need to update the override config with changes from global
config.

Bug: 28616488
Change-Id: I22673257621b3f9ae7933b37bd0fb9446c6042ea

8 years agoMerge "Fix multi-window enter animation" into nyc-dev
Jorim Jaggi [Tue, 31 May 2016 20:08:49 +0000 (20:08 +0000)]
Merge "Fix multi-window enter animation" into nyc-dev

8 years agoEnforce background fallback to be non-translucent
Jorim Jaggi [Wed, 25 May 2016 23:41:49 +0000 (16:41 -0700)]
Enforce background fallback to be non-translucent

To avoid screen garbage or wallpaper shining through, the background
we use there for filling the whole needs to

a) Be non-translucent in all cases except if the window is translucent.
b) Don't infer it from the theme as it might be unexpected. Don't define
it in the theme, and use black if it's not defined.

Bug: 28763785
Change-Id: Ifb724b5c5feea3ed70d68e5bd7615fa91185e743

8 years agoBetter handling of confused finish transition.
George Mount [Tue, 31 May 2016 19:58:52 +0000 (12:58 -0700)]
Better handling of confused finish transition.

Bug 28347277

When an activity calls startActivity with makeSceneTransitionAnimation
and then calls finishAfterTransition, it should not do any transition
and just finish.

Change-Id: I00e537638fa6f24c95605f09bbafd843b569bb4d

8 years agoQS: Only put visible tiles in listening state
Jason Monk [Tue, 31 May 2016 19:40:58 +0000 (15:40 -0400)]
QS: Only put visible tiles in listening state

 - Make it so the QSPanel doesn't listen until expansion starts
 - Push listening state through the TileLayout
 - Make PagedTileLayout only listen for visible pages
 - Push setListening onto background thread

Change-Id: Id7c008c9447f9a5dac69469fef72bc580f423b0c
Fixes: 28962155

8 years agoMerge "Fixed a few accessibility issues with notifications and groups" into nyc-dev
Selim Cinek [Tue, 31 May 2016 19:26:14 +0000 (19:26 +0000)]
Merge "Fixed a few accessibility issues with notifications and groups" into nyc-dev