12472 Commits

Author SHA1 Message Date
Julia Reynolds
aaf191c775 Synchronize updates to zen config.
Also, remove some dead code.

Change-Id: If6f4432638aebcedf59a4804a3b5d14b73f12549
2015-10-30 11:55:20 -04:00
Jorim Jaggi
339e884bc0 Handle configuration changes in recents manually
Change-Id: I0c62fffbed25e4b51fef4b34f8cab2ab69b76c32
2015-10-30 11:06:16 +00:00
Vladislav Kaznacheev
64d1f8109f Merge "Show the app shelf depending on the platform feature" 2015-10-29 20:23:31 +00:00
Geoff Mendal
ec034cdb63 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 25319151
Change-Id: I27d232328ebb25191d09ffc566cec2a55f79ff72
2015-10-29 12:22:19 -07:00
Filip Gruszczynski
6b614433f6 Merge "Freeform to recents app transition." 2015-10-28 23:34:57 +00:00
Winson Chung
7f1a576f59 Merge "Moving static RecentsConfiguration instance to Recents." 2015-10-28 23:00:04 +00:00
Winson
53ec42cb17 Moving static RecentsConfiguration instance to Recents.
- Matches the other static instances

Change-Id: I25bf474ceb0b8d6cc52c22e83273ffb2fb64cc9d
2015-10-28 15:58:10 -07:00
Vladislav Kaznacheev
38f426c808 Show the app shelf depending on the platform feature
This CL uses PackageManager.
FEATURE_FREEFORM_WINDOW_MANAGEMENT to determine
whether app shelf should be displayed, and removes
config_enableAppShelf flag that was previously used for that.

Bug: 25329519
Change-Id: I6460eca8e158b0e114e8f2cfdfea4a2e5eadd03b
2015-10-28 15:48:12 -07:00
Winson Chung
5dd803c938 Merge "Fixing touch handling on resized tasks." 2015-10-28 22:34:37 +00:00
Winson
23afcae844 Fixing touch handling on resized tasks.
- Simplify touch handling just by keeping everything in screen space, 
  and just map to the curve proportionally to the arc length.  This
  makes the movement much closer to that of other lists, and prevents 
  the issue of touches at the top of the stack scrolling along the 
  curve faster than at other places (and when Recents is resized, this
  becomes more of an issue).
- Add basic functionality (disabled) for freeform task workspaces.


Change-Id: Ib3a8ce2caa1437cfc09eaa5b36aff310e29e35f5
2015-10-28 14:55:47 -07:00
Jason Monk
7917546d0e Merge "Some header layout cleanup and alignment" 2015-10-28 19:13:58 +00:00
Winson Chung
91068127c5 Merge "Re-enabling docking on left/right on tablets in landscape." 2015-10-28 16:50:46 +00:00
Winson
e92440ee5f Re-enabling docking on left/right on tablets in landscape.
Change-Id: I3b02f5bbd653ea79a0d148e5454bd5755c85aba7
2015-10-28 09:48:47 -07:00
Filip Gruszczynski
d64ef3ef33 Freeform to recents app transition.
Bug: 24913782

Change-Id: I54fcbe38c51e5d75fa5ad2cb38de89d371b47bed
2015-10-28 09:39:45 -07:00
Geoff Mendal
52dfbe95c1 Import translations. DO NOT MERGE
Change-Id: I9cadfa4b07bca2d001bef84944b1b7a226b2d3aa
Auto-generated-cl: translation import
2015-10-28 06:02:30 -07:00
Winson
38c96cb834 Fixing build breakage.
Change-Id: I0a0ef36b9724fc2e51c545a405b23d261cc85c4f
2015-10-27 18:25:02 -07:00
Filip Gruszczynski
ab253faa47 Merge "Fix wrong task bounds when docking from recents." 2015-10-28 00:01:28 +00:00
Winson Chung
0f6cb2d7d1 Merge "Passing stack id with RunningTaskInfo." 2015-10-27 21:42:57 +00:00
Winson
5510f6c1b9 Passing stack id with RunningTaskInfo.
- This allows us to remove an extraneous system call when starting 
  overview, and also allows us to easily check for freeform windows.

