9290 Commits

Author SHA1 Message Date
Baligh Uddin
02b73a5f02 Import translations. DO NOT MERGE
Change-Id: I11c9c29232a06253d5edb83b02237ba9a9493213
Auto-generated-cl: translation import
2014-07-16 17:36:26 -07:00
Sailesh Nepal
001bbbb239 TTY: frameworks/base changes
This CL makes the following changes:
  1. New public APIs:
    - TelecommManager.getCurrentTtyMode: This is used to
      get current TTY mode. It's used by Telephony to set
      the phone state before calls are created (which is why
      it can't be a Conneciton API).
    - TelecommConstants.TTY_MODE_*: These are constants
      copied from Phone.java
    - TelecommConstants.ACTION_CURRENT_TTY_MODE_CHANGED: This
      action is fired when the current TTY mode changes.
      Apps can listen to this before and during a call.
      The old version of this was in TtyIntent.java which
      I deleted.

  2. New private API
    - TelecommManager.isTtySupported: This is used by
      Telephony to hide the TTY settings on devices
      that don't support TTY

  3. Various updates to use the constants renamed in this CL

Change-Id: I652b095af30cc2732a06829dc23492e5355660da
2014-07-16 21:14:58 +00:00
Winson Chung
cc91208963 Merge "Don't clobber intent flags when starting recent activities anew. (Bug 16327074)" into lmp-dev 2014-07-16 02:25:05 +00:00
Winson Chung
dc9b7e7e6a Don't clobber intent flags when starting recent activities anew. (Bug 16327074)
Change-Id: I3bfee312d5e3167d443be48580da55d8b69b485e
2014-07-16 18:27:22 +00:00
RoboErik
8b4bffcac9 Make MediaSession and MediaController constructors public
This makes the MediaSession/Controller constructors public and registers
with the system behind the scenes.

This also adds a bit about needing to call setActive(true) to start receiving
commands in MediaSession's docs.

Change-Id: If882d229b54c36bf0831aca0255052dda667a2bc
2014-07-16 12:03:45 -07:00
Jason Monk
febcb9d42b Merge "Finalizing lock-to-app UX" into lmp-dev 2014-07-16 00:53:22 +00:00
Dan Sandler
a3514c3a4d Merge "Prevent dismissing autoredacted private notifications." into lmp-dev 2014-07-16 01:00:53 +00:00
Dan Sandler
0d3e62f3e0 Prevent dismissing autoredacted private notifications.
Bug: 16295169
Change-Id: Ic1a13ae1a501ae4a5633ef9c84c59ff13543eb1b
2014-07-16 12:04:06 -04:00
Dan Sandler
18bb4f9920 Clean up autoredaction text.
Also show the timestamp if the original notification does.

Bug: 16289371
Change-Id: I6898990629c036dc7c1a129609449e556f8afa72
2014-07-16 12:04:05 -04:00
John Spurlock
50806fc4ce Zen: handle exit conditions across reboots.
- Use the persisted exit condition (and a new
  persisted exit component) to immediately resubscribe
  to the manual exit condition (if present)
- Fire false immediately for old countdown conditions.
- Add a new zen lens to noman dump, and a bit more info.
- Refresh the current exit condition when reopening the panel.

Bug:15844990
Bug:16212455
Change-Id: I8bfaf1b2a6cf3d8818002a9db5c527ad3aa4c05c
2014-07-16 06:54:35 -04:00
Dan Sandler
5c95b3de42 Merge "Clean up autoredaction text." into lmp-dev 2014-07-16 00:46:50 +00:00
Adrian Roos
00a0b1f397 Implement real QS user switcher
Replaces the stop-gap user switcher with the real deal.
Dimensions may need some further adjustments.

Bug: 15545213
Change-Id: I4399635c03553dac935049d5b8297fe5f5c1dc9a
2014-07-16 16:25:30 +00:00
Svetoslav
cc2b210ff8 Merge "Update the promoted action background color per UX spec" into lmp-dev 2014-07-16 02:18:09 +00:00
Svetoslav
4bcc4a042c Update the promoted action background color per UX spec
bug:16303010

Change-Id: I54663a0be79b232a29d8fced4a772a32b4d83ae5
2014-07-15 17:33:52 -07:00
Svetoslav
e323dcc31d Drop of the final UX assets for printing.
bug:15705610

Change-Id: I82104a2c0b3d1f4e34f71357b10bed24c0583e71
2014-07-15 17:16:40 -07:00
Svetoslav
73764e347d Update the page count in the print UI to meet new UX.
bug:15912257

Change-Id: I1aa3eb4f7e28d3d9c955f60a570c2f8800fdb88d
2014-07-15 15:56:52 -07:00
Svetoslav
283203e204 Style the all printers activity in material theme.
bug:16301078

Change-Id: Ib96f1e232914802d0b5ddc874be4a4d24a74b685
2014-07-15 14:02:55 -07:00
Svetoslav
38408ff5b7 Remove text selector and hide ime on print options close.
bug:16301754

Change-Id: I69bf09df9976b12c611821737eb4abb794c1df80
2014-07-15 12:56:02 -07:00
Svetoslav
b4d873288d Adjust preview page footer height and font size.
bug:16300627

Change-Id: I135c13085fa0c48de6bedaa58b3974f800547e99
2014-07-15 12:31:39 -07:00
Svetoslav
fd9369c7ae Update the color pallete of the print options UI.
The print options UI now uses the material theme with custom
branding collors that follow the rest of the system UI.

bug:16301325

Change-Id: I5fefcd95ada0172a028574550dcfdf628f9ce22d
2014-07-15 11:40:09 -07:00
Svetoslav
41233447f9 Merge "Drop of the final UX assets for printing." into lmp-dev 2014-07-15 20:35:01 +00:00
Svetoslav
67eb5bbd53 Merge "Update the page count in the print UI to meet new UX." into lmp-dev 2014-07-15 20:33:11 +00:00
Svetoslav
6114981cce Merge "Style the all printers activity in material theme." into lmp-dev 2014-07-15 20:39:52 +00:00
Svetoslav
5150bcba8e Merge "Remove text selector and hide ime on print options close." into lmp-dev 2014-07-15 16:05:04 +00:00
Svetoslav
e9866fdfa3 Merge "Adjust preview page footer height and font size." into lmp-dev 2014-07-15 16:04:58 +00:00
Svetoslav
5a554fb5b9 Merge "Update the color pallete of the print options UI." into lmp-dev 2014-07-15 16:05:07 +00:00
Dan Sandler
6d8edb1170 Merge "Pressed the "dim" button on the clock one too many times." into lmp-dev 2014-07-15 16:05:45 +00:00
Dan Sandler
bd8797616d Pressed the "dim" button on the clock one too many times.
Bug: 16202293
Change-Id: I0d1c746bb775f56db018c231a296daca848e9235
2014-07-15 13:38:41 -04:00
Winson Chung
82c8c5e987 DO NOT MERGE Using a fixed sized ImageView to prevent unnecessary layouts.
- Preparing for task view clipping using the view outline

Change-Id: I4aae4189a759a48057f1e3729cc2a9e6d553c11e
2014-07-15 17:25:21 +00:00
John Spurlock
a7cf5597e3 QS: Fix bug in header toggle switch.
Bug:16314528
Change-Id: Ia6061c61bbbad73862d2e63331135b324f102feb
2014-07-15 10:56:46 -04:00
Adrian Roos
945654188e Merge "Make user switcher appear inside the QS panel" into lmp-dev 2014-07-14 21:09:14 +00:00
Adrian Roos
1ef80fe590 Make user switcher appear inside the QS panel
Bug: 15545213
Change-Id: I0f15214a7474ae5303c3af0b7ef6f6a11be572b8
2014-07-15 15:43:31 +02:00
Wei Liu
b7697c698b am c84e73d1: am 9d43fa84: Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
* commit 'c84e73d1035d99743da243a202c1499f70518620':
  Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
2014-07-15 00:49:30 +00:00
Wei Liu
c84e73d103 am 9d43fa84: Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
* commit '9d43fa84054dc3c0229f5138495f6b6cdf0477db':
  Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
2014-07-14 23:18:00 +00:00
Adrian Roos
5f1652c285 Add strings for QS user switcher
Bug: 15545213
Change-Id: Iec98b704cd4b662d3cc5ff0b76671d44f93837d5
2014-07-14 22:39:54 +02:00
Jason Monk
7779bf1ce8 Finalizing lock-to-app UX
Simplifications have happened to remove the enter/exit layouts
and just use a toast to notify the user, and the in text icons
have been removed.

The enter dialog now has a checkbox to see if the lockscreen
should be locked on exit (since it isn't in settings anymore).

Also updated strings.

Bug: 15836599
Change-Id: I3ab685bf3672c8a7f9d83d12e81f0099968cdfde
2014-07-14 19:43:13 +00:00
Winson Chung
85cfec811e Fixing potential crash when attemping to read null thumbnail (Bug. 16289301)
- Refactoring to remove unnecessary updates of RecentsConfiguration
- Removing unused logs

Change-Id: If427e565ab7260009ffb9be8ca45ba833c8262af
2014-07-14 21:52:34 +00:00
Adrian Roos
915fcd1075 Merge "Add strings for QS user switcher" into lmp-dev 2014-07-14 18:40:56 +00:00
Svetoslav
17d734fee4 Page size not always adjusted
A user can select the pages to print by selecting a range from the
UI after which the selected pages appear in the preview list. Now
the user can further prune pages by clicking on them. If the number
of pages change to two or one the page position and size were not
adjusted. Now after the constraints of desected by clicking pages
are propafated the page size position is also computed.

bug:16297811

Change-Id: I62c0ae8ab5b1d91b120cbf9faa9653ef4ccbd97f
2014-07-14 13:31:23 -07:00
Svet Ganov
25885ecbe4 Rename historical records if printer name changed.
We keep track of previously used printers. It is possible that the name
of a previously used printer changed. In this case we want to change
this printer's name in the historical records to be able to show the
correct name in the UI when loading the history.

bug:13524346

Change-Id: I0a37bd52a564df5a84c816abfcf03db83de93b97
2014-07-14 17:28:01 +00:00
Winson Chung
fbff489167 Merge "DO NOT MERGE Fixing some regressions" into lmp-dev 2014-07-14 17:14:37 +00:00
Winson Chung
93748a11cb DO NOT MERGE Fixing some regressions
- Removing some legacy code with task loading
- Ensure that doze triggers are set correctly on configuration change
- Adding WCAGv2 contrast checking for deciding which foreground color to use for labels
- Bumping up the max thumbnail cache size slightly
- Fixing case where visibility state was not correct if you toggle recents too quickly

Change-Id: I5e954890d53948547842edce3c76c34d74e180a8
(cherry picked from commit e99e1009ce49caf220aa51c044ed53ac0a3b7cc6)
2014-07-14 17:11:48 +00:00
John Spurlock
33f4e04e32 Volume: Delay adjustments made when showing ringer UI.
Since the volume rocker is now the primary system UI for
entering ringer modes, we need to provide a way to display
the ui without making a sound.

Change the policy for the ringer stream to only display the
UI on the initial adjustment request, don't actually make
an adjustment.  However, don't break previous ability to
press and hold the vol keys down to vibrate, so allow this
after the standard framework long-press delay.

Audio service had no way of knowing whether or not the registered
volume controller was visible, so add a mechanism for the
controller (volume panel) to send that info back to the service.

Found and fixed a discrepancy between AudioManager.handleKeyDown
and MediaSessionLegacyHelper so that an adjustment over the
keyguard is allowed to vibrate as well as play sound during
adjustments.

Bug:16202639
Change-Id: Icd36c23e8d08c4ed57922c05724b281f32049be7
2014-07-14 16:49:34 +00:00
Svet Ganov
a4ab780877 Fix broken actions in print notifications.
The notification handling broadcast receiver was renamed but the
manifest was not updated, hence the receiver was not registered.

bug:16289408

Change-Id: I094e20e472abff1f926e1dbfbac32f422f498f74
2014-07-14 15:43:16 +00:00
Svet Ganov
6f60e56b3c Improve print options click to open behavior.
When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc
2014-07-14 15:25:13 +00:00
Wei Liu
9d43fa8405 Update the string for take bug report to say "Swipe left to share" instead of "Touch to share"
BUG: 15589908

Change-Id: I69e176343906c8f87b8f50ba844b15e3e89f0c48
2014-07-11 23:11:04 +00:00
John Spurlock
1a462c1d23 QS: Update rotation lock icons.
Only three states: unlocked / portrait / landscape, no animation.

Bug:16161728
Change-Id: Id916b81c09925455f87cfccf1350ac4977bad42e
2014-07-14 11:01:24 -04:00
John Spurlock
549dbd601a Merge "QS: Cellular usage warning marker + policy cycle." into lmp-dev 2014-07-10 21:28:08 +00:00
Svet Ganov
9fb7b07c6c Dimming deselected preview pages
For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85
2014-07-14 07:31:07 +00:00
Svet Ganov
48fec5c9a3 Top printer not properly selected.
We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021
2014-07-14 07:15:34 +00:00