OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Only restore saved surfaces in the last visible rotation." into nyc-mr1-dev
Rob Carr [Wed, 27 Jul 2016 20:56:21 +0000 (20:56 +0000)]
Merge "Only restore saved surfaces in the last visible rotation." into nyc-mr1-dev

8 years agoMerge "Prevent shortcut access when user is locked" into nyc-mr1-dev
TreeHugger Robot [Wed, 27 Jul 2016 20:55:15 +0000 (20:55 +0000)]
Merge "Prevent shortcut access when user is locked" into nyc-mr1-dev

8 years agoMerge "framework: SystemUI: add tracing to Keyguard" into nyc-mr1-dev
Nick Desaulniers [Wed, 27 Jul 2016 20:26:56 +0000 (20:26 +0000)]
Merge "framework: SystemUI: add tracing to Keyguard" into nyc-mr1-dev

8 years agodocs: Migrating Scoped Dir Access preview docs into DAC
Daniel Yu [Wed, 27 Jul 2016 20:20:04 +0000 (20:20 +0000)]
docs: Migrating Scoped Dir Access preview docs into DAC
am: 8a481eaf20

Change-Id: I96791216ffd27ca33d817f6f25e19cb9bde18549

8 years agodocs: Migrating Direct Boot preview docs into DAC
Daniel Yu [Wed, 27 Jul 2016 20:19:59 +0000 (20:19 +0000)]
docs: Migrating Direct Boot preview docs into DAC
am: bb0f35306e

Change-Id: Ifa70f6f364aae3aa86c4fbe11df7a9c03122d38f

8 years agodocs: Migrating TV Recording APIs preview docs into DAC
Daniel Yu [Wed, 27 Jul 2016 20:12:18 +0000 (20:12 +0000)]
docs: Migrating TV Recording APIs preview docs into DAC
am: 4900647321

Change-Id: I33c5847641de5fd628c584e2b5ef0fd6a03643f0

8 years agoMerge \"docs: Migrating PIP preview docs into regular DAC docs\" into nyc-dev
Daniel Yu [Wed, 27 Jul 2016 20:12:14 +0000 (20:12 +0000)]
Merge \"docs: Migrating PIP preview docs into regular DAC docs\" into nyc-dev
am: 020726fac7

Change-Id: If7eae1318309f76bdb4f71b63430ff6a7562269e

8 years agodocs: Migrating PIP preview docs into regular DAC docs
Daniel Yu [Wed, 27 Jul 2016 20:12:10 +0000 (20:12 +0000)]
docs: Migrating PIP preview docs into regular DAC docs
am: e0fa75cfa7

Change-Id: Ic8b9bbc6f5755b6f80f7f70d5a99b23f1a334073

8 years agodocs: Migrating Scoped Dir Access preview docs into DAC
Daniel Yu [Fri, 22 Jul 2016 22:50:58 +0000 (15:50 -0700)]
docs: Migrating Scoped Dir Access preview docs into DAC

For Android N release, migrating and updating Scoped Directory Access
docs into regular DAC docs. Updated TOC and added redirect.
Removed preview/features doc. Updated and moved images.

Bug: 30257320
Change-Id: I3440fe1b74947cbfbd1ada6f5d6bee5e49847927

8 years agodocs: Migrating Direct Boot preview docs into DAC
Daniel Yu [Fri, 22 Jul 2016 00:43:35 +0000 (17:43 -0700)]
docs: Migrating Direct Boot preview docs into DAC

For Android N release, migrating and updating Direct Boot
docs into regular DAC docs. Updated TOC and added redirect.
Removed preview/features doc.

Bug: 30256895
Change-Id: I5c6d457dc69c911199f86f0e0ed93ec7d6244779

8 years agoMerge \\"Docs: Used NotificationCompat.MediaStyle\\" into nyc-docs am: b2baf25d34
Hemal Patel [Wed, 27 Jul 2016 19:52:25 +0000 (19:52 +0000)]
Merge \\"Docs: Used NotificationCompat.MediaStyle\\" into nyc-docs am: b2baf25d34
am: b36153a8a1

Change-Id: I4cff611f1a7f10e18b94a27df5164862bb3c60ae

8 years agoDocs: Used NotificationCompat.MediaStyle am: d3c609cbc1
Hemal Patel [Wed, 27 Jul 2016 19:52:23 +0000 (19:52 +0000)]
Docs: Used NotificationCompat.MediaStyle am: d3c609cbc1
am: bae260d909

