Commit Graph

62756 Commits

Author SHA1 Message Date
Jiaquan He
dd1e66f737 Add more onTopLauncher support.
- Add onTopLauncher checking for TaskRecord.
- Add onTopLauncher to the window manager.

Bug: 28425537
Change-Id: Ic9e53db891dc42463a1a77b106ba93438a052181
2016-07-27 23:57:23 +00:00
James Carr
d2a4944d68 Merge "Calculate and account for memory power use" 2016-07-27 23:24:55 +00:00
Hui Shu
16521e1958 Merge "Fix document format" 2016-07-27 22:54:46 +00:00
Selim Gurun
32c3516369 Fix document format
The document is all one single paragraph making it hard to read. fix it.

Change-Id: Iadcfe6e55a813d7599ebdd4b160ed544c5296c16
2016-07-27 15:44:54 -07:00
Adrian Roos
a6b50d5f2b ViewRootImpl: Initialize sysui visibility am: 1b2bf00098
am: e616a42716

Change-Id: I32984bff654a285dfc553fb89ea2e95e8ec60d29
2016-07-27 22:00:47 +00:00
James Carr
2dd7e5e3ef Calculate and account for memory power use
Use PowerProfile to calculate mAh (MemoryPowerCalculator), and
involve this calculation in the overall accounting of battery
for when the phone is unplugged from a charger.

Note: Depends on ag/1196281

Change-Id: Id02bef19c9b250c614df0a6c88711b486faaef46
2016-07-27 14:50:23 -07:00
Jeff Davidson
2862ed2541 Add support for carrier \\"associated\\" apps. am: 24b9d96007
am: 19af77d2cb

Change-Id: I089db772e37b7d07a5423793aced78f2b3a9a1ae
2016-07-27 21:40:17 +00:00
Adrian Roos
e616a42716 ViewRootImpl: Initialize sysui visibility
am: 1b2bf00098

Change-Id: I5d206d031a193777b67cb44af5b70bbc4997c2f3
2016-07-27 21:24:39 +00:00
Jeff Davidson
19af77d2cb Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
2016-07-27 21:18:07 +00:00
Daniel Nishi
b91285fd32 Merge "Add a flag to toggle how much downloads to retain." 2016-07-27 16:52:57 +00:00
TreeHugger Robot
581c35d124 Merge "Make DragEvent.getClipDescription() return null for ACTION_DRAG_ENDED" 2016-07-27 16:41:21 +00:00
Vladislav Kaznacheev
cd84cfab79 Make DragEvent.getClipDescription() return null for ACTION_DRAG_ENDED
This is required to bring the DragEvent behavior in line with JavaDoc.


Bug: 30407098
Change-Id: I87b7f3ed3fe56681ca54a44e5cdeaf32966ad495
2016-07-27 16:39:51 +00:00
Michael Wright
2a788b2b67 Actually compare supported color modes. am: 16ae042351
am: 7b17faad2c

Change-Id: I994180c3a3d68bae1e250635407eb5e5ac551b6b
2016-07-27 13:29:04 +00:00
Michael Wright
7b17faad2c Actually compare supported color modes.
am: 16ae042351

Change-Id: If33235e3debdca951856fcc74c5189cd936b6129
2016-07-27 13:23:47 +00:00
Christopher Tate
2329e7b20c Fix wallpaper restore from pre-N devices am: ebadfb17e7
am: ac2f0b2c51

Change-Id: I7b8c8eb3e880389d1f70fd15f9d82bd815f1be16
2016-07-27 01:36:17 +00:00
George Mount
7c129f5635 Check for target SDK version for out-of-order fragment creation.
am: 00b7846b1e

Change-Id: If8ff087abfccdf1ff5868c2d9bbffbbaf00a23d5
2016-07-27 01:18:17 +00:00
Christopher Tate
ac2f0b2c51 Fix wallpaper restore from pre-N devices
am: ebadfb17e7

Change-Id: I4f88e555929bd9e48983dce64dc66f9e7fd46dc9
2016-07-27 01:18:05 +00:00
George Mount
00b7846b1e 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 78d38fc839)
2016-07-26 14:59:23 -07:00
Jeff Davidson
24b9d96007 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
2016-07-26 14:54:53 -07:00
Michael Kwan
a8f73bd200 Add titles to PreferenceFragments and PreferenceScreens for watches. am: 744be16ffa
am: f704097df4

Change-Id: Iba97f59b84ead98775c803c091c6e4dae6f18d8e
2016-07-26 21:44:49 +00:00
Adrian Roos
1b2bf00098 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
2016-07-26 14:27:37 -07:00
Michael Kwan
f704097df4 Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
2016-07-26 21:11:47 +00:00
Michael Kwan
9f3930d3f7 Merge "Add titles to PreferenceFragments and PreferenceScreens for watches." into nyc-mr1-dev 2016-07-26 20:58:47 +00:00
Makoto Onuki
21e778192d Update ShortcutManager javadoc am: fe9c9669a4
am: d09c33f32c

