3171 Commits

Author SHA1 Message Date
Filip Gruszczynski
300ccf4ab5 am 0ec1328f: Calculate outset hint when adding window.
* commit '0ec1328f85a08a610868856c688ebb8196c79c17':
  Calculate outset hint when adding window.
2015-06-30 20:20:48 +00:00
Filip Gruszczynski
0ec1328f85 Calculate outset hint when adding window.
Outsets aren't dynamic so they are a great candidate for a hint when the
window is added through the window manager. Thanks to this during first
view hierarchy measure or wallpaper window layout they are immediately
available and don't require multiple measure/layout passes.

Bug: 21593814
Change-Id: I573c15ffbbe4fcd8a6ed9c5e4fcd6cfbbcd7434f
2015-06-30 12:42:17 -07:00
Bryce Lee
d903e580aa am cc2ba220: Merge "Only enable theater mode by button press after setup." into cw-d-mr1-dev
* commit 'cc2ba2200ddc9d95753fa930aa245540fac880e8':
  Only enable theater mode by button press after setup.
2015-06-30 18:34:47 +00:00
Bryce Lee
cc2ba2200d Merge "Only enable theater mode by button press after setup." into cw-d-mr1-dev 2015-06-30 17:13:04 +00:00
Bryce Lee
cb8f188191 Only enable theater mode by button press after setup.
Bug: 21751167
Change-Id: I7f69ff767aaea97829e8eb6f5f13faace1aae416
2015-06-25 10:54:06 -07:00
Bryce Lee
91d2cbf447 am 65dca454: Merge "Turn off theater mode upon power button press." into cw-d-mr1-dev
* commit '65dca454c7a717b001b51d0089e7565ba428ce87':
  Turn off theater mode upon power button press.
2015-06-23 23:04:26 +00:00
Bryce Lee
685ed12b5d Turn off theater mode upon power button press.
Bug: 20032225
Change-Id: I80dee2981a8c4ccae5e02b56b7f4ef0f1bd6e169
2015-06-18 14:39:14 -07:00
Filip Gruszczynski
f6a0430592 am 8487c937: Merge "More inclusive rules for using outsets." into cw-d-mr1-dev
* commit '8487c937fb7eb8159e472011074eaa5f5d51405e':
  More inclusive rules for using outsets.
2015-06-03 22:45:59 +00:00
Filip Gruszczynski
b7de0e5467 More inclusive rules for using outsets.
Just fullscreen windows is not enough for existing uses. We also need to
preserve chin functionality for overscan windows and wallpapers.

Change-Id: I0266d126244102e04bb29aa08e122b3c68d88383
2015-06-01 16:18:51 -07:00
Filip Gruszczynski
a61e23f13b am 35a803be: Only use outsets for full screen windows.
* commit '35a803beec9ce508fd53ab7e4111f2f9f87296c1':
  Only use outsets for full screen windows.
2015-06-01 16:01:16 +00:00
Filip Gruszczynski
35a803beec Only use outsets for full screen windows.
Change-Id: I1d89c314b0f9944dfa417ce066c397073d51466e
2015-06-01 08:35:01 -07:00
Filip Gruszczynski
47249f2a9e am cb89ac84: Merge "Support for devices with a chin." into cw-d-mr1-dev
* commit 'cb89ac84c621e047d81873428325dfd747b90a6b':
  Support for devices with a chin.
2015-05-20 22:54:14 +00:00
Filip Gruszczynski
3e11bf33a6 Support for devices with a chin.
Information about the chin is now part of the config.xml instead of the
theme. It is retrieved by WindowManagerService and passed to the clients
as insets. Clients can adjust their behavior in a way that makes it
invisible to the user, that part of the surface doesn't actually exist.

Bug: 19908853