Change-Id: Icff03d57f9efe571671f77bc2ba3f47a1ebd2e75

8 years agodocs: Migrating TV Recording APIs preview docs into DAC
Daniel Yu [Thu, 21 Jul 2016 20:45:31 +0000 (13:45 -0700)]
docs: Migrating TV Recording APIs preview docs into DAC

For Android N release, migrating and updating TV Recording
API preview docs into regular DAC TV (TIF) docs. Updating
training TOC and adding redirect. Removing preview/features doc.

Bug: 30224466
Change-Id: Ia92f27467ccaa1d36dc69c5bd3c784509f267791

8 years agoMerge "docs: Migrating PIP preview docs into regular DAC docs" into nyc-dev
Dan Yu [Wed, 27 Jul 2016 19:29:40 +0000 (19:29 +0000)]
Merge "docs: Migrating PIP preview docs into regular DAC docs" into nyc-dev

8 years agoMerge \"Docs: Used NotificationCompat.MediaStyle\" into nyc-docs
Hemal Patel [Wed, 27 Jul 2016 19:26:10 +0000 (19:26 +0000)]
Merge \"Docs: Used NotificationCompat.MediaStyle\" into nyc-docs
am: b2baf25d34

Change-Id: Iff64c50170add9331ad840b3a2c60170947922d6

8 years agoDocs: Used NotificationCompat.MediaStyle
Hemal Patel [Wed, 27 Jul 2016 19:26:05 +0000 (19:26 +0000)]
Docs: Used NotificationCompat.MediaStyle
am: d3c609cbc1

Change-Id: Ia297b36f995caa5b552722d475461ec1be321136

8 years agoMerge "Docs: Used NotificationCompat.MediaStyle" into nyc-docs
Hemal Patel [Wed, 27 Jul 2016 19:13:52 +0000 (19:13 +0000)]
Merge "Docs: Used NotificationCompat.MediaStyle" into nyc-docs

8 years agoPrevent shortcut access when user is locked
Makoto Onuki [Tue, 26 Jul 2016 22:50:50 +0000 (15:50 -0700)]
Prevent shortcut access when user is locked

Also add some test utility methods that'll be used by CTS.

Bug 30406401

Change-Id: I9396acebbdb3cbe64f6e85877ee62a2131cd6e61

8 years agoMerge "Add short string methods for capabilities and properties." into nyc-mr1-dev
Santos Cordon [Wed, 27 Jul 2016 18:40:13 +0000 (18:40 +0000)]
Merge "Add short string methods for capabilities and properties." into nyc-mr1-dev

8 years agoMerge "ViewRootImpl: Initialize sysui visibility" into nyc-mr1-dev
Adrian Roos [Wed, 27 Jul 2016 18:39:15 +0000 (18:39 +0000)]
Merge "ViewRootImpl: Initialize sysui visibility" into nyc-mr1-dev

8 years agoOnly restore saved surfaces in the last visible rotation.
Robert Carr [Tue, 26 Jul 2016 17:39:45 +0000 (10:39 -0700)]
Only restore saved surfaces in the last visible rotation.

Sometimes we see a sequence like this when transitioning
between apps causes rotation changes.

1. New app becomes visible, causing the orientation to change
2. Old app gets marked as invisible, at this point its window
   are still visible from client, so surface is marked as eligible
   to be saved.
3. Old app calls relayout to invisible, we save surface.

Now if we restore the Surface it will be in the wrong orientation. It
never had a visible layout in the new one, it was just covered up
by the screenshot. To address this we track the rotation a window was
last visibily laid out in. If it doesn't match our current
rotation we can't use the saved surface.

Bug: 30171992
Change-Id: If814131810b6d01c5112afd145072a13a30b0401

8 years agodocs: Migrating PIP preview docs into regular DAC docs
Daniel Yu [Tue, 19 Jul 2016 20:45:38 +0000 (13:45 -0700)]
docs: Migrating PIP preview docs into regular DAC docs

For Android N release, migrating and updating PIP preview docs
into regular DAC TV docs. Updating TOCs and redirects as well.

Bug: 26487936
Change-Id: I00a57cc0bfff6929cdba56ce00a6a5e9a292e345

8 years agoMerge "Add support for carrier "associated" apps." into nyc-mr1-dev
Jeff Davidson [Wed, 27 Jul 2016 17:57:38 +0000 (17:57 +0000)]
Merge "Add support for carrier "associated" apps." into nyc-mr1-dev

