933 Commits

Author SHA1 Message Date
Julia Reynolds
be8fdee532 Differentiate between apps that use topics and those that don't.
Bug: 22451710
Change-Id: Idb567a4fc511a03cb999179765cfa4cbeb63dcb7
2015-12-18 15:57:43 -05:00
Winson Chung
2a43922df9 Merge changes Iac20cc7b,I87ce6320
* changes:
  Fixing potential issue with wrong task descriptions being loaded.
  Refactoring to AnimatedEvent.
2015-12-17 22:33:54 +00:00
Winson Chung
296278a067 Fixing potential issue with wrong task descriptions being loaded.
- Also cleaning up the Task to remove some confusing nomenclature
  related to task properties.  Now there is a single icon and title,
  and we keep a copy of the TaskDescription for future icon loading.
- Also changing a few cases where we should be calling isFreeformTask()

Bug: 26221779
Change-Id: Iac20cc7b4912f76c14232a323981ab2e8f62628a
2015-12-17 17:29:40 -05:00
Julia Reynolds
a07af88b95 Allow users to set app-wide Importance default
And the associated ui changes to the notification guts.

Bug: 22451710
Change-Id: I4e0b11e7b24d70b039a432c5e6cd76c9c7cc547c
2015-12-17 16:53:36 -05:00
Winson Chung
b169ebd4c4 Loading activity icons in History view.
Change-Id: I68bbef59d380ce7abe251fca75135775528429d5
2015-12-16 15:27:05 -05:00
Winson Chung
48f2cda829 Removing the debug header bar icon.
- Repurposing resize button to move tasks between
  stacks when freeform is enabled
- Enabling freeform workspaces for supported
  devices
- Removing old debug dialog

Bug: 26043230
Bug: 24815256

Change-Id: If3236999dd236de5d5bd665d69edfc17f18f74f0
2015-12-15 15:30:12 -05:00
Winson Chung
9a74290a95 Coordinating empty view with the history view.
- Moving the empty view into the RecentsView so
  that we can coordinate its animation with the
  history button and the task stack (when history
  is visible, all of the other views are animated
  away, and vice versa)
- Removing unnecessary launch state flag to keep
  track of recent task empty state just for deciding
  animations for system bar scrims.
- Fixing issue with overview button not dismissing
  the history view while it is open
- Fixing issue with swiping the last recent task
  away causing both Overview and the docked task
  to be dismissed to home

Bug: 26044055
Change-Id: I731fb0f7efb3de7d5f826673479c602b606453e9
2015-12-14 14:15:23 -05:00
Julia Reynolds
ead00aac15 Add importance to notification guts.
Note: the guts are still trucated to the height of the notification.
The slider initially shows the importance of the individual notification,
but changing the slider changes the importance for the whole group
of notifications.

Bug: 22451710

Change-Id: Id6de3aaace2bdb88a8cc5db517002dc7f0e349ae
2015-12-11 14:57:47 -05:00
Adrian Roos
245aa87f3f Even more Inline Reply goodness
- Removed action icon processing
- Correct color for action label
- Change default notification color to Gray 600
- Handle different states in RemoteInputView
- Handle updates to Notifications with active remote input

Bug: 22452379
Change-Id: I30a0cd917dbf814f156ab5a106e018a245d99b67
2015-12-10 17:04:32 -08:00
Jason Monk
ec9af01df5 Fix default QS tiles
Also add emergency only to header.

Bug: 26124044
Change-Id: If39fa2cca052b711516bd5a92a91f541ad00e62a
2015-12-10 11:10:23 -05:00
Jason Monk
2945e95c76 Merge "Make the new QS the new QS" 2015-12-09 18:53:40 +00:00
Selim Cinek
7b83639c34 Changed the appearance of the notification children
Some further tuning to the layout

Change-Id: Ifb3797e9982d718a30954adb9e1901eb2a1fa75d
2015-12-08 16:25:00 -08:00
Jason Monk
deba7a42ed Make the new QS the new QS
Some UI updates to the header, then make the new QS the default
state for everyone.

Change-Id: I82b6bebb0b21a5c9eb926cb1a761cac340a293df
2015-12-08 16:19:13 -05:00
Jason Monk
dc35dcb14a Working towards a better QS
Some work (mostly on the new QS only) to make things more like they
will be.

 - Remove Quick Tiles
 - Remove Dual Tiles
 - All tiles are the same, with slightly different UI in the header
 - QS tiles in the header match the beginning of QS
 - handleClick is a click from QS, handleSecondaryClick is a click
   from the header, but defaults to normal behavior.
 - Opening a detail panel from the header opens QS and the detail
   selected
 - Fix onStartListening bug in CustomTile
 - UI updates towards how QS will look

