OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Fri, 3 Jun 2016 16:55:01 +0000 (16:55 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Fri, 3 Jun 2016 16:54:39 +0000 (16:54 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
TreeHugger Robot [Fri, 3 Jun 2016 16:53:12 +0000 (16:53 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Fix BigText transitions" into nyc-dev
TreeHugger Robot [Fri, 3 Jun 2016 15:36:10 +0000 (15:36 +0000)]
Merge "Fix BigText transitions" into nyc-dev

8 years agoDon't leak guts.
Julia Reynolds [Thu, 2 Jun 2016 20:04:56 +0000 (16:04 -0400)]
Don't leak guts.

Change-Id: I7a9080ce4d360ed67b884eb9cbd8597496388389
Fixes: 29064258

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 3 Jun 2016 13:04:14 +0000 (06:04 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 3 Jun 2016 12:23:35 +0000 (05:23 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 3 Jun 2016 11:38:00 +0000 (04:38 -0700)]
Import translations. DO NOT MERGE

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

8 years agoOP_ACTIVATE_VPN should not map to DISALLOW_CONFIG_VPN
Tony Mak [Thu, 2 Jun 2016 14:01:16 +0000 (15:01 +0100)]
OP_ACTIVATE_VPN should not map to DISALLOW_CONFIG_VPN

They are two different things.
OP_ACTIVATE_VPN means can we allow a vpn app to establish without user
interaction while DISALLOW_CONFIG_VPN means can the user modify vpn
config.

Testing:
1. Turn on DISALLOW_CONFIG_VPN, user cannot modify vpn config through
   setting
2. Turn on DISALLOW_CONFIG_VPN, Dpm.setAlwaysOnVpn works.
3. Reboot after 2, vpn established automatically.

Bug: 29086229
Change-Id: I24899d6c7f0dd62bf441a44c6ee66fee35973a11

8 years agoMerge "docs: Fixed background optmizations code snippet" into mnc-io-docs am: 0b8eb8c1e8
Eric Schmidt [Fri, 3 Jun 2016 02:59:57 +0000 (02:59 +0000)]
Merge "docs: Fixed background optmizations code snippet" into mnc-io-docs am: 0b8eb8c1e8
am: 76297d719d

* commit '76297d719d5bbe2dcce65c357591c22b1a1d3293':
  docs: Fixed background optmizations code snippet

Change-Id: I66a1141d843dedb78b3abbbfa7820367779087b9

8 years agoMerge "docs: Fixed background optmizations code snippet" into mnc-io-docs
Eric Schmidt [Fri, 3 Jun 2016 02:52:51 +0000 (02:52 +0000)]
Merge "docs: Fixed background optmizations code snippet" into mnc-io-docs
am: 0b8eb8c1e8

* commit '0b8eb8c1e833d3f16aaf6e44f256c23537ae0500':
  docs: Fixed background optmizations code snippet

Change-Id: I5fd02424afc2f99c7bd63f47e3cece88356546a1

8 years agoMerge "docs: Fixed background optmizations code snippet" into mnc-io-docs
Eric Schmidt [Fri, 3 Jun 2016 02:41:45 +0000 (02:41 +0000)]
Merge "docs: Fixed background optmizations code snippet" into mnc-io-docs

8 years agoMerge "Fix task selection logic" into nyc-dev
Andrii Kulian [Fri, 3 Jun 2016 01:37:50 +0000 (01:37 +0000)]
Merge "Fix task selection logic" into nyc-dev

8 years agoMerge "Delay handleEnable() until Bluetooth state is OFF" into nyc-dev
Pankaj Kanwar [Fri, 3 Jun 2016 00:55:48 +0000 (00:55 +0000)]
Merge "Delay handleEnable() until Bluetooth state is OFF" into nyc-dev

8 years agoMerge "Add carrier config variables for overriding carrier name from carrierconf...
Sanket Padawe [Thu, 2 Jun 2016 23:11:21 +0000 (23:11 +0000)]
Merge "Add carrier config variables for overriding carrier name from carrierconf." into nyc-dev

8 years agoMerge "Properly set default voice interactor" into nyc-dev
Svetoslav Ganov [Thu, 2 Jun 2016 22:36:04 +0000 (22:36 +0000)]
Merge "Properly set default voice interactor" into nyc-dev

8 years agoMerge "Do not rotate PDFPrinter pages." into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 22:30:22 +0000 (22:30 +0000)]
Merge "Do not rotate PDFPrinter pages." into nyc-dev

8 years agoProperly set default voice interactor
Svetoslav Ganov [Thu, 2 Jun 2016 22:25:12 +0000 (15:25 -0700)]
Properly set default voice interactor

We need to figure out the default voice interactor to give
it default permissions. This happens before the user has
been unlocked and if the voice interactor is not direct
boot aware we fail to find it, hence no permissions are
granted. Now we query the package manager for both direct
boot aware and unaware components. This is fine as we
don't interact with the assistant until the user is
unlocked.

bug:28963642

Change-Id: Ide5471fa1798e868c6e3a4b5e87570a5556e2d3f

8 years agoMerge "Fix unminimizing dock stack for AppTask.moveToFront" into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 22:08:14 +0000 (22:08 +0000)]
Merge "Fix unminimizing dock stack for AppTask.moveToFront" into nyc-dev

8 years agodocs: work minisite post-launch fixes am: 9fec73a47c
Billy Lamberta [Thu, 2 Jun 2016 22:04:13 +0000 (22:04 +0000)]
docs: work minisite post-launch fixes am: 9fec73a47c
am: 84903c24ed

* commit '84903c24ed74c75a2217648a96931cc3045143ea':
  docs: work minisite post-launch fixes

Change-Id: I0477d9cb98a79a5d9b218e33877178562e53cbd5

8 years agodocs: work minisite post-launch fixes
Billy Lamberta [Thu, 2 Jun 2016 21:59:29 +0000 (21:59 +0000)]
docs: work minisite post-launch fixes
am: 9fec73a47c

* commit '9fec73a47c158df0a184a1f2a0301b6394cfec40':
  docs: work minisite post-launch fixes

Change-Id: I19be178cec83668e19e768af08eae0ae5fd5deda

8 years agoDelay handleEnable() until Bluetooth state is OFF
Pavlin Radoslavov [Thu, 2 Jun 2016 05:25:18 +0000 (22:25 -0700)]
Delay handleEnable() until Bluetooth state is OFF

During shutdown of the Bluetooth stack, if a request to
enable Bluetooth is received, the request is processed immediately.
As a result, we don't let the Bluetooth service to shutdown cleanly,
and the Bluetooth process with the native backend doesn't go away.
This creates various issues in the native backend stack.

Now, after an enable request is received, if necessary we delay
acting on it, until the Bluetooth state is OFF.

Bug: 17723234
Change-Id: I55db4bbd4f45227aa49eae996dcc328f76557a9b

8 years agoFix task selection logic
Andrii Kulian [Thu, 2 Jun 2016 20:18:01 +0000 (13:18 -0700)]
Fix task selection logic

When task was selected for activity launched with flag FLAG_ACTIVITY_NEW_TASK
first matching task was omitted if there was another match lower in stack.
This lead to task shuffling in same stack.

Bug: 28848683
Change-Id: I94e55693fc7ed926fc151ba988d257bd2417dd45

8 years agoMerge "Move Xerox recommendation plugin to service." into nyc-dev
Philip P. Moltmann [Thu, 2 Jun 2016 21:18:06 +0000 (21:18 +0000)]
Merge "Move Xerox recommendation plugin to service." into nyc-dev

8 years agoMerge "Fix memory leak via ZenModeController callbacks." into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 21:05:55 +0000 (21:05 +0000)]
Merge "Fix memory leak via ZenModeController callbacks." into nyc-dev

8 years agoMerge "Fix scroll amount calculation in ViewRootImpl" into nyc-dev
Chong Zhang [Thu, 2 Jun 2016 20:58:05 +0000 (20:58 +0000)]
Merge "Fix scroll amount calculation in ViewRootImpl" into nyc-dev

8 years agoDo not rotate PDFPrinter pages.
Philip P. Moltmann [Tue, 31 May 2016 23:29:25 +0000 (16:29 -0700)]
Do not rotate PDFPrinter pages.

- applyPrintAttributes is only used by PDFPrinter

Fixes: 29057330
Change-Id: I883cc64039f4ca2c93810e99d758f2dceec67a8b

8 years agoMerge "Don't back up/restore the "automatically restore app data" setting" into nyc-dev
Chris Tate [Thu, 2 Jun 2016 20:45:14 +0000 (20:45 +0000)]
Merge "Don't back up/restore the "automatically restore app data" setting" into nyc-dev

8 years agoFix scroll amount calculation in ViewRootImpl
Chong Zhang [Thu, 2 Jun 2016 19:56:54 +0000 (12:56 -0700)]
Fix scroll amount calculation in ViewRootImpl

When calculating scroll amount, we should check whehter focus
is visible using before-scrolling position.

It's possible that the view is already scrolled, then visible
insets changes (eg. IME went away). Previous scroll position
still makes the focus visible, but it will leave the focus
in a bad position when it should be scrolled back.

bug: 29025892
Change-Id: I091f16bebc4c1e5ba831616c51ab2ac75d4c4b3c

8 years agoFix BigText transitions
Adrian Roos [Thu, 2 Jun 2016 20:15:09 +0000 (13:15 -0700)]
Fix BigText transitions

Fixes a bug where BigText would never transition
between the expanded and collapsed version because
padding was wrongly taken into account when checking
the view height.

Change-Id: I4df242b4133dacdff77b78cc2d4ff3954b75b8a7
Fixes: 29042222

8 years agodocs: work minisite post-launch fixes
Billy Lamberta [Thu, 19 May 2016 21:27:49 +0000 (14:27 -0700)]
docs: work minisite post-launch fixes

* Localization for table of contents.

* Replace occurrences of 'app restrictions' with the preferred
term 'managed configurations' (see go/afw-words). Update resource
card titles and add page redirects.

* In guide, update language for SSO with Chrome Custom Tabs.
(Cherry-picked from 1056063.)

* Add resource card for 'Your Apps at Work' video.

bug: 2837825227744376
Change-Id: I8bc2e87d0486159bdd6680600b783af7334c3a58

8 years agoMerge "Also update setMinLines" into nyc-dev
Jorim Jaggi [Thu, 2 Jun 2016 19:34:56 +0000 (19:34 +0000)]
Merge "Also update setMinLines" into nyc-dev

8 years agoFix memory leak via ZenModeController callbacks.
Julia Reynolds [Thu, 2 Jun 2016 19:29:16 +0000 (15:29 -0400)]
Fix memory leak via ZenModeController callbacks.

Bug: 29064258
Change-Id: Ie817ec50206ce23561775fc0ac178754b946f030

8 years agoMerge "Fix leak on density change." into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 19:24:15 +0000 (19:24 +0000)]
Merge "Fix leak on density change." into nyc-dev

8 years agoMerge "Hide alarm condition if there's no alarm." into nyc-dev
Julia Reynolds [Thu, 2 Jun 2016 19:22:35 +0000 (19:22 +0000)]
Merge "Hide alarm condition if there's no alarm." into nyc-dev

8 years agoFix unminimizing dock stack for AppTask.moveToFront
Jorim Jaggi [Thu, 2 Jun 2016 01:57:54 +0000 (18:57 -0700)]
Fix unminimizing dock stack for AppTask.moveToFront

Some apps call AppTask.moveToFront instead of startActivity from
their trampoline activity. We need to handle this case also and
need to do all the post processing after starting an activity
so the docked stack gets unminimized.

Change-Id: I8400995bf1d1a4a4467d01fd55fca7e5800b4645
Fixes: 28722017

8 years agoMerge "Work on issue #29042642: Watchdog going off" into nyc-dev
Dianne Hackborn [Thu, 2 Jun 2016 18:31:15 +0000 (18:31 +0000)]
Merge "Work on issue #29042642: Watchdog going off" into nyc-dev

8 years agoHide alarm condition if there's no alarm.
Julia Reynolds [Thu, 2 Jun 2016 18:04:31 +0000 (14:04 -0400)]
Hide alarm condition if there's no alarm.

Change-Id: Iba8c9eb2bd3033683c25c5cf145fc52f9ac0f0d2
Fixes: 27698976

8 years agoMerge "Do not update packages in encrypted state" into nyc-dev
David Brazdil [Thu, 2 Jun 2016 16:16:25 +0000 (16:16 +0000)]
Merge "Do not update packages in encrypted state" into nyc-dev

8 years agoMerge "Parent notifications should always be normal notification color" into nyc-dev
Mady Mellor [Thu, 2 Jun 2016 16:09:15 +0000 (16:09 +0000)]
Merge "Parent notifications should always be normal notification color" into nyc-dev

8 years agoMerge "Only reset global restriction owner on DO->PO for the right user" into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 15:59:23 +0000 (15:59 +0000)]
Merge "Only reset global restriction owner on DO->PO for the right user" into nyc-dev