8 years agoMerge "Revert "Handle USB power role 'sink'"" into nyc-mr1-dev
TreeHugger Robot [Wed, 27 Jul 2016 17:51:51 +0000 (17:51 +0000)]
Merge "Revert "Handle USB power role 'sink'"" into nyc-mr1-dev

8 years agoframework: SystemUI: add tracing to Keyguard
Nick Desaulniers [Mon, 25 Jul 2016 22:05:33 +0000 (15:05 -0700)]
framework: SystemUI: add tracing to Keyguard

Helps trace the phone unlock path.

Bug: 29693568
Bug: 30279403
Change-Id: I290864f525e3d08f1efc6b9fc603172a5d139ea0

8 years agoMerge "Reject fully transparent paint-fill ops at record time" into nyc-mr1-dev
Chris Craik [Wed, 27 Jul 2016 16:37:36 +0000 (16:37 +0000)]
Merge "Reject fully transparent paint-fill ops at record time" into nyc-mr1-dev

8 years agoRevert "Handle USB power role 'sink'"
Philip P. Moltmann [Wed, 27 Jul 2016 16:32:59 +0000 (16:32 +0000)]
Revert "Handle USB power role 'sink'"

This patch treats AC wall chargers like phones supplying power. We only want to show the notification when connected to another phone, not to a AC wall charger.

Bug: 30418683
This reverts commit 01355161536787a55190ff3d2595fbf6c8056fe3.

Change-Id: I304c3f78916896ddb12129b11a0e691b3ef77819

8 years agoMerge \"Docs: Clarified certain restrictions to whitelisted apps\" into nyc-dev
Adarsh Fernando [Wed, 27 Jul 2016 16:01:58 +0000 (16:01 +0000)]
Merge \"Docs: Clarified certain restrictions to whitelisted apps\" into nyc-dev
am: ec694b4e27

Change-Id: Ice70fef4a0e91c043e404dc35924e3016699429b

8 years agoDocs: Clarified certain restrictions to whitelisted apps
Adarsh Fernando [Wed, 27 Jul 2016 16:01:55 +0000 (16:01 +0000)]
Docs: Clarified certain restrictions to whitelisted apps
am: 33aae3167d

Change-Id: I3e68b293937ad5b624cc1a67bfd940399d11b12c

8 years agoMerge "Docs: Clarified certain restrictions to whitelisted apps" into nyc-dev
Adarsh Fernando [Wed, 27 Jul 2016 15:49:50 +0000 (15:49 +0000)]
Merge "Docs: Clarified certain restrictions to whitelisted apps" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 27 Jul 2016 15:05:29 +0000 (15:05 +0000)]
Import translations. DO NOT MERGE
am: cdd4f84e06  -s ours