Change-Id: I4449dad7bf870f528f671f6e7cb1f9b5f1bc9c1c
2015-10-27 21:42:37 +00:00
Julia Reynolds
7fef1888d1 Merge "Stop populating RemoteViews in Notifications." 2015-10-27 20:36:31 +00:00
Winson
463ba436d2 Fixing minor regression with system bar scrims.
Change-Id: I0cf508c26b3a71c604a3061b05abb47cac5a9bb2
2015-10-27 19:51:47 +00:00
Jason Monk
c133d26b38 Some header layout cleanup and alignment
Change-Id: I3fec1708fb410f8f2f75af39b73646d97a39ff34
2015-10-27 19:05:54 +00:00
Winson Chung
b6489e11da Merge "Fixing regression with launch target task." 2015-10-27 18:41:20 +00:00
Winson
0983e02b92 Fixing regression with launch target task.
Change-Id: I7e3ed55081a90309290aba290b4acbadb172283d
2015-10-27 11:39:44 -07:00
Filip Gruszczynski
90186c6d6e Fix wrong task bounds when docking from recents.
When docking from recents we would move the task to the docked stack,
but we wouldn't run the resizing code that forces the task to be within
the stack bounds. We need to perform both operations and we can achieve
that using a more general method of moving tasks.

This also adds the passing of creation mode in the activity options, so
the task will be docked in the right spot.

Change-Id: Ia7f94a7e3677ed60ca2f4d889e548d80a3bc3df1
2015-10-27 10:04:20 -07:00
Winson Chung
980606d01b Merge "Refactoring the focus state to be independent of view focus." 2015-10-27 16:33:37 +00:00
Jorim Jaggi
8ccdf3ac49 Add development option to force everything resizable
Add a development setting to force all activites to be
resizable. Currently, a restart is required after changing
this setting. Also remove all the code that forced a single
task to be resizable, as we have a global option now.

Bug: 24815256
Change-Id: I3237c9b6ce96ff9aa9819592ab0c2807fde88dc4
2015-10-27 08:18:36 -07:00
Jorim Jaggi
75b2597e58 Add long press on recents to dock top most task
- Change the gesture to unpin a locked task into long pressing
the back button.
- When long pressing recents, dock top most task.

Change-Id: I1386151e781f4034cfb97d3c8d46c709d19fe779
2015-10-27 08:17:03 -07:00
Julia Reynolds
d9228f1135 Stop populating RemoteViews in Notifications.
Builder now stores its parameters directly in the
Notification object itself, reducing the amount of copying
needed to construct the final Notification as well as
converging the two data structures. All Builder data is now
captured in Notification, so it is easy to reconstruct
a Builder for any Notification object.

This obviates all stripping/unstripping operations because
all Notification objects start life "stripped" of their
RemoteViews, which must be constructed explicitly by clients
(presumably listeners wishing to show the notification to
the user in its conventional form).

Note: While contentView, bigContentView, and
headsUpContentView are being @Deprecated in this CL,
specifying custom RemoteViews is definitely still supported!
You just have to use Builder methods to do so.

Bug: 20153922
Change-Id: I81f8ffed0eb76084b2f2b25b97e325858f0a1d05
2015-10-27 10:19:34 -04:00
Winson
0d14d4da91 Refactoring the focus state to be independent of view focus.
- This allows us to ensure that a task is always focused in the stack,
  which simplified focus logic, and allows us to unify the accessibility
  focus and normal view focus handling.
- Refactoring some focus actions to events
- Adding flags to experiment with fast-toggle.

Change-Id: I5623f2a5584994033f1ebf1760b55e8bd019944b
2015-10-26 17:38:29 -07:00
Winson
2364f26dc2 Adding flag for disabling search bar.
Change-Id: I988912c8209f1e49c71e4db2a7b926c808dbc975
2015-10-26 12:18:14 -07:00
Julia Reynolds
79017f52f8 Merge "SystemUI: Reload the EndNowButton label" am: 40b52bbe48 am: c7839bde7c
am: 537af1070b

* commit '537af1070b71919a76489881d3740bd55e1fb45a':
  SystemUI: Reload the EndNowButton label
2015-10-26 16:59:25 +00:00
Julia Reynolds
537af1070b Merge "SystemUI: Reload the EndNowButton label" am: 40b52bbe48
am: c7839bde7c

* commit 'c7839bde7cd8ed21326208b17030c87e8bf206c9':
  SystemUI: Reload the EndNowButton label
2015-10-26 15:15:24 +00:00
Julia Reynolds
c7839bde7c Merge "SystemUI: Reload the EndNowButton label"
am: 40b52bbe48

* commit '40b52bbe480436fbdc3bfb8a1a70c6144e71ff8f':
  SystemUI: Reload the EndNowButton label
2015-10-26 15:05:34 +00:00
Johan Redestig
f2d824fd56 SystemUI: Reload the EndNowButton label
Reload the EndNowButton label when configuration
changes.

Change-Id: I042d31f0bb011996aa8219c3c412e7b71987244c
2015-10-26 15:51:23 +01:00
Geoff Mendal
4200c9c0bc Import translations. DO NOT MERGE
Change-Id: Ibfc65ba41159a6f46117aa5015533bdced91cd56
Auto-generated-cl: translation import
2015-10-26 06:08:45 -07:00
Winson
3150e574e6 Fixing regression in stack task clipping.
- Removing expensive calls to map coordinates of front task to the tasks
  behind it, instead relying on the precalculated task rects that we
  already compute on each stack change update.  To prevent rounding
  issues, the task rects are now float rects.
