9067 Commits

Author SHA1 Message Date
Adrian Roos
b83777ba5c Add flashlight to quick settings
Bug: 15934851

Change-Id: I86f61fa11fe64e76adb032391ce7e7170f59549d
2014-07-02 12:33:36 +00:00
Narayan Kamath
cef0b39b92 Fix native crashes when APKs can't be opened.
There was lax / incomplete error checking around the
construction of Apk handles. This change changes the ApkHandle
API and makes it throw IOException if the zipfile couldn't
be opened.

Additionally :
- Fix a resource leak in DefaultContainerService
- Report errors correctly during package moves.

bug: 15563874
(cherry picked from commit ec4516470d7ce6e47769591d678c838bd3f6f388)

Change-Id: Ia35b464355467d0d36faf34fae85acbbab3f2896
2014-07-02 12:43:52 +01:00
Winson Chung
c6011deffc Fixing some bugs in Recents keyboard behaviour.
- Ensuring that we don't allow meta-tab to trigger Recents (since meta is a system key now)
- Adding dpad keys support to traverse stack
- Adding workaround for cases where tasks wouldn't be focused depending on how you launch Recents

Change-Id: I4101ced7e47e0d1659d5fa236214be5697c00560
2014-07-02 03:24:53 +00:00
Dianne Hackborn
497175beff Rework network stats to use proc state for fg/bg.
Switch to using the process state to determine whether a
process should be foreground or background, instead of the
boolean foreground given by the activity manager.

This is for battery save mode, where we can now allow more apps
to havenetwork access: everything whose process state is at
least IMPORTANT_FOREGROUND, which allows music playback
and other use-visible things to continue to have network
access.

Note this also impact the traditional background data disabled
state, where now we allow anything top or better to have
network access.  This automatically includes all persistent
processes, the current top activity, and any other processes
hosting the top activity or being used by the top activity.
So it broadens the set of apps that get network access, but I
think this increases it to a reasonable set of things that may
actually be needed for the foreground app to work correctly.

Change-Id: Icb609a2cea280dc3fa3e83417f478ed77f3685aa
2014-07-01 18:34:58 -07:00
Jorim Jaggi
c3182c5573 Merge "Fix occasional jank when going to QS." 2014-07-01 19:22:38 +00:00
Jorim Jaggi
e65e310fc9 Fix occasional jank when going to QS.
We change the listening state of the QS panel before the user
actually navigates there and when the animations are probably
not running (after expanding the panel).

Change-Id: Iad48b3459e7db09c423f6983a9fec17ec0088050
2014-07-01 22:00:50 +02:00
Jorim Jaggi
2e115c5d9a Always load resources in SystemUI.
This fixes a bug where resources didn't get loaded after a SysUI
crash.

Change-Id: I3a679890d15ad3c1e13a017840b8258670a23ff8
2014-07-01 21:38:39 +02:00
Jorim Jaggi
695e9e928c Merge "Always load resources in SystemUI." 2014-07-01 19:15:58 +00:00
Jorim Jaggi
1e2b2ba4b3 Merge "Fix clipping of notifications on lockscreen." 2014-06-26 22:01:31 +00:00
Jorim Jaggi
2e34ec3cbb Fix clipping of notifications on lockscreen.
Bug: 15942321
Change-Id: I5838c24987de9ed4d1df550df408536271b047f1
2014-07-01 17:05:35 +02:00
Jorim Jaggi
5dfb86bb09 Merge "Fixed a bug on the notification appear animation" 2014-06-26 21:33:38 +00:00
Selim Cinek
fa129db84a Fixed a bug on the notification appear animation
On the lockscreen the dimmed state was animated before when added
leading to a white flash of the background.

Change-Id: I78047c2d7be2f4b85a25a1bdefacbc944f775b53
2014-07-01 13:49:29 +02:00
Jorim Jaggi
931f518863 Merge "Fix rounded corners in QS panel." 2014-06-26 21:33:38 +00:00
Jorim Jaggi
fbbe811bd8 Fix rounded corners in QS panel.
Bug: 15949122
Change-Id: I6cd306c5dbfef6aad456bd6c82faf53cac0c040c
2014-07-01 02:09:19 +02:00
Winson Chung
04d0f75678 Adding back-behavior test.
Change-Id: I85fda478a99ca097f78ad9231b3cdfbba0903f63
2014-06-30 23:57:50 +00:00
Winson Chung
31d66c60d8 Fixing another case where we weren't properly starting home when Recents is finished due to the screen powering off.
- Reordering broadcast register/unregister to stop listening to the service when Recents is stopped
2014-06-30 15:02:46 -07:00
John Spurlock
39076ed379 QS: Improve dual tile labels.
Use the solid dropdown caret and improve vertical spacing.