Change-Id: I4270dc2513e473cef596058338c103b6e5ecaf1b

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 27 Jul 2016 13:34:57 +0000 (06:34 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Actually compare supported color modes." into nyc-mr1-dev
Michael Wright [Wed, 27 Jul 2016 13:14:03 +0000 (13:14 +0000)]
Merge "Actually compare supported color modes." into nyc-mr1-dev

8 years agoMerge "Pre-grant calendar permission to default email app" into nyc-mr1-dev
Svetoslav Ganov [Wed, 27 Jul 2016 01:17:41 +0000 (01:17 +0000)]
Merge "Pre-grant calendar permission to default email app" into nyc-mr1-dev

8 years agodocs: updates to Buildilng Your First App doc am: ae47d9d4fe
Mark Lu [Wed, 27 Jul 2016 01:09:27 +0000 (01:09 +0000)]
docs: updates to Buildilng Your First App doc am: ae47d9d4fe
am: 3977f8351a

Change-Id: I500638ffdf29106ddd65bff3425536ce1cdb0c50

8 years agoAdd short string methods for capabilities and properties.
Santos Cordon [Tue, 26 Jul 2016 23:08:53 +0000 (16:08 -0700)]
Add short string methods for capabilities and properties.

Bug: 30411195
Change-Id: I3aa81da23b75986fab8570b8b36e56a36a660045

8 years agoPre-grant calendar permission to default email app
Svetoslav Ganov [Tue, 26 Jul 2016 01:27:41 +0000 (18:27 -0700)]
Pre-grant calendar permission to default email app

bug:30277932

Change-Id: I3c80e01ce720a7e7bf54cac82dc0ca0da152998d

8 years agodocs: updates to Buildilng Your First App doc
Mark Lu [Wed, 27 Jul 2016 00:40:03 +0000 (00:40 +0000)]
docs: updates to Buildilng Your First App doc
am: ae47d9d4fe

Change-Id: I7b3665dc0f304dcae06939a56c2423d9b269420c

8 years agodocs: updates to Buildilng Your First App doc
Mark Lu [Fri, 15 Jul 2016 20:36:55 +0000 (13:36 -0700)]
docs: updates to Buildilng Your First App doc

This commit includes the following updates:
- replaces Basic activity with Empty activity
- uses default values wherever possible
- removes instructions for floating button
- removes SDK instructions. Users must use Android Studio
- updates the SDK version to API 15
- combines some instructions that were too text heavy

Bug: 29766869
Bug: 29768686
Bug: 19154557

Change-Id: Id819cb2dde74b68b5145dfefe7a8502892bb377a
(cherry picked from commit 08d1bff71f19e5567b8f545314fd84701e9b2cec)

8 years agoMerge "Check for target SDK version for out-of-order fragment creation." into nyc...
Adam Powell [Tue, 26 Jul 2016 23:24:57 +0000 (23:24 +0000)]
Merge "Check for target SDK version for out-of-order fragment creation." into nyc-mr1-dev

8 years agoReject fully transparent paint-fill ops at record time
Chris Craik [Tue, 26 Jul 2016 23:22:50 +0000 (16:22 -0700)]
Reject fully transparent paint-fill ops at record time

bug:30342762

Avoids unnecessary work for each transparent operation.

Change-Id: I80b1eeca34ae32249433fde55e9fe93d02c411db

8 years agoDocs: Used NotificationCompat.MediaStyle
Hemal Patel [Fri, 22 Jul 2016 22:50:48 +0000 (15:50 -0700)]
Docs: Used NotificationCompat.MediaStyle

In the Controlling Media section, updated the overview and sample code to
reference NotificationCompat.MediaStyle. Removed the note about the
pre-requisite to have Android 5.0 and higher.

Bug: 22505224
Change-Id: Id9a647ca8eec7f1b763227ee4fd1f18dee4bcb6f

8 years agoMerge "Fix wallpaper restore from pre-N devices" into nyc-mr1-dev
Chris Tate [Tue, 26 Jul 2016 23:05:28 +0000 (23:05 +0000)]
Merge "Fix wallpaper restore from pre-N devices" into nyc-mr1-dev

8 years agoMerge "Persist configuration for the calling or current user" into nyc-mr1-dev
Amith Yamasani [Tue, 26 Jul 2016 22:48:13 +0000 (22:48 +0000)]
Merge "Persist configuration for the calling or current user" into nyc-mr1-dev

8 years agoMerge "Never show transient navigation bar when empty" into nyc-mr1-dev
Adrian Roos [Tue, 26 Jul 2016 22:41:54 +0000 (22:41 +0000)]
Merge "Never show transient navigation bar when empty" into nyc-mr1-dev

8 years agoMerge "Change AudioRecordingConfiguration constructor parameter order" into nyc-mr1-dev
Jean-Michel Trivi [Tue, 26 Jul 2016 22:24:43 +0000 (22:24 +0000)]
Merge "Change AudioRecordingConfiguration constructor parameter order" into nyc-mr1-dev

8 years agoMerge "DO NOT MERGE: Change the order of 2 statements to remove race." into nyc-mr1-dev
TreeHugger Robot [Tue, 26 Jul 2016 22:01:43 +0000 (22:01 +0000)]
Merge "DO NOT MERGE: Change the order of 2 statements to remove race." into nyc-mr1-dev

8 years agoCheck for target SDK version for out-of-order fragment creation.
George Mount [Fri, 22 Jul 2016 22:25:27 +0000 (15:25 -0700)]
Check for target SDK version for out-of-order fragment creation.

Bug 30230667

Ensure that pre-N applications initialize in the proper order,
but allow N and above applications to be created prior to
asking for a Transition.

Change-Id: I859f22a7c5518e4b496cbd7ee58ef1d3206a5c86
(cherry picked from commit 78d38fc8390b9d648f88687efb333e054146865d)

8 years agoAdd support for carrier "associated" apps.
Jeff Davidson [Thu, 21 Jul 2016 19:35:10 +0000 (12:35 -0700)]
Add support for carrier "associated" apps.

The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8

8 years agoMerge "Polish up PRE_BOOT notification." into nyc-mr1-dev
Jeff Sharkey [Tue, 26 Jul 2016 21:52:04 +0000 (21:52 +0000)]
Merge "Polish up PRE_BOOT notification." into nyc-mr1-dev

8 years agoViewRootImpl: Initialize sysui visibility
Adrian Roos [Tue, 26 Jul 2016 21:27:34 +0000 (14:27 -0700)]
ViewRootImpl: Initialize sysui visibility

Fixes a bug where the sysui visibility flags
were not dispatched when they changed if the
visibility changes the first time to a zero
value.

Change-Id: I4d6c990ca493b144f24c75e95b4ff18c4c0a029c
Fixes: 30259249

8 years agoChange AudioRecordingConfiguration constructor parameter order
Jean-Michel Trivi [Tue, 26 Jul 2016 18:19:18 +0000 (11:19 -0700)]
Change AudioRecordingConfiguration constructor parameter order

Switch the device and client AudioFormat parameters in the
  AudioRecordingConfiguration constructor, so it's the same
  order as the rest of the code involved in sending a callback
  when the recording configuration changes.

Bug 30282058

Change-Id: Iea417f02dcb644e3d4dacbc0e44ea4b2eac28840

8 years agoMerge "Add titles to PreferenceFragments and PreferenceScreens for watches." into...
Michael Kwan [Tue, 26 Jul 2016 20:58:46 +0000 (20:58 +0000)]
Merge "Add titles to PreferenceFragments and PreferenceScreens for watches." into nyc-mr1-dev

8 years agoMerge "Fix Switch in SwitchPreference on watch" into nyc-mr1-dev
Fei Wu [Tue, 26 Jul 2016 20:54:28 +0000 (20:54 +0000)]
Merge "Fix Switch in SwitchPreference on watch" into nyc-mr1-dev

8 years agoMerge "Update ShortcutManager javadoc" into nyc-mr1-dev
Makoto Onuki [Tue, 26 Jul 2016 20:40:03 +0000 (20:40 +0000)]
Merge "Update ShortcutManager javadoc" into nyc-mr1-dev

8 years agoMerge "Ignore stopped/deleted users when filling cache." into nyc-mr1-dev
Jeff Sharkey [Tue, 26 Jul 2016 19:36:37 +0000 (19:36 +0000)]
Merge "Ignore stopped/deleted users when filling cache." into nyc-mr1-dev

8 years agoDocs: Clarified certain restrictions to whitelisted apps
Adarsh Fernando [Tue, 26 Jul 2016 19:27:37 +0000 (12:27 -0700)]
Docs: Clarified certain restrictions to whitelisted apps

Bug:30133512
Change-Id: I4494f85090b384831bc2534cbc813f28a62a29cf

8 years agodocs: Migrated \"Network Security Configuration\" page on DAC (N OTA).
Kevin Hufnagle [Tue, 26 Jul 2016 19:04:18 +0000 (19:04 +0000)]
docs: Migrated \"Network Security Configuration\" page on DAC (N OTA).
am: 78747a1164

Change-Id: I095a1e37838e325f7b10146cde3efb271a315ed2

8 years agodocs: Migrated "Network Security Configuration" page on DAC (N OTA).
Kevin Hufnagle [Thu, 21 Jul 2016 20:30:49 +0000 (13:30 -0700)]
docs: Migrated "Network Security Configuration" page on DAC (N OTA).

This page now resides with other pages discussing Android security
topics.

Bug: 27502850
Change-Id: I8ce3412198527a947e47e421b94c3d15cce6ec48

8 years agoMerge \"docs: Migrated \"key attestation\" page to a new location (for N OTA).\"...
Kevin Hufnagle [Tue, 26 Jul 2016 18:45:45 +0000 (18:45 +0000)]
Merge \"docs: Migrated \"key attestation\" page to a new location (for N OTA).\" into nyc-dev
am: 6e4d765f95

Change-Id: I58fdbbe4efa20d1d8f8ca8be47b715edfe07f62c

8 years agodocs: Migrated \"key attestation\" page to a new location (for N OTA).
Kevin Hufnagle [Tue, 26 Jul 2016 18:45:42 +0000 (18:45 +0000)]
docs: Migrated \"key attestation\" page to a new location (for N OTA).
am: c946f9d103

Change-Id: I82716c1bfd4748d61ae01909bbed0156fa43faa9

8 years agoMerge "Fix double status bar icons" into nyc-mr1-dev
Jason Monk [Tue, 26 Jul 2016 18:39:13 +0000 (18:39 +0000)]
Merge "Fix double status bar icons" into nyc-mr1-dev

8 years agoMerge "docs: Migrated "key attestation" page to a new location (for N OTA)." into...
Kevin Hufnagle [Tue, 26 Jul 2016 18:34:23 +0000 (18:34 +0000)]
Merge "docs: Migrated "key attestation" page to a new location (for N OTA)." into nyc-dev

8 years agoAdd titles to PreferenceFragments and PreferenceScreens for watches.
Michael Kwan [Sat, 23 Jul 2016 01:37:31 +0000 (18:37 -0700)]
Add titles to PreferenceFragments and PreferenceScreens for watches.

Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef

8 years agoMerge "Use correct bounds for scroll bar rendering." into nyc-mr1-dev
Agnieszka Madurska [Tue, 26 Jul 2016 17:47:29 +0000 (17:47 +0000)]
Merge "Use correct bounds for scroll bar rendering." into nyc-mr1-dev

8 years agoActually compare supported color modes.
Michael Wright [Tue, 26 Jul 2016 17:18:53 +0000 (18:18 +0100)]
Actually compare supported color modes.

Also, provide an equals implemenation for HdrCapabilities.

Bug: 30311415
Bug: 30367543
Change-Id: Ib8b9c9283519ae9baa48ecfecb8035848a9b29f0

8 years agoFix double status bar icons
Jason Monk [Tue, 26 Jul 2016 17:04:50 +0000 (13:04 -0400)]
Fix double status bar icons

Don't allow the status bar icon slot list to be changed because
it confuses the relationship between StatusBarIconList and
StatusBarIconController.  Set it in the constructor to enforce
this.

Change-Id: Ieeea0a9efad88179d1cccc0e5702899333de2e72
Fixes: 28524184

8 years agoMerge "add pii support for Rlog" into nyc-mr1-dev
Chen Xu [Tue, 26 Jul 2016 17:00:17 +0000 (17:00 +0000)]
Merge "add pii support for Rlog" into nyc-mr1-dev

8 years agoUse correct bounds for scroll bar rendering.
Aga Madurska [Tue, 26 Jul 2016 14:40:31 +0000 (15:40 +0100)]
Use correct bounds for scroll bar rendering.

Bug:30001373
Change-Id: I20c77a2d97096bda451c3a871fd6be7ad699b047

8 years agoIgnore stopped/deleted users when filling cache.
Jeff Sharkey [Tue, 26 Jul 2016 15:47:04 +0000 (09:47 -0600)]
Ignore stopped/deleted users when filling cache.

Leave user checks intact on all other code paths, but quietly ignore
any trouble when filling cache after a user is started.

Bug: 30366396
Change-Id: I49458adb8fd6ddc203d6159513f4ecc50738d3e8

8 years agoMerge "Sanity check ICMP6 router advertisement packets" into nyc-mr1-dev
Paul Jensen [Tue, 26 Jul 2016 14:29:59 +0000 (14:29 +0000)]
Merge "Sanity check ICMP6 router advertisement packets" into nyc-mr1-dev

8 years agoMerge "Don't let sign-in to network app appear in recents when it finishes" into...
Paul Jensen [Tue, 26 Jul 2016 14:26:29 +0000 (14:26 +0000)]
Merge "Don't let sign-in to network app appear in recents when it finishes" into nyc-mr1-dev

8 years agoMerge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into nyc-mr1-dev
Hugo Benichi [Tue, 26 Jul 2016 02:46:30 +0000 (02:46 +0000)]
Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into nyc-mr1-dev

8 years agoFix wallpaper restore from pre-N devices
Christopher Tate [Mon, 25 Jul 2016 21:50:08 +0000 (14:50 -0700)]
Fix wallpaper restore from pre-N devices

The previous path "worked" but left the wallpaper bookkeeping with
incorrect SELinux labeling, which led to cascade failures later on
when apps tried to set new system wallpaper imagery or read the
current image for the picker UI.

We now (a) explicitly label wallpaper files in all change cases,
(b) let the restored imagery flow through the full crop path, as
should have been done in the first place, and as a result (c) lift
the size restrictions on the source image, because now we are doing
a device-appropriate scaling operation on the image.

The "when to crop/scale" test has been slightly relaxed such that
a restored image of exactly the right size now longer triggers a
superfluous factor-1.0 scaling operation.

Bug 30361282

Change-Id: I9a305eea2227952493f64ab78862648cafb816ff

8 years agoPersist configuration for the calling or current user
Amith Yamasani [Mon, 25 Jul 2016 21:59:57 +0000 (14:59 -0700)]
Persist configuration for the calling or current user

Persist the font size change to the correct user.

Bug: 30273473
Change-Id: Ia29735d4112720389a30b61f961f6c1071ce4ba2

8 years agoUpdate ShortcutManager javadoc
Makoto Onuki [Mon, 25 Jul 2016 22:12:23 +0000 (15:12 -0700)]
Update ShortcutManager javadoc

Bug 30359231

Change-Id: I01f1987416fa1ac3f0669afa1f15f88ff2dd1631

8 years agoMerge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev
TreeHugger Robot [Tue, 26 Jul 2016 00:06:43 +0000 (00:06 +0000)]
Merge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev

8 years agoMerge "media: Add hidden api to set video encoding profile and level." into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 23:39:59 +0000 (23:39 +0000)]
Merge "media: Add hidden api to set video encoding profile and level." into nyc-mr1-dev

