Commit Graph

6458 Commits

Author SHA1 Message Date
Jorim Jaggi
afaf4ac7a9 Fix a flicker when returning to the lockscreen
am: d11d1a9486

Change-Id: Ia0b617be2bb00db24115f04f362cd072d59ebe71
2016-08-17 18:28:59 +00:00
Jorim Jaggi
d11d1a9486 Fix a flicker when returning to the lockscreen
If we return to the lockscreen from a FLAG_SHOW_WHEN_LOCKED activity,
there was an additional black flicker as the wallpaper wasn't shown
for a couple of frames. The issue is that we didn't set the wallpaper
flag again, to fix another flicker with lockscreen wallpapers. Now,
we pass the state whether we currently have a lockscreen wallpaper
and if we don't have one, we immediately set the wallpaper flag
again.

Bug: 30829255
Bug: 30883413
Change-Id: I9faeaa77b98eb02058171ce19cf90b43826ebe9e
2016-08-17 18:10:54 +00:00
Chong Zhang
5e09ceb641 Add new window type TYPE_DRAWN_APPLICATION
am: fea963edee

Change-Id: If7acf1349b87d4be88a9b4f9fbd984bbd4aca8ad
2016-08-17 17:16:18 +00:00
Michael Kwan
dc0735676b Merge "Hide space for title if the title is GONE." into cw-f-dev 2016-08-16 17:56:42 +00:00
Chong Zhang
fea963edee Add new window type TYPE_DRAWN_APPLICATION
This type behaves like a normal TYPE_APPLICATION, except that WM
will always wait for it to be drawn before starting a transition.

WM always waits for TYPE_BASE_APPLICATION (main window), but for
TYPE_APPLICATION, it only waits if the window relayouts to visible
and gets a surface before the main window is drawn. If main window
itself is ready very fast, transition could start without the other
window.

bug: 30830849
Change-Id: Ife71a9812db7c8eba6ee4ead10ce4f31d9e93b40
2016-08-15 17:36:40 -07:00
Adam Lesinski
e5852eb501 SamplingTimer: Fix issue with summary recording too much
am: 9edd6be542

Change-Id: Id423f0343c2d435281d47cd6edacb6816baaace8
2016-08-13 00:52:03 +00:00
TreeHugger Robot
8aacc3cf98 Merge "SamplingTimer: Fix issue with summary recording too much" into nyc-mr1-dev 2016-08-13 00:40:53 +00:00
Adam Lesinski
9edd6be542 SamplingTimer: Fix issue with summary recording too much
The summary is supposed to just hold enough data to continue counting
once the device has reset. Since kernel stats reset when the device
resets, and the first update is ignored to account for soft resets where the
kernel continues running, SamplingTimer should not be recording the last value
it saw from /proc/wakelocks in the summary.

Bug:30575302
Change-Id: Ic193bc5af9a0ede514e3abc8146523d7316c47d3
2016-08-12 15:49:44 -07:00
Adrian Roos
57d1601849 Assist: Allow disabling the disclosure animation
am: 2335bd6787

Change-Id: I2a88e088da3062b7bd10581650de526629973c67
2016-08-12 20:35:22 +00:00
TreeHugger Robot
1ee928a62a Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev 2016-08-12 20:28:12 +00:00
Adrian Roos
2335bd6787 Assist: Allow disabling the disclosure animation
Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067
2016-08-12 12:04:53 -07:00
Michael Kwan
790a34e1a9 Hide space for title if the title is GONE.
Bug: 30676030
Change-Id: I5e61d00dadbfffbc7b04ee3431f591e9d2d2ce29
2016-08-12 11:10:58 -07:00
Phil Weaver
711d7260ba Don't preserve a11y focus in hierarchy state.
am: f40ee509c6

Change-Id: I14ba7354058eef6942286483b3f61ea0404135ea
2016-08-11 20:53:37 +00:00
Phil Weaver
aefa892035 Merge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev 2016-08-11 20:34:42 +00:00
Adrian Roos
73b2f5981e Only disable trust agents after lockout
am: 9d6fc9246b

Change-Id: I1fd7860a5a2c452e4b3c2e3e8d1073c423c9f054
2016-08-11 02:38:45 +00:00
TreeHugger Robot
f6487b63a1 Merge "Only disable trust agents after lockout" into nyc-mr1-dev 2016-08-11 02:30:32 +00:00
Andreas Gampe
8253782f5b Zygote: allow system server compilation to fail
am: e7bc152c20

