15261 Commits

Author SHA1 Message Date
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
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
Geoff Mendal
b85f308da0 Import translations. DO NOT MERGE
Change-Id: I5b2374a7fbcf6354c1a5a20a30ecf1d3c5f70ae1
Auto-generated-cl: translation import
2015-04-10 23:25:52 -07:00
Geoff Mendal
4f6c8f91ac Import translations. DO NOT MERGE
Change-Id: I6c5f88b8d34fba331ba0c8964abfcc2546f39206
Auto-generated-cl: translation import
2015-04-10 23:12:02 -07:00
Geoff Mendal
fff84a87e1 Import translations. DO NOT MERGE
Change-Id: I4be4f944cd8c87529e04aa4c8e19198020c1b262
Auto-generated-cl: translation import
2015-04-10 23:01:52 -07:00
Prerepa Viswanadham
57bf2a8a38 Merge commit 'e593d0a' into merge_work
Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
2015-04-10 15:58:10 -07:00
Jorim Jaggi
e144bb15d0 Merge "Keyguard FP UX update" 2015-04-10 21:46:06 +00:00
Jorim Jaggi
3c84e2f2a1 Merge "Enable incremental SysUI builds on -eng targets" 2015-04-10 21:44:12 +00:00
Jorim Jaggi
27c9b74350 Keyguard FP UX update
- Add scanning and error states to UI.
- Do not delay dismissing the panel when authenticating via
fingerprint.

Change-Id: I82e71c554c56e53ddf0677dca3e6909f7cedd59d
2015-04-10 14:43:08 -07:00
Jorim Jaggi
3557e0ebee Enable incremental SysUI builds on -eng targets
Ideally, we would also do incremental builds on userdebug targets,
but this introduces a risk that userdebug builds would be different
to user builds. So we only do it on eng builds for now.

Change-Id: I2778d270052cf26e6c767f1847991a425d8bbd12
2015-04-10 14:41:17 -07:00
Svetoslav
caa41648f4 Merge "Allow only system signed apps to grant permissions at install" 2015-04-10 18:45:07 +00:00
Svetoslav
805b63e253 Allow only system signed apps to grant permissions at install
bug:20099946

Change-Id: Ifcc5c6638b4174ffb3ba452ae68a5a53b2d1ff0a
2015-04-10 11:41:29 -07:00
Ben Kwa
23f5ca6dc8 Merge "Enable directory copying." 2015-04-10 17:33:44 +00:00
Ben Kwa
726cf70fd4 Enable directory copying.
- Enable directory picking for copying.
- Implement recursive copying inside the CopyService.
  - Pretty up the notification (use an indeterminate notification while
    calculating copy size)
  - Do two recursive walks: one to determine the size of the copy job,
    and then another to actually copy the files.
- Switch to using ContentProviderClient instances, for better error
  detection and handling
- Disable copying from the Recents view.

Change-Id: Ieb38cca80edf84a487547b68f0d6b328fc4d7701
2015-04-10 10:28:22 -07:00
Andrew Flynn
82862573bc Consolidate SystemUI SharedPreferences.
Makes it easier to use from any place and gets us type-safety.

Change-Id: I472e340e8332d9a173335b6f337525d58d801881
2015-04-10 09:54:17 -04:00
Kenny Guy
99b9030a3e 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.

Bug: 19531782
Change-Id: I1f98398f4b37ce77077394546906ef4dff06cd47
2015-04-10 13:51:12 +01:00
John Spurlock
11145938bb Merge "Volume: Update media bluetooth icons." 2015-04-10 02:07:52 +00:00
John Spurlock
f15ef112e7 Volume: Update media bluetooth icons.
Note + bt logo.

Bug: 19260237
Change-Id: I32cb497505f7dea94d761637064f8f8e585ffa94
2015-04-09 22:06:10 -04:00
John Spurlock
b2278d6571 An update on Downtime.
The update is that Downtime is obsolete.  Replaced by the
ability to define multiple named schedule calendars.

 - Make changes to ZenModeConfig to properly model manual
   and automatic rules.
 - Refactor the zen mode helper (and supporting classes) to
   properly handle / report multiple claims on zen mode.
   The "manual" rule (specified by the user in the UI) vs
   one or more automatic rules.
 - Automatic rules are still backed by condition providers,
   but the layering is now cleaner.  ConditionProviders is now
   completely generic, has no ties to zen mode.
 - Specifically, the new layering for zen mode (below noman) is:
   ZenModeHelper: Source of truth for zen state
     ZenModeFiltering: Subhelper dedicated to filtering rules.
     ZenModeConditions: Subhelper dedicated to managing automatic rules.
       ConditionProviders:  Underlying engine for reporting named boolean state.
 - Migration story for users with existing downtime config, migrated
   to a single new calendar named downtime.
 - For users with no existing downtime, two default calendars are created
   for weeknights + weekends (icu4j for all locales will be done in a followup).
 - Remove obsolete DowntimeConditionProvider/NextAlarmConditionProvider and tracking.
 - Clean up obsolete resources.
 - Add common zen summary description string computation.
 - Add proper noman wrappers for the new model.
 - Change the semantics of the global zen setting.  It is now read-only.  Setters
   must call noman, added a "reason" to all calls for better attribution.
 - Update zenmodepanel + volumedialog to the new model.
 - Display the one or more automatic rules in the new zen footer summary.
 - "Snooze" the automatic rules when the user explicitly turns zen off.

Bug: 20064962
Change-Id: Idd9deb865a6035ad0cfae660198dccb517e6d7cc
2015-04-09 21:45:08 -04:00
Narayan Kamath
f51b125e45 Add org.apache.http.legacy dependency for StatementService.
Breaks non-jack builds.

bug: 20129764
Change-Id: Ib4fce285ef3501e746fe151269c8f2a813e5f9a2
2015-04-09 18:54:12 +01:00
Jorim Jaggi
f3bf1ee431 Fix some jank when expanding quick settings
Change-Id: Iba0ceb8b6085bec9fdee588eead073527a44540d
2015-04-08 14:41:43 -07:00
Ben Kwa
6e08dbc366 Merge "Prototype the destination picking." 2015-04-08 19:05:26 +00:00
Ben Kwa
ef3f2620b3 Prototype the destination picking.
- Add an intent to open a destination picker, and refactor
DocumentsActivity accordingly.
- Modify CopyService to take a destination for the copy, and to use URIs
and PFDs instead of Files and Streams, for better error handling &
cleanup.

Change-Id: I69dc43823a703674dc29d2215e2df23b33ad7882
2015-04-08 11:55:18 -07:00
Adrian Roos
a323e3f336 Merge "Relabel emergency button" 2015-04-08 16:58:58 +00:00
Adrian Roos
a41d5a7a35 Relabel emergency button
Bug: 19574098
Change-Id: Iddf96ba2206838712980aea00c9ea304f590c8b3
2015-04-08 18:56:38 +02:00
Tomasz Mikolajewski
3a1b164f65 Merge "Use default theme for StandaloneActivity (DocumentsUI)." 2015-04-08 13:33:13 +00:00
Tomasz Mikolajewski
a4583a4d2d Merge "Add StubProvider::isChildDocument()." 2015-04-08 13:28:56 +00:00
Geoff Mendal
8772936e5e Merge "Import translations. DO NOT MERGE" 2015-04-08 13:18:41 +00:00
Geoff Mendal
ec232e3621 Import translations. DO NOT MERGE
Change-Id: I2e860f32f21ae0449ca98dda3519e4733d2d614e
Auto-generated-cl: translation import
2015-04-08 06:13:49 -07:00