20156 Commits

Author SHA1 Message Date
Daichi Hirono
6de8a0e51f Implement ID mapping for root documents.
MTP identifiers like object handle is unstable over MTP sessions.  The
CL introduce two methods to MtpDatabase that enables the provider to
remap exisitng document ID with new MTP identifiers when the provider
reopen the MTP session.

 * MtpDatabase#clearMtpIdentifier invalidates old MTP identifiers
 * MtpDatabase#resolveRootDocuments remaps invalidated documents with
   new MTP identifier.

BUG=25162822

Change-Id: Iadb668ae5932da81aba2b2731d0d185da5656f16
2015-11-02 11:30:47 +09:00
Selim Cinek
01a46f4e25 Merge changes from topic 'notification_children'
* changes:
  Follow up CL for notification children change
  Allow expanding notification groups by dragging down
  Changed the appearance of notification bundles
  Hiding subtext of children notifications now
  Hiding the children backgrounds now
  Introduced the notification header
  Slight refactoring of notification groups
  Fixed a bug where a notification could stay userlocked
2015-10-31 01:45:35 +00:00
Selim Cinek
a6c6bfb61b Follow up CL for notification children change
The CLs of the notification children change have been
quite overlapping, so a few comments are addressed in this
change.

Bug: 24866646
Change-Id: If3cd029f5a97302fc33f3e2b6b6b147938ddcd3e
2015-10-30 16:28:40 -07:00
Selim Cinek
388df6dd3d Allow expanding notification groups by dragging down
Bug: 24866646
Change-Id: Ie7c5ee6753c2f246df04189bb92e08baf0242797
2015-10-30 16:28:40 -07: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
8d6440dbab Hiding subtext of children notifications now
If the parent header already displays the email
we don’t want to display it again in the child.

Bug: 24866646
Change-Id: I3aee62e895fef68b059a61a825eef37f0f8ad875
2015-10-30 16:28:39 -07:00
Selim Cinek
34d93b0985 Hiding the children backgrounds now
To avoid overdraw we are now hiding
the background of the view if it has
the same color.

Bug: 24866646
Change-Id: Ie998c9d2e6055d8e88f33300583a4b86bf35362f
2015-10-30 16:28:38 -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
Winson Chung
15ca73ac51 Merge "Ensuring that tasks in the back are always visible." 2015-10-30 23:17:35 +00:00
Winson Chung
2a1d77ef16 Merge "Fixing crash when swiping away last task." 2015-10-30 23:17:29 +00:00
Winson
0711be5cef Ensuring that tasks in the back are always visible.
Change-Id: Ic64a1eac4b312c1efdb8c3ab005903a53b4a61d2
2015-10-30 16:06:08 -07:00
Winson
3e9964ffdb Fixing crash when swiping away last task.
Change-Id: I53e8e619b42ac2069aafce66f74281e72fcffa21
2015-10-30 15:32:06 -07:00
Filip Gruszczynski
57311f7617 Merge "Hide recents during freeform to recents animation." 2015-10-30 21:34:57 +00:00
Filip Gruszczynski
1a5203dfd5 Hide recents during freeform to recents animation.
Bug: 24913782
Change-Id: I6a5d3a638640571a902e095c4c0650b88eea0fb6
2015-10-30 14:33:48 -07:00
Geoff Mendal
fbe4ba4fc9 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 25390707
Change-Id: Ief847dab50086dfc1c38d5a3fd50c5971efc7238
2015-10-30 14:30:15 -07:00
Selim Cinek
263398f017 Slight refactoring of notification groups
For the preparation of the bigger UI rewamp.

Bug: 24866646
Change-Id: Id5760ba6e5bae88c052bdd30ae47d9671a2a19c2
2015-10-30 13:10:48 -07:00
Selim Cinek
5243c12f49 Fixed a bug where a notification could stay userlocked
Moved the responsibility to remove the userlocked flag
into the DragdownHelper instead of the Callback.