Change-Id: I14fdc704a54e4b8e148b9bcd4127cadf7e89eec1
2016-07-26 20:55:02 +00:00
Makoto Onuki
d09c33f32c Update ShortcutManager javadoc
am: fe9c9669a4

Change-Id: I4bfaca9ce475e91ec0dae45739b1623ceac8a43c
2016-07-26 20:50:00 +00:00
Adam Powell
f0f3f453d9 Merge "Check for target SDK version for out-of-order fragment creation." 2016-07-26 20:44:44 +00:00
Makoto Onuki
3858c4704c Merge "Update ShortcutManager javadoc" into nyc-mr1-dev 2016-07-26 20:40:04 +00:00
Chad Brubaker
90f331adad Merge "Add asUser version of sendBroadcast(Intent, String, Bundle)" 2016-07-26 20:25:43 +00:00
Aga Madurska
e2250ca54f Use correct bounds for scroll bar rendering. am: 8cc883de9e
am: f4b8e7d969

Change-Id: I08e2c8b988c1e472950515ee719ecd7022fd45e7
2016-07-26 18:17:58 +00:00
Aga Madurska
f4b8e7d969 Use correct bounds for scroll bar rendering.
am: 8cc883de9e

Change-Id: Ie82427a678241e7237144bbe76493c055a17bc2d
2016-07-26 18:08:47 +00:00
Phil Weaver
6f80ecb7d7 Merge "Clarifying docs for lifecycle of 3 a11y objects." 2016-07-26 18:07:44 +00:00
Michael Kwan
744be16ffa 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
2016-07-26 10:57:56 -07:00
Michael Wright
16ae042351 Actually compare supported color modes.
Also, provide an equals implemenation for HdrCapabilities.

Bug: 30311415
Bug: 30367543
Change-Id: Ib8b9c9283519ae9baa48ecfecb8035848a9b29f0
2016-07-26 18:18:53 +01:00
Aga Madurska
8cc883de9e Use correct bounds for scroll bar rendering.
Bug:30001373
Change-Id: I20c77a2d97096bda451c3a871fd6be7ad699b047
2016-07-26 17:07:28 +01:00
Chris Craik
79db372111 Avoid destroying TextureView surfaces for onStop am: 391d560402
am: 5fbbcdcd32

Change-Id: I1bda6841c540572ff9390c0124cb1ac9f6f22c83
2016-07-26 15:18:45 +00:00
Justin Klaassen
a06d1f8fec Fix NPE in ValueAnimator am: 543a7ed7af
am: 705e2fb40c

Change-Id: I5beab0d64c1544344f1153f183c513839f673a1f
2016-07-26 15:11:27 +00:00
Christopher Tate
ebadfb17e7 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
2016-07-25 18:11:47 -07:00
Makoto Onuki
fe9c9669a4 Update ShortcutManager javadoc
Bug 30359231

Change-Id: I01f1987416fa1ac3f0669afa1f15f88ff2dd1631
2016-07-25 17:56:09 -07:00
Chris Craik
5fbbcdcd32 Avoid destroying TextureView surfaces for onStop
am: 391d560402

Change-Id: I6e1e5a5f024410e7e0288910386cbc439b8a9039
2016-07-26 00:29:44 +00:00
TreeHugger Robot
eaa6d6b2c9 Merge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev 2016-07-26 00:06:45 +00:00
Justin Klaassen
705e2fb40c Fix NPE in ValueAnimator
am: 543a7ed7af

Change-Id: Ib049d75f8c8460c3e7498080bbe502e67078e6ac
2016-07-25 22:50:07 +00:00
Raph Levien
878346cb07 Enforce consistent sizes for arrays in SpannableStringInternal
am: 83549088c6

Change-Id: I6fd3b65dd388abcce6f8b7062f396a6fcf8fdf7a
2016-07-25 22:49:14 +00:00
Chris Craik
391d560402 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
2016-07-25 15:30:00 -07:00
Siyamed Sinir
317029aecc Update font feature settings w3 URL in api doc
Bug: 29545624
Change-Id: I4611f53055f3a52bc607ac0cc8311f8a633217bf
2016-07-25 14:50:48 -07:00
Chad Brubaker
52c8edc2d8 Add asUser version of sendBroadcast(Intent, String, Bundle)
Change-Id: Id87aa1123d6c0a8a036ed9430eee10357040321f
2016-07-25 14:30:26 -07:00
TreeHugger Robot
65dfc2a3e5 Merge "Fix NPE in ValueAnimator" into nyc-mr1-dev 2016-07-25 21:01:48 +00:00
Justin Klaassen
543a7ed7af 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
2016-07-25 12:40:09 -07:00
TreeHugger Robot
6401c0286f Merge "Enforce consistent sizes for arrays in SpannableStringInternal" 2016-07-25 19:26:22 +00:00
Svetoslav Ganov
7068bfc383 Merge "Add Bluetooth toggle prompts - framework" 2016-07-25 18:43:40 +00:00
Raph Levien
83549088c6 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
2016-07-25 18:19:00 +00:00