Change-Id: Ibaea0c9bc3a5eb0e8a64342e4e27b7cfca21c647
2016-08-11 02:11:21 +00:00
TreeHugger Robot
927db408a2 Merge "Zygote: allow system server compilation to fail" into nyc-mr1-dev 2016-08-11 02:02:09 +00:00
Adrian Roos
9d6fc9246b Only disable trust agents after lockout
Previously trust agents would be disabled even after one
wrong attempt. Now we wait for the cooldown (usually 5 attempts),
the same as fingerprint.

Also adds a TrustArchive entry of when device policy changes are sent to
trust agents.

Bug: 30037948
Change-Id: I9e284d994ddae45ef66b5b8b601297c63d8ba667
2016-08-10 18:01:32 -07:00
Andreas Gampe
e7bc152c20 Zygote: allow system server compilation to fail
Do not terminate when the system server classpath cannot be
compiled. This can be the case in fallback mode, e.g., when
a device ran out of space.

Bug: 30765660
Change-Id: I3aca3f2f789e2201e4019e1bf04d239ab54b0d3d
2016-08-10 11:46:14 -07:00
Adrian Roos
dd33f36fc4 Notification: Reuse drawable in Header if Icon unchanged
am: c4337a3569

Change-Id: I8e7da247e9b4d9a9acd46c29ca29d34409bb9453
2016-08-10 17:06:17 +00:00
Adrian Roos
d4a95806ab Merge "Notification: Reuse drawable in Header if Icon unchanged" into nyc-mr1-dev 2016-08-10 16:52:15 +00:00
Phil Weaver
f40ee509c6 Don't preserve a11y focus in hierarchy state.
This change rolls back functionality added in ag/747748.
The idea was to restore accessibility focus on
configuration changes, but the restoration was happening
too early, which caused ViewRootImpl and the View to
disagree about accessibility focus. This confusion makes
some views unreachable by swiping after a configuration
change.

Bug: 30042251
Change-Id: Iae32b5425a1e7de9a8f5be965feb912fd2d9a0bb
2016-08-09 16:33:30 -07:00
Adrian Roos
c4337a3569 Notification: Reuse drawable in Header if Icon unchanged
Mitigates an issue where a LevelListDrawable would constantly
be reloaded even if unchanged. To avoid this, small icons are
now only reloaded if they no longer point to the same resource.

Note that StatusBarIconView already has this logic.

Change-Id: I6be436e5cef7b7ca91a28edc413b1aaa0f1007d5
Fixes: 30496073
2016-08-09 12:31:20 -07:00
Jorim Jaggi
9a7d0a5f84 Fix navigation bar in seascape in BackdropFrameRenderer
Change-Id: I922aaf835011b236f4b4d34f249304e335c3318b
Fixes: 30670517
2016-08-09 13:47:20 +02:00
Joe Onorato
adbee556a9 Have BatteryStats track and report the running wakelocks.
The times reported are in the screen off / on battery time base.

Bug: 29546924
Change-Id: I025b2959becb256a26cf531e944786d4e9a59149
2016-08-05 16:10:13 -07:00
Adrian Roos
c49dfaf4d6 Merge changes from topic 'smooth_unlock' into nyc-mr1-dev
* changes:
  Keyguard: Improve trusted unlock while occluded
  Keyguard: Refactoring for improving trusted unlock while occluded
2016-08-05 18:37:29 +00:00
TreeHugger Robot
9d9621f472 Merge "Move EphemeralResolverService" into nyc-mr1-dev 2016-08-05 17:37:35 +00:00
Todd Kennedy
31b95e0265 Move EphemeralResolverService
It should not have been under com.android.internal

Fixes: 30673742
Change-Id: I2277aa4a4799fa59bf68af7c4cfcb4e1216aeb8d
2016-08-05 07:17:52 -07:00
Adrian Roos
d88eb2693b Keyguard: Refactoring for improving trusted unlock while occluded
- Adds a trusted signal from Keyguard to PhoneWindowManager
- Allows PhoneWindowManager to exempt DISMISS_KEYGUARD windows from force hiding
- Allows PhoneWindowManager to dismiss Keyguard while occluded

Bug: 27410215
Change-Id: I3ad490b64a5805b6f3888a9f37fcfbdd0116395e
2016-08-05 00:04:07 +00:00
Dianne Hackborn
29cc1b6939 Merge "Work on issue #30407061: OverflowArrayMap.stopObject unable to find object" into nyc-mr1-dev 2016-07-30 00:03:39 +00:00
Dianne Hackborn
657153bd28 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
Add more debug info when this happens to try to better
understand what is going on.

