Commit Graph

253881 Commits

Author SHA1 Message Date
Daniel Yu
6d1b591c4d Merge \"docs: Migrating PIP preview docs into regular DAC docs\" into nyc-dev
am: 020726fac7

Change-Id: If7eae1318309f76bdb4f71b63430ff6a7562269e
2016-07-27 20:12:14 +00:00
Daniel Yu
6c3c172259 docs: Migrating PIP preview docs into regular DAC docs
am: e0fa75cfa7

Change-Id: Ic8b9bbc6f5755b6f80f7f70d5a99b23f1a334073
2016-07-27 20:12:10 +00:00
Daniel Yu
8a481eaf20 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
2016-07-27 13:04:52 -07:00
Daniel Yu
bb0f35306e 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
2016-07-27 12:52:35 -07:00
Hemal Patel
9f44fe0188 Merge \\"Docs: Used NotificationCompat.MediaStyle\\" into nyc-docs am: b2baf25d34
am: b36153a8a1

Change-Id: I4cff611f1a7f10e18b94a27df5164862bb3c60ae
2016-07-27 19:52:25 +00:00
Hemal Patel
23b91ca59c Docs: Used NotificationCompat.MediaStyle am: d3c609cbc1
am: bae260d909

Change-Id: Icff03d57f9efe571671f77bc2ba3f47a1ebd2e75
2016-07-27 19:52:23 +00:00
Adam Lesinski
e2b78ac686 Register isolated UIDs before reporting process state
Isolated UIDs should be registered with a real app UID
before any process state changes are reported for them.

Bug:25195548
Change-Id: Id0d3a5373ca57d3725315b2d99e5f8e5286022c8
2016-07-27 12:46:55 -07:00
Daniel Yu
4900647321 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
2016-07-27 12:37:45 -07:00
Dan Yu
020726fac7 Merge "docs: Migrating PIP preview docs into regular DAC docs" into nyc-dev 2016-07-27 19:29:42 +00:00
Adrian Roos
805ea307e7 Allow restarting foreground services once
If a process is important to the user, even if it is not
hosting an activity, we'll allow it to be restarted once

Change-Id: I3e2997d1ebe87514e8ce71f81698241234487ed8
Fixes: 30250003
2016-07-27 12:26:27 -07:00
Hemal Patel
b36153a8a1 Merge \"Docs: Used NotificationCompat.MediaStyle\" into nyc-docs
am: b2baf25d34

Change-Id: Iff64c50170add9331ad840b3a2c60170947922d6
2016-07-27 19:26:10 +00:00
Hemal Patel
bae260d909 Docs: Used NotificationCompat.MediaStyle
am: d3c609cbc1

Change-Id: Ia297b36f995caa5b552722d475461ec1be321136
2016-07-27 19:26:05 +00:00
Andrew Solovay
07fe016b84 docs: Removed reference to Android Support Library
In the Android Studio world, devs download the Android Support
*Repository*, not the now-deprecated *Library*. Updated the prose
and a screenshot to reflect this. Did other cleanup to docs to make
them more consistent with the new Android Studio/Gradle world. (For
example, the process for adding a library is now the same whether
or not the library has resources, so I consolidated the two "adding
a library" sections, and removed the paragraphs from features.html
that specified whether or not a library had resources.)

Also fixed bad formatting of code snippets (once again, we got bit by
the {@code &lt;} issue). Changed the {@code} tags to <code></code> to
fix it.

Other misc. fixes too, as they popped up in the review process.

See first comment for doc stage location.

bug: 30269620
Change-Id: I72922655e9887d1365e97b75982432c97e041f1f
2016-07-27 12:17:32 -07:00
Hemal Patel
b2baf25d34 Merge "Docs: Used NotificationCompat.MediaStyle" into nyc-docs 2016-07-27 19:13:54 +00:00
Chong Zhang
e05bcb15d5 Cleanup mAnimatingExit flag before maybeUpdateTransitToWallpaper()
If we get onStopped before next resume, but previous exit animation
doesn't finish by the time the entering animation is started,
notifyAppResumed() won't do a surface cleanup (since it's already
stopped). Then maybeUpdateTransitToWallpaper() will think the wallpaper
target (launcher) is invisible because of the mAnimatingExit==true,
thus fails to pick WALLPAPER_OPEN animation.

