149432 Commits

Author SHA1 Message Date
RoboErik
42f0a36ece Merge changes Id38bcf7c,I54f156d9 into lmp-dev
* changes:
  Update MediaController comment to mention notification listeners
  Don't play a sound when adjusting volume while telephony is active
2014-09-03 00:26:10 +00:00
RoboErik
f2133474af Update MediaController comment to mention notification listeners
Forgot to update the comment to specify that notification listeners
may also get a MediaController from the manager.

Change-Id: Id38bcf7cb38185bfe4f99bcf8889a6415320dd36
2014-09-02 17:22:08 -07:00
RoboErik
7a18cb5672 Don't play a sound when adjusting volume while telephony is active
bug:17106215
Change-Id: I54f156d91440ce777e5a4d473cdd47927479d084
2014-09-02 17:22:08 -07:00
Adam Powell
d400ca2f8d Merge "Automatically supply a content description for ToolbarActionBar nav" into lmp-dev 2014-09-03 00:11:00 +00:00
Alan Viverette
36bdc9fe9a Merge "Make sure ripple background bounds are used for invalidation" into lmp-dev 2014-09-02 23:56:15 +00:00
Yohei Yukawa
d780ce1920 Merge "API Review: CursorAnchorInfo" into lmp-dev 2014-09-02 23:45:36 +00:00
Jungshik Jang
e8f8bc0ad6 Merge "Make stream_music volume configurable." into lmp-dev 2014-09-02 23:20:32 +00:00
Adam Powell
12b0321c0b Automatically supply a content description for ToolbarActionBar nav
If the developer hasn't set a navigation content description on the
Toolbar assigned to be an action bar or a home-action content
description via the ActionBar interface, use the framework default
"navigate up" string.

Also make sure that the default Up description is supplied in the
screen_toolbar window decor layout and that it is parsed properly in
all toolbars, even if we don't have an icon set during construction.

Bug 17298370

Change-Id: Ie2f9e34f92046d4d4ffb9a07e38fa89581891f7b
2014-09-02 16:20:08 -07:00
John Reck
3d3f5f8c68 Merge "Implement TODO" into lmp-dev 2014-09-02 22:58:51 +00:00
Dianne Hackborn
526b642290 Merge "And yet more logging for slow execution." into lmp-dev 2014-09-02 22:49:38 +00:00
John Reck
1661715d40 Implement TODO
Change-Id: I551ad0dab6356baa4c7787718b54d5b7337a3f26
2014-09-02 15:44:14 -07:00
Lorenzo Colitti
ca2f20deaa Merge "Use per-Network connection pools for openConnection." into lmp-dev 2014-09-02 22:40:10 +00:00
Lorenzo Colitti
089ea995ba Merge "Pass the socket mark for DNS queries to dnsmasq." into lmp-dev 2014-09-02 22:39:18 +00:00
Michael Wright
17516155d7 am 144c21c2: (-s ours) am da3b4363: DO NOT MERGE: Use a linear spline if there\'s a non-monotonic brightness curve
* commit '144c21c2a063981efe942f98c4fa22ebd5f728fc':
  DO NOT MERGE: Use a linear spline if there's a non-monotonic brightness curve
2014-09-02 22:24:30 +00:00
Alan Viverette
d379361ecb Merge "Update pointer hotspots to scale for DPI" into lmp-dev 2014-09-02 22:20:12 +00:00
Alan Viverette
be0dd99bac Make sure ripple background bounds are used for invalidation
BUG: 17349157
Change-Id: Ie88fbabbc66349aea9b7d00e28ca12f93776a4a7
2014-09-02 15:05:27 -07:00
Michael Wright
144c21c2a0 am da3b4363: DO NOT MERGE: Use a linear spline if there\'s a non-monotonic brightness curve
* commit 'da3b43633fe86d69aab5cab52826e76e01f18d63':
  DO NOT MERGE: Use a linear spline if there's a non-monotonic brightness curve
