239864 Commits

Author SHA1 Message Date
Jason Monk
4db7675d85 Merge "QS: Add content description to page indicator" into nyc-dev 2016-04-13 19:11:22 +00:00
Jorim Jaggi
a28e8cc50f Do not transfer starting window to translucent activity
When starting the "App may not work in split-screen" activity which
is translucent we used to transfer the starting window, and then the
frame was drawn quickly so the starting window from the behind was
removed, leading to a black hole.

Bug: 28094732
Change-Id: I828f0ea8b0465a5a113fd76a82d33177c8faa566
2016-04-13 19:10:17 +00:00
Steve McKay
5108d34374 Merge "Mark DocumentsUI as a "privileged" app." into nyc-dev 2016-04-13 18:59:33 +00:00
Daniel Sandler
1e79be9f0a Merge "Fix NPE when the vr manager isn't around at first." into nyc-dev 2016-04-13 18:58:22 +00:00
Steve McKay
03dab3e562 Merge "Fix selecting all in DocumentsUI." into nyc-dev 2016-04-13 18:57:55 +00:00
Rob Carr
caa747b9ac Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev 2016-04-13 18:55:00 +00:00
Mike Cailean
96635bd056 Fixed bugs when deliver GnssMeasurement from N-HAL
There're two major problems that prevents GnssMeasurement from N-HAL from
delivering to Java-side correct:

1. The size check of HAL-provided GnssData is wrong. So native code rejects all
valid GnssData.

2. The svid's data type is different between HAL-side and Java-side. Therefore
an explicit type casting is required.

This CL fixes those problems, together with a few typo fixes.

Bug: 28169973
Change-Id: Id0c2cc120387970564b840cfcbdcb6f329c7e543
2016-04-13 11:47:21 -07:00
Mitchell Wills
3c5870912b Merge "Make WifiScanner state not static and use ConnectivityThread" into nyc-dev 2016-04-13 18:41:55 +00:00
Kaori Katou
ccf08d7c84 Dismiss keyguard when user button is tapped
When multi-user is disabled and user button is tapped
on the keyguard, the contact app is displayed behind the keyguard.
The keyguard should be dismissed when the contact app is launched.

Change-Id: I7daa0bec84b5172e78668cc71e51955f166ede0a
(cherry picked from commit 0a334053298c988a816a754c4235ed3b01cc9cfc)
2016-04-13 11:05:41 -07:00
Andrii Kulian
bae147f174 Merge "Make task fullscreen when locked" into nyc-dev 2016-04-13 18:00:36 +00:00
TreeHugger Robot
7fd1cbd49d Merge "Revert warning logic so it has a "don't show again" message." into nyc-dev 2016-04-13 17:56:34 +00:00
Chong Zhang
4c13596fd0 Merge "Add ContentObserver for animation scale changes" into nyc-dev 2016-04-13 17:54:44 +00:00
Dianne Hackborn
8db0fc15b8 More work on issue #26390151: Add new JobScheduler API...
...for monitoring content providers

We now have some delays before reporting URI changes, to allow
them to batch together.

Also clean up debug output, and fix some issues with how we
were managing the content observer state.

And while I am here, fix the device idle and app idle controllers
to no longer maintain their own list of jobs, but just directly
iterate over the JobStore.

Change-Id: If3fdff23c00c2f1b99901a9be096d851562d3439
2016-04-13 10:54:16 -07:00
Sudheer Shanka
b53a36b8cf Merge "Add an intent action ACTION_SHOW_APP_INFO." into nyc-dev 2016-04-13 17:47:07 +00:00
Dianne Hackborn
5fa590b2c2 Merge "(Test only) A little more debug output for voice interaction test" into nyc-dev 2016-04-13 17:45:36 +00:00
Dianne Hackborn
e3f617b23f Merge "Fix issue #28035090: Disallow abuse of JobScheduler" into nyc-dev 2016-04-13 17:44:52 +00:00
Dianne Hackborn
807de78c07 Fix issue #28035090: Disallow abuse of JobScheduler
We now keep track of how long each app has been running a job
for, in 30 minute batches.  If it is running jobs frequently,
we will bump down the priority its jobs run at to allow other
jobs to run before it.

Currently we count both pending and active as the job running,
which means that an app that has jobs waiting in the pending
queue will count against its abuse prevention.  This could
allow starvation -- if we bump down the priority of an app's
jobs and the system is so busy continually that they sit
in the pending queue a lot -- it could never recover.  But I
think that is okay...  if we are really in a state where we
are continually running as many jobs as possible, we probably
have other larger issues.