8 years agoMerge "Fixed that volume buttons were not working on the pin input" into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 15:41:19 +0000 (15:41 +0000)]
Merge "Fixed that volume buttons were not working on the pin input" into nyc-dev

8 years agoMerge "Fixed a crash with notification groups" into nyc-dev
TreeHugger Robot [Thu, 2 Jun 2016 15:41:08 +0000 (15:41 +0000)]
Merge "Fixed a crash with notification groups" into nyc-dev

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 agoFix leak on density change.
Julia Reynolds [Thu, 2 Jun 2016 14:57:02 +0000 (10:57 -0400)]
Fix leak on density change.

Bug: 29064258
Change-Id: I9d579cc17fe4554a6a4aa57c409cef72bdee74bd

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 update packages in encrypted state
David Brazdil [Thu, 2 Jun 2016 14:31:30 +0000 (15:31 +0100)]
Do not update packages in encrypted state

SystemServer used to run PMS.updatePackagesIfNeeded even when the
device is booting in encrypted state only with core packages
available. This is redundant because the packages are prebuilts
(OAT files always up to date) and the data partition is not mounted
yet, so we are only wasting time opening the OAT files and testing
checksums. Additionally, the attempt to update these packages gets
reported to TRON stats as time spent in the Optimizing Apps dialog
and skews the results.