We need to clear mAnimatingExit and relevant flags before
maybeUpdateTransitToWallpaper(). Currently we do it in handleOpeningApps
but that's too late.

bug: 30255354
Change-Id: Idb049c54978824709a190c413d82d42f40226aa7
2016-07-27 12:10:46 -07:00
Makoto Onuki
9c850012ca Prevent shortcut access when user is locked
Also add some test utility methods that'll be used by CTS.

Bug 30406401

Change-Id: I9396acebbdb3cbe64f6e85877ee62a2131cd6e61
2016-07-27 12:01:46 -07:00
Santos Cordon
255ad67b2e Merge "Add short string methods for capabilities and properties." into nyc-mr1-dev 2016-07-27 18:40:14 +00:00
Adrian Roos
25582f21cd Merge "ViewRootImpl: Initialize sysui visibility" into nyc-mr1-dev 2016-07-27 18:39:17 +00:00
Roozbeh Pournader
84b1746130 Check defaults for Android default-emoji characters [DO NOT MERGE]
There are 12 characters that Android is defaulting to emoji,
differing from UTR #51 recommendation. This tests for their proper
support.

Bug: 30379358
Change-Id: Icd570510090ef29b3b7a3520bc368c5f77f99fa4
(cherry picked from commit 10ea8f7431)
2016-07-27 18:10:38 +00:00
Robert Carr
237028ae3b 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
2016-07-27 11:09:42 -07:00
Daniel Yu
e0fa75cfa7 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
2016-07-27 10:58:10 -07:00
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
TreeHugger Robot
ad023e14c2 Merge "Revert "Handle USB power role 'sink'"" into nyc-mr1-dev 2016-07-27 17:51:53 +00:00
Nick Desaulniers
1d3967506e framework: SystemUI: add tracing to Keyguard
Helps trace the phone unlock path.

Bug: 29693568
Bug: 30279403
Change-Id: I290864f525e3d08f1efc6b9fc603172a5d139ea0
2016-07-27 09:57:31 -07:00
Chris Craik
004d140042 Merge "Reject fully transparent paint-fill ops at record time" into nyc-mr1-dev 2016-07-27 16:37:37 +00:00
Philip P. Moltmann
47e8089bf4 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 0135516153.

Change-Id: I304c3f78916896ddb12129b11a0e691b3ef77819
2016-07-27 16:32:59 +00:00
Adarsh Fernando
b36d734e7b Merge \"Docs: Clarified certain restrictions to whitelisted apps\" into nyc-dev
am: ec694b4e27

Change-Id: Ice70fef4a0e91c043e404dc35924e3016699429b
2016-07-27 16:01:58 +00:00
Adarsh Fernando
667848c930 Docs: Clarified certain restrictions to whitelisted apps
am: 33aae3167d

Change-Id: I3e68b293937ad5b624cc1a67bfd940399d11b12c
2016-07-27 16:01:55 +00:00
Adarsh Fernando
ec694b4e27 Merge "Docs: Clarified certain restrictions to whitelisted apps" into nyc-dev 2016-07-27 15:49:51 +00:00
Bill Yi
f3b6338d0f Import translations. DO NOT MERGE
am: cdd4f84e06  -s ours

Change-Id: I4270dc2513e473cef596058338c103b6e5ecaf1b
2016-07-27 15:05:29 +00:00
Alan Viverette
b46ba3b2b0 Avoid potential re-entry as a result of child mutation
Don't set the callback until we're all done making changes.

Bug: 30409766
Change-Id: Ia1560692a83ecb2c50f5e77fa4d1e8155a78a204
2016-07-27 10:23:35 -04:00
Chris Banes
f9e2c1b326 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
2016-07-27 14:53:38 +01:00
Bill Yi
cdd4f84e06 Import translations. DO NOT MERGE
Change-Id: Id7ec746499ef9a1309384e04bdb556d1616b8c11
Auto-generated-cl: translation import
2016-07-27 06:34:57 -07:00
Michael Wright
1df0020f2d Merge "Actually compare supported color modes." into nyc-mr1-dev 2016-07-27 13:14:04 +00:00
Julia Reynolds
494f0dedb2 Do less work on configuration change.
Change-Id: I8c657ba8913b4be288cb0979897479a1db33aacf
Fixes: 29625463
2016-07-27 09:04:28 -04:00
Jorim Jaggi
8d4f5f52a1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
- Log when hasTopUi state changes
- Add hasTopUi to dumpstate
- Only allow persistent processes to honor this flag