8 years agoPolish up PRE_BOOT notification.
Jeff Sharkey [Tue, 19 Jul 2016 00:29:48 +0000 (18:29 -0600)]
Polish up PRE_BOOT notification.

Show progress bar to communicate how much work is left.  When tapped,
trampoline through Settings to launch a help link.

Bug: 30033319
Change-Id: I14afe4ce111a113d1436cbfcf358753312c4ec83

8 years agoAvoid destroying TextureView surfaces for onStop
Chris Craik [Mon, 25 Jul 2016 22:29:59 +0000 (15:29 -0700)]
Avoid destroying TextureView surfaces for onStop

bug:30238922

TextureViews will hold onto their backing surfaces, which will allow
them to resume gracefully when the app's surfaces are saved.

Now only resources that are destroyed for onStop are DisplayLists.

Change-Id: Ia768ba9ffc4497c26aa3a5b101a0f5fa1a258b9c

8 years agoadd pii support for Rlog
fionaxu [Mon, 25 Jul 2016 22:05:14 +0000 (15:05 -0700)]
add pii support for Rlog

bug: 30368127
Change-Id: I18b7be483ce3f86f47dfcafa9d84fcb9b8724c08

8 years agoMerge "Add top and bottom panel overlay to lists in AlertDialog for watch." into...
Michael Kwan [Mon, 25 Jul 2016 22:15:38 +0000 (22:15 +0000)]
Merge "Add top and bottom panel overlay to lists in AlertDialog for watch." into nyc-mr1-dev