2014-09-02 22:02:23 +00:00
Dianne Hackborn
7b7b754fab Merge "Add public constant for usage stats app op." into lmp-dev 2014-09-02 21:54:56 +00:00
Raph Levien
4c5ea10caf Merge "Ensure layout in getExtendedPadding calls" into lmp-dev 2014-09-02 21:53:26 +00:00
Craig Mautner
980d466342 Merge "Account for scaling effects when cropping" into lmp-dev 2014-09-02 21:53:03 +00:00
Svet Ganov
561b893174 Merge "Move print rendering in an isolated process." into lmp-dev 2014-09-02 21:51:47 +00:00
Adrian Roos
8c8fbcf358 Merge "Disable touch dispatch while adjusting brightness" into lmp-dev 2014-09-02 21:51:47 +00:00
Shri Borde
ffc150ebed Merge "Bug 17243357: Remove MessagingConfigurationManager" into lmp-dev 2014-09-02 21:48:10 +00:00
Michael Wright
da3b43633f DO NOT MERGE: Use a linear spline if there's a non-monotonic brightness curve
Some devices may contain things like transflective displays where
they actually want the backlight brightness to decrease in the face
of high ambient light scenarios. In the interest of time, just use a
linear interpolation based on the brightness control points for these
cases but in the future we should consider adding a non-monotonic
cubic spline.

Bug: 15611140
Change-Id: I308ad00943d916866ee8d2507a41b7032e6b524e
2014-09-02 14:47:37 -07:00
Adrian Roos
9dc3209913 Disable touch dispatch while adjusting brightness
Prevents new pointers from being added while the shade
is transparent so that nothing gets touched by accident.

Bug: 17113634
Change-Id: I4a607d08dbccd467280159060846edd32db9c512
2014-09-02 23:38:59 +02:00
Craig Mautner
78505d8d09 Account for scaling effects when cropping
When a scaled window inherits the crop from an attached animating
window the scaling must be accounted for or the crop will obscure
the scaled window.

In the case of the bug that this CL fixes, the SurfaceView containing
a video was scaled down from 1920x1080 by a factor of 0.562 to fit in
1080 width. The crop applied to the window was 1080 but this was passed
to surfaceflinger which ended up cropping the width to 608 due to the
scaling.

Applying the scaling factor to the crop rectangle fixes this bug.

Fixes bug 16334217.

Change-Id: Iafefe43d3696d9fbff01a3666096348468a41e1a
2014-09-02 14:36:31 -07:00
Adrian Roos
38b4670d46 Merge "Don't drop up or cancel touch events" into lmp-dev 2014-09-02 21:35:59 +00:00
Dianne Hackborn
36927a3600 And yet more logging for slow execution.
Change-Id: Idd485d3b4339e22a38fd688cbd435818ca38d233
2014-09-02 14:32:02 -07:00
Raph Levien
463cf1aea8 Ensure layout in getExtendedPadding calls
There are cases in which getExtendedPaddingTop() and Bottom can get
called even without a valid layout. This patch just makes sure there
is some reasonable layout available.

Fix for bug 14819392 "java.lang.NullPointerException in
android.widget.TextView"

Change-Id: I203899402ddfe857a688b16b7855a8991eee82b7
2014-09-02 14:23:18 -07:00
Adrian Roos
ce5474b837 Don't drop up or cancel touch events
Otherwise you're gonna have a bad time.

Bug: 17113634
Change-Id: I24fa13a4379bab0cef014010058d08096abda094
2014-09-02 23:19:56 +02:00
Yohei Yukawa
cc24e2b6a2 API Review: CursorAnchorInfo
This CL introduces following combinable flags as a replacement
of CHARACTER_RECT_TYPE_* constants.
- CursorAnchorInfo.FLAG_HAS_VISIBLE_REGION
- CursorAnchorInfo.FLAG_HAS_INVISIBLE_REGION

This CL also replaces #isInsertionMarkerClipped() with
flags.

Rationale:
getCharacterRectFlags() should return a set of flags, rather
than enum-like types.

getInsertionMarkerFlags() is more consistent with
getCharacterRectFlags() than isInsertionMarkerClipped().
It is also open for future extension.

BUG: 17200900
Change-Id: Ia8cbb9f6b41cd9509fc0147fd68763dfde593ffc
2014-09-02 14:08:39 -07:00
Shri Borde
7237972bff Bug 17243357: Remove MessagingConfigurationManager
It is replaced with SmsManager.getCarrierConfigValues