Change-Id: I839fb3130a0fc621a2217e5211fb7b4f053a5685
2014-07-01 10:19:24 -04:00
Jorim Jaggi
1928aabc09 Merge "Fix scrim in PIN/PUK." 2014-06-26 22:01:31 +00:00
Jorim Jaggi
a77b85b836 Fix scrim in PIN/PUK.
Bug: 15949149
Change-Id: Ia68903445f256ad5db3d46d6916d57b57218a14d
2014-07-01 15:49:38 +02:00
Jorim Jaggi
93439da0ed Fix scrim flashing when no security is set.
Change-Id: Iccd07c39b57c7bcf3d4d26a00a46926df56eddbc
2014-07-01 15:49:21 +02:00
Jorim Jaggi
b472b347b5 Improve peek behavior and fix a few bugs in PanelView
- A single tap on the bar peeks and then dismisses it a again.
- Wait for the peek until the layout has happened.
- Add logic to only peek if user is not flinging.
- Fix a few bugs with panel holes (onExpandingStarted/Finished not
  called correctly.

Bug: 15856091
Bug: 15407838
Bug: 15942322

Change-Id: I1aedf9d01bc8db3d7fed7cea6e341b0be18a8bd9
2014-07-01 15:41:50 +02:00
Jorim Jaggi
b7240136b7 Improve fling logic for opening the notification shade
Bug: 15858126
Change-Id: I800b00f80b315218358ea9acbd3614e6d5c87c45
2014-07-01 15:08:30 +02:00
Jorim Jaggi
3857ac4b3f Fix a bug where a short fling resulted in a bad state
Change-Id: I43900d1cb72a03e2fb2e6cb2dea44bfad9792fcc
2014-06-30 22:53:43 +02:00
Jorim Jaggi
2580a976ec Improve motion when expanding/collapsing status bar.
- Don't fade the whole panel anymore.
- Parallax effect for QS header translation, fade on keyguard.
- Improve fling curve for dismissing the panel.
- Improve peeking behavior.

Bug: 14804452
Bug: 15407838
Change-Id: I34b7bcd457cb8a037e0bb06e9802ec66d2b39b73
2014-06-30 22:53:27 +02:00
Jorim Jaggi
605f190202 Keep a mirror of the system icons while expanding the panel
Because the icons are shown in two different places at the same time
(in the QS header and the status bar), we introduce a mirror view
which does nothing except draw the contents of the other view to
draw it at both locations during the animation.

Bug: 15407838
Change-Id: I82edc8b4fb7347fa8dadfb81762d22796d37fa3c
2014-06-30 21:12:34 +02:00
Jorim Jaggi
e205379658 Merge "Fix scrim flashing when no security is set." 2014-06-26 21:23:48 +00:00
Jorim Jaggi
3c98b6e628 Merge "Improve peek behavior and fix a few bugs in PanelView" 2014-06-26 21:33:38 +00:00
Jorim Jaggi
2f4688fbbd Merge "Improve fling logic for opening the notification shade" 2014-06-26 21:23:48 +00:00
Jorim Jaggi
5cdd1cc1df Merge "Fix a bug where a short fling resulted in a bad state" 2014-06-26 18:35:29 +00:00
Baligh Uddin
76dc35cfe7 Import translations. DO NOT MERGE
Change-Id: I0744341c6988f5b93105aab2a2a5830983578a65
Auto-generated-cl: translation import
2014-06-30 14:44:21 +00:00
Baligh Uddin
c97d020422 Merge "Import translations. DO NOT MERGE" 2014-06-26 23:50:27 +00:00
Baligh Uddin
d3530a463e Import translations. DO NOT MERGE
Change-Id: If11e03bf833fb561e2e20cc89166a380504b30c3
Auto-generated-cl: translation import
2014-06-30 14:35:51 +00:00
Baligh Uddin
2300d06a2e Import translations. DO NOT MERGE
Change-Id: I66faac7461c003000096bc838fbf166b6fbff2c8
Auto-generated-cl: translation import
2014-06-30 14:35:00 +00:00
Baligh Uddin
700c8ad6c8 Import translations. DO NOT MERGE
Change-Id: I19ba0a7849975b5f1674a9b04ec1d1bf08c25a9f
Auto-generated-cl: translation import
2014-06-30 14:34:43 +00:00
Baligh Uddin
f8c5b40b6c Import translations. DO NOT MERGE
Change-Id: I1ce049ca89479b5d669f813661ce097d97e36629
Auto-generated-cl: translation import
2014-06-30 14:34:23 +00:00
Baligh Uddin
28b91300c4 Import translations. DO NOT MERGE
Change-Id: I8ac7188f10753e0f89761851b6f68c71d58866ed
Auto-generated-cl: translation import
2014-06-30 14:34:10 +00:00
Baligh Uddin
30594a7cfd Merge "Import translations. DO NOT MERGE" 2014-06-26 23:50:27 +00:00
Baligh Uddin
9b4e5c7910 Import translations. DO NOT MERGE
Change-Id: Ia81c920a4555c9f2d98668dd83f2436cafd7a98c
Auto-generated-cl: translation import
2014-06-30 14:36:07 +00:00
Baligh Uddin
4cdc42ad77 Merge "Import translations. DO NOT MERGE" 2014-06-28 00:04:48 +00:00
Baligh Uddin
a5e3d25fd8 Import translations. DO NOT MERGE
Change-Id: Ia29fa1cb6cdd0135a0120ca2f5c2e14432a4b158
Auto-generated-cl: translation import
2014-06-30 14:36:10 +00:00
Baligh Uddin
2d6a9f5099 Merge "Import translations. DO NOT MERGE" 2014-06-27 16:52:20 +00:00
Baligh Uddin
167f20bfdf Import translations. DO NOT MERGE
Change-Id: I535470c423b374d61cdd11ded404f8f80e94af74
Auto-generated-cl: translation import
2014-06-30 14:36:19 +00:00
Baligh Uddin
dcf21205cc Merge "Import translations. DO NOT MERGE" 2014-06-28 00:04:48 +00:00
Baligh Uddin
5e51abd7ec Import translations. DO NOT MERGE
Change-Id: Ibca0bb8ef3a7f047b15355ed614651beb4795eec
Auto-generated-cl: translation import
2014-06-30 14:36:21 +00:00
Baligh Uddin
e700631162 Merge "Import translations. DO NOT MERGE" 2014-06-26 23:50:27 +00:00
Baligh Uddin
244700de24 Import translations. DO NOT MERGE
Change-Id: Ie5bf42a8ca0f627fe2f0b3c041ab7cabdef9edfb
Auto-generated-cl: translation import
2014-06-30 14:36:29 +00:00
Baligh Uddin
adf66ee9b2 Import translations. DO NOT MERGE
Change-Id: I601a71dfde97de710cee9074e1e06d92ef5cc3b9
Auto-generated-cl: translation import
2014-06-30 14:36:24 +00:00
John Spurlock
92d9b19e1b QS: Add a caret to the dual tile labels.
Also tweak some of the vertical spacing between the tiles
to get closer to the redlines.

Bug:15852139
Change-Id: I251fde261a74335c16b37ba07ab554f6db05d367
2014-06-29 17:45:24 -04:00
John Spurlock
6612727c18 Doze: allow devices to opt-out of sigmotion trigger.
For devices with unreliable significant motion sensors, allow
the tease signal to be disabled via device config.

Also add doze state to dream service dumpsys.

Bug:15863249
Change-Id: I23eeec09c69cc3bd43b187e49555391ac0a99d9f
2014-06-28 11:31:44 -04:00
Jim Miller
f41fc9664f Add fingerprint detection support to Keyguard.
Tested:
- power-on with fingerprint sensor
- dismiss bouncer with fingerprint
- fingerprint to enter trusted state

Change-Id: I6aab7591d370412a143fe219a1575b2719a4de96
2014-06-28 01:11:20 +00:00