9366 Commits

Author SHA1 Message Date
Jorim Jaggi
563062569c Reenable touches to notifications in expanded QS
Revert "Closing the QS when tapping on the notifications now."
This reverts commit 3bb0bb8817690728a40edd3f8f665b09907a451b.

Revert "Disabled touch interaction when in Quick settings."
This reverts commit 5cd19bc6a4fac0513bb285fdaf08b1d19c87f4ae.

Also, shuffle order of notifications and quick settings such that
scrolling still works and delegate touches from stack scroller to
the scroll view for expanded QS panel.

In addition, make the panel close transition work when QS is expanded
and scrolled.

Last but not least, decrease scrim amount so the notifications still
look 100% interactive.

Change-Id: I17710e078cff84bcdf303c22986a31135dae2aee
2014-07-03 17:24:50 +02:00
Jorim Jaggi
30c305ce62 Implement nice motion for collapsing panel while QS open
Also remove the delay for actions which close the panel. Delaying is
no longer necessary as you still see the touch feedback when the
panel is closed.

Change-Id: I0dffae6998fc41b1590cb182667323f40be3a7d5
2014-07-03 17:24:24 +02:00
Jorim Jaggi
ed2f4b77da Merge "Quick settings improvements" 2014-07-02 19:56:47 +00:00
Selim Cinek
3d2b94bf8e Made notifications below speedbump grey.
Also fixed a small scrimming bug where headsup where
scrimmed.

Bug: 15408642
Change-Id: I8319ccb001a1d654af055276de3c64ae388a7e47
2014-07-03 11:40:54 +00:00
Selim Cinek
697178b124 Refactored the notification backgrounds
The background now only uses one specific drawable and emulating
the legacy behaviour by tinting. Notification backrounds are now
also a ripple drawable, giving feedback on click.

Bug: 15837646
Change-Id: Ia3b7dafebe2439cc56ed258264ef33b5b07faa69
2014-07-03 11:40:21 +00:00
Winson Chung
5e6edd87c9 Merge "Bug fixes and cleanup" 2014-07-02 18:22:50 +00:00
John Spurlock
e048d85301 Merge "QS: Wifi control panel." 2014-07-02 20:06:33 +00:00
John Spurlock
7f8f22a530 QS: Wifi control panel.
Create first example of an inline detail view with line
items, bind to new access-point controller.

Move the common bits of all control panels into a
common abstraction.  Share common parts of layout
(More settings / done button).

Change-Id: I14a1bf548f3291dc628f97bf09dd4e38ac2fb2dc
2014-07-03 12:28:46 -04:00
Christoph Studer
e65501a743 Merge "Inline replace notification views when layout changes" 2014-07-02 19:50:27 +00:00
Christoph Studer
a7fe63190c Inline replace notification views when layout changes
Instead of going through a full remove / add when a notification
is updated with a different layout, only re-inflate the inner views.

Bug: 15869868
Change-Id: Ie18c431e7b3e2a6209d4a9b6418b3150781a063f
2014-07-03 17:18:11 +02:00
Jeff Sharkey
57dcf5b177 Slow progress towards APK clusters.
Differentiate between "split APKs" and "cluster packages".  A cluster
package is a directory containing zero or more APKs (base+splits),
and a monolithic package is a single APK (base).

PackageSetting will use the directory name as its codePath, so track
the baseCodePath separately.  Clarify documentation in several
places.

Require that all installers provide file:// URIs through existing
hidden APIs; PackageInstaller hasn't been able to read content://
URIs for a long time.

Bug: 14975160
Change-Id: I1c6fed1b55205c2474b09871161a98a26669d22e
2014-07-02 19:03:54 -07:00
Craig Mautner
c0ffce5ddd Use cached thumbnails in Recent tasks.
The thumbnail returned from ActivityManager.getTaskThumbnail() now
contains either a Bitmap or a ParcelFileDescriptor that points to
a file containing a compressed Bitmap. The Recent tasks list is
now responsible for all thumbnail Bitmap caching as the activity
manager keeps only the most recent 5. This also permits low memory
devices to have many more tasks in the Recent tasks list.

As part of this CL the concept of subtasks is removed eliminating
code supporting the TaskAccessInfo and IThumbnailRetriever classes.