Change-Id: Id820586ccdaa258a5bcb72cadbeb14941fc5f935
2015-12-08 09:53:36 -05:00
Jorim Jaggi
7b79b1e13d Fix round rect in divider handle
Also make it a bit larger to make it more grabable.

Change-Id: I2335e85b35a90d87d1b6f889921731833199cd3e
2015-12-07 14:24:29 -08:00
Selim Cinek
eaa29ca6ff Migrated the systemUI based notification header
Previously the notification header had a seperate implementation
in SystemUI from which the platform implementation was derived.
Now that everything is in the framework, we’re migrating the
implementation for notification groups.ß

Change-Id: Ia61a75bd6c85e1805d4364a9e7e4587a020c1271
2015-11-30 17:46:21 -08:00
Winson
37fc513d01 Fixing several bugs.
- Prevent long pressing to drag when a task is already docked
- Ensure that the history button has a bit of background protection
- When fast-toggling, the second tap should actually activate the 
  second task and not the third
- Align the history view with the stack view
- Fixing regression launching affiliated tasks

Bug: 25931916

Change-Id: I9d74d0d2427ea0b11f4817d0e635013065e3a792
2015-11-30 17:02:46 -08:00
Winson
250608a5cd Separating the stack vs the historical tasks.
- Adding a notion of session to the stack.  If the history is enabled,
  the stack will now be constrained to show either tasks that were last 
  active in a window of time, or a minimum number of tasks.
- Giving the history button the full space above the stack so that it 
  looks more balanced.

Change-Id: If7b647349e8bb164ae86fd6dba3f7e974257eb5b
2015-11-25 19:43:58 +00:00
Winson
c29ff0025b Adding history view.
- Initial changes to show a history view within Overview (behind tuner
  flag)
- Restoring the task view dim in the stack

Change-Id: I0503d11768736c86f3145942404391dfacd0ddd6
2015-11-25 11:42:19 -08:00
Winson
397ae74733 Removing unused code
- Removing code related to dismiss-all and stack filtering

Change-Id: Ife3c300970b234a5f7828a3c04f1eb9cb861399f
2015-11-23 15:56:26 -08:00
Adrian Roos
fe84e1f436 Visuals for Inline Reply
Change-Id: I374a7ec82795f95fe2f3ce8c9e6b02c1479433af
2015-11-23 20:07:49 +00:00
Jorim Jaggi
1fcbab6ae5 Implement divider UX interactions
- Update visuals to spec
- Divider lifts when touching
- Implement basic version of snap points and animations
- Implement touch conflict behavior: If touched around 48x48dp
area around the handle, the divider handles all these touches.
If touched outside of the black background divider, touch goes
directly to underlying window. If touch on the black background
divider, touch is considered slippery and thus the window in
which the touch trace moves gets the touches.

Change-Id: I0307c191ae032672c4b73d439c23cf9833d3fce6
2015-11-06 16:17:57 +01:00
Jorim Jaggi
61f39a7b98 Migrate docked divider drawing to SysUI
Move docked divider drawing to SysUI. This let's us have real
time shadows in the future. Keep DockedStackDividerController
for placing/visibility in window manager.

Change-Id: I82c10add626d30f2ba180ee2a21cdbe6ddfe0371
2015-11-06 16:13:11 +01:00
Selim Cinek
83bc783384 Changed the appearance of notification bundles
Children now show up as one line notifications even
if the summary is not expanded. The childrenContainer
shows a summary if there are some which don't fit
in there currently.

Bug: 24866646
Change-Id: I0cfae9342722c9f8941f51704618190cfe4e76b4
2015-10-30 16:28:39 -07:00
Selim Cinek
eef8428510 Introduced the notification header
In the new grouping model we don't have a dedicated expand button
anymore but only the notification header.