Bug: 24866646
Change-Id: Ib0dbe310f9f7637f9bae466b1029728a6611f291
2015-10-30 13:10:47 -07:00
Winson Chung
ca8aeea7ed Merge "Initial layout/behaviour for freeform workspace." 2015-10-30 19:47:27 +00:00
Winson
36a5a2c700 Initial layout/behaviour for freeform workspace.
Change-Id: Idc878862747d0d726cbf10be9893c48736673d0e
2015-10-30 12:45:36 -07:00
Felipe Leme
2d3c59c389 Merge "Set ClipData with attachments URIs on bugreport notification." 2015-10-30 18:20:29 +00:00
Tony Mantler
f789ef7e38 Merge "Move AccessibilityUtils to SettingsLib" 2015-10-30 15:59:12 +00:00
Julia Reynolds
3f94dbe2f7 Merge "Synchronize updates to zen config." 2015-10-30 15:58:06 +00:00
Julia Reynolds
aaf191c775 Synchronize updates to zen config.
Also, remove some dead code.

Change-Id: If6f4432638aebcedf59a4804a3b5d14b73f12549
2015-10-30 11:55:20 -04:00
Felipe Leme
96b1195956 Set ClipData with attachments URIs on bugreport notification.
The ACTION_SEND_MULTIPLE contract expects the EXTRA_TEXT to be an
ArrayList<String>, but it's currently set as String, which causes an
exception when exporting the EXTRA_STREAM as ClipData.

The right approach would be changing the EXTRA_TEXT content, but that
would break some clients like GMail, so a safer fix is to explicitly
set the ClipData.

Also removed unused variables and imports.

BUG: 21735884
BUG: 21729227

 Changes to be committed:
	modified:   src/com/android/shell/BugreportReceiver.java

Change-Id: If9954e8cae4af7b74f077a32806f25eb7d55dffb
2015-10-30 08:43:00 -07:00
Ben Kwa
c11f46f416 Merge "Update DocumentUI styles to match mocks." 2015-10-30 15:13:15 +00:00
Jorim Jaggi
339e884bc0 Handle configuration changes in recents manually
Change-Id: I0c62fffbed25e4b51fef4b34f8cab2ab69b76c32
2015-10-30 11:06:16 +00:00
Ben Kwa
a7e9eb04e2 Update DocumentUI styles to match mocks.
BUG=24870921

Change-Id: Ic91c9fbbe8c577c2276a4afc79753ba702c53733
2015-10-29 15:43:23 -07:00
Vladislav Kaznacheev
64d1f8109f Merge "Show the app shelf depending on the platform feature" 2015-10-29 20:23:31 +00:00
Tony Mantler
5789c3e24f Move AccessibilityUtils to SettingsLib
Change-Id: I99eeb79b03e56a0150a8dbebc3cc5c292ad9bcfe
2015-10-29 13:17:06 -07:00
Steve McKay
9f425a8ad0 Merge "Move FragmentTuners to new dirlist dir." 2015-10-29 20:03:20 +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
Daichi Hirono
3147977a57 Merge "Update JavaDoc in MtpDatabase." 2015-10-29 00:04:58 +00: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
d0d316049d Merge "Import translations. DO NOT MERGE" 2015-10-28 13:03:57 +00: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
Geoff Mendal
78210c34ab Import translations. DO NOT MERGE
Change-Id: I9971ad4dba7f72bb883288a49020eb115e2fb34f
Auto-generated-cl: translation import
2015-10-28 05:38:36 -07:00
Daichi Hirono
59686f6c35 Update JavaDoc in MtpDatabase.
BUG=25162822

Change-Id: Icfd9391daa01846f5ec12d5ea7448ebc7444a05c
2015-10-28 16:43:32 +09: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
Steve McKay
d3f6f14c30 Move FragmentTuners to new dirlist dir.
Create a new "Manage" tuner for Downloads.
Aiming to reduce the single-file complexity of DirectoryFragment.

Change-Id: I22b04f776fbd1fdc02ca54083cb1e144eda60799
2015-10-27 16:01:48 -07:00
Daichi Hirono
decb832094 Merge "Show MTP roots at the bottom of root list." 2015-10-27 22:46:51 +00:00