Change-Id: Id8c979d1c2d3769ce68156fb7e69d5ff9d5ded1c
2016-07-29 14:54:14 -07:00
Adam Lesinski
533159b4f9 Merge "DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e" into nyc-mr1-dev 2016-07-28 19:08:30 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Chris Banes
7f37f2693f Merge "Fix CascadingMenuPopup width if background has padding DO NOT MERGE" into nyc-mr1-dev 2016-07-28 08:38:40 +00:00
Andrii Kulian
671bc2052a Merge "Don't delay child pressed state in freeform mode" into nyc-mr1-dev 2016-07-27 21:29:46 +00:00
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
Chris Banes
f9e2c1b326 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
2016-07-27 14:53:38 +01:00
Andrii Kulian
a6aea9876e Don't delay child pressed state in freeform mode
DecorCaptionView is used in app view hierarchy in freeform mode
and it inherits default ViewGroup#shouldDelayChildPressedState
implementation, which returns true by default for compatibility
reasons.
This results in touch not delivered to child views in some cases
until there is movement or up action. E.g. touch on SeekBar will
not change the position of control instantly in freeform, while
it does in other modes.
This CL disables delaying child pressed state for DecorCaptionView.

Bug: 30037893
Change-Id: I4917143610b6c0d404d2395670de9525c10f2a6c
2016-07-26 18:42:46 -07:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
Michael Kwan
744be16ffa Add titles to PreferenceFragments and PreferenceScreens for watches.
Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
2016-07-26 10:57:56 -07:00
Michael Kwan
ad74941699 Merge "Add top and bottom panel overlay to lists in AlertDialog for watch." into nyc-mr1-dev 2016-07-25 22:15:39 +00:00
Michael Kwan
55e4030f77 Add top and bottom panel overlay to lists in AlertDialog for watch.
For watch devices, AlertDialogs added the title and button bar as header and
footer views in the ListView. This broke compatibility, hence a solution to
overlay the panels instead with a wrapper layout.

Bug: 27482353
Bug: 30075032
Bug: 29833395
Bug: 29277843

Change-Id: I2ecbe56ae8f7d7e99c7ca2dad2a2092499212199
2016-07-22 13:04:42 -07:00
TreeHugger Robot
0ff47b64cd Merge changes Idd0b38b4,I511356a8 into nyc-mr1-dev
* changes:
  Fixed a bug where the fade in from dark would not work properly
  Changed the appearance of fullscreen intent notifications again
2016-07-22 19:20:49 +00:00
Selim Cinek
981962e6ad Changed the appearance of fullscreen intent notifications again
Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca
Fixes: 28269355
2016-07-22 12:13:11 -07:00
Dianne Hackborn
ca37695ebc Merge "Add reporting of long wake locks." into nyc-mr1-dev 2016-07-20 15:45:36 +00:00
Dianne Hackborn
d0db6f0043 Add reporting of long wake locks.
These appear as a new event in the battery stats history,
"longwake" in the long version and "Elw" in the checkin.

The power manager keeps track of which wake locks are held
for a long time and reports them to battery stats.  Long
is currently considered 1 minute or more.  Once it is long,
the start event will appear, and once if is released the
event will end.

In the case of a wake lock changing (typically its work
source changing), for purposes of this accounting this is
considering a pure release of the old state and start of
the new state...  so the timer will reset back to one
minute until the wake lock is considered long.  This is done
to prevent things that make lots of changes to wake lock
work sources from spamming the log.

Bug: 28753137

Change-Id: I33b6168c57a7ea6ea558273dec731704123124a5
2016-07-19 14:16:50 -07:00
TreeHugger Robot
0cd4addd36 Merge "Fix padding on round devices for AlertDialogs." into nyc-mr1-dev 2016-07-19 18:48:31 +00:00
Michael Kwan
814508166c Fix padding on round devices for AlertDialogs.
Bug: 27482353
Change-Id: Ic9ee4abe84f9172db64dba398af2c0058921fa3f
2016-07-19 10:18:41 -07:00
Yuichi Biwa
4f3a843ea9 ChooserActivity: Cannot start app that the icon overflows the layout
Symptom:
When sharing an image from Album, ChooserActivity can be shown.
But then the app to be located to the bottom part of the list may not
be started even if user tap it.

Root cause:
ChooserActivity uses ResolverDrawerLayout. And ResolverDrawerLayout
can display only some items on the list (known as "Collapse mode").
When the item clipping along the bottom edge is tapped by the user,
ResolverDrawerLayout tries to expand the list and scroll it to a
better position, instead of starting an application.
In this problem case, ResolverDrawerLayout continues to try to expand
the list whenever tapping, so an application will never start.

Solution:
Change a condition so that mOpenOnClick becomes true only when the list
has been collapsed (mCollapseOffset > 0).

Bug: 30153542

Change-Id: I576fb6c8b6a91d79c1e0d46d069146779f4dbd17
2016-07-19 10:04:41 -07:00