Bug: 24866646
Change-Id: I2e4bc82e502fde951a71b61cd81347c44b9637f6
2015-10-30 16:28:00 -07:00
Jason Monk
c133d26b38 Some header layout cleanup and alignment
Change-Id: I3fec1708fb410f8f2f75af39b73646d97a39ff34
2015-10-27 19:05:54 +00:00
Jason Monk
5db8a4142e Add way to add to prototype QS editing
Change-Id: Ib5ab3f76d22db82c9dcf4e9a1bd618acd8ac1236
2015-10-21 16:03:52 -07:00
Jason Monk
94a1bf6a18 Some updates to QS prototype based on new mocks
Change-Id: Ic9c0cfcb77f558fa82edb4dc39406ce95b031b35
2015-10-21 08:40:22 -07:00
Jason Monk
42c8b4e734 Make QS header less broken on tablets
Instead have the prototype header a little broken

Bug: 24963222
Change-Id: Ic6f2aa2dc003fbb603feb01bef3af79314d6f24e
2015-10-15 13:46:47 -04:00
Jason Monk
c34befb319 Quick prototype of new header
- Has first 4 quick tiles shown in collapsed mode
 - Shows date + settings gear in expanded mode
 - Still has a few gaps (alarms probably don't work)
 - Fix issue with placement of cell data type indicator

Change-Id: I629798b96f4f088fde47c7b67feea304dcc8450c
2015-10-12 16:15:26 -04:00
Jason Monk
b9c0019702 QS: Add open/close animation for customization prototype
Also fix layout issue for first row of tiles being too large

Change-Id: Icc5c3c6edc8091449bfaa62b44bb6f79d4c6d74b
2015-10-07 13:30:03 -04:00
Winson
dab26488b4 Removing unused debug overlay code.
Change-Id: I80d98b38001ca37bf5017b1631038fb574c324af
2015-09-24 15:56:10 -07:00
Daniel Sandler
a94e8df852 am 1d49a967: am c6fa5914: am 847bdf00: am 5b40e225: Merge "Make the vertical navbar 48dp like the horizontal one." into mnc-dr-dev
* commit '1d49a967ef6fe0c3594870cfc73045ab53ba77ac':
  Make the vertical navbar 48dp like the horizontal one.
2015-09-10 01:53:01 +00:00
Vadim Tryshev
7d0c62892c Merge "Showing task selection menus." 2015-09-09 22:41:23 +00:00
Vadim Tryshev
e7da92e740 Showing task selection menus.
These popup menus are shown when a clicked app has > 1 recent tasks.
We still activate the latest task in addition to showing the menu.

Showing task icons in the menu, as well as showing the menu in its UX-polished
form is not yet implemented.

Bug: 20024603
Change-Id: I05e8fe9592501fdd01cbc9032080e4286a658a65
2015-09-09 15:02:07 -07:00
Jason Monk
2681dcb6c5 QS: Add long-press to customize prototype - part 3
Adding FAB button to QS customization screen, currently it does
nothing.

Change-Id: I4d4d4cd0a6dd5d2104cf21011855fcfce13c70d7
2015-09-09 14:00:17 -04:00
Jason Monk
f7fe83f36b QS: Add long-press to customize prototype - part 2
- Add info/remove drop targets that appear during dragging
 - Move drag start into NonPagedTileLayout so that both start
   and end of tile move drags are in the same place.
 - Still needs way to add tiles

Change-Id: If843ebbb86f393b461289c1407c6a82b6a5aed9d
2015-09-09 13:57:17 -04:00
Jason Monk
bd6dbb0698 QS: Add long-press to customize prototype - part 1
Start adding prototype to long-press to go to customization view
for QS.  Currently it allows re-arranging and resetting.  Later
it will have more.

Change-Id: Ib2ba0f93ac2f4cced4f146d39771a8a17ac05bc2
2015-09-08 15:27:20 -04:00
Vadim Tryshev
131e8faa97 Merge "Implementing app-centric Shelf." 2015-09-04 18:48:55 +00:00
Vadim Tryshev
3560575009 Implementing app-centric Shelf.
We finally get a UX decision for the Shelf.
Shelf won't have 2 parts - pinned and recents; it will have only 1 list where
all pinned and recent activities of the same kind are grouped under a single icon.
Clicking at that icon activates the latest running activity if it's present, or
starts a new one otherwise.

The above part is implemented in this CL. I removed stuff related to the separate
Recents pane, and moved surviving code to NavigationBarApps.

Later, we'll have menus popping up from the icon, which will allow pinning and unpinning,
and choosing a concrete activity to activate.

Bug: 20024603
Change-Id: Ia08fe62939f92c7ee4f102c07a31e7168a11f010
2015-09-04 11:02:35 -07:00
Dan Sandler
c263a08663 Make the vertical navbar 48dp like the horizontal one.
When the navigation bar was originally introduced to phones
(in change Ic613a335) we wanted it to stick to the same spot
on the display so that it felt as much as possible like a
physical button array; pressing the same fingertip-sized
spot on the glass should always invoke BACK, etc. This meant
flipping the nav bar to a vertical orientation when the
phone was in landscape, and then juggling around the window
insets and other system windows to make room for it.

For reasons that are now lost to time, in that original
implementation we made the vertical navigation bar narrower:
42dp (versus 48dp for the horizontal navigation bar, which
incidentally is always horizontal on tablet-type devices).
Nobody really noticed (except app developers looking to
hardcode this value instead of just using fitSystemWindows
or the new WindowInsets).

Here we finally make the navigation bars match perfectly in
portrait and landscape.

Bug: 23724209
Change-Id: I861be84b41c6a227d269469686c8c66a32029f1d
2015-09-03 10:51:57 -04:00
Jason Monk
caf3762ae6 QS prototype work
- All work is defaulted to off, with no changes to UI
 - Add 'quick' QS tiles, which have circles around them and no text,
   they just toggle things like wifi
 - Add tuner switch to hide brightness from QS panel
 - Add paginated QS layout, it shows a row of the circle tiles across
   the top, followed by 3 rows of normal tiles, following pages
   have 4 rows, dual tiles are not allowed in this mode
 - Add tuner switch to turn on paging for QS, and set to a set of tiles
   that look ok with it

Change-Id: Ia2d2eb36f8953033ce4810cd3628fcb86315fe46
2015-08-31 16:37:03 -04:00
Xiyuan Xia
4d25a1d914 Merge "Add full screen user switcher to lock screen" 2015-08-17 18:47:38 +00:00
Daniel Sandler
26df5a6263 am cf59d059: am 98e684e7: am b66e755b: am 64b05c0f: am 9f238a94: Merge "Introducing M Land." into mnc-dev
* commit 'cf59d059a51f33cd28b05f4c248c164bd22f95f4':
  Introducing M Land.
2015-08-16 03:02:26 +00:00
Xiyuan Xia
cc3a74f6ef Add full screen user switcher to lock screen
- Add a FULLSCREEN_USER_SWITCHER status bar state;
- Switch to this state when lock screen is shown and fullscreen
  user switcher is enabled;
- Add a build config and a test boolean system setting to enable
  fullscreen switcher;
- Placeholder GridView UI for fullscreen user switcher;

Bug:19908596
Change-Id: Ief1bc987532522245f4172beca19053d34004cee
2015-08-14 14:56:35 -07:00
Dan Sandler
8df3cfe6b8 Introducing M Land.
The "M" is for Multiplayer.

Bug: 21984798
Change-Id: Id752b8efe54ff0ac38854a129188027137d64dd5
2015-08-14 15:51:13 -04:00
Stefan Kuhne
61b47bb267 Adding the 'non client decor view' to free floating windows
This patch adds a new free floating window non client decor view which
has:
- Two buttons (maximize and close) as it meets our current UX design
- A Shadow which changes size with focus
- It's own view as preparation for the thread distributed drawing and
  user interaction handling (resize handles, etc)

Missing is at this point:
- The button functionality itself.
- Changing/removing decors based on window type (once the needed
  patches land.

bug: 21738666
bug: 21739152
Change-Id: I6e41f2a7470256cee7bae35029d7e8c43fb235dd
2015-08-05 12:53:54 -07:00
Jason Monk
c6066c2b38 am 58562d37: am fb4f4cd3: am 25dea652: am 41402867: am beb3185f: Merge "Fix touch target for settings icon" into mnc-dev
* commit '58562d37c5d83f7cab23e7730986bf99e5a11767':
  Fix touch target for settings icon
2015-07-30 01:35:41 +00:00
Jason Monk
beb3185f01 Merge "Fix touch target for settings icon" into mnc-dev 2015-07-30 00:32:17 +00:00
Dan Sandler
0bacba189f am ea5a8cc4: am 40960743: am 2391e326: am d796a728: am 25ffc7ad: Accessibility: Read the time correctly in quick settings.
* commit 'ea5a8cc44fbfcb4da3edd3912dc199965d0ea797':
  Accessibility: Read the time correctly in quick settings.
2015-07-29 23:36:17 +00:00