Commit Graph

9218 Commits

Author SHA1 Message Date
Jorim Jaggi
5ecf859494 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800 am: 8d4f5f52a1 am: ffb289c7b3
am: f878d518c1

Change-Id: I45a3a50685cceb2c59476a236cb883846ae0f51a
2016-07-29 16:07:35 +00:00
Jorim Jaggi
f878d518c1 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800 am: 8d4f5f52a1
am: ffb289c7b3

Change-Id: Ia0befac114b3e1f534c477300d5875c2c6f0e588
2016-07-28 20:13:44 +00:00
Jorim Jaggi
ffb289c7b3 Follow up for I420bee8a11d430b1e52ded050536e56a85a48800
am: 8d4f5f52a1

Change-Id: I9b5c7d18520d57c355f3c8ea76e2dfc0e6d6ff39
2016-07-28 20:03:58 +00: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
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
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
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
Adam Powell
f0f3f453d9 Merge "Check for target SDK version for out-of-order fragment creation." 2016-07-26 20:44:44 +00:00
Chad Brubaker
90f331adad Merge "Add asUser version of sendBroadcast(Intent, String, Bundle)" 2016-07-26 20:25:43 +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
Chad Brubaker
52c8edc2d8 Add asUser version of sendBroadcast(Intent, String, Bundle)
Change-Id: Id87aa1123d6c0a8a036ed9430eee10357040321f
2016-07-25 14:30:26 -07:00
Jorim Jaggi
758f841d86 Move SysUI to top app scheduling if panel expanded am: f6782ee1c8
am: b712ee18b2

Change-Id: I71a73ff87c0f791316c9ac32e39d3bc54eeab37f
2016-07-22 23:07:09 +00:00
Jorim Jaggi
b712ee18b2 Move SysUI to top app scheduling if panel expanded
am: f6782ee1c8

Change-Id: I61d0afe8669a5d1155425883e79fe756abed7c58
2016-07-22 22:59:06 +00:00
Daniel Chapin
adc51e460c Merge "Move SysUI to top app scheduling if panel expanded" into nyc-mr1-dev 2016-07-22 22:49:37 +00:00
George Mount
78d38fc839 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
2016-07-22 15:25:27 -07:00
Jorim Jaggi
f6782ee1c8 Move SysUI to top app scheduling if panel expanded
Also fixes a bug which didn't set the correct renderThreadTid
when restarting an app (for example, when SystemUI gets killed).

Bug: 30292998
Change-Id: I420bee8a11d430b1e52ded050536e56a85a48800
2016-07-23 00:12:39 +02:00
Selim Cinek
8d717fa1cb Changed the appearance of fullscreen intent notifications again am: 981962e6ad
am: 3f769aba2a

Change-Id: I40a477fc28fb0205d40aa352c5b720835d4bf4f8
2016-07-22 19:37:48 +00:00
Selim Cinek
3f769aba2a Changed the appearance of fullscreen intent notifications again
am: 981962e6ad

Change-Id: Ib26d711e48aaff99a4e64e86feb67dbf987d67e2
2016-07-22 19:29:52 +00:00
TreeHugger Robot
0ff47b64cd Merge changes Idd0b38b4,I511356a8 into nyc-mr1-dev
* changes:
  Fixed a bug where the fade in from dark would not work properly
  Changed the appearance of fullscreen intent notifications again
2016-07-22 19:20:49 +00:00
Selim Cinek
981962e6ad Changed the appearance of fullscreen intent notifications again
Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca
Fixes: 28269355
2016-07-22 12:13:11 -07:00
Andrii Kulian
f4bbb87b40 Make sure to apply latest configuration to resources am: 3b3c914e62
am: 466b790f5f

Change-Id: If78e2eb11c4558924835f37d7e89420b86e38e96
2016-07-22 18:28:02 +00:00
Andrii Kulian
466b790f5f Make sure to apply latest configuration to resources
am: 3b3c914e62

Change-Id: I5dc1d3518b1568bd8c52c947e7425563553bcf9d
2016-07-22 18:20:32 +00:00
Andrii Kulian
8fcd8f1fb9 Merge "Make sure to apply latest configuration to resources" into nyc-mr1-dev 2016-07-22 18:16:35 +00:00
Adrian Roos
0257a8a541 ServiceConnection: Properly serialize events am: a9b43182c6
am: 36705ec204

Change-Id: Ieff75981994c5a2d354e525e795453a2de32a6db
2016-07-22 17:26:09 +00:00
Adrian Roos
36705ec204 ServiceConnection: Properly serialize events
am: a9b43182c6

Change-Id: I3571754de4d659aaf6b4a61fa14ae8256ca29f7a
2016-07-22 17:17:18 +00:00
Adrian Roos
1dcda85414 Merge "ServiceConnection: Properly serialize events" into nyc-mr1-dev 2016-07-22 17:03:43 +00:00
TreeHugger Robot
ddde470652 Merge "Fix undefined fontScale issue in Configuration" 2016-07-22 02:44:35 +00:00
TreeHugger Robot
886bb81522 Merge "Remove lines that hit ActivityMonitor on destory." 2016-07-22 02:41:08 +00:00
Adrian Roos
a9b43182c6 ServiceConnection: Properly serialize events
Fixes a bug where onServiceDisconnected could be delayed
such that it would be dispatched after the connection has
already reconnected.

Bug: 30182617
Change-Id: I6e3fc2f125a477bb342de601530c254c34ffb4f7
2016-07-21 15:52:47 -07:00
Andrii Kulian
3b3c914e62 Make sure to apply latest configuration to resources
When app is transferred from split-screen mode to fullscreen
and the app doesn't handle configuration change, relaunch is
scheduled with non-empty override config corresponding to
fullscreen size. This override config is then used in instance
of DisplayAdjustments and in size/metrics calculations in
corresponding methods of Display class. To obtain correct values
in fullscreen mode override config should be empty.
Configuration change that follows relaunch has correct (empty)
override config, but it is not really applied for resources
because final config matched current activity config.