Change-Id: Iedf57bf3c848201b854f91ffeb3b59187d375c1f
2015-05-20 14:20:30 -07:00
Joe LaPenna
08bea4c90d am 627f2681: Merge "Wait for KEY_SLEEP UP event before calling goToSleep()" into lmp-mr1-modular-dev
* commit '627f26817f752e0e1beb4185e778edc4501b4aa6':
  Wait for KEY_SLEEP UP event before calling goToSleep()
2015-05-14 21:07:54 +00:00
Nick Vaccaro
018319a024 Wait for KEY_SLEEP UP event before calling goToSleep()
Calling goToSleep() on the KEY_SLEEP DOWN event causes a race
condition with the touch driver when the KEY_SLEEP event is generated
via a palm press if the touch controller is told to go into
AMBIENT_ON mode (touch controller goes into suspend mode) while the
user's palm is still on the touch panel.  If touch controller gets
into suspend mode before user removes their palm, the act of removing
the palm from the screen will cause the touch controller to generate a
wake event and the device will "wake back up" into interactive mode.

Waiting for the KEY_SLEEP UP event before putting the device to sleep
assures palm is off the panel and thus removes this race case.

Bug: 19951365
Change-Id: Icf565177696769b8dbeeb645ac883ebe3e0acb45
2015-04-29 02:54:27 +00:00
Craig Mautner
148187255e am 80f99121: Merge "Prevent infinite layout and wallpaper flashing"
* commit '80f99121ea96cdabea6260ab165e7183431be513':
  Prevent infinite layout and wallpaper flashing
2015-04-21 15:19:06 +00:00
Bryce Lee
73b56873f1 am eccaf729: Allow going to home action to work for SHORT_PRESS_POWER_GO_HOME with keyguard enabled.
* commit 'eccaf7290ab833d12049a184747603cd74261490':
  Allow going to home action to work for SHORT_PRESS_POWER_GO_HOME with keyguard enabled.
2015-04-10 19:51:32 +00:00
Bryce Lee
eccaf7290a Allow going to home action to work for SHORT_PRESS_POWER_GO_HOME with
keyguard enabled.

Bug: 20037090
Change-Id: I613f3278a234e3961cb4be1976da0f821aebfc1f
2015-04-09 13:10:33 -07:00
Joe LaPenna
e59f426050 am 1f956e42: Merge "Make burn in protection updates happen on the minute." into lmp-mr1-modular-dev
* commit '1f956e424320b22255f293e9b6d7d0b30b19a79f':
  Make burn in protection updates happen on the minute.
2015-04-03 21:03:33 +00:00
Filip Gruszczynski
c069f921d9 Make burn in protection updates happen on the minute.
Bug: 20052872

Change-Id: Iff7e081a9ae99b457024537b8c64b7c2572b6172
2015-04-02 16:19:35 -07:00
Bryce Lee
7eeaad244c am 7a1454fe: Merge "Do not use the status bar as the system decor layer if it is not visible." into lmp-mr1-modular-dev
* commit '7a1454fe69bc2aa561874e550b05d5cb218bc047':
  Do not use the status bar as the system decor layer if it is not visible.
2015-04-01 19:15:11 +00:00
Bryce Lee
ae41dcab07 Do not use the status bar as the system decor layer if it is not visible.
Doing so leads to cropping of the content view, which is smaller than the
screen size on some devices with improperly configured overscan values. It
can also lead to performance issues with some activity transition
animations on Wear.

Bug: 19928768
Change-Id: Ic50c2fedb1f8be9a8ea5166fef5a5665958601de
2015-04-01 10:57:21 -07:00
tiger_huang
517129cfa4 Prevent infinite layout and wallpaper flashing
The original logic would cause mTopFullscreenOpaqueWindowState to be
hidden in PhoneWindowManager.finishPostLayoutPolicyLw(), and to be
shown in WindowAnimator.updateWindowsLocked() continuously if there
is a show-when-locked dialog.

The wallpaper would be hidden after the original wallpaper target is
hidden, before the new wallpaper target is shown.

