Commit Graph

4685 Commits

Author SHA1 Message Date
Alan Viverette
b0465be3f5 am 7332e1f9: am d8bbf4cd: Merge "Add first day of week API to date picker" into lmp-dev
* commit '7332e1f9ba1c217cacfd5986e4722e4698d3b08d':
  Add first day of week API to date picker
2014-09-07 23:29:30 +00:00
Alan Viverette
a3ca5a31a5 Merge "Add first day of week API to date picker" into lmp-dev 2014-09-07 23:13:46 +00:00
Kenny Guy
cc8b8e8e0e am cc3fa1ef: am 42484d43: Merge "Fix RemoteViews to inflate views for current user." into lmp-dev
* commit 'cc3fa1ef5c5058d352dbf9d22141fa12d763e106':
  Fix RemoteViews to inflate views for current user.
2014-09-05 15:44:00 +00:00
Kenny Guy
da3af8fe1b Merge "Fix RemoteViews to inflate views for current user." into lmp-dev 2014-09-05 11:19:01 +00:00
Adam Powell
a46bdef5a8 am ce9978b5: am c3b7ca91: Merge "Menu callbacks for ToolbarActionBars, part 2" into lmp-dev
* commit 'ce9978b5fed0f941bf3613910d58c3d1538660b0':
  Menu callbacks for ToolbarActionBars, part 2
2014-09-05 04:26:05 +00:00
Adam Powell
c461250424 Menu callbacks for ToolbarActionBars, part 2
Pass through the menu mode change events and make sure Activities get
prepare/open/close events properly.

Bug 17326424

Change-Id: I0ac2f56e4d0054ef01720b2ff1c41ded053750c7
2014-09-04 19:16:39 -07:00
Adam Powell
7701884dd0 am f34ce09c: am 2e9f1521: Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev
* commit 'f34ce09c34591d16eb1cdf82fb4cb9af6855ffce':
  Dispatch more menu events to window callbacks from ToolbarActionBar
2014-09-05 00:41:01 +00:00
Adam Powell
e67efe66b9 am c947bffa: am 5a01e292: Merge "Material EdgeEffect refinements" into lmp-dev
* commit 'c947bffac6d9c0778eb63a2a183fe963695d07f2':
  Material EdgeEffect refinements
2014-09-05 00:40:56 +00:00
Adam Powell
e50a26f3d8 Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev 2014-09-05 00:26:30 +00:00
Adam Powell
1e7b18188c Merge "Material EdgeEffect refinements" into lmp-dev 2014-09-05 00:24:58 +00:00
Adam Powell
710c456ddb Material EdgeEffect refinements
Add back auto-recede for EdgeEffect, but with a longer delay. Removing
it caused compatibility issues in existing custom views that never
call onRelease. The longer delay will be a signal that something is
amiss without disrupting the UX too badly.

Recede the glow more quickly on release.

Start translucent and fade to more opaque as the glow grows and is
pulled further. Make the opacity stronger in the extreme cases so the
glow is more prominent.

Equalize glow size across the width and height.

Bug 15146438
Bug 15936708

Change-Id: I020d705906e6225b044d0f5303bafa733a679a66
2014-09-04 17:03:43 -07:00
Adam Powell
04c0d46078 Dispatch more menu events to window callbacks from ToolbarActionBar
Wire through the callbacks that result in onPrepareOptionsMenu being
called properly when an activity overflow menu is opened.

Bug 17326424

Change-Id: Ifc5b67af0d215f210bb00326f82f60ba55a36d52
2014-09-04 16:25:26 -07:00
Alan Viverette
f97d540026 am 2bb0dec5: am 69dc952d: Merge "Fix AM/PM text i18n and clean up keyboard support in time picker" into lmp-dev
* commit '2bb0dec5fb6e4e1d112bbbea7ce59ae0d6b9127a':
  Fix AM/PM text i18n and clean up keyboard support in time picker
2014-09-04 21:17:05 +00:00
Alan Viverette
3b256c850c Merge "Fix AM/PM text i18n and clean up keyboard support in time picker" into lmp-dev 2014-09-04 20:45:12 +00:00
Kenny Guy
44dfe678b3 am 68fc49ee: am 56e125ff: Merge "Revert "Ensure all RemoteViews use myUserId rather than context."" into lmp-dev
* commit '68fc49ee0ac26467dd2c2e4dbc9cea7124ae05a2':
  Revert "Ensure all RemoteViews use myUserId rather than context."
2014-09-04 19:36:51 +00:00
Kenny Guy
773200640b Fix RemoteViews to inflate views for current user.
Fix RemoteViews so that it loads resources from
user that created the RemoteViews but inflates
for the user applying the RemoteViews.
Fix Notification to rebuild RemoteViews with
same ApplicationInfo as original app.