Bug: 30185335
Change-Id: I95fb69e0c229c2c6b0c1cd79e9d60556de579ae4
2016-07-21 13:55:14 -07:00
Makoto Onuki
de1e6e4d2d Merge \\"Support multiple intents in ShortcutInfo\\" into nyc-mr1-dev am: b84ce2e034
am: 9a6109f284

Change-Id: I0f1caf54cc544db0b73f8e3275005923904f57a8
2016-07-20 23:15:32 +00:00
Makoto Onuki
9a6109f284 Merge \"Support multiple intents in ShortcutInfo\" into nyc-mr1-dev
am: b84ce2e034

Change-Id: I53daa680bdf18505896a372e59c7b4bd73d4edca
2016-07-20 23:09:55 +00:00
Makoto Onuki
b84ce2e034 Merge "Support multiple intents in ShortcutInfo" into nyc-mr1-dev 2016-07-20 23:05:31 +00:00
Makoto Onuki
440a1ea8e2 Support multiple intents in ShortcutInfo
Also fix b/30230996.

TODO: Support the sourceBounds argument to LauncherApps.
startShortcut().

Bug 30218829
Bug 30230996

Change-Id: Ibb6c59d5b7c0a320c21d09436d016d0eac94644f
2016-07-20 14:46:48 -07:00
Adam Lesinski
bad43fcae4 Fix undefined fontScale issue in Configuration
When using a Configuration object as a delta for use
as an update to an existing Configuration object,
the fontScale property is always defaulted to 1.0, which
is not considered "undefined". That means that fontScale will
always get overridden to 1.0.

This changes the undefined value of fontScale to 0.0, which is
set when the Configuration object is constructed. Thankfully,
the documentation for Configuration states that until
Configuration#setToDefaults() is called, the Configuration is in
an invalid state. That means that apps can not rely on fontScale == 1.0
without calling setToDefaults().

Bug:29924927
Change-Id: I19342c55f7057423f1ca8c5d8dce1dff07617d90
2016-07-20 20:15:26 +00:00
TreeHugger Robot
c5837520ba Merge "Add per-user versions of set{Component,Application}EnabledSetting." 2016-07-20 18:58:56 +00:00
Sudheer Shanka
0e6bfff6c1 Add per-user versions of set{Component,Application}EnabledSetting.
Change-Id: Id63b233308e92a4c360f38d4728c519ac2131ff0
Fixes: 30230444
2016-07-20 10:30:57 -07:00
Svetoslav Ganov
d5fde61c75 Merge \\"Revert \\"Prevent apps to overlay other apps via toast windows\\"\\" into nyc-mr1-dev am: 78fa7a1b3f
am: d6c4cf03e3

Change-Id: Iebc613fbecb372dbb39a9110c1b3123150b6ce5d
2016-07-20 03:02:12 +00:00
Svetoslav Ganov
d6c4cf03e3 Merge \"Revert \"Prevent apps to overlay other apps via toast windows\"\" into nyc-mr1-dev
am: 78fa7a1b3f

Change-Id: I30b84189b2c2c4566c837cd1b8837053d6944988
2016-07-20 01:12:15 +00:00
Svetoslav Ganov
78fa7a1b3f Merge "Revert "Prevent apps to overlay other apps via toast windows"" into nyc-mr1-dev 2016-07-20 01:04:52 +00:00
Svetoslav Ganov
f1395d730a Revert "Prevent apps to overlay other apps via toast windows"
This reverts commit b3b22cba86.

Change-Id: I905e7435893fab49f03fdb708f4ab5a9d2c9cbae
2016-07-20 01:00:51 +00:00
Fyodor Kupolov
4e9af06576 Updated JavaDoc for getApplicationRestrictions
The method performs disk I/O and shouldn't be called on the main thread.

Bug: 28303952
Change-Id: Iab4d79158b32858baac4147ab73c6ac7aaa51b5b
2016-07-19 10:28:31 -07:00
Chris Tate
1a83deb584 Merge \\"Document that WallpaperManager.getDrawable() can return null\\" into nyc-mr1-dev am: 3cec9d44b3
am: ca0e0b9b6c

Change-Id: Id27ec9541d4075f80a546d3df2bfd7577e38f0fc
2016-07-18 17:54:54 +00:00
Christopher Tate
ca0e0b9b6c Merge \"Document that WallpaperManager.getDrawable() can return null\" into nyc-mr1-dev
am: 3cec9d44b3

Change-Id: I72443aa4360cb4c22c9b4faf0cf98b395097757f
2016-07-18 17:44:04 +00:00
Chris Tate
3cec9d44b3 Merge "Document that WallpaperManager.getDrawable() can return null" into nyc-mr1-dev 2016-07-18 17:29:39 +00:00
Andrei Stingaceanu
4e750e822f Merge "Keyboard shortcuts: minor Activity broadcast refactor" 2016-07-18 09:39:52 +00:00
Adrian Roos
ab66a2cd5e Merge \\"Notification: Apply small icon level\\" into nyc-mr1-dev am: 9d8de73530
am: 8b942b2404

Change-Id: I8471581ac27fb1c35126635bdc655b8c8ddea328
2016-07-15 23:25:27 +00:00
Adrian Roos
5810a1c252 Merge \\"Add way to set live wallpaper across users\\" into nyc-mr1-dev am: 9a7c3bd577
am: 119840eb91

Change-Id: I16436af5b7ada58113d846b9836d302061730177
2016-07-15 23:25:19 +00:00