Change-Id: I560a53427b08746f2a7ed2e540ecb2c978b7ebd0
2014-09-02 14:00:21 -07:00
Jorim Jaggi
4dc653aaa2 Merge "Fix outdated time when turning on screen" into lmp-dev 2014-09-02 20:26:39 +00:00
Jean-Michel Trivi
859f4f7272 Merge "Restore permission check for mic muting" into lmp-dev 2014-09-02 20:23:00 +00:00
Mathieu Chartier
8c94a8f280 Merge "Add missing null check to ninePatchInsets" into lmp-dev 2014-09-02 20:07:05 +00:00
Jorim Jaggi
d09def7511 Fix outdated time when turning on screen
Force a synchronous update of the clock view when turning on the
screen. Also wait for the Keyguard window to be drawn when turning
on the screen.

Bug: 16904617
Change-Id: I38f78a38cfe35ccd067cd420d2bad626bd955ad6
2014-09-02 22:05:42 +02:00
Selim Cinek
58703e651c Merge "Notifications are now selectable by the Keyboard" into lmp-dev 2014-09-02 20:01:07 +00:00
Jorim Jaggi
4b149860b8 Merge "Remove different layout for landscape in Keyguard" into lmp-dev 2014-09-02 20:01:03 +00:00
Jorim Jaggi
e82f90e72e Remove different layout for landscape in Keyguard
Bug: 15422177
Change-Id: I8a643a8f6dcfed1530f17e8de6a5cc69533528b4
2014-09-02 21:54:25 +02:00
Dianne Hackborn
c8838dfbec Merge "Fix issue #17322903: Crash in systemUI while launching an app from recents tab" into lmp-dev 2014-09-02 19:38:25 +00:00
Chris Craik
0fd79c955b Merge "Fix precision issues for roundrect clipping" into lmp-dev 2014-09-02 19:25:09 +00:00
Svet Ganov
13f542cabd Move print rendering in an isolated process.
Security review of the PDF rendering code revealed that it is
not sercure. Therefore, this code must be run in a sandbox.
This change moves the rendering code in an isolated process.

bug:16897933

Change-Id: I711ce42a56892db1837950137bfaa79e1d61a7c4
2014-09-02 11:40:44 -07:00
Tsuwei Chen
1611c21dfd Merge "Reload GPS configuration after carrier info is available. Bug: 17110478 Change-Id: I1ecb71c4ca661df3dfeaea1622d73caeacb1350e" into lmp-dev 2014-09-02 18:36:37 +00:00
Paul Lawrence
e2c88d39b2 Add constants so we can distinguish decryption failures
Bug: 17213613
Change-Id: I6bc10a1ed0855f6946ea9eb2f8d2db00c1af327c
2014-09-02 18:26:32 +00:00
Christopher Tate
e93e6c81f2 Merge "Don't rewrite package restrictions unconditionally in findPreferredActivity()" into lmp-dev 2014-09-02 18:09:08 +00:00
Dianne Hackborn
5064e7c70c Add public constant for usage stats app op.
Change-Id: Ibc031b50e9fa4f1bd0955e0afd98e8b1bd77b905
2014-09-02 10:57:16 -07:00
Michael Wright
02aa75a083 Merge "VirtualDisplay.Callbacks -> Callback" into lmp-dev 2014-09-02 17:54:45 +00:00
Jean-Michel Trivi
5f4cfd3ab7 Merge "Move *_AUDIO_PLUG actions from Intent to android.media.AudioManager" into lmp-dev 2014-09-02 17:52:46 +00:00
Alan Viverette
376d10e99e Update pointer hotspots to scale for DPI
Also updates the bitmap resources, which weren't scaled correctly
for their respective DPI buckets.

BUG: 16459309
Change-Id: Iedc781e2ee47a8b960390fea718cb08bcfb84ae3
2014-09-02 10:45:30 -07:00
Svet Ganov
6906771d76 Merge "Magnification bounds not always animated on a looper thread." into lmp-dev 2014-09-02 17:43:18 +00:00