Bug: 17302505
Change-Id: I39f21eef83d63e9e494ea35818e1eb969edd38d7
2014-09-04 20:18:35 +01:00
Kenny Guy
692356b7c3 Revert "Ensure all RemoteViews use myUserId rather than context."
This reverts commit 5287e37687f117ac0b690100ad90842eff58d15a.
Reverting because only worked if settings cache had been populated
already.

Bug: 17302505
Change-Id: I4360606e9d9c6409951f0a02bd0b78c55085e0c6
2014-09-04 18:24:31 +01:00
Kenny Guy
c08ab9528e am 0d548a70: am 5c32b77f: Merge "Ensure all RemoteViews use myUserId rather than context." into lmp-dev
* commit '0d548a7043e56d0e5070b475cbdfc9a3fb41c13e':
  Ensure all RemoteViews use myUserId rather than context.
2014-09-04 13:30:39 +00:00
Kenny Guy
a449018105 Merge "Ensure all RemoteViews use myUserId rather than context." into lmp-dev 2014-09-04 13:09:32 +00:00
Kenny Guy
879ebec4e2 Ensure all RemoteViews use myUserId rather than context.
Remote views may be inflated in another user so
explicitly use processes user id rather than the
user id of the context.

Bug: 17302505
Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
2014-09-04 12:40:24 +01:00
Svetoslav Ganov
a0fc968327 am 85a57781: am bb9a2035: This is no longer needed for factory ROM and since it changes behavior - reverting. Also causes NPE crash.
* commit '85a577817ce618fc490da0876d3b0587b6dcaf5c':
  This is no longer needed for factory ROM and since it changes behavior - reverting. Also causes NPE crash.
2014-09-04 03:55:09 +00:00
Alan Viverette
0a04bb0d4b Add first day of week API to date picker
BUG: 17377360
Change-Id: Id4c109ac68e083d488a4281655bf9411fea92163
2014-09-03 20:48:02 -07:00
Adam Powell
06e6ef2c9e am 3d20a2c0: am bc01a3e4: Merge "Fix a regression in SearchView focusability" into lmp-dev
* commit '3d20a2c0aebe1faa58e00ccd3b2f3cd5eae20389':
  Fix a regression in SearchView focusability
2014-09-04 03:44:43 +00:00
Svetoslav Ganov
588e117cce This is no longer needed for factory ROM and since it changes behavior - reverting. Also causes NPE crash.
Revert "NumberPicker not announcing current selection."

This reverts commit 44d026c95bb9e582b7b18e355ec7a3458df52259.

Change-Id: I0bb6db9666fc9eb477737d1114c5c87035ed202b
2014-09-04 03:28:50 +00:00
Alan Viverette
ba9bf41a77 Fix AM/PM text i18n and clean up keyboard support in time picker
Also updates date picker to use drawable for the header background to
match the implementation in time picker. The time picker background
now supports showing a focused state ripple.

BUG: 17344077
BUG: 16227517
Change-Id: Ida715badb4a151fc16edd91fd4a0dae32953c99e
2014-09-03 20:14:21 -07:00
Adam Powell
ea4ecd6241 Fix a regression in SearchView focusability
A bit of code was removed that re-read the View style attributes
during SearchView construction to extract the focusable attribute, but
with a different default value if it was entirely missing. Restore it,
and lump re-reading the focusable attribute in with SearchView's
styleable filter array instead of using the giant View one for a
second time during inflation.

Bug 17292230

Change-Id: Ic5a2dd2d55893b0b290f1f7a3b6de09b37329245
2014-09-03 19:35:37 -07:00
Svetoslav
4fe51bf45a am 068d7dd0: am c23f9664: Merge "NumberPicker not announcing current selection." into lmp-dev
* commit '068d7dd0b7ed5bd633045b7a7a61f9b8ed0bdeee':
  NumberPicker not announcing current selection.
2014-09-03 23:47:54 +00:00
Svetoslav
058e1f5a38 Merge "NumberPicker not announcing current selection." into lmp-dev 2014-09-03 21:29:16 +00:00
Svetoslav
ca50566101 NumberPicker not announcing current selection.
bug:17299486

Change-Id: I73fd33ef3518ef8e6cdd40cd036e8f104dc492b6
2014-09-03 13:26:34 -07:00
Yohei Yukawa
8bb3b4331c am d88a1f97: am ebb6b422: Merge "API Review: InputConnection" into lmp-dev
* commit 'd88a1f9790bfaaa6540f65d76827274d716a2539':
  API Review: InputConnection
2014-09-03 14:35:32 +00:00
Alan Viverette
9cca0b4a12 am 0fd03d91: am b975fe87: Merge "Fix accessibility events emitted from TwoStatePreference" into lmp-dev
* commit '0fd03d91fe4ca61ce62844d59f8c3a3481a1b627':
  Fix accessibility events emitted from TwoStatePreference
2014-09-03 06:13:24 +00:00
Adam Powell
0c0702da64 am 9f7a5fae: am 1b17f939: Merge "Automatically supply a content description for ToolbarActionBar nav" into lmp-dev
* commit '9f7a5fae89057644244f0821f75954100ff6deaa':
  Automatically supply a content description for ToolbarActionBar nav