- Also fixing crash when RecentsActivity starts before the SystemUI
  component (only an issue when pushing SysUI apks)

Change-Id: Ia84e9b9d165c0ce171c7fe3797e561ef24157a0a
2015-10-23 18:03:31 -07:00
Winson Chung
e51ba45c82 Merge "Reducing number of threads used in Recents." 2015-10-23 22:13:22 +00:00
Winson
ab84fc5611 Reducing number of threads used in Recents.
Change-Id: I758592600915d41103a0dfeed10c8630ecdc4593
2015-10-23 22:11:20 +00:00
Wale Ogunwale
1485acc222 Merge "Updated support for drawing background drawable when resizing" 2015-10-23 21:48:39 +00:00
Wale Ogunwale
5bcd3189c5 Updated support for drawing background drawable when resizing
f3a62fbc58bbc7f081a53248cae48a8951294e8f added support for drawing
the background draweable when resizing an activity window.
However, after some additional discussion we decided that
R.styleable.Window_windowResizingBackground and
R.integer.config_windowResizingBackgroundColorARGB are not needed.
We use R.styleable.Window_windowBackground for the background
drawable and fallback to using R.styleable.Window_windowBackgroundFallback
which is now public if the first isn't set.

Bug: 24534744
Change-Id: Ia0507e25a1893ea941d259f1d4e88ce500dda154
2015-10-23 12:30:28 -07:00
Winson
e7f138c7f0 Cleaning up task loading code.
- Moving all references of SystemServicesProxy and RecentsTaskLoader to
  a single static instance in Recents.  This ensures that we only refer
  to an instance that is created with the application context.
- Moving ActivityInfo cache into RecentsTaskLoader with the other caches
  which allows us to invalidate it less frequently.  This requires the
  loader to handle package changes to invalidate the cached infos 
  accordingly.
- Cleaned up old code to handle case where the Recents component for
  secondary users might not be initialized (fixed in ag/773159)
- Moving the package monitor to the background thread.
- Cleaning user interaction and visibility changes to events.
- Fixed issue with sending events from binder thread.

Change-Id: Ie785347055736f6dd7802f32454f77073e20b83e
2015-10-23 10:55:27 -07:00
Jason Monk
11ad7f2c22 Merge "Add way to add to prototype QS editing" 2015-10-22 23:26:32 +00:00
Winson
412e18058d Additional refactoring interface between component and activity.
- Removing broadcasts for communicating with the Recents activity from
  the component in favor of using events.

Change-Id: I2ddfde911bd1fd1b2d63bb84a0e7f0338f955df6
2015-10-22 19:49:23 +00:00
Winson Chung
679b62edca Merge "Refactoring secondary user recents logic." 2015-10-22 19:27:35 +00:00
Winson
190fe3bf88 Refactoring secondary user recents logic.
- Removing old broadcasts in favor of direct aidl interface between
  system and secondary users.  Also moving user specific implementation
  into RecentsImpl, allowing Recents to handle proxying between users.

Change-Id: I4bd5ef1d1ee47309b7c754f50a5e8b2e2aab988f
2015-10-22 12:26:21 -07:00
Dmitry Torokhov
2890a282c3 SystemUI: fix automatic pairing of BT keyboards am: 79f00cf06f am: d3eee7c410 am: 5c6a3872cb
am: 3eba93f21c

* commit '3eba93f21c6cd7f3659e9c683c67cb3c19895677':
  SystemUI: fix automatic pairing of BT keyboards
2015-10-22 18:30:56 +00:00
Dmitry Torokhov
3eba93f21c SystemUI: fix automatic pairing of BT keyboards am: 79f00cf06f am: d3eee7c410
am: 5c6a3872cb

* commit '5c6a3872cb0df50e9a8d2aaa0b8f84e78cd4433f':
  SystemUI: fix automatic pairing of BT keyboards
2015-10-22 18:24:35 +00:00
Dmitry Torokhov
5c6a3872cb SystemUI: fix automatic pairing of BT keyboards am: 79f00cf06f
am: d3eee7c410

* commit 'd3eee7c410dbc6f8eb5133a347fb0a0ce7221893':
  SystemUI: fix automatic pairing of BT keyboards
2015-10-22 18:18:46 +00:00
Dmitry Torokhov
d3eee7c410 SystemUI: fix automatic pairing of BT keyboards
am: 79f00cf06f

* commit '79f00cf06f5e70047d73b48d20910b967353b075':
  SystemUI: fix automatic pairing of BT keyboards
2015-10-22 18:13:36 +00:00