Change-Id: I838aa4b5840e91df49a1e17b53188d6e4a66a6d1
2016-04-13 10:42:51 -07:00
Chong Zhang
4661e816e7 Add ContentObserver for animation scale changes
bug: 27291666

Change-Id: Ic80af9d1cb0c58fb2decbe66591e29c584384a23
2016-04-13 10:41:24 -07:00
TreeHugger Robot
9c63f3c5b3 Merge "Fix widget not being masked when freshly added." into nyc-dev 2016-04-13 17:38:24 +00:00
Dan Sandler
3166593f4e Fix NPE when the vr manager isn't around at first.
There's a race condition when grabbing the VR service during
ImmersiveModeConfirmation's constructor since the window
manager allocates the ImmersiveModeConfirmation in its own
init(); vr may still be starting up at that time.

Change-Id: Ic0aa0fbf8fd087f01f4690c14e1c68f0670b0bc0
Fixes: 28159168
2016-04-13 13:32:11 -04:00
Siyamed Sinir
9dba546d9a Merge "Fix StaticLayout left/right indent" into nyc-dev 2016-04-13 17:29:22 +00:00
Doris Liu
a184abe4b0 Merge "Allow leading spaces in path string (to keep behavior consistent)" into nyc-dev 2016-04-13 17:26:54 +00:00
Steve McKay
92bf96dd57 Mark DocumentsUI as a "privileged" app.
This fixes the issues with CTS resulting from the change to intent filtering.
Bug: 28081616

Change-Id: I81f87ff56b5fbb0d526863da44a2fcef29a3aa2c
2016-04-13 10:25:43 -07:00
Philip Cuadra
a6dea121e8 Merge "Increase the SoundPoolThread queue size to 128 entries." into nyc-dev 2016-04-13 17:23:36 +00:00
Doris Liu
70eff906ad Merge "rm log spam" into nyc-dev 2016-04-13 17:22:57 +00:00
Doris Liu
351303531f Merge "Fix translationY not being set correctly for VD during animation" into nyc-dev 2016-04-13 17:22:19 +00:00
Alan Viverette
a63d2db099 Merge "Fall back to setting the level of the entire progress drawable" into nyc-dev 2016-04-13 17:19:05 +00:00
Jason Monk
2977ba2cd7 QS: Add content description to page indicator
Change-Id: I4e9bdfe803d681484eb4c8915c44e37be40d8aa2
Fixes: 27325720
2016-04-13 13:01:14 -04:00
Bernard Chau
186f29b6d8 Includes both direct boot aware and unaware apps in Apps default view
The view should be showing a combined list of "downloaded"
+ "visible in launcher" apps. However, if FBE and work callenge are
enabled, after a reboot the direct boot unaware apps are filtered.

Reason is that PackageUserState#isMatch assumes at least one of the flags
are specified and expects system to derive the aware/unaware flags
according to the user's lock state if neither of them is specified.

Bug: 28004355
Change-Id: Ia05edb0530023597fd219eb5e59cd71752efd279
2016-04-13 18:00:06 +01:00
Wale Ogunwale
3fb1c81394 Merge changes Ieefeb843,Ic2a94b09 into nyc-dev
* changes:
  Update surface insets on window elevation changes.
  Fixed bug with cropping out drop shadow for pinned stack.
2016-04-13 16:59:36 +00:00
David Brazdil
e502345d71 Merge "Remove UsageStats post-OTA package update filter" into nyc-dev 2016-04-13 16:43:15 +00:00
Felipe Leme
fcca68dfb1 Revert warning logic so it has a "don't show again" message.
BUG: 28140003

Change-Id: I93e7b1494a0f4c5ca080fbe9dd94dc2168092ffa
2016-04-13 09:36:24 -07:00
Rubin Xu
b2cc8e25c0 Fix widget not being masked when freshly added.
Bug: 26721345
Change-Id: I6bc7142c6f488b8666651330039abac27782bda9
2016-04-13 17:21:07 +01:00
Philip P. Moltmann
e74b657e5e Merge "Add a log if the printing activity died unexpectly." into nyc-dev 2016-04-13 16:20:34 +00:00
Rebecca Silberstein
bf705b4aae Merge "Add error logging for softap commands" into nyc-dev 2016-04-13 16:07:51 +00:00
Philip P. Moltmann
d0e1239e81 Add a log if the printing activity died unexpectly.
Bug: 27861927
Change-Id: I431ba996e113043c224039a62a76ae23e9c7494a
2016-04-13 08:57:49 -07:00
Gustav Sennton
c0bc993801 Ensure at least one default-available webview package is a non-fallback
Parts of the WebViewUpdateService code assume that there exists at
least one webview package which is available by default and is not a
fallback package. With this CL we enforce this assumption by crashing
when parsing the webview packages config file if it doesn't hold.

Bug: 28014401
Change-Id: Ib7de1f596e31bae65542a6883a9f3af54337bf1b
2016-04-13 16:49:31 +01:00
Henrik Engström
3277cf1ea4 Make ResolverActivity respect selector intent when making filters
When the ResolverActivity makes a filter after an intent is chosen,
either for remembering last used or an "always use" choice for the
user it doesn't consider the selector in the intent if present.

This means that when a resolver activity is launched for an intent
with a selector, the selector is used for resolving preferred
activities, and for populating the list, but when the same intent
is sent again it doesn't match the filter created by the previous
ResolverActivity.

This in turn means that the user will get another ResolverActivity
even if "Always Use" was chosen the last time.

Bug: 28129216

Change-Id: I29be7010e7c890caf9789673b3c3f821ba362761
2016-04-13 08:45:29 -07:00
Jason Monk
c2e8857a28 Merge "Remove color and appearance" into nyc-dev 2016-04-13 15:43:15 +00:00
David Brazdil
4ef1982af8 Remove UsageStats post-OTA package update filter
Filtering packages for boot-time post-OTA update with
UsageStatsManager idleness API is too aggressive and leaves out even
apps used heavily in the foreground. Remove for now.

Bug: 27902702
Bug: 28161327

Change-Id: I7912f9ad5d8c6206c19068a76383e370d24818db
2016-04-13 16:41:39 +01:00
Gustav Sennton
a9159040c8 Update persistent WebView packages setting only when user changes it.
To ensure that we don't permanently change WebView implementation if the
current package is temporarily uninstalled (e.g. when being replaced) we
don't update our persistent setting unless the user explicitly changes
WebView implementation (and on boot!).

Unfortunately this will means that the Dev Setting for changing WebView
implementation will work in a slightly less intuitive way. The
persistent setting is now persistent across uninstalls and installs.
I.e. the Dev Setting shows the current WebView implementation though
that could differ to the value chosen by the user since the package
chosen by the user could be uninstalled or disabled. In this case
installing/enabling that package would again make the Dev Setting point
to it.
However, as a compromise, we do change the setting at boot so that if
the currently chosen package is not valid we will change the setting so
that it points to the package we currently use instead.

Also ensure we only use WebView packages that are available-by-default
if no WebView packages are enabled.

Add unit test to ensure that if a user-chosen provider is uninstalled we
switch back to using that provider when it is installed again.
Add unit test to ensure we switch user-chosen provider at boot if the
chosen one is uninstalled.

Bug: 27673076
Change-Id: Icd27ae302798ebf695b9ef4bd4d5fd47fe4be02c
2016-04-13 16:30:03 +01:00
Alan Viverette
2089575686 Merge "Clean up Drawable annotations" into nyc-dev 2016-04-13 15:22:04 +00:00
Jason Monk
52c66d74d1 Remove color and appearance
Also fix crash.

Change-Id: I16abec61d63e2d503b07047c08664c2e96689c50
Fixes: 28163234
2016-04-13 11:01:19 -04:00
Gustav Sennton
5352dda479 Merge "Don't run the WebView preparation if using the same non-replaced package" into nyc-dev 2016-04-13 14:54:54 +00:00
Nick Kralevich
9e5922cf73 Merge "change directory name" into nyc-dev 2016-04-13 14:51:15 +00:00
Nick Kralevich
e91dba06f9 change directory name
external/sepolicy was renamed system/sepolicy

Change-Id: Id27cd8c22d966958e481c9ed0171f637b3ffe2c0
2016-04-13 07:49:28 -07:00
Alan Viverette
b0e22ecf7d Add scroll indicators to resolver list
Also reformats resolver list XML.

Bug: 27431395
Change-Id: I582448a01747b29fc6ac61dd80e27e6679507a81
2016-04-13 10:23:35 -04:00
Alan Viverette
b8cbb806fc Clean up Drawable annotations
No functional changes.

Bug: 23621364
Change-Id: Ia5ac34eb8464ee40afd7052f34b42bb6153260bf
2016-04-13 10:14:06 -04:00
Michael Wright
52546e4635 Merge "Crash early when requesting a keyboard shortcut helper..." into nyc-dev 2016-04-13 13:58:16 +00:00
Rubin Xu
eadbe1db75 Merge "Remove temporary workaround of restoring periodic syncs." into nyc-dev 2016-04-13 13:41:22 +00:00