2014-09-03 06:13:06 +00:00
Yohei Yukawa
ce8244ac71 am 449ee1aa: am 667b31d2: Merge "API Review: CursorAnchorInfo" into lmp-dev
* commit '449ee1aa7aad49def82bff3c09754a0ad8bc3e2a':
  API Review: CursorAnchorInfo
2014-09-03 06:12:56 +00:00
Raph Levien
82ea4ee7f4 am 83f28d57: am 2e97ac0c: Merge "Ensure layout in getExtendedPadding calls" into lmp-dev
* commit '83f28d5710b9ffca5ab8876e12458a515e694645':
  Ensure layout in getExtendedPadding calls
2014-09-03 05:48:48 +00:00
Yohei Yukawa
d8636ea7ca API Review: InputConnection
This CL does nothing but rename some L API candidates
in InputConnection class, as per requested.

- requestUpdateCursorAnchorInfo()
  -> requestCursorUpdates()
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_IMMEDIATE
  -> CURSOR_UPDATE_IMMEDIATE
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_MONITOR
  -> CURSOR_UPDATE_MONITOR

BUG: 17320996
Change-Id: I772c48ff18918e48a81e807b48ff907614485c09
2014-09-02 22:39:08 -07:00
Alan Viverette
f6f7b0c569 Merge "Fix accessibility events emitted from TwoStatePreference" into lmp-dev 2014-09-03 00:38:59 +00:00
Adam Powell
d400ca2f8d Merge "Automatically supply a content description for ToolbarActionBar nav" into lmp-dev 2014-09-03 00:11:00 +00:00
Yohei Yukawa
d780ce1920 Merge "API Review: CursorAnchorInfo" into lmp-dev 2014-09-02 23:45:36 +00:00
Alan Viverette
996a63859f Fix accessibility events emitted from TwoStatePreference
Removes redundant and conflicting events emitted from check and switch
preferences. Sends VIEW_CLICKED accessibility events from AdapterView
rows after calling their on click listeners, which ensures data is
consistent.

BUG: 16961152
Change-Id: I4b57bceec6830d775c2da57226b8ee482242caf7
2014-09-02 16:35:45 -07: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
Raph Levien
4c5ea10caf Merge "Ensure layout in getExtendedPadding calls" into lmp-dev 2014-09-02 21:53:26 +00: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
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
Ronghua Wu
ea34edbee6 am eaa9befb: am e4999af8: Merge "API: Document android-allow-cross-domain-redirect in MediaPlayer and VideoView" into lmp-dev
* commit 'eaa9befb1e981d58a8e4d248c88d4fe204d06ea9':
  API: Document android-allow-cross-domain-redirect in MediaPlayer and VideoView
2014-09-02 17:43:10 +00:00
Ronghua Wu
a7118c9bb2 Merge "API: Document android-allow-cross-domain-redirect in MediaPlayer and VideoView" into lmp-dev 2014-09-02 17:27:26 +00:00
Jorim Jaggi
a44cedee59 am db68bb49: am faecb0b4: Merge "Media notification updates" into lmp-dev
* commit 'db68bb49ab069f6044ad806a845b6914905c230f':
  Media notification updates
2014-09-01 16:13:52 +00:00
Jorim Jaggi
17ee3ec0b8 Media notification updates
- Make text white.
- Adjust padding & metrics to redlines.
- Use different narrow layout when 3 or less notifications with big
  picture.
- Update action ripples.
- Fix progress bar size & fix color for indeterminate progress bar.
- Apply default background in SystemUI when no color is set, so we
  don't end up with white text on white background.

Bug: 15437369
Bug: 16625746
Bug: 15147533
Change-Id: Ie8bd5ad0bbca972685adb50034fff88ea97456bd
2014-09-01 17:26:51 +02:00
Adam Powell
3db557537a am 41d34328: am ae806d87: Merge "Doc improvements for new Toolbar changes, now with attributes." into lmp-dev
* commit '41d34328b8b85d67a754687bd4e7570cdd4e8846':
  Doc improvements for new Toolbar changes, now with attributes.
2014-08-29 18:48:52 +00:00
Adam Powell
60aa53f71b am 1ae3bf17: am cbed634a: Merge "Don\'t add title margins during to Toolbar layout if titles don\'t fit" into lmp-dev
* commit '1ae3bf177d3ad86071ed7183511ef05ee57c6dcf':
  Don't add title margins during to Toolbar layout if titles don't fit
2014-08-29 18:48:44 +00:00
Adam Powell
06086bc31e am 32e9145c: am 31192ba8: Merge "Add xml attributes to Toolbar for navigation icon" into lmp-dev
* commit '32e9145c929ba740e3fce91cc495a97a538a9c37':
  Add xml attributes to Toolbar for navigation icon
2014-08-29 18:48:38 +00:00