21723 Commits

Author SHA1 Message Date
Steve McKay
a7dbccff77 Merge "Create "Home" dir instead of "home" to match other default dirs." 2016-02-01 23:00:59 +00:00
Xiaohui Chen
f43491f8f2 sysui: small refactor
Bug: 26161831
Change-Id: I020176d49cb12c7f7b56ad6eb1221e678312f798
2016-02-01 22:53:33 +00:00
Philip P. Moltmann
76855d322b Merge "Init and clean up printer registry independat of state." 2016-02-01 22:49:51 +00:00
Steve McKay
5c462a0e31 Create "Home" dir instead of "home" to match other default dirs.
Add DIRECTORY_HOME to android.os.Environment...use that for dir name,
    so we don't use a localized name when creating directory.
Mark all of the DIRECTORY_* fields final.

Bug: 26814341
Change-Id: I5a11bcb180674c619de2f5ce9ed598521e60cc25
2016-02-01 14:46:34 -08:00
Jorim Jaggi
ccdab44d25 Merge changes Ie6c1ea33,Id1af37e6,I9c474f7a,I439c9b66
* changes:
  Reset create state in moveTaskToStack
  Divider tuning
  Fix transition to recents in docked mode
  Fix flicker and other weirdness
2016-02-01 22:18:21 +00:00
Philip P. Moltmann
7874bdcd54 Merge "Only update UI when bound" 2016-02-01 22:03:36 +00:00
Xiaohui Chen
a747ab8c0b Merge "Make user deletion dialog reusable." 2016-02-01 22:03:27 +00:00
Philip P. Moltmann
51dbc8ec6a Init and clean up printer registry independat of state.
The printer registry is created not in sync with the states or the
activity life-cycle. It might not be initialized when stop is called as
we might have a very quick

create -> start -> stop -> finish

without time for the print subsystem to initialize.

Bug: 21749058
Change-Id: I991029a7fd0ad162c1144ff03438707f16bf0b02
2016-02-01 13:56:45 -08:00
Jorim Jaggi
1b12ef55b7 Divider tuning
- Take insets into account for calculating dismissing fraction,
but don't dim into 100% when the device has insets at that
side.
- When applying parallax to the top side, apply less.

Change-Id: Id1af37e6f7af43ec3682dad4ad1ce68034301b4d
2016-02-01 13:43:36 -08:00
Sanket Agarwal
f8a1c9121d Add Headset HF role to the settings menu
- Makes the HF client a configurable item in Settings. You can
  enable/disable HF per item.
- Disconnect works cleanly since Settings now disconnects HF and hence
  tear down the ACL.

Bug: b/26808830

Change-Id: I062b64beac4c009a6075756b7f163c6455d77af2
2016-02-01 21:13:37 +00:00
Philip P. Moltmann
c2f913d09b Only update UI when bound
If the PrintActivity gets destroyed (e.g. due to low memory) it gets
re-created when the PrintToPDF activity returns in onActivityResult. In
this case onActivityResult is called right after onCreate and before the
UI is bound. This resulted in a NullPointerException when accessing the
unbound UI elements.

Bug: 21749058
Change-Id: I44e625e8c4f10432591d0afcf7825d7e0dbee6f5
2016-02-01 13:03:44 -08:00
Geoff Mendal
4b88cf0dd8 Import translations. DO NOT MERGE
Change-Id: I33ec1d301ea490620093cf078e4bf3e9d8f81d7e
Auto-generated-cl: translation import
2016-02-01 13:00:10 -08:00
Jorim Jaggi
c6c89a8214 Fix transition to recents in docked mode
Transition for non-compatible apps will be handled in a separate CL.

Change-Id: I9c474f7aa394e4f3eacd1845c78bee5874bd8a59
2016-02-01 12:19:53 -08:00
Ben Kwa
1a8fbfce6f Merge "Don't clear the selection when directory contents change." 2016-02-01 19:17:36 +00:00
Vadim Tryshev
a22dd33419 Make user deletion dialog reusable.
This change will be immediately integrated into master.

This dialog will be also used by the alternate lock screen.

Bug: 25192625
Change-Id: Idc374312fe884af104e342d58f207e0510b9754a
(cherry picked from commit b29374806c393a06c993e5c6b92c62f06d5978c7)
2016-02-01 18:53:51 +00:00
Aga Wronska
f5c027460e Merge "Add tests for rename documents feature - Add helper class for the Ui tests. It creates basic test environment. It is intermediate layer between UiBot/DocumentsProviderHelper and UiTest classes. - Refactor SearchView tests - Add renaming support in the test DocumentsProvider - Add renaming tests" 2016-02-01 18:43:41 +00:00
Aga Wronska
0950df196f Add tests for rename documents feature
- Add helper class for the Ui tests. It creates basic test environment.
      It is intermediate layer between UiBot/DocumentsProviderHelper and UiTest classes.
    - Refactor SearchView tests
    - Add renaming support in the test DocumentsProvider
    - Add renaming tests

Bug=26799799

Change-Id: I2849913a1addabff0087bb06b80f36de7cb144f3
2016-02-01 10:36:02 -08:00
Winson Chung
6bbf598b11 Merge "Fixing crash loop when the parent affiliated task is removed." 2016-02-01 18:15:53 +00:00
Winson
df1020c539 Fixing crash loop when the parent affiliated task is removed.
- Instead, since we get the tasks in order, we use the previous task
  lastActiveTime as the base point for the entire affiliated task group
  (which gets brought to the front together always) if the parent
  task is not available.

Bug: 26896738
Change-Id: Id034af3f13355442f33b22ca18f9ffffa0f9d3d5
2016-02-01 10:05:10 -08:00
Ritesh Reddy
8e7fffd17d Merge "Revert "Enabled SoftAP Configuration Backup"" 2016-02-01 17:55:59 +00:00
Jason Monk
6afd74463c Merge "Add upgrader for tuner" 2016-02-01 17:35:35 +00:00
Felipe Leme
2004798ca0 Merge "Added extra sanity checks." 2016-02-01 17:28:57 +00:00
Felipe Leme
af6fd4086c Added extra sanity checks.
BUG: 26795255
BUG: 26805503
Change-Id: Ib95b337e54a174f178f70205f9d108223f192a62
2016-02-01 09:26:52 -08:00
Ben Kwa
d4d0e7085a Don't clear the selection when directory contents change.
Update the selection to remove IDs that no longer exist, but don't clear
it - doing so causes the selection to vanish whenever the underlying
directory contents change, which is disruptive to the user.

BUG=22765812

Change-Id: Ice6ae54d0748cf842addf1342541ae7759435811
2016-02-01 09:11:55 -08:00
Jason Monk
c767a1f988 Merge "Add some cmds for statusbar" 2016-02-01 16:39:06 +00:00
Ritesh Reddy
33117feb6b Revert "Enabled SoftAP Configuration Backup"
This reverts commit 188ae9dc22e0ecc0612c8bfe1efdb0e22acdc43e.

Change-Id: I37e517d0e7a9a17614fa1b6890e1854346fd0138
2016-02-01 16:19:50 +00:00
Jason Monk
590f3de160 Merge "Fix crash in add QS tiles" 2016-02-01 16:10:53 +00:00
Jason Monk
19a7b2836e Fix crash in add QS tiles
It seems one of the tiles has an empty icon... Fix the crash for
now, will deal with the tile later.

Bug: 26897121
Change-Id: I9abd073a891a5222711fe81ed05ade2a87d70121
2016-02-01 11:08:18 -05:00
Jason Monk
9bcdf36af2 Merge "Let SysUI watch TileService's dialog lifecycle" 2016-02-01 15:19:47 +00:00
Jason Monk
34a5cef629 Let SysUI watch TileService's dialog lifecycle
That way it can better handle tokens and service binding.

Change-Id: I9b882181ecbe52a65e731a2c45f1d296315884b4
2016-02-01 15:04:29 +00:00
Jason Monk
7e30d60d1f Add upgrader for tuner
Unspam everybody's status bar icons with new default off icons.

Change-Id: Id8375d1871705cc2b3bf258f934176c7510a0fde
2016-02-01 10:01:56 -05:00
Wale Ogunwale
3b93a4d351 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
2016-02-01 06:58:31 -08:00
Jason Monk
7e53f20c83 Add some cmds for statusbar
They will be used for tests?!

Also move around where some of the tile lifecycle happens so that
it can easily be shared with these commands.

Change-Id: I72386afce5a2d335df45ecc5946679efcd826bae
2016-02-01 09:55:28 -05:00
Ritesh Reddy
e0cbb65e10 Merge "Revert "Enabled NetworkPolicy backup and restore."" 2016-02-01 14:05:04 +00:00
Geoff Mendal
37f153b445 Merge "Import translations. DO NOT MERGE" 2016-02-01 14:04:29 +00:00
Geoff Mendal
32dd489779 Import translations. DO NOT MERGE
Change-Id: Ief9ab0c1b5fd8f6ceb868e8cd9804ede5913d6f8
Auto-generated-cl: translation import
2016-02-01 06:03:29 -08:00
Geoff Mendal
7428715571 Merge "Import translations. DO NOT MERGE" 2016-02-01 14:03:15 +00:00
Geoff Mendal
0059d9c990 Import translations. DO NOT MERGE
Change-Id: Ieec11d6ae7c9daf5f56b4cca99fb2aa46acfc195
Auto-generated-cl: translation import
2016-02-01 06:01:48 -08:00
Ritesh Reddy
6b7f0f3061 Revert "Enabled NetworkPolicy backup and restore."
This reverts commit 9f548b00dcdd89e8d557223b8b99269ca7362c2e.

Change-Id: If0081fa34333339e36f9e8b9a34a2e3a84e4638f
2016-02-01 13:47:48 +00:00
Geoff Mendal
9eb94d7173 Import translations. DO NOT MERGE
Change-Id: I67ade5e23bfdea3b831bcdf4868456e27d735ff0
Auto-generated-cl: translation import
2016-02-01 05:18:12 -08:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Daichi Hirono
163e4b6ae8 Add launch notification for MTP devices.
The CL adds launch notification that are shown after MTP/PTP device is
connected to Android device. By tapping the notification, Users can
launch an applicaiton that can handle USB_DEVICE_ATTACHED intent of MTP
device.

BUG=26611224

Change-Id: I6fd179ccd436531dfff6ff9a50dc2b754c20f190
2016-02-01 13:28:01 +09:00
Wale Ogunwale
174d36d87a Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:16 +00:00
Aga Wronska
f6ede47b78 Merge "Hide action bar search icon in directories that do not support search operation." 2016-01-30 22:01:50 +00:00
Wale Ogunwale
2a25a62739 Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council.

Bug: 26508215
Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6
2016-01-30 11:27:21 -08:00
Jason Monk
96a34090c9 Merge "Fix rare crash in bt detail panel" 2016-01-30 17:52:14 +00:00
Jason Monk
c17d329825 Fix rare crash in bt detail panel
Since bond state is gotten directly from the bluetooth stack it is
possible it could change, and therefore change the number of devices
if pairing happens while the detail panel is updating.  Fix this by
just dropping them into a list.

Bug: 26258223
Change-Id: I7703520391798fd7c9ab097b0057b7b43b877212
2016-01-30 12:49:41 -05:00
Jason Monk
5c9637a9ea Fix nav bar clipping
Bug: 26782800
Change-Id: I7ba3db27aeee46800f6b7f9cd239ad529b281dd8
2016-01-30 12:40:47 -05:00
Aga Wronska
91c7fb3b83 Hide action bar search icon in directories that do not support search operation.
Bug:26593318
Change-Id: Ibb8945e6eba508aaaa55b1f666ac434f30b2aaaa
2016-01-29 18:47:23 -08:00
Winson Chung
bbb3d3de3c Re-enabling fade-in of header bar icons.
This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

Change-Id: I45095211aaa63b133ad5a4076df25823fa91efa3
2016-01-29 18:02:13 -08:00