15288 Commits

Author SHA1 Message Date
Daichi Hirono
e4db58edd4 DocumentsUI: Use system cancel string resources.
BUG=None

Change-Id: I989e28ad4729176d66b1b333f242470129d139fa
2015-04-15 14:33:52 +09:00
Daichi Hirono
c96e494ac7 Merge "DocumentsUI: Filter out downloads root if the source documents include directory." 2015-04-15 04:30:10 +00:00
Daichi Hirono
9be34298be DocumentsUI: Filter out downloads root if the source documents include directory.
This is the short term solution for the downloads root, which does not support
directory creation. For the long term solution, we need to add a flag to Root
model to check if the root support directory creation or not.

BUG=20186663

Change-Id: I15c4795892f38e3f968776f732a6f2160ae775fc
2015-04-15 13:27:55 +09:00
Tomasz Mikolajewski
3b5adaaca1 Merge "Add an initial version of the copy failure dialog to DocumentsUI." 2015-04-15 04:02:14 +00:00
Daichi Hirono
738ed14290 Merge "DocumentsUI: Polish buttons of copy destination dialog." 2015-04-15 04:00:02 +00:00
Daichi Hirono
de021abe40 DocumentsUI: Polish buttons of copy destination dialog.
* Add cancel button to directory picker dialog.
* Turns "select" label to "copy to" label for copy destination picker.

BUG=20170953

Change-Id: I66214804aed75a6fccc716d1a01163c634e73d7f
2015-04-15 12:57:53 +09:00
Tomasz Mikolajewski
61686593fd Add an initial version of the copy failure dialog to DocumentsUI.
Change-Id: Ibdfde661aa5b636570c017d3d00565c193d595a3
2015-04-15 12:39:27 +09:00
Jeff Sharkey
56bd312913 Checkpoint of storage notifications.
Rewrite of storage notifications to support multiple disks/volumes,
handling the state of each independently.  Update strings to match
spec.  Include actions to jump into wizard when adoptable, otherwise
browse or eject.

Move browse intent creation to common place on VolumeInfo.  Also add
well-formed extra names.  VolumeInfo now carries the parent disk ID
along with it to avoid races when unmounting.

Bug: 19993667
Change-Id: I236ddc7f8112490355f438b828bec8d40c331fdd
2015-04-14 16:46:27 -07:00
Jorim Jaggi
7caa691652 Merge "Fix fingerprint API for 3rd party apps" 2015-04-14 21:12:27 +00:00
Jorim Jaggi
ccdfa93f60 Fix fingerprint API for 3rd party apps
Change-Id: Id68d04b4deef9940a683d2b40f1db231845b00e3
2015-04-14 14:02:16 -07:00
John Spurlock
1740c625c6 Merge "Zen: Enter alarms only on volume down from vibrate." 2015-04-14 20:00:42 +00:00
John Spurlock
691ae9dc25 Merge "Zen: Add new user introduction msg for "Priority only"." 2015-04-14 20:00:22 +00:00
Fyodor Kupolov
a08c444d1d Merge "Display a notification for a new guest" 2015-04-14 17:43:45 +00:00
Fyodor Kupolov
f4d6ad2663 Display a notification for a new guest
Display a notification for a new guest, which includes information that they
are using the device as a guest and how to remove guest.

Bug: 16956833
Change-Id: I21711949d3a80eaca47251faa6ee0cf04b5bf3e6
2015-04-14 10:36:53 -07:00
Andres Morales
317918e206 Merge changes from topic 'lss-update'
* changes:
  Add challenge to IGateKeeperService
  Wire up GateKeeper to LockSettingsService
2015-04-14 16:12:55 +00:00
Kenny Guy
4fc266bbef Merge "Display toast when screen is unlocked to a work app." 2015-04-14 14:20:45 +00:00
John Spurlock
f55b7f2fb6 Zen: Add new user introduction msg for "Priority only".
Bug: 19260237
Change-Id: I3b5785befc05685c7f676e918710fb7500221172
2015-04-14 10:18:34 -04:00
John Spurlock
b02c744f05 Zen: Enter alarms only on volume down from vibrate.
And vice versa (when dialog is showing).

Also make alarms only the default mode when DND is switched on
via the switch.

Bug: 19260237
Change-Id: I16e4a27944bc8245bb2beed84c0421d493b0b876
2015-04-14 09:36:28 -04:00
Kenny Guy
de77be6311 Merge "Show a status bar icon for managed profile activities." 2015-04-14 11:53:00 +00:00
Andres Morales
8fa5665f0e Wire up GateKeeper to LockSettingsService
Adds:
- Communication to GKService
- password upgrade flow
- enroll takes previous credential

Change-Id: I0161b64642be3d0e34ff4a9e6e3ca8569f2d7c0a
2015-04-13 18:38:45 -07:00
Adam Powell
2442841819 Implement ChooserTargetService querying for ChooserActivity
First cut at querying services provided by apps that offer
ChooserTargetServices. This first implementation provides no ranking.

Bind to a limit of 5 ChooserTargetServices and offer the
ChooserTargets they provide as options in the system
ChooserActivity. The chooser now presents targets as a grid and
displays the activity icon from the referrer activity.

Change-Id: I45db829f184fc78d4f18d42b2a60b25bc301eba8
2015-04-13 16:51:16 -07:00
Adrian Roos
4b825c0781 Merge "Actually relabel emergency affordance" 2015-04-13 23:10:48 +00:00
Adrian Roos
7a1091f23f Actually relabel emergency affordance
Bug: 19574098
Change-Id: Icf1b4b85ef74e927bdc970fb88c56bfe6dab47d0
2015-04-13 15:42:48 -07:00
Kenny Guy
3094d4a1c0 Show a status bar icon for managed profile activities.
Show a work icon in the status bar when the foreground
activity is from an app in the managed profile.

Bug: 19532434
Change-Id: Ie96935c089d26f44bc5b1b8fcf60c83a32283a0f
2015-04-13 20:58:44 +00:00
Kenny Guy
e13b15c810 Merge "Add foreground profile changed to user switch observer." 2015-04-13 18:36:23 +00:00
Kenny Guy
429796226a Add foreground profile changed to user switch observer.
Called when the focused activity changes from one profile
to another to allow sys ui to vary display based on the
current profile.
This reverts commit 735a3f90598be31bca5d551d781280a205a5f27f.
Resubmitting with fix for build break in another package.

Bug: 19531782
Change-Id: I98cd2968ade3b1d23feb90d98057f306695d569e
2015-04-13 18:03:05 +00:00
Kenny Guy
48a09a0678 Merge "Revert "Add foreground profile changed to user switch observer."" 2015-04-13 16:13:33 +00:00
Kenny Guy
735a3f9059 Revert "Add foreground profile changed to user switch observer."
This reverts commit 99b9030a3ececd9b88e5011c98be0a5b9499c776.

Change-Id: If152904f298ecd9e6fd5d038797d061a5c85eec8
2015-04-13 16:12:55 +00:00
Kenny Guy
dae30d5dd3 Display toast when screen is unlocked to a work app.
Display a toast when the screen is unlocked and an
app from a managed profile is in the foreground.

Bug: 19539451
Bug: 19532135

Change-Id: Ic57e235b05ac4f47d2c944175461294dff083724
2015-04-13 16:49:55 +01:00
Kenny Guy
d10bd48522 Merge "Add foreground profile changed to user switch observer." 2015-04-13 14:41:37 +00:00
Geoff Mendal
989b5b26be Merge "Import translations. DO NOT MERGE" 2015-04-13 13:00:31 +00:00
Geoff Mendal
9c240f37e8 Import translations. DO NOT MERGE
Change-Id: Ib5334deb0b529ee02756b9e31e4ff89b59ed1718
Auto-generated-cl: translation import
2015-04-13 05:58:15 -07:00
Geoff Mendal
300ab1e78d Merge "Import translations. DO NOT MERGE" 2015-04-13 12:51:12 +00:00
Geoff Mendal
0b2264de87 Import translations. DO NOT MERGE
Change-Id: Ib690eecfcb1e45a9753a606fafda8ef85a2b0b6b
Auto-generated-cl: translation import
2015-04-13 05:38:00 -07:00
Geoff Mendal
e7477d6672 Import translations. DO NOT MERGE
Change-Id: I37c3e2c0945bebbf7dd814bad8aa9de1e2c6bef7
Auto-generated-cl: translation import
2015-04-13 05:21:38 -07:00
Jeff Sharkey
1407d4c777 DocumentsUI roots can have settings.
Roots use a flag to indicate they have settings, and DocumentsUI
offers to launch towards someone who handles a new Settings intent.

Slight rename of browse intent for clarity.

Bug: 19993667
Change-Id: I86302ec1cfac5e435d8bc5701bdb85fb9b0dcbae
2015-04-12 22:02:44 -07:00
Daichi Hirono
fe4d95c3fc Merge "DocumentsUI: Add new private intent action to select copy destination." 2015-04-13 04:53:09 +00:00
Daichi Hirono
bbe2292bc6 DocumentsUI: Add new private intent action to select copy destination.
The CL adds INTENT_ACTION_OPEN_COPY_DESTINATION, and implements the behavior to
respond the intent action.

The directory picker:
 * filter out read only roots
 * return document URI instead of document tree URI
for the intent action.

BUG=b:20146034
Change-Id: I96c565100c3cdaa57cc7abd8cf6d895d148941a7
2015-04-13 13:49:31 +09:00
Tomasz Mikolajewski
97397938c4 Add support for notifying about child changes in StubProvider.
Change-Id: I256856a2bbefa6d831e6b912583eca86eeb03ba7
2015-04-13 13:35:23 +09:00
Tomasz Mikolajewski
d5d5c91dfc Add support for opening files in StubProvider.
Change-Id: Ia3df58850cc3df24dc310b29035a41fb75eadeff
2015-04-13 13:03:23 +09:00
Tomasz Mikolajewski
738154ee84 Add support for removing files and directories in StubProvider.
Along the way it updates clients about changes in used storage.

Change-Id: I02fb1333e1f97f1476b87310a27b75d99fa00854
2015-04-13 11:40:04 +09:00
Tomasz Mikolajewski
40355c2e96 Merge "Simulate running out of space in StubProvider." 2015-04-13 02:37:51 +00:00
Tomasz Mikolajewski
e1a03f8eec Show copy destination when clicking on the copy notification in Documents UI.
Change-Id: I3d955595bc46903c134c0633a6d32663cc2d0c05
2015-04-13 11:35:27 +09:00
Tomasz Mikolajewski
30b669465d Simulate running out of space in StubProvider.
Change-Id: I0a069c07bcf8784aeb5c5993d90d0a6db6e2afb1
2015-04-13 09:37:54 +09:00
Jeff Sharkey
9e3cb0461c Merge "Browse mode for DocumentsUI, removed volume state." 2015-04-12 23:10:16 +00:00
Jeff Sharkey
59d577a518 Browse mode for DocumentsUI, removed volume state.
The existing management mode is too specific, and requires that
storage backends add queryChildDocumentsForManage(), etc.  Instead,
to offer more natural browsing support, add a new BROWSE_ROOT intent.

It behaves mostly like MANAGE_ROOT, except that it doesn't mutate
its Uris with setManageMode(), and it shortcuts straight to VIEW on
clicked documents.

It can be launched like this:

$ adb shell am start -a android.provider.action.BROWSE_ROOT
    -d content://com.android.externalstorage.documents/root/8405-1DFB
    -c android.intent.category.DEFAULT

Also rename a MetricsConstants to make it clearer, and don't
auto-mount all emulated volumes.

Fix bugs around parceling of DiskInfo/VolumeInfo.  Method to resolve
the best description for a VolumeInfo, which might need to fall
back to DiskInfo.

Add back "removed" volume state so we send broadcast when a volume
is destroyed, matching the expected public API behavior.

Bug: 19993667
Change-Id: I13aff32c5e11dfc63da44aee9e93a27f4690a43f
2015-04-12 16:03:50 -07:00
Prerepa Viswanadham
d4ea01b4ac Merge "Merge commit 'e593d0a' into merge_work" 2015-04-12 21:46:15 +00:00
Jim Miller
ce7eb6daf0 Clean up FingerprintManager API and make it public.
Change-Id: I6a99dccd485c053cb47dbd0ec08b41a2dc5b17c8
2015-04-11 12:34:56 -07:00
Geoff Mendal
8b146fbe77 Merge "Import translations. DO NOT MERGE" 2015-04-11 09:52:18 +00:00
Geoff Mendal
3183c6c523 Merge "Import translations. DO NOT MERGE" 2015-04-11 09:49:28 +00:00