https://code.google.com/p/android/issues/detail?id=162495

Change-Id: I918e0fa03eec38d9f0c07150c17013c6c21683cb
2015-03-31 22:09:49 +08:00
Griff Hazen
38f75097ff am 0b42ff79: Merge "Allow emulator to select a window outset bottom" into lmp-mr1-modular-dev
* commit '0b42ff7916e6cc32c812a3be8f3e4ebdf96e8553':
  Allow emulator to select a window outset bottom
2015-03-22 00:05:48 +00:00
Griff Hazen
0b42ff7916 Merge "Allow emulator to select a window outset bottom" into lmp-mr1-modular-dev 2015-03-21 23:59:46 +00:00
Jeff Brown
13d81b6dd2 am 619ce1ce: am d6216305: Merge "Disable more hotkeys while in setup." into lmp-mr1-dev
* commit '619ce1ce534775ab0ff4d591a69dafd53c04a315':
  Disable more hotkeys while in setup.
2015-03-20 22:35:41 +00:00
Jeff Brown
619ce1ce53 am d6216305: Merge "Disable more hotkeys while in setup." into lmp-mr1-dev
* commit 'd62163055f983b95a954f1a6c2cbc8e0085a7ab5':
  Disable more hotkeys while in setup.
2015-03-20 22:10:54 +00:00
Jeff Brown
38d3feb76c Disable more hotkeys while in setup.
Disables fallback key processing for CALL, CAMERA, and HEADSETHOOK
buttons.

Bug: 19767816
Change-Id: I423103c367e05827c939cd8d8dbecb6012b0e9f0
2015-03-20 13:26:09 -07:00
Bryce Lee
b45d3926f3 am 8320cf2d: Merge "Fix wrong intent being passed in PhoneWindowManager." into lmp-mr1-modular-dev
* commit '8320cf2de357265179c3007256394b0cbb69d949':
  Fix wrong intent being passed in PhoneWindowManager.
2015-03-19 21:30:43 +00:00
Bryce Lee
9cd2e62612 Fix wrong intent being passed in PhoneWindowManager.
When starting going home for Wear, the intent extra indicating the
intent is coming from a button press must be set. This was lost during
a merge conflict resolution.

Bug: 19832892
Change-Id: I6b77757b34f99dd754194448fdea9165690fc90f
2015-03-19 13:27:26 -07:00
Bryce Lee
8b8a045133 am 8bc23e82: Merge "Add Assist global action for wear to different from VOICE_ASSIST" into lmp-mr1-modular-dev
* commit '8bc23e82af040334af4f2af1dae9898cc8c66df8':
  Add Assist global action for wear to different from VOICE_ASSIST
2015-03-19 00:21:13 +00:00
Bryce Lee
8bc23e82af Merge "Add Assist global action for wear to different from VOICE_ASSIST" into lmp-mr1-modular-dev 2015-03-19 00:14:07 +00:00
Bart Sears
f5353e9dda am 91281bbd: resolved conflicts for merge of cc86bc0c to lmp-mr1-modular-dev
* commit '91281bbdde1d8bcec993ff61044a5aa4897f3175':
  Prevent activities from being started during setup wizard.
2015-03-18 22:53:22 +00:00
Bart Sears
91281bbdde resolved conflicts for merge of cc86bc0c to lmp-mr1-modular-dev
Change-Id: Ifb6c4ec5560c50a4bb91426734d7e05cd0c46e93
2015-03-18 14:12:10 -07:00
Bart Sears
cc86bc0c92 am c2eb5c60: Merge "Prevent activities from being started during setup wizard." into lmp-mr1-dev
* commit 'c2eb5c602d36d91483c8f24b0c6859e4283724b4':
  Prevent activities from being started during setup wizard.
