10469 Commits

Author SHA1 Message Date
Jeff Brown
c2932a1be3 Hold a wake lock while dozing when display updates are pending.
When the display state is DOZE or DOZE_SUSPEND, assume this means
that the AP may go to sleep at any time so hold a wake lock for
a little while starting when traversals are scheduled to ensure
that the AP remains awake long enough to draw and post the frame
to the display hardware.

This patch is somewhat approximate but should be good enough for
most devices today.

Note that the implementation uses the window manager to ensure that
the window which wants to draw is actually visible before acquiring
the wake lock.  There is a cost to this test (a round-trip) which
should not be significant today since we do not expect apps to draw
more than one frame or two while dozing.  However, if we wanted to
support animations in general, we might want to optimize it or
eliminate the check altogether (since we can already account for
the app's use of the wake lock).

Another way to implement this functionality might be for the view
hierarchy to listen for the power manager to report that it has entered
a non-interactive power state before deciding to poke draw locks.
This would be somewhat more accurate than watching the display state.
Also, the draw lock timeout logic could be implemented more directly
instead of using an ordinary timed wake lock.

Bug: 18284212
Change-Id: I84b341c678303e8b7481bd1620e634fe82cc4350
2015-02-20 10:54:09 -08:00
Casey Burkhardt
0944984c36 Refinements to magnification for improved wearable support.
This change refactors ScreenMagnifier to use resources for its triple-tap
adjustment and scale threshold values.  New values more appropriate for
wearable form factors are supplied.  This also fixes a bug in the triple-
tap detection logic where the incorrect ViewConfiguration value for the
tap threshold was used, prematurely disqualifying some touch events as
potential taps.

Change-Id: If47e556aadb5beb1bad24644122560c6fbe33bad
2015-02-18 12:24:45 -08:00
Geoff Mendal
7308751517 Import translations. DO NOT MERGE
Change-Id: Ic7373e3d8859d80c1472906c39ec46626b569c1b
Auto-generated-cl: translation import
2015-02-18 05:47:24 -08:00
Filip Gruszczynski
d81ecd12ce Support for faster brightness response to light changes.
Bug: 18572096

Change-Id: Ic9448db672b036779d16883f3476249cea45d97a
2015-02-13 09:40:15 -08:00
Casey Burkhardt
6f2dd8a9b1 Merge "Support circular magnification frame on circular devices" into lmp-mr1-modular-dev 2015-02-12 23:23:45 +00:00
Geoff Mendal
926839346d Import translations. DO NOT MERGE
Change-Id: I687ccfbddefdf63cdf6b5ef561dbf8261d66ce73
Auto-generated-cl: translation import
2015-02-12 14:32:53 -08:00
Casey Burkhardt
d29a1e47d4 Support circular magnification frame on circular devices
The magnification viewport expects its boundary to be a rectangular region,
and always draws it as such.  This change causes the indicator to draw as a
circle on devices with circular displays.  This also refactors the width of
the indicator's frame to use a proper dimension resource and updates the
width to 4dip.

Bug:18242438
Change-Id: I1d86647b6d1ef84f5dd506f4141223ec050a79b5
2015-02-12 14:13:10 -08:00
Bryce Lee
a7404dbde9 Merge "Add voice assist action for global actions." into lmp-mr1-modular-dev 2015-02-06 23:05:05 +00:00
Bryce Lee
cc8b467c59 Add voice assist action for global actions.
Bug: 18919886
Change-Id: Idd74cf6980207deabfb312732a0316a2edf3c176
2015-02-05 18:39:01 -08:00
Alan Viverette
eb6f3f8851 am 69a62a8b: Merge "Update preference dialog padding to Material" into lmp-mr1-dev
* commit '69a62a8b0df71b0a26d55c29c71dd311dbe174c7':
  Update preference dialog padding to Material
2015-02-05 22:11:32 +00:00
Alan Viverette
69a62a8b0d Merge "Update preference dialog padding to Material" into lmp-mr1-dev 2015-02-05 22:06:36 +00:00
Alan Viverette
2fb5a6ab9f Update preference dialog padding to Material
Mostly copy/paste of the Holo with some padding fiddling to make the
EditText, which has baked-in padding, and TextView line up.

Bug: 19280124
Change-Id: I4a8ad7dcc1f1bd519f4d1c506984871a25a1db31
2015-02-05 12:35:07 -08:00
Alan Viverette
6708ac40f2 Move layer-list to be top-level element in seek bar progress
automerge: bac8e12

* commit 'bac8e12ebd8ed143cd2f1974280f0495c837def4':
  Move layer-list to be top-level element in seek bar progress
2015-02-05 03:35:27 +00:00
Alan Viverette
bac8e12ebd Move layer-list to be top-level element in seek bar progress
There is a bug in <scale>, but this works around it for now. Removes
the previous fix, which broke the initial state due to the level not
propagating when the current drawable was swapped out.

Bug: 19269656
Change-Id: Ibe586ef4ea326a7ce7516ca42a369c5386c24359
2015-02-04 17:15:01 -08:00
Alan Viverette
f89e06fa58 Merge "Replace ic_clear with vector icon" into lmp-mr1-dev
automerge: 721a957

* commit '721a95784eb646a1bf42debb68da0efddc8cad3d':
  Replace ic_clear with vector icon
2015-02-05 01:11:28 +00:00
Alan Viverette
b0d672376d Replace ic_clear with vector icon
Fixes the clear icon being really tiny.

Bug: 19248473
Change-Id: I2c87aa9e055d04d96fa6ccf458cfcc642a4d55ab
2015-02-04 22:49:02 +00:00
Geoff Mendal
140a22de8e Import translations. DO NOT MERGE
Change-Id: Ibdc0a2c8927af8036040a542f6484db1ea65880d
Auto-generated-cl: translation import
2015-02-04 06:28:45 -08:00
Geoff Mendal
c6fc528713 Import translations. DO NOT MERGE
Change-Id: I1151a10a47c8545c3db3445a2cdbe6edffa6c177
Auto-generated-cl: translation import
2015-02-02 08:39:50 -06:00
Alan Viverette
f607fa6b73 am d38cc749: Merge "Avoid bug in LinearLayout measurement" into lmp-mr1-dev
* commit 'd38cc749215c0e41bcb06703066c379de83d91e4':
  Avoid bug in LinearLayout measurement
2015-01-30 03:20:44 +00:00
Alan Viverette
3e2ec1cc9c Avoid bug in LinearLayout measurement
Reverts to Holo-style layout where the View divider masks the bug.
Uses a 0-height divider to avoid visual changes.

Bug: 19201079
Change-Id: Ib9e701815c57b23d5ba7173f8de553e90e27ed11
2015-01-30 01:30:23 +00:00
Raph Levien
61ff4d1deb am d24047dc: Merge "Use constants instead of resources for ellipsis." into lmp-mr1-dev
* commit 'd24047dcfed3fb7c913a0a5950c9f48ce3d49b9e':
  Use constants instead of resources for ellipsis.
2015-01-29 23:17:01 +00:00
Raph Levien
d24047dcfe Merge "Use constants instead of resources for ellipsis." into lmp-mr1-dev 2015-01-29 23:04:15 +00:00
Igor Viarheichyk
6f9f1d4b3b Use constants instead of resources for ellipsis.
All supported locales use only U+2025 and U+2026 to represent
ellipses, and it will unlikely change in future. Given translated
resources are inconsistent and often use three dots it is safer
to use constants instead of resources.

(cherry-pick of ed0daa93e48d38e54a7ad1c99c461510a4c07599.)

Bug: 18542179
Change-Id: I51a6cb903f62f739fbadd6b78e5765c0028d641a
2015-01-29 15:00:13 -08:00
vandwalle
0a22d43c91 Merge "aggressively blacklist WifiConfiguration for the purpose of switching network" into lmp-mr1-dev
automerge: d169839

* commit 'd1698393e71f4792f98156bb963e5876bc8c2eb0':
  aggressively blacklist WifiConfiguration for the purpose of switching network
2015-01-29 04:57:00 +00:00
vandwalle
d1698393e7 Merge "aggressively blacklist WifiConfiguration for the purpose of switching network" into lmp-mr1-dev 2015-01-29 04:50:44 +00:00
Geoff Mendal
7608492dea Import translations. DO NOT MERGE
Change-Id: I1c7abd76bf9a24b5e05058f17d1c64d9051b5f81
Auto-generated-cl: translation import
2015-01-28 08:21:29 -06:00
Tim Kilbourn
9626854543 Add a config for whether to start in touch mode.
Bug: 18925810
Change-Id: Ic9b956cde380cffcad7ca229f1669692b1743e6d
2015-01-27 13:51:58 -08:00
Jose Lima
7a22fc62d3 Allow disabling the Options Pannel feature for TVs
- Added a config entry in velues-television to disable the options panel
feature for TVs.
- Fixed parts of the code in PhoneWindow that assumed this feature is supposed
to always be available, which was causing exceptions when it was turned off.

Bug: 18780696
Change-Id: I923bd4b5019d634e5352a6e893005133edb475f6
2015-01-26 17:39:49 -08:00
Geoff Mendal
d57adbbc4f Import translations. DO NOT MERGE
Change-Id: If6bad1c33638d232a6f320637ac0e13c8a67adfb
Auto-generated-cl: translation import
2015-01-26 08:16:38 -06:00
Alexandra Gherghina
abaf69dd19 Merge "Update badge assets" into lmp-mr1-dev 2015-01-26 11:59:22 +00:00
Alexandra Gherghina
b5d34f3b6a Update badge assets
Bug: 18829152
Change-Id: I26936dc528b8d56e37eb02fa04177ad3f225b007
2015-01-26 10:40:34 +00:00
vandwalle
8650c03560 aggressively blacklist WifiConfiguration for the purpose of switching network
In cases where networks are not properly configured, WiFi might tries to repeatdly switch from one network to a bad network, or might try to roam and renew DHCP which can fail. In KK, WiFi autojoin would try other networks (by cycling to network it sees) and end up associated to a "good" network. In L release even thought WiFi might pick a good network it will still repeatedly try to switch to what it thinks is a better network and fail, thus annoying the user whose connection becomes unstable. This CL tries to remember networks that have seen multiple DHCP or auth failure in the past and for those networks it disable roaming temporarily. That is, if wifi is not associated to any network, it will tries to join a network aggressively, however if wifi is currently associated to a network, it will not try to switch to a new network if that new network has seen multiple failure in the past. The maximum blacklist time is set to 2 days for now.
    An example of such situation is:
    - user has multiple SSID at home, one of which is incorrectly configured with a wrong password
    - broken DHCP situation (potentially: multiple servers on home network, broken implementation incorrecting NAK'ing DHCP requests but properly serving DHCP offer...)
Bug:18792931

Change-Id: I332a9cebdc19be2e00b455205d386fcffcb70b29
2015-01-23 18:35:27 -08:00
Sanket Padawe
b6b29ba45a Remove entries from config_tether_apndata for some carriers.
+ Remove entries from config_tether_apndata when primary carrier requires
DUN apn and the mvno does not.

Bug: 19006861

Change-Id: Idf93fe2302662ce2b25e72277080bbc9d410b2de
2015-01-22 17:43:08 -08:00
Geoff Mendal
af69fcd0bd Import translations. DO NOT MERGE
Change-Id: I3d03c8e758bc8ecfe8e8b789fcfeab386e7eec9a
Auto-generated-cl: translation import
2015-01-21 08:15:11 -06:00
Geoff Mendal
2bc2a99406 Import translations. DO NOT MERGE
Change-Id: If4c684beabdf14e6dad7c9584ac9b9cb0fb048d0
Auto-generated-cl: translation import
2015-01-19 06:49:11 -08:00
Geoff Mendal
faf92d7256 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2015-01-15 23:39:49 +00:00
Geoff Mendal
116f90c895 Import translations. DO NOT MERGE
Change-Id: I4580b358133cd261985459a26a1c4bc36a14d630
Auto-generated-cl: translation import
2015-01-15 15:14:15 -08:00
Alan Viverette
03748a5707 Ensure scroll assets are drawn with correct opacity
Bug: 18903443
Change-Id: I5a7e738b1a09c22857683e2540c96a050b82866e
2015-01-15 13:00:21 -08:00
Alan Viverette
f39d650280 Make the DatePicker dialog fit on smaller screens in landscape mode
Bug: 18933437
Change-Id: Id40351d52a7eab81e15e1f0120a9da961ef21d0a
2015-01-14 16:58:05 -08:00
Geoff Mendal
3d9875f477 Import translations. DO NOT MERGE
Change-Id: I58457a1543f87145ae4a2c3292e49465939f715d
Auto-generated-cl: translation import
2015-01-12 16:07:33 +00:00
Etan Cohen
038c3d21a7 Added configuration to determine whether VoLTE requires provisioning.
Bug: 18576107
Change-Id: I08c231a3d876f3fe92c0fcb7f52be878b2da00dd
2015-01-10 04:26:22 +00:00
Robin Lee
7f7ea82c28 Profile owner hint in warning for extra CAs
The version of the warning with a named installer should be shown in
the case of a managed profile, not only a managed device.

Bug: 18224038
Change-Id: I27865f77e963b9b15416f2e4a4ffc38fed8f5532
2015-01-09 11:25:04 +00:00
Robin Lee
2cc617b2ad Merge "Revert "Profile owner hint in warning for extra CAs"" into lmp-mr1-dev 2015-01-08 22:31:36 +00:00
Robin Lee
e53b7dd066 Revert "Profile owner hint in warning for extra CAs"
This reverts commit e1d8dcd9e170c1ed8a13b6e1256ea1fb22c26c49.

Something funny happened in the process of submitting this,
swathes of strings.xml became mis-encoded.

Bug: 18224038
Change-Id: I0276ff3f880fe749546e8cc7e3e2f41c22c27705
2015-01-08 22:08:42 +00:00
Sanket Padawe
d3b69567e3 Merge "Removing DUN APN for Koodo CA (302-220)" into lmp-mr1-dev 2015-01-08 19:08:08 +00:00
Sanket Padawe
cb2dc52aa6 Removing DUN APN for Koodo CA (302-220)
Bug: 18813997
Change-Id: I7d129dfa0015d8a1d01e749dafcb7d95f837a5ec
2015-01-08 11:05:43 -08:00
Geoff Mendal
585a210ddb Import translations. DO NOT MERGE
Change-Id: I41b418841fd7a2c436257ec29312411b1277b867
Auto-generated-cl: translation import
2015-01-07 07:24:21 -08:00
Robin Lee
374c358dd2 Merge "Profile owner hint in warning for extra CAs" into lmp-mr1-dev 2015-01-07 12:30:57 +00:00
Alan Viverette
ccfd34f6b5 Merge "Scroll handle was half as opaque as it was supposed to be" into lmp-mr1-dev 2015-01-06 00:49:09 +00:00
Alan Viverette
c01678ea2d Scroll handle was half as opaque as it was supposed to be
BUG: 18903443
Change-Id: Ie6a220899685f654a40d57ae0408e9c91afe868a
2015-01-05 16:06:26 -08:00