10373 Commits

Author SHA1 Message Date
Jorim Jaggi
8b8fa3e934 Fix SysUI crash when no metadata is provided
Bug: 23327474
Change-Id: I4903c0812c9677e1b31e1f645e3d6f1a03150c38
2015-08-19 01:34:33 +00:00
Jorim Jaggi
f610bd78b2 Fix race conditions for camera prewarm service
When the unbind request came in before the service was actually
bound, we dropped the unbind request because mPrewarmBound was still
false. Fix that by tracking whether a bind is pending and if a unbind
event comes in during that time, set another flag to unbind it
directly again when the service is actually bound. In addition, don't
allow binding again if any of the previous events are still pending.

Bug: 23143748
Change-Id: I2b8ace86e35479a9848668a3462a2ce687835413
2015-08-19 00:01:45 +00:00
Daniel Sandler
9f238a9455 Merge "Introducing M Land." into mnc-dev 2015-08-14 19:59:48 +00:00
Dan Sandler
8df3cfe6b8 Introducing M Land.
The "M" is for Multiplayer.

Bug: 21984798
Change-Id: Id752b8efe54ff0ac38854a129188027137d64dd5
2015-08-14 15:51:13 -04:00
Jean-Michel Trivi
16fa58cb13 Merge "Fix to check the incoming userid argument for RingtonePlayer" into mnc-dev 2015-08-14 18:19:17 +00:00
Sungmin Choi
4a05bbcd38 Fix to check the incoming userid argument for RingtonePlayer
In PowerNotificationWarnings, where it dispatches notifications
with UserHandle.ALL:
    mNoMan.notifyAsUser(TAG_NOTIFICATION, R.id.notification_power, n, UserHandle.ALL);
The fix is to have RingtonePlayer check the incoming userId argument to playAsync(),
and change USER_ALL to USER_OWNER.

BUG=22516181
BUG=22992637
Change-Id: Ia3f8aaa2bee7fb15c24542e2331b2bc5a877e715
2015-08-13 17:07:11 -07:00
Jorim Jaggi
81eeef5893 Merge "Update time when turning on screen, in addition to waking up" into mnc-dev 2015-08-13 23:51:11 +00:00
Jorim Jaggi
9373911d41 Update time when turning on screen, in addition to waking up
When in ambient display mode, we didn't get a callback to
onStartedWakingUp, thus the time was never refreshed. Since
broadcasts are disabled in this low-power state, we need to refresh
the clock manually before turning on the screen, because we can't
rely on the broadcasts to be delivered.

Bug: 23171638
Change-Id: I249f4195a14995f7c1467e73ac2aa400b871f80e
2015-08-13 15:56:41 -07:00
Jason Monk
90460c79d1 Merge "Add more intelligence to bluetooth connection state" into mnc-dev 2015-08-13 14:38:46 +00:00
Jason Monk
bba7317d07 Add more intelligence to bluetooth connection state
Since bluetooth connection state has a mind of its own... If we
think we are connected, but we don't actually know about any devices
that are currently connected, we probably aren't. So set the state
that way, and let everyone know.

Bug: 22977827
Change-Id: I9266f5394b179a3917b3818839f7c6b2dc238376
2015-08-12 16:17:34 -04:00
Jason Monk
0c76295791 Merge "Fix tuner for secondary users" into mnc-dev 2015-08-12 17:59:22 +00:00
Julia Reynolds
fe114b9902 New landscape Navigation bar icons.
Bug: 22855920
Change-Id: I5127c8d0121aa90a1e52da1b51a86bac1c1b2fa1
2015-08-11 15:32:29 -04:00
Jason Monk
540542b417 Fix tuner for secondary users
Bug: 23112000
Change-Id: I52aabdd1f345fb50e2c5015d233f4de3cc8d994d
2015-08-11 14:21:52 -04:00
Daniel Sandler
ad7719dea4 Merge "Crash apps with bad notification icons." into mnc-dev 2015-08-11 14:17:45 +00:00
Winson Chung
c00b1067a0 Merge "Pushing the startActivity before the calls to remove task." into mnc-dev 2015-08-11 02:33:15 +00:00
Jorim Jaggi
f8359cfb93 Merge "Don't show fingerprint cancellation messages in keyguard" into mnc-dev 2015-08-11 01:31:56 +00:00
Winson
1df9c3c6bd Pushing the startActivity before the calls to remove task.
- It appears that there is contention between startActivityAsUser() and
  removeTask() (called on two separate threads) which can cause jank when
  a user removes all the tasks from their recents list.  This CL ensures
  that startActivityAsUser() is always run first so it is not blocked
  by the other call (which should be able to run in the background
  uninterrupted).