This patch does not call updatePackagesIfNeeded when in the device
is in encrypted state.

Bug: 28833829
Change-Id: I8641d07a8840948ffe261dfb8f99f70de7341972

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 agoAlso update setMinLines
Jorim Jaggi [Thu, 2 Jun 2016 01:12:46 +0000 (18:12 -0700)]
Also update setMinLines

If we switch to single-line, the min lines property gets overriden
so we need to manually call setMinLines to reset the state to the
initial state.

Change-Id: I1b47a093981045c2c0d176c831e37f8e9431ae1c
Fixes: 29056442

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 agoWork on issue #29042642: Watchdog going off
Dianne Hackborn [Thu, 2 Jun 2016 01:19:24 +0000 (18:19 -0700)]
Work on issue #29042642: Watchdog going off

Have FastPrintWriter note all cases where an exception is
thrown, and stop trying to push more data into the output
stream when this happens.

Change-Id: I51a1eeb26578f02b2a6f45ef7bc2513dfde702a2

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 agoFixed that volume buttons were not working on the pin input
Selim Cinek [Wed, 1 Jun 2016 19:35:56 +0000 (12:35 -0700)]
Fixed that volume buttons were not working on the pin input

Because we were intercepting all buttons.

Change-Id: Id2155f23d55cb5282c87409b9c6b8441540ad894
Fixes: 28786740

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 agoAdd carrier config variables for overriding carrier name from carrierconf.
Sanket Padawe [Wed, 1 Jun 2016 19:17:23 +0000 (12:17 -0700)]
Add carrier config variables for overriding carrier name from carrierconf.

Bug: 27718118
Change-Id: Ie62dd3dc52f0977a2b05ae8f0ba4898c80174658

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 agoFixed a crash with notification groups
Selim Cinek [Wed, 1 Jun 2016 19:01:17 +0000 (12:01 -0700)]
Fixed a crash with notification groups

When updating a notification we were not checking if it is the summary
with children, but about the existence of the childrencontainer, which
can change and is never removed. This is now done correctly.

Change-Id: Ie3838613f414d7fcb158dc92c24e8939cfb7c2ea
Fixes: 29055879

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 agodocs: Fixed background optmizations code snippet
Eric Schmidt [Tue, 31 May 2016 19:40:32 +0000 (12:40 -0700)]
docs: Fixed background optmizations code snippet

Bug: 28341003
Change-Id: I42b26f52ac6f17b684a8a9673b5acd9d9e647a7f

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