2915 Commits

Author SHA1 Message Date
George Mount
b6d4a7f141 am 9ace814b: am 3081e360: Merge "Have Activity Transitions activited by a new window attribute." into lmp-dev
* commit '9ace814b28d582e9cd08f13919ba5b672e2b72ef':
  Have Activity Transitions activited by a new window attribute.
2014-09-12 05:44:51 +00:00
Chet Haase
dcce4a5119 am e58831a6: am 05cafed0: Merge "Make starting window hw-accelerated" into lmp-dev
* commit 'e58831a6a0edce3114686cb8168652a50e956031':
  Make starting window hw-accelerated
2014-09-12 05:43:45 +00:00
George Mount
db352c7835 Merge "Have Activity Transitions activited by a new window attribute." into lmp-dev 2014-09-11 21:54:13 +00:00
Chet Haase
4f52b34206 Make starting window hw-accelerated
An earlier fix in L disabled hw acceleration for the starting window
after the system process became hw accelerated. This was done to preserve
the old behavior of the starting window having some default behavior
(in particular, being filled with a default color). However, this ends up
being a memory and performance problem on some platforms (memory because
some platforms have backing store for software surfaces, performance
because it takes far longer to create a screen-size software surface than
a hardware surface).

The fix is to allow the starting window to inherit the hw acceleration
behavior of its process, and to detect when we are drawing the contents
of that starting window and to fill it with a default color (black).

Issue #17443449 use hardware rendering for app preview window

Change-Id: I8be8111d9e38c51fbbc07185acca065815ce26dc
2014-09-11 12:28:29 -07:00
George Mount
9826f636ad Have Activity Transitions activited by a new window attribute.
Bug 17006497

Window content transitions were being enabled by default in
the Material Theme so that Activity Transitions could be
enabled by default. Unfortunately, this gave the effect that
many applications did not want -- the default transition between
window content is a fade out/in. Here, a new attribute is
added: windowActivityTransitions that is enabled by default
in the Material theme and windowContentTransitions is disabled
by default in all themes.

Change-Id: Iab453d608f00a48ff7ab7f09ce84b52cf5f20294
2014-09-11 12:23:17 -07:00
Dianne Hackborn
aadc76edb1 am 2146dc79: am 0ad9e247: Merge "Add new wallpaper features for insets and offsets." into lmp-dev
* commit '2146dc791c53895b60161d8819b25b4277290c4b':
  Add new wallpaper features for insets and offsets.
2014-09-09 16:55:06 +00:00
Adrian Roos
a10c029500 am b1d938ac: am dda9415e: Merge "Don\'t draw system bar backgrounds if FLAG_FULLSCREEN is set" into lmp-dev
* commit 'b1d938acd2e8383b17e8ae1043a5a059d77ca237':
  Don't draw system bar backgrounds if FLAG_FULLSCREEN is set
2014-09-09 16:54:52 +00:00
Dianne Hackborn
bb8c483461 Merge "Add new wallpaper features for insets and offsets." into lmp-dev 2014-09-09 16:41:44 +00:00
Adrian Roos
bb9637bb58 Merge "Don't draw system bar backgrounds if FLAG_FULLSCREEN is set" into lmp-dev 2014-09-09 16:36:39 +00:00
Dianne Hackborn
067e5f68b9 Add new wallpaper features for insets and offsets.
Issue #17394151: WallpaperService / Engines need to get notified
of WindowInsets

Issue #17394203 Wallpapers need a system API to be shifted in order
to support burn in protection

Adds a new API on WallpaperManager to set additional offsets to
make wallpapers extend beyond the display size.

Insets are now reported to wallpapers, to use as they may.  This
includes information about the above offsets, so they can place
their content within the visible area.  And to help with this, also
expose the stable offsets APIs in WindowInsets which is also very
useful information for the wallpaper.

Another new API on WallpaperManager to set a raw offset to apply
to the wallpaper window, forcing it to move on the screen regardless
of what the wallpaper is drawing.

Fix wallpapers when used with overscan enabled, so they still extend
out across the entire screen.  Conveniently, the above new window
insets information is very useful for this case as well!

And a new wallpaper test app for all this stuff.

Change-Id: I287ee36581283dd34607609fcd3170d99d120d8e
2014-09-08 18:02:18 -07:00
Michael Wright
4912049bc0 am f07575ae: am 56d11c6e: Merge "Allow wake keys to wake dozing device." into lmp-dev
* commit 'f07575aeeb840cdc14f1e6b4ff0d1343a30b00b6':
  Allow wake keys to wake dozing device.
2014-09-08 23:31:53 +00:00
Michael Wright
fc01f04a1c Allow wake keys to wake dozing device.
The new key interception policy removed the wake status from key
presses while in the device was dozing.  Since we still want to wake
from these keys by going from doze -> fully interactive, just don't
remove the wake status and allow the device to be woken up as normal.