Bug: 30292998
Change-Id: Ifb481c8d50b102ea4cac3078ea3eb39e45c08259
2016-07-27 11:35:05 +02:00
Andrew Solovay
82a38458e6 docs: Moving internationalized versions of multi-window doc
For each of the localized languages, moving the multi-window preview
doc to its new location. Not attempting to update the doc for release,
aside from fixing a single image link--that will be left to the
translators.

Also changed the "qv-wrapper"/"qv" divs to "tb-wrapper"/"tv".

bug: 30407407

Change-Id: I01e4ca63e8f3972971067eb44546a8e1b3eec0e0
2016-07-26 19:10:24 -07:00
Andrii Kulian
a6aea9876e Don't delay child pressed state in freeform mode
DecorCaptionView is used in app view hierarchy in freeform mode
and it inherits default ViewGroup#shouldDelayChildPressedState
implementation, which returns true by default for compatibility
reasons.
This results in touch not delivered to child views in some cases
until there is movement or up action. E.g. touch on SeekBar will
not change the position of control instantly in freeform, while
it does in other modes.
This CL disables delaying child pressed state for DecorCaptionView.

Bug: 30037893
Change-Id: I4917143610b6c0d404d2395670de9525c10f2a6c
2016-07-26 18:42:46 -07:00
Roozbeh Pournader
8cd1b1ba80 Re-enable disabled emoji tests [DO NOT MERGE]
Since I2e508ced90515409ff6882b3c98d8911094b9b86 updates the emoji
data to version 4.0 beta, we can now re-enable the disabled emoji
tests.

Also fix some style issues, update data file parsing method to handle
the new emoji format, add UN to unsupported flags, and do a little
refactoring.

Bug: 30379358
Bug: 26187231
Change-Id: I441fdfed68381d08e5e0b3af91e94bfae742eef6
2016-07-26 18:32:57 -07:00
Svetoslav Ganov
993b4b2380 Merge "Pre-grant calendar permission to default email app" into nyc-mr1-dev 2016-07-27 01:17:43 +00:00
Mark Lu
ca22237d04 docs: updates to Buildilng Your First App doc am: ae47d9d4fe
am: 3977f8351a

Change-Id: I500638ffdf29106ddd65bff3425536ce1cdb0c50
2016-07-27 01:09:27 +00:00
Santos Cordon
1a7493008f Add short string methods for capabilities and properties.
Bug: 30411195
Change-Id: I3aa81da23b75986fab8570b8b36e56a36a660045
2016-07-26 17:42:38 -07:00
Svetoslav Ganov
9df80d2628 Pre-grant calendar permission to default email app
bug:30277932

Change-Id: I3c80e01ce720a7e7bf54cac82dc0ca0da152998d
2016-07-27 00:41:41 +00:00
Mark Lu
3977f8351a docs: updates to Buildilng Your First App doc
am: ae47d9d4fe

Change-Id: I7b3665dc0f304dcae06939a56c2423d9b269420c
2016-07-27 00:40:03 +00:00
Mark Lu
ae47d9d4fe 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 08d1bff71f)
2016-07-27 00:09:40 +00:00
Kevin Hufnagle
f2934fb9d7 docs: Relocated all intl versions of "Network Security Config"
The "Network Security Configuration" page now appears in the correct
location on the DAC site for all 9 supported international
languages.

Bug: 27502850
Bug: 30407407
Change-Id: I04a7f0ef3eee9f887e76424d6d69cacc1d36c91d
2016-07-26 16:30:14 -07:00
Adam Powell
4e00581e6b Merge "Check for target SDK version for out-of-order fragment creation." into nyc-mr1-dev 2016-07-26 23:24:59 +00:00
Chris Craik
814ee6a921 Reject fully transparent paint-fill ops at record time
bug:30342762

Avoids unnecessary work for each transparent operation.

Change-Id: I80b1eeca34ae32249433fde55e9fe93d02c411db
2016-07-26 16:22:51 -07:00
Hemal Patel
d3c609cbc1 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
2016-07-26 16:13:35 -07:00
Chris Tate
9fd44ef954 Merge "Fix wallpaper restore from pre-N devices" into nyc-mr1-dev 2016-07-26 23:05:29 +00:00