Fixes bug 15828934.

Change-Id: I0fd0320a1a04e3c78d79357899b83a2fff97abf2
2014-07-02 16:31:46 -07:00
Adrian Roos
e59bd9af26 Update QS flashlight icon
Bug: 15934851
Change-Id: Id1d08fce8916c29c6cb53eee7cb069b250c0b805
2014-07-02 20:03:26 +00:00
Narayan Kamath
dbbc070670 am e2840977: am 6e84f8c1: Merge "Fix native crashes when APKs can\'t be opened."
* commit 'e2840977d37e4d19425d448b54895536e43a2989':
  Fix native crashes when APKs can't be opened.
2014-07-02 12:18:45 +00:00
Baligh Uddin
e1ef888eac Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-07-01 23:17:33 +00:00
Baligh Uddin
48f89343d9 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-07-01 23:33:37 +00:00
Baligh Uddin
24280fa4c0 Import translations. DO NOT MERGE
Change-Id: I006181afb024c03d268793fe4a8f547d9ee82d6b
Auto-generated-cl: translation import
2014-07-01 11:22:35 -07:00
Baligh Uddin
cd008483a3 Import translations. DO NOT MERGE
Change-Id: I71e375bba32fd94ba872c7f5f35f338470a53524
Auto-generated-cl: translation import
2014-07-01 11:15:32 -07:00
Adrian Roos
7028946402 Fix keyguard user switcher layering
Bug: 15822308
Change-Id: I4253a5f9ccb395b291696825923b251c4069c617
2014-07-02 15:22:36 +00:00
Jorim Jaggi
037c149ef0 Merge "Implement ability to fling to QS in empty space" 2014-07-01 17:57:07 +00:00
Jorim Jaggi
dc96d6310c Implement ability to fling to QS in empty space
Bug: 16009808
Change-Id: I0af174a4d97202dae767e4ae56f43599dbee4e05
2014-07-02 17:20:31 +02:00
Jorim Jaggi
475b21dfe5 Start expanding QS directly when overscrolling to it.
This removes the janky transition from scrolling to flinging.

Change-Id: I691ac94ec06af7f7431ad162e07c21d2c753e99c
2014-07-02 17:10:34 +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
c640fafbcd Merge "Start expanding QS directly when overscrolling to it." 2014-07-01 17:46:08 +00:00
Jorim Jaggi
de6265c319 Merge "Fix "None" lock screen option" 2014-07-01 17:52:42 +00:00
Jorim Jaggi
d0b698f074 Fix "None" lock screen option
Now that we have a user switcher in quick settings, we don't need to
show the lockscreen if multi-user is enabled.

Bug: 15864584
Change-Id: I1a7ea69963fdd5a4f79584f565beff36612468f5
2014-07-02 16:46:27 +02: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
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
Baligh Uddin
b9246ef52c Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-07-01 14:40:15 +00:00
Baligh Uddin
a9b6277c10 Import translations. DO NOT MERGE
Change-Id: I8995e4e7008c4ec3c06e6ef65046d8fc9987c33a
Auto-generated-cl: translation import
2014-07-01 10:44:30 -07:00
Baligh Uddin
9846e4c676 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-07-01 14:50:43 +00:00
Baligh Uddin
4a4fa0a30a Import translations. DO NOT MERGE
Change-Id: I1027a88bab0d00d223807bba87f9bbb75aef4d79
Auto-generated-cl: translation import
2014-07-01 10:47:53 -07:00
Baligh Uddin
efee5db3c7 Import translations. DO NOT MERGE
Change-Id: I7ad5171c74ba22fff8602cf99b6a87f93f0f86a0
Auto-generated-cl: translation import
2014-07-01 10:45:41 -07:00
Jorim Jaggi
c3182c5573 Merge "Fix occasional jank when going to QS." 2014-07-01 19:22:38 +00:00
Jorim Jaggi
695e9e928c Merge "Always load resources in SystemUI." 2014-07-01 19:15:58 +00:00
Narayan Kamath
ec4516470d 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
Change-Id: Ic71a10709eb82b8f53405bbfb2320e80aa96b771
2014-06-30 17:14:29 +01: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