Bug: 22760556
Change-Id: I7564a2f0e43414686419d3657379bbd0ca6b4152
2015-08-10 15:45:35 -07:00
Dan Sandler
334398105f Crash apps with bad notification icons.
This shouldn't happen, since there are many places where
invalid icons should already have been either fixed (in the
case where there's an .icon but no .mSmallIcon) or rejected
(if they're both null or invalid). But if a notification
makes it all the way to SystemUI without a valid icon, let's
crash the sender.

Bug: 23011305
Change-Id: Ifaebec57d59baa1defb4520178b5815d47ed5712
2015-08-10 16:04:12 -04:00
Jason Monk
00aa9d4427 Initialize network name better in NetworkController
Initialize current network name to correct value from the
SubscriptionInfo until we get a broadcast about its current state.

Bug: 22212693
Change-Id: I17fa4378cc7a540c81268f8c4d5aa6a505f3ee40
2015-08-10 10:29:47 -04:00
Julia Reynolds
9dc4d50be1 Merge "Update Navigation bar assets." into mnc-dev 2015-08-07 19:19:02 +00:00
Jason Monk
69ed33087d Merge "Allow system to disable lockscreen" into mnc-dev 2015-08-07 18:40:19 +00:00
Julia Reynolds
ae4b8deada Update Navigation bar assets.
Bug: 22855920
Change-Id: I2d66bb087b092cdb6280e78c064f32ae9e42ad61
2015-08-07 13:59:46 -04:00
Jason Monk
77566dd1e1 Merge "Use BluetoothController for status bar icon status" into mnc-dev 2015-08-07 14:38:29 +00:00
Jason Monk
b978ce7f25 Allow system to disable lockscreen
Even when there is a pin.

Bug: 22920549
Change-Id: Ib84e1c3ac67be0318d4186c66ee582a49969e373
2015-08-07 09:21:51 -04:00
Winson Chung
bb55aa1a93 Merge "Fixing issue with empty Recents screen." into mnc-dev 2015-08-06 21:44:17 +00:00
Jason Monk
7036436014 Use BluetoothController for status bar icon status
Bug: 22819904
Change-Id: I6ca11c57431f8e930a47144090158363175a3b99
2015-08-06 16:43:59 -04:00
Winson
76ffdafc3c Fixing issue with empty Recents screen.
- We did not expect RecentsActivity to be launched without going through
  the normal SystemUI controls, but when the home activity is in the foreground
  and killed (via a normal apk update), the RecentsActivity stores the old
  launch configuration and believes that it was launched from home and awaits
  the animation-complete callback to animate the tasks in.
- This CL adds a workaround where the configuration is reset whenever
  RecentsActivity is stopped, which allows the tasks to be shown immediately
  if the User is kicked back into Recents due to an update.

Bug: 22542869
Change-Id: I2b4168ccecfbf868fa6d544fe89109dfa74f51df
2015-08-06 12:51:26 -07:00
Chris Wren
a35c96eb90 add metrics to assistant
long press
  screenshot enabled
  context enabled

Bug: 22949579
Change-Id: Iac178207fa7149cda03c9a817a0d1450e46e1c59
2015-08-06 15:11:42 -04:00
Jim Miller
b29814c4cc Don't show fingerprint cancellation messages in keyguard
Cancellation messages can come from a variety of sources
and are not user-actionable.  As a result, we just shouldn't
show them.

Fixes bug 22863862

Change-Id: I2154c774fd5ac7477e01d1cbf3bdde2d1929363b
2015-08-06 02:39:06 +00:00
Jason Monk
55dbf2d78e Merge "QS: Allow Flashlight Tile to handle reset state" into mnc-dev 2015-08-04 13:43:21 +00:00
Jason Monk
66845a36c9 Add more dump info about emergency calls state
Bug: 21549528
Change-Id: Idbd70e2f4b1b3285af283a28dc1933c02ad8d04c
2015-08-03 11:09:41 -04:00
Selim Cinek
f92a1fdb77 Fixed a bug where notifications shadows were blinking out
Bug: 22567770
Change-Id: I2d335241a287d0c64e659221994f19b7c13eccd3
2015-07-31 23:24:55 +00:00
Winson Chung
c35e670d53 Moving removeTask to separate thread.
Bug: 22760556
Change-Id: Iac6eef77e3ba5432ac1cd4aa792e7b2aadc27c01
2015-07-31 12:47:25 -07:00
Winson Chung
92e0c86fa2 Merge "Ensuring that we don't try to use and propagate null activity labels." into mnc-dev 2015-07-31 19:20:51 +00:00
Winson Chung
fce23748c4 Ensuring that we don't try to use and propagate null activity labels.
- Also fixes issue with tapping outside bounds not working to dismiss recents

Bug: 21774486
Bug: 22241587
Change-Id: Ib50f6fece8fb150929a1f8cdb01b8e8fe7b665cd
2015-07-31 18:51:58 +00:00
Jason Monk
3266f61230 QS: Allow Flashlight Tile to handle reset state
Bug: 22815987
Change-Id: I3c22760c546c5407495e1e8f09dc402a56817f9d
2015-07-31 11:37:11 -04:00
Julia Reynolds
8478aba1a2 Fix SysUI crash on device boot.
Bug: 22869066
Change-Id: I55ab64c430899ebc20bfc8a8e4d1e2a7cd12f0cd
2015-07-31 09:17:20 -04:00
Selim Cinek
0fccc729fd The heads up now correctly dissapears when clicking
Bug: 22729955
Change-Id: I977b36823bf936baab527f932b1e5576241f4d71
2015-07-30 23:05:42 +00:00
Selim Cinek
20a5d33175 Merge "Fixed a heads up crash" into mnc-dev 2015-07-30 21:45:55 +00:00
Fyodor Kupolov
4988378cd0 Merge "Introduced android.permission.PEERS_MAC_ADDRESS permission" into mnc-dev 2015-07-30 20:50:04 +00:00
Daniel Sandler
bbe1682b16 Merge changes from topic 'fix-media-notifications' into mnc-dev
* changes:
  Fully support Icons in Notification actions.
  Fix media notification action icons.
2015-07-30 02:57:06 +00:00
Selim Cinek
acd0df65dd Fixed a heads up crash
Some references to notifications were still
kept around while timing out, leading to small
leaks and sometimes crashes.

Bug: 22819475
Change-Id: I1429b5669366521c6374efbcae6c26d6e407d8cc
2015-07-29 19:09:03 -07:00
Jason Monk
beb3185f01 Merge "Fix touch target for settings icon" into mnc-dev 2015-07-30 00:32:17 +00:00
Jorim Jaggi
26aa04c3c4 Fix state weirdness in the panel
When QS was open while the we started with expansion, we
immediately notified about expansion finsihed again, which led to all
kinds of weird states. The change that introduced these bugs was to
fix another bug in which onExpandingFinished was not call. Make sure
to call in exactly that case and no other case to not risk
regressions.

Bug: 22806817
Bug: 22807359
Bug: 22807372
Change-Id: Id7daf37ef4a772f724971bf79c61084ff4279f31
2015-07-30 00:22:14 +00:00
Dan Sandler
25ffc7ad95 Accessibility: Read the time correctly in quick settings.
The problem is that, for 12-hour locales, we cut the "a"
part of the time format out to show it in a separate
TextView so it can be animated independently of the actual
time. Unfortunately, while TTS is smart enough to pronounce
"1:15 AM" as /wʌn fɪftin eɪ ɛm/, "AM" on its own looks like
the English word "am" and is pronounced /æm/.

To fix this, a TextClock must be able to accept separate
formats for its content description than its presentation.
With this capability we can place the complete 12-hour time
format (including am/pm) in one of the views and suppress
the other one, so that the utterance creates an identical
experience to visual inspection: "1:15 AM" for all users.

Bug: 21718000
Change-Id: Ic9920d71ae4d4ad41ba86d7bd96f9a19b07e2108
2015-07-29 22:19:52 +00:00
Jason Monk
bd6f1c87a5 Fix touch target for settings icon
Bug: 22808656
Change-Id: I92b77b30bfeadc80d060dab67a51d5fcd96268af
2015-07-29 16:07:39 -04:00
Geoff Mendal
3986360a75 Import translations. DO NOT MERGE
Change-Id: Ic4e540e08175014515a7556425c751de60955005
Auto-generated-cl: translation import
2015-07-29 10:57:52 -07:00
Dan Sandler
68079d54f3 Fix media notification action icons.
In addition to cleaning up some bare references to the icon
slot, we now apply updates to notification RemoteViews in
the context of the supplying app's package. This ensures we
can find the drawables inside any Icon objects that were
constructed without a proper package name, such as is the
case with Actions (because the builder and constructor are
Context-free and so don't know the package name).

This CL also makes clear what was previously only implied:
Non-resource action icons are not actually supported yet
since they can't be pushed to TextView compound drawables
using today's RemoteViews APIs. That will require an API
change.

Bug: 22600607
Change-Id: Ie6b88aed36e4db05be35f843ea3bc1898d4a5c96
2015-07-29 13:50:32 -04:00
Jason Monk
fbcbad138d Merge "Add sizes to SysUI tests" into mnc-dev 2015-07-29 00:31:16 +00:00
Jorim Jaggi
0d210f6395 Animation for touch, wake and unlock
- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
  First, start with a black scrim on top of everything, and then fade
  it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
  in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
2015-07-28 23:02:54 +00:00