Bug: 17422475
Change-Id: I835e51cc9c557d8ce2e8f8502d84f04aae138e79
2014-09-08 14:12:24 -07:00
Elliott Hughes
4656e69bf3 resolved conflicts for merge of 2008cff7 to lmp-dev-plus-aosp
Change-Id: I5148eda624e8504f12dbc1288cd4a7a5b7c10850
2014-09-08 13:08:43 -07:00
Adrian Roos
d4e3fe4f7f Don't draw system bar backgrounds if FLAG_FULLSCREEN is set
Bug: 17367264
Change-Id: Id43fc182505e66c2794a76d74e2ac9a6d4f9d569
2014-09-08 17:20:51 +02:00
Mark Doliner
d0646dca40 Small documentation fixes across many files.
Change-Id: I3e8787ce4bc6018ea1dc9aef2a2cd4e0a8dde663
2014-09-05 13:57:51 -07:00
Michael Wright
a6863ad622 Merge "Allow for event dispatching when in non-interactive states." into lmp-dev 2014-09-05 19:58:12 +00:00
Michael Wright
57b4ad9f5a Merge "Add extra to ASSIST intent to indicate potential input type" into lmp-dev 2014-09-05 19:36:47 +00:00
Wei Liu
133f143069 am 0641ab3d: am 636f3eac: Add clear_top flag to settings action intent. Bug: 17200185
* commit '0641ab3dd0282edc272f425a245ede63a78dd222':
  Add clear_top flag to settings action intent. Bug: 17200185
2014-09-05 17:07:19 +00:00
Wei Liu
0641ab3dd0 am 636f3eac: Add clear_top flag to settings action intent. Bug: 17200185
* commit '636f3eac6d3ae69e7cc1dd159fe7cdbb043ce2df':
  Add clear_top flag to settings action intent. Bug: 17200185
2014-09-05 16:52:20 +00:00
Michael Wright
70af00abf7 Allow for event dispatching when in non-interactive states.
We need to allow for event dispatching in non-interactive states so
that we can enable a richer set of interactions when a device is
dozing (i.e. is in a low power state with an Always-on-Display).

Bug: 17167296
Change-Id: I8ae0f544a8106cb91ff38c2309b8b57cbe2f2c72
2014-09-04 19:48:39 -07:00
Michael Wright
8ab940ab9b Add extra to ASSIST intent to indicate potential input type
This lets Now and other assistance apps know to start up expecting a
specific type of input (e.g.  keyboard).

Bug: 16355810
Change-Id: I158e416ef8310a01cb22b19fd5b6850d2429e266
2014-09-04 14:39:47 -07:00
Wei Liu
636f3eac6d Add clear_top flag to settings action intent.
Bug: 17200185

Change-Id: I156a8726055452b56d8ccd52010cdea8baaa79c3
2014-09-04 21:33:20 +00:00
Michael Wright
18aa9f65fd Merge "Add support for SW_CAMERA_LENS_COVER." into lmp-dev 2014-09-04 18:07:00 +00:00
George Mount
0f6c32af06 Merge ""Back" with translucent window now sets ActivityOptions." into lmp-dev 2014-09-04 18:03:52 +00:00
George Mount
9e18397112 "Back" with translucent window now sets ActivityOptions.
Also made convertToTranslucent set the canvas opacity.

Bug 16215650

Change-Id: Id4325eaed34cda1269d874f239aeb5f6f82c959f
2014-09-04 11:02:29 -07:00
George Mount
c03da0e7a9 Make Fragment Transitions match Acitivty Transitions API
Bug 17188255

Change-Id: I506a097be4010d7156caf465c95295c58612c16e
2014-09-02 15:15:12 -07:00
Michael Wright
3818c9261c Add support for SW_CAMERA_LENS_COVER.
This allows for magic cover type accessories to launch the camera application.

Bug: 16034563
Change-Id: I0a46ef885737d964a1482c99f41145053d559faf
2014-09-02 13:59:07 -07:00
George Mount
d2334e669c Merge "Add IDs for status and nav-bar backgrounds." into lmp-dev 2014-08-29 19:59:59 +00:00
George Mount
0fb81090c0 Add IDs for status and nav-bar backgrounds.
Bug 17299689

Change-Id: I9b2168c547fe2670900614805031c3bb5fa63802
2014-08-29 08:40:10 -07:00
Svetoslav
dc6d1a9cc3 Fix the global gesture to enable accessibility.
1. There was a bug in the touch explorer which was crashing almost
   every time after accessibility was enabled via the gesture. The
   problem was that in dragging state when a finger goes up we were
   not transitioning to touch exploring state.

2. The global actions dialog was not going away after enabling
   accessibility while it should as the user brought it up to
   turn accessibility on rather to interact with global actions.

bug:15254250