2015-03-18 20:28:59 +00:00
Filip Gruszczynski
d0663e0365 am 7bd2feda: Merge "Add animation to zeroing burn in protection." into lmp-mr1-modular-dev
* commit '7bd2feda9e146c90c8720d8aa213ebcd9c30430c':
  Add animation to zeroing burn in protection.
2015-03-17 20:44:58 +00:00
Filip Gruszczynski
7bd2feda9e Merge "Add animation to zeroing burn in protection." into lmp-mr1-modular-dev 2015-03-17 20:38:35 +00:00
Filip Gruszczynski
81c47fc23a am 86318d76: Merge "Option for going home when going to sleep for devices without physical button." into lmp-mr1-modular-dev
* commit '86318d768a2c5043e1261e9daacf1497d1e4a732':
  Option for going home when going to sleep for devices without physical button.
2015-03-17 18:35:17 +00:00
Filip Gruszczynski
17413eb575 Add animation to zeroing burn in protection.
Also don't shift immediately after starting ambient mode, but wait until
the first update.

Bug: 19521822
Change-Id: Id0b267d0f30e4533195dcfadbed726db0866e4db
2015-03-17 11:30:12 -07:00
Filip Gruszczynski
9779e128d6 Option for going home when going to sleep for devices without physical button.
Bug: 19623388
Change-Id: Iec16f83c64646ded12ec97d4b540510b7f9dfd47
2015-03-16 08:57:17 -07:00
Bryce Lee
8326554788 Add Assist global action for wear to different from VOICE_ASSIST
Bug: 19722315
Change-Id: I0b1e5625a2eaabfe0015a4d730b25e84d60a3714
2015-03-14 07:57:48 -07:00
Michael Wright
561d104367 Prevent activities from being started during setup wizard.
Bug: 19677145
Change-Id: I1d7ca7b25077652355aa55848f973efa69d4b654
2015-03-13 19:51:28 -07:00
Griff Hazen
a093802171 Allow emulator to select a window outset bottom
And clean up some copied around code.

Bug: 17440607

Change-Id: I5cf9c58b49110c4be1a77dc9c410fedc6b99aef3
2015-03-13 10:01:41 -07:00
Mark Renouf
91239a0b73 am cc2212d2: Merge "Adds system property for developer option for force-enable burn-in protection" into lmp-mr1-modular-dev
* commit 'cc2212d2eea86e733955bdeda36cb7e4afe2bb6a':
  Adds system property for developer option for force-enable burn-in protection
2015-03-10 16:45:06 +00:00
Mark Renouf
cc2212d2ee Merge "Adds system property for developer option for force-enable burn-in protection" into lmp-mr1-modular-dev 2015-03-10 16:38:54 +00:00
Bryce Lee
1b8df04b8d am 8aeab6c8: Allow the keyguard service to be configurable.
* commit '8aeab6c8b9b89d77108fc05245561e33113fe27f':
  Allow the keyguard service to be configurable.
2015-03-09 15:35:38 +00:00
Bryce Lee
168d0ade0c am 1e53b98c: Merge "Allow press and hold from non-interactive." into lmp-mr1-modular-dev
* commit '1e53b98c38b6606859f4b33a98d776cbb65f1a42':
  Allow press and hold from non-interactive.
2015-03-09 15:35:05 +00:00
Bryce Lee
8aeab6c8b9 Allow the keyguard service to be configurable.
Change-Id: I811171c228764c3e0e507ad3ce28835ccad9bb31
2015-03-06 15:21:46 -08:00
Mark Renouf
77ac63b00a Adds system property for developer option for force-enable burn-in protection
BUG: 18428140
Change-Id: Ie1b88e84631310541337b4e9b3120c1390d6767b
2015-03-04 20:59:14 +00:00
Bryce Lee
82ae149f5b Allow press and hold from non-interactive.
Bug: 19520133
Change-Id: I3ad50f72499667e9b711057f381144a6c3ae6138
2015-02-27 17:59:16 -08:00