8 years agoMerge "Fix AM.revokeUriPermissionFromOwner for prefix mode." into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 21:55:51 +0000 (21:55 +0000)]
Merge "Fix AM.revokeUriPermissionFromOwner for prefix mode." into nyc-mr1-dev

8 years agoFix Switch in SwitchPreference on watch
FEI WU [Mon, 18 Jul 2016 23:41:25 +0000 (16:41 -0700)]
Fix Switch in SwitchPreference on watch

1. Add new layout for SwitchPreference on watch.
2. Add materials for new thumb and track. Animation for the thumb
follows the same pattern as current thumb.

Bug:26309808

Change-Id: I117a5f31780528b0348fcbc22a0aaadf0b943e04

8 years agodocs: Migrated "key attestation" page to a new location (for N OTA).
Kevin Hufnagle [Wed, 20 Jul 2016 21:14:55 +0000 (14:14 -0700)]
docs: Migrated "key attestation" page to a new location (for N OTA).

Updated page location, TOC entry, and URL redirect in preparation
for Android Nougat OTA release.

Bug: 28851641
Change-Id: I8be252d79b0b5ad3c7d814175e6bfbfb98e95daf

8 years agomedia: Add hidden api to set video encoding profile and level.
Hangyu Kuang [Fri, 22 Jul 2016 17:47:16 +0000 (10:47 -0700)]
media: Add hidden api to set video encoding profile and level.

bug: 30284097
Change-Id: I898f9a05571098a0ca0f57fb5abf58567c16fdd1

8 years agoMerge "Set title in onCreate." into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 21:26:36 +0000 (21:26 +0000)]
Merge "Set title in onCreate." into nyc-mr1-dev

8 years agoMerge "Fix NPE in ValueAnimator" into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 21:01:46 +0000 (21:01 +0000)]
Merge "Fix NPE in ValueAnimator" into nyc-mr1-dev

8 years agoMerge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-mr1-dev
Raph Levien [Mon, 25 Jul 2016 20:52:39 +0000 (20:52 +0000)]
Merge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-mr1-dev

8 years agoMerge "Handle USB power role 'sink'" into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 20:23:13 +0000 (20:23 +0000)]
Merge "Handle USB power role 'sink'" into nyc-mr1-dev

8 years agoSet title in onCreate.
Philip P. Moltmann [Mon, 25 Jul 2016 20:07:56 +0000 (13:07 -0700)]
Set title in onCreate.

This makes sure the accessibility service recognizes the correcy title.

Fixes: 30220082
Change-Id: Ieaa37818a55c7b2e543bbe8bd8836996ef0529d2

8 years agoFix NPE in ValueAnimator
Justin Klaassen [Sat, 23 Jul 2016 02:30:03 +0000 (19:30 -0700)]
Fix NPE in ValueAnimator

- Reset mAnimationEndRequested to false in ValueAnimator#start(boolean)
  so that previously canceled animated (with a start delay) can be
  canceled again.
- In ObjectAnimator#animateValue(float) check if target == null
  regardless of mTarget == null since it's possible the target was
  explicitly set to null prior to the animator being cancelled.

Bug: 30190459
Change-Id: I6da55737df30a28f48355fc7a41ab91d05979deb

8 years agoMerge \"docs: updates to Buildilng Your First App doc\" into nyc-dev
Mark Lu [Mon, 25 Jul 2016 18:59:59 +0000 (18:59 +0000)]
Merge \"docs: updates to Buildilng Your First App doc\" into nyc-dev
am: d579d713a5

Change-Id: Iaea16a4bd5271a9ef50e0e27556f491a0ac0d314

8 years agodocs: updates to Buildilng Your First App doc
Mark Lu [Mon, 25 Jul 2016 18:59:56 +0000 (18:59 +0000)]
docs: updates to Buildilng Your First App doc
am: 08d1bff71f

Change-Id: I030bd03c3f83ecc8332165dea75785cc78c3a114

8 years agoMerge changes from topic 'home-button-lock-nyc-mr1-dev' into nyc-mr1-dev
Selim Cinek [Mon, 25 Jul 2016 18:49:48 +0000 (18:49 +0000)]
Merge changes from topic 'home-button-lock-nyc-mr1-dev' into nyc-mr1-dev

* changes:
  Fixes a bug where the lockscreen would be frozen
  Allow home button to be tapped while a incoming call shows a HUN

8 years agoMerge "docs: updates to Buildilng Your First App doc" into nyc-dev
TreeHugger Robot [Mon, 25 Jul 2016 18:45:50 +0000 (18:45 +0000)]
Merge "docs: updates to Buildilng Your First App doc" into nyc-dev

8 years agoMerge "QS: Cleanup detail toggle on" into nyc-mr1-dev
Jason Monk [Mon, 25 Jul 2016 18:38:37 +0000 (18:38 +0000)]
Merge "QS: Cleanup detail toggle on" into nyc-mr1-dev

8 years agoMerge "QS: Fixup footer + animations" into nyc-mr1-dev
Jason Monk [Mon, 25 Jul 2016 18:36:00 +0000 (18:36 +0000)]
Merge "QS: Fixup footer + animations" into nyc-mr1-dev

8 years agoMerge "Don't reset layout params when repositioning" into nyc-mr1-dev
TreeHugger Robot [Mon, 25 Jul 2016 18:34:33 +0000 (18:34 +0000)]
Merge "Don't reset layout params when repositioning" into nyc-mr1-dev

8 years agoEnforce consistent sizes for arrays in SpannableStringInternal
Raph Levien [Mon, 25 Jul 2016 17:05:35 +0000 (10:05 -0700)]
Enforce consistent sizes for arrays in SpannableStringInternal

The grow logic in SpannableStringInternal#setSpan assumes that the
size of mSpanData is consistent with that of mSpans, in particular
that if the latter doesn't need to grow, neither does the former.
The copySpans() method didn't enforce this, creating an mSpanData
array only big enough to hold the data.

This patch documents the invariant in a comment and enforces it.

Bug: 30359314
Change-Id: Ie25db70a76836e97af8476a7f5c10cb4b976c1cf