Change-Id: Iaa45f758e09566822775b53e87d2980138e85ef9
2014-08-28 18:45:50 -07:00
Filip Gruszczynski
30a480bcfc Merge "Allowing isRound and outsetBottom properties to be passed to ActivityView." into lmp-dev 2014-08-27 23:22:29 +00:00
Filip Gruszczynski
f14d924cd7 Allowing isRound and outsetBottom properties to be passed to ActivityView.
We remove requirement for having display id == 0 or allow circumventing it
through a flag.

Change-Id: Ia4671614b51894393d47e681cc72718d394230f6
2014-08-27 15:38:24 -07:00
Michael Wright
3cb3e8b92f Merge "Allow voice assist to function in a non-interactive state" into lmp-dev 2014-08-27 21:16:34 +00:00
Michael Wright
869a67c0b1 Allow voice assist to function in a non-interactive state
Currently the InputDispatcher blocks the VOICE_ASSIST key from being
sent to the window manager when the system is in a non-interactive
state.  Move the key handling to interceptKeyBeforeQueueing to avoid
this but also push off the behavior to a handler to avoid any
potential blocking of the input queue as we call into other system
services.

Bug: 16292420
Change-Id: I5bbe3455f2af5249151127dede2204cf1f12a19f
2014-08-26 20:18:24 -07:00
Jeff Hao
1b012d302b Add sample profiling option to am.
Also bundles all profiling options into a class.

Bug: 17040932
Change-Id: I85d675ee1494bdc7308caffdf94145d27c996e9d
2014-08-26 15:54:25 -07:00
Jorim Jaggi
64d04347a8 Merge "Always allow translucent bars for keyguard" into lmp-dev 2014-08-26 13:11:11 +00:00
Adam Powell
b79a70ab71 Merge "Add state save/restore for Toolbar" into lmp-dev 2014-08-26 01:29:15 +00:00
Adam Powell
31c91c8179 Add state save/restore for Toolbar
Save and restore the menu state for Toolbars. This will make sure that
we remember expanded action views and opened overflow menus across
state save/restore.

Remove an extra event post involved in the initial population of
action bar menus. Apparently at some point an extra level of this was
added that isn't necessary. Process any pending menu invalidations
immediately when we perform window state restoration. This makes sure
individual bits of state in action views, etc. are also restored
properly.

Bug 12005461

Change-Id: Icf905698576b11a59641bc319adc62300857906f
2014-08-25 18:25:54 -07:00
Nancy Chen
e4b1d57dfd Merge "API review PhoneManager -> TelecommManager. Rename methods (6/6)" into lmp-dev 2014-08-25 22:24:09 +00:00
Michael Wright
f93afcf195 Merge "Remove Meta-Tab shortcut for Recents." into lmp-dev 2014-08-25 19:29:49 +00:00
Nancy Chen
0eb1e402c7 API review PhoneManager -> TelecommManager. Rename methods (6/6)
PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I7d573e27ed093f2ddb7849703cc62f9916835393
2014-08-25 10:50:44 -07:00
Michael Wright
0e47941d5e Merge "Cancel pending meta actions when the key pressed *isn't* meta." into lmp-dev 2014-08-25 17:23:25 +00:00
Jorim Jaggi
20060091e2 Merge "Fix password unlock method" into lmp-dev 2014-08-25 16:09:23 +00:00
Jorim Jaggi
e070018b3e Fix password unlock method
- Update layouts/assets to material
- Fix that the virtual keyboard didn't always come up
- Fix window layout of status bar window, so it's above the IME when
  on Keyguard

Bug: 16957208
Change-Id: I1785af9ac73103abe6cd9968ed27582fbfc9a1d9
2014-08-25 17:21:05 +02:00
Michael Wright
251e35da76 Cancel pending meta actions when the key pressed *isn't* meta.
Bug: 17207035
Change-Id: I980107a453814e4e34e32db338620e90d3b388ee
2014-08-22 15:40:27 -07:00
Michael Wright
931b2e7c3a Merge "Add Voice Assist key." into lmp-dev 2014-08-22 18:02:27 +00:00
Adrian Roos
4fb3ee31c3 Always allow translucent bars for keyguard
Bug: 15530908
Change-Id: If2b6505e3ec03ad2ebec85eb7922ababd787208e
2014-08-22 19:29:09 +02:00
Michael Wright
dc63f7b91c Add Voice Assist key.
The action taken is dependent on whether the device is in an
interactive state, allowing for interactions to work even when the
device isn't actively being used

Bug: 16292420
Change-Id: I897f4383e7e4766c0bcb6246b41514b46e03a9ac
2014-08-21 19:05:21 -07:00
Michael Wright
61c4675ff4 Remove Meta-Tab shortcut for Recents.
Bug: 16904053
Change-Id: I45e87c655738fece1d3899ec68bc3813700831bb
2014-08-21 16:57:33 -07:00
George Mount
b89d5cc2c6 Allow Activities to opt into using Overlay for shared elements.
Bug 17001227

Change-Id: Icc49a81357ee69abd2a15a1d1efcead298ab3fb7
2014-08-21 14:30:51 -07:00