12847 Commits

Author SHA1 Message Date
Jeremy Klein
d42209db96 Add a TETHER_PRIVILEGED permission and use it where needed.
BUG: 26247383
Change-Id: I73f7227d77926faa9081e83eccb83c8ddee33e08
2016-01-07 10:11:24 -08:00
Xiaohui Chen
c33f357b50 Merge "cleanup some confusing comments" 2016-01-04 17:21:45 +00:00
Xiaohui Chen
dc630f0122 cleanup some confusing comments
Change-Id: I21fe6fb2ea37a811f69278058277dd595866ae9b
2015-12-30 11:32:05 -08:00
Geoff Mendal
9638a9a2a4 Import translations. DO NOT MERGE
Change-Id: I0e4698739718df41ce8fc1237bcb41fa87dd4b8a
Auto-generated-cl: translation import
2015-12-30 06:02:31 -08:00
Adrian Roos
7213bdd104 Merge "Add reply text section to notifications" 2015-12-29 13:05:46 +00:00
Geoff Mendal
431433b1f7 Import translations. DO NOT MERGE
Change-Id: I315d33bfa714351cf945e0798f57bc6ebaabc743
Auto-generated-cl: translation import
2015-12-28 05:59:37 -08:00
Geoff Mendal
0bf658d631 Import translations. DO NOT MERGE
Change-Id: I0e46010642ad4edb9bd12eb256518627d9d29107
Auto-generated-cl: translation import
2015-12-23 05:52:22 -08:00
David Riley
1b3b8b74ae Merge "SystemUI: implement bluetooth scan timeout" 2015-12-22 18:45:06 +00:00
Jason Monk
6923bc806f QS: Fix header layout when alarm set
Change-Id: I9f16ccb545abaea85ecaca29a221599c767003b8
2015-12-22 11:34:36 -05:00
Jorim Jaggi
79b39f0873 Update visual of docked divider to spec
Change-Id: I85daf672cedb8009509886fc6ae2d700d39274cf
2015-12-22 13:01:40 +00:00
Dmitry Torokhov
365bf06a72 SystemUI: implement bluetooth scan timeout
When we dock with Pixel C keyboard we normally expect to find it, and so
we perform a low latency scan (which uses highest duty cycle). But if
keyboard is not charged or if tablet mode trigger misfires (because
there was a magnetic object in proximity?) we may not find the keyboard
and will continue scanning indefinitely, impacting WiFi performance and
draining battery. To avoid this scenario let's stop scan if we do not
find "our" device in 30 seconds.

Also remove STATE_WAITING_FOR_STATE_PAIRED as it was unused.

Change-Id: I4bf1a9a163d3165eaa5e8f1cc2d2938465d454af
(cherry picked from commit 6c12c3a6538591b5fa6e11cb4f583aa494e0ce5c)
Signed-off-by: David Riley <davidriley@google.com>
2015-12-21 12:37:17 -08:00
Jason Monk
d2be14a16a Merge "Color transforms for the tuner" 2015-12-21 15:13:52 +00:00
Jason Monk
d40328e687 Color transforms for the tuner
Change-Id: I615be65e2b020acd5520f93c04f426c4006221c5
2015-12-21 09:37:00 -05:00
Geoff Mendal
5fb407dd86 Import translations. DO NOT MERGE
Change-Id: I868223c518e04d0b20a17a3aef29499312edeabb
Auto-generated-cl: translation import
2015-12-21 05:57:13 -08:00
Selim Cinek
98be3f375b Fixed that the expandButton was sometimes visible when it shouldnt
This happened when the collapsed height had the same height as the
expanded one.

Bug: 26185377
Change-Id: I9c37a8239cc87bf2192f48bc008700faf4afb5d9
2015-12-19 16:23:03 -08:00
Selim Cinek
860b6dac96 Measuring the notifications at wrap_content height now
The notifications are now measured at wrap_content such
that the layout still looks good even if the text
was ommited instead of arbitrarily making it bigger.
This also fixes some small rounding issues where the
expanded notification was just a pixel bigger than
the collapsed version.

Bug: 26185377
Change-Id: Ie3339ff75680ab512446605055304576e058f588
2015-12-19 16:22:52 -08:00
Selim Cinek
b55386d64a Fixed the minimum height of groups on the lockscreen
Also caching the notification minheight in the algorithm
far less agressively, because it led to bugs.

Change-Id: I57155103bf2700be2e98e686fdd0077ce8e8405b
2015-12-19 16:07:54 -08:00
Selim Cinek
af0dc31892 Reusing the notification algorithm now when rotating
The notification algorithm had some state which was simply
dropped on rotation and therefore weird things could happen.
This is now fixed.

Change-Id: Ibb3d007b3298f745743bd3a5889bccebebf8105a
2015-12-19 16:07:53 -08:00
Selim Cinek
d84a5930cc Fixed the redacted layout for groups
Also fixed a bug where the guts didn't have the
right size and in general cleaned up the intrinsic
height. The guts also animate nicely and the position
of their animation starts on the finger.

Change-Id: I62447dd77ace36161740dfdf3d18103524e2eb21
2015-12-19 16:07:51 -08:00
Selim Cinek
624c02db7f Fixed the public notifications views on the lockscreen
The views were based on a legacy systemUI notification.
We are now creating it in Notification.java in order to
always have the latest visuals and avoiding duplicate work.

Change-Id: I3f544cad069a8eab34d4464404d020e06d7f6626
2015-12-19 16:07:43 -08:00
Selim Cinek
a69f2a6449 Fixed a measuring bug with the notification children container
The notification children didn't respect the given dimensions
when measuring and was simply measuring itself as high as desired.
This lead to a bug where the parent could crash when a layer was
set on it.
We are now measuring the container at most with the height of
the given size and let children draw over our view bounds.
In oder to still allow touch in those regions we also
override the touch rect.
This also simplifies the rest of the touch handling.

Bug: 26159274
Change-Id: I728553a6386455e6632e2511be8a3e7cb447e89b
2015-12-19 15:46:34 -08:00
Selim Cinek
496126aa81 Fixed a hole in the shade that could exist with heads up
Change-Id: Ia7c36c717287e1c63218c105da83b41f0a40bc4b
2015-12-19 15:13:26 -08:00
Julia Reynolds
e00da66cdc Merge "Differentiate between apps that use topics and those that don't." 2015-12-18 21:09:45 +00:00
Julia Reynolds
be8fdee532 Differentiate between apps that use topics and those that don't.
Bug: 22451710
Change-Id: Idb567a4fc511a03cb999179765cfa4cbeb63dcb7
2015-12-18 15:57:43 -05:00
Winson Chung
0583d3d188 Hiding pinned stack tasks from overview
Bug: 25381158
Change-Id: Iad442b7f5dc49109529cb5dab2168b19837af6e3
2015-12-18 10:05:13 -05:00
Adrian Roos
365458c678 Merge "Fix NPE in processForRemoteInput" 2015-12-18 00:03:59 +00:00
Winson Chung
2a43922df9 Merge changes Iac20cc7b,I87ce6320
* changes:
  Fixing potential issue with wrong task descriptions being loaded.
  Refactoring to AnimatedEvent.
2015-12-17 22:33:54 +00:00
Winson Chung
296278a067 Fixing potential issue with wrong task descriptions being loaded.
- Also cleaning up the Task to remove some confusing nomenclature
  related to task properties.  Now there is a single icon and title,
  and we keep a copy of the TaskDescription for future icon loading.
- Also changing a few cases where we should be calling isFreeformTask()

Bug: 26221779
Change-Id: Iac20cc7b4912f76c14232a323981ab2e8f62628a
2015-12-17 17:29:40 -05:00
Adrian Roos
a3539cb032 Fix NPE in processForRemoteInput
Bug: 26168336
Change-Id: I010fb22caee2edd85cc0263abeb729e6b952ed01
2015-12-17 22:18:11 +00:00
Julia Reynolds
9d7381e28b Merge "Allow users to set app-wide Importance default" 2015-12-17 22:12:04 +00:00
Julia Reynolds
a07af88b95 Allow users to set app-wide Importance default
And the associated ui changes to the notification guts.

Bug: 22451710
Change-Id: I4e0b11e7b24d70b039a432c5e6cd76c9c7cc547c
2015-12-17 16:53:36 -05:00
Winson Chung
aaeaac1783 Refactoring to AnimatedEvent.
Change-Id: I87ce63201120dc687eccd63024801cc2c19bebd6
2015-12-17 11:11:01 -05:00
Winson Chung
aa4f800891 Fixing minor issue with freeform workspace not showing.
- Also slightly tweaking drop target sizes to be a bit smaller

Change-Id: I0e877e64acba5dd165c0d7a2cffb24dea88d673f
2015-12-17 15:31:18 +00:00
Adrian Roos
e458aa8dbd Add reply text section to notifications
Also fixes a potential NPE in the failed
inflation logging in SystemUI.

Bug: 22452379
Change-Id: I829c332f7f708de8374740f6d02a2bc10a33386b
2015-12-16 16:42:08 -08:00
Winson Chung
d27dae2085 Merge "Minor fixes to freeform workspace" 2015-12-16 22:37:21 +00:00
Winson Chung
509d0d0c9e Minor fixes to freeform workspace
- Fixing regression where we were clobbering the freeform stack order
- Ensure there is padding between tasks
- Fix the header bar animation

Change-Id: I69ced3e3cb2f0c761ddf0c3bd00b17c847d74c0b
2015-12-16 17:34:32 -05:00
Winson Chung
6545fbfa51 Merge "Fixing merge issue from ag/830529" 2015-12-16 22:08:34 +00:00
Winson Chung
9756755db7 Fixing merge issue from ag/830529
- A whole slew of changes didn't make that CL

Bug: 26043233
Change-Id: I470005f1afbf4ca23e6cfe40a497c5c67bb794aa
2015-12-16 17:07:19 -05:00
Winson Chung
75ca185730 Merge changes Ide26856c,I68bbef59,I2186bdfc
* changes:
  Allowing tasks to be swiped away in the history view.
  Loading activity icons in History view.
  Ensuring that the undocked task is visible in Overview.
2015-12-16 21:27:55 +00:00
Winson Chung
4e5fb2f4e1 Allowing tasks to be swiped away in the history view.
Change-Id: Ide26856c291bcdd1b4ab5e15ae9eb876a9af719b
2015-12-16 15:27:12 -05:00
Winson Chung
b169ebd4c4 Loading activity icons in History view.
Change-Id: I68bbef59d380ce7abe251fca75135775528429d5
2015-12-16 15:27:05 -05:00
Winson Chung
062667710e Ensuring that the undocked task is visible in Overview.
Bug: 26043233
Change-Id: I2186bdfc64af161b8e828061a8e064f90c5cae24
2015-12-16 15:26:57 -05:00
Jason Monk
87ccd55e8a Switch Tuner to support prefs (and some improvements)
Change-Id: I2ef62c0c56d4af69f9f34e1cfd297999d59b7da6
2015-12-16 19:41:25 +00:00
Filip Gruszczynski
6eba3bb352 Merge "Fix sysui crash." 2015-12-16 19:38:50 +00:00
Filip Gruszczynski
1d61863bd8 Fix sysui crash.
Bug: 26228707
Change-Id: I34e2362fecda06380e4640483a71365311f99d57
2015-12-16 11:31:12 -08:00
Winson Chung
636e71c326 Merge "Adding catch for b/26221779" 2015-12-16 18:33:47 +00:00
Winson Chung
f4fdabf698 Adding catch for b/26221779
Change-Id: Id0cf455cd65bf5b202a6249b0b51351addb0bd17
2015-12-16 18:20:59 +00:00
Winson Chung
0142299a99 Merge changes I32cbc333,I34926215
* changes:
  Fixing long compare.
  Cancelling window transition when starting focus animation.
2015-12-16 15:15:57 +00:00
Geoff Mendal
6d27bf3724 Import translations. DO NOT MERGE
Change-Id: I8a5e7004c7370fe174d1af2a49b365bdd35c03f9
Auto-generated-cl: translation import
2015-12-16 06:03:13 -08:00
Adrian Roos
b88b1a1dbd Move RemoteInputView inflation to ContentView
Bug: 22452379
Change-Id: Ieed64f7fa0b0bd742ca8a7746e8baf03ca837e1c
2015-12-15 14:12:49 -08:00