Commit Graph

316454 Commits

Author SHA1 Message Date
TreeHugger Robot
db0836779e Merge "Fix for wifi detail icon disappearing" into oc-dev 2017-05-31 16:28:57 +00:00
TreeHugger Robot
2b81530bd2 Merge "Don't crash when presented with non-roundRect clipping outline." into oc-dev 2017-05-31 16:04:29 +00:00
TreeHugger Robot
388ceaa37a Merge "Fix header not set on initialization" into oc-dev 2017-05-31 15:42:58 +00:00
Rebecca Silberstein
c0643da09e Merge "WifiManager: setWifiApEnabled always returns false" into oc-dev 2017-05-31 15:42:33 +00:00
TreeHugger Robot
0b45799abc Merge "Hide Wi-Fi activity indicator when Wi-Fi icon is hidden" into oc-dev 2017-05-31 15:42:04 +00:00
TreeHugger Robot
69bf3ea86d Merge "Fix Error Prone ArrayEquals/ArrayHashCode bugs" into oc-dev 2017-05-31 15:37:48 +00:00
Jeff Sharkey
06951ac74d Merge "Consistent "low storage" behavior." into oc-dev 2017-05-31 14:18:32 +00:00
TreeHugger Robot
163ec051d1 Merge "Fix infinite loop problem in AnimationHandler" into oc-dev 2017-05-31 13:53:15 +00:00
Yoshinori Hirano
50eac3573a Hide Wi-Fi activity indicator when Wi-Fi icon is hidden
Wi-Fi icon in the status bar can be blocked by System UI Tuner.
So the activity indicator should be hidden.

Fixes: 62211154
Test: manual - block Wi-Fi icon

Author: Akira Oshimi <akira.oshimi@sony.com>
Change-Id: Iba698d621d60f6d6c9f6d8205f91df49806f3f54
2017-05-31 09:39:29 -04:00
TreeHugger Robot
614636e926 Merge "Change the thread for handling shutdown of PowerManagerService." into oc-dev 2017-05-31 12:06:24 +00:00
Jeff Sharkey
ddff807b76 Consistent "low storage" behavior.
When answering the question "how much space is free", use the same
logic for Settings UI and StorageManager.getAllocatableBytes().  That
is, the reported free space is usable bytes plus any cached data the
system is willing to delete automatically.

This does *not* include any reserved cache space, since we don't want
abusive apps to penalize other well-behaved apps that are storing
their data in cache locations.  Callers freeing cached data need to
now explicitly request defiance of the reserved cache space.  (Most
callers are already doing this by using FLAG_ALLOCATE_AGGRESSIVE.)

Rewrite the core logic of DeviceStorageMonitorService to understand
this new "reserved" cache space, and to be easier to understand.  It
also now handles cached data on adopted storage volumes, which had
been ignored until now.  Also fix bug where we had skipped "low"
broadcasts when the device skipped directly from/to "full" state.

Bug: 38008706
Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: Icbdcf3b52775f7ada1ceaeff2f96094c8d8052f9
2017-05-30 22:17:23 -06:00
TreeHugger Robot
c6700cac67 Merge "Fix unnecessary relaunches when unlocking with fingerprint sensor." into oc-dev 2017-05-31 03:54:58 +00:00
Svet Ganov
f36d53cbfc Prune unused static libs and instant apps if space needed
We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.

Test: manual

bug:62045000

Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9
2017-05-31 02:30:41 +00:00
TreeHugger Robot
ddd5458092 Merge "Do not set the divider pos during adjust ime and minimized interaction" into oc-dev 2017-05-31 02:22:33 +00:00
Wale Ogunwale
bfa81adfbe Fix unnecessary relaunches when unlocking with fingerprint sensor.
When the device is unlocked using the fingerprint sensor in an
orientation opposite to the lockscreen orientation, the app that
will be visible is first relaunched in the current lockscreen
orientation and then later relaunched in the correct orientation.
If the keygaurd is going away then:
- Don't let keyguard affect device orientation. We want to use the
orientation of the app that will be visible.
- Allow the rotation sensor to be enabled even though draw isn't
complete so window manager can get the updated or last rotation
reading.
- Don't clear the previous proposed sensor reading to allow
window manager to use the information to update the orientation as
needed vs. falling back to the previous orientation.

Change-Id: I8369723d6a77f2c602f1ef080371fa7cd9ee094e
Fixes: 38494778
Test: Launch an app that doesn't fix orientation like clock, hold
the device in landscape, press the power button, unlock the device
using the fingerprint sensor, and verify the the app isn't
relaunched.
2017-05-30 18:35:36 -07:00
Joe Onorato
6fb15ea9d4 Merge "Turn off logspam" into oc-dev 2017-05-31 01:18:04 +00:00
TreeHugger Robot
a9873bc8f6 Merge changes I4b58610f,Ib758756a into oc-dev
* changes:
  Turn off the check in the test because the assertion is off in the implementation.
  Fix typos that cause infinite recursion and CTS test failure.
2017-05-31 01:07:27 +00:00
TreeHugger Robot
13eef357d6 Merge "Compare against correct user id to determine static lib clients" into oc-dev 2017-05-31 00:52:43 +00:00
TreeHugger Robot
1573489991 Merge "Make NFC AIDL callbacks oneway" into oc-dev 2017-05-31 00:26:37 +00:00
Dianne Hackborn
952d68fa85 Merge "Fix issue #62196301: Pre-O background restrictions allow starts..." into oc-dev 2017-05-31 00:13:02 +00:00
TreeHugger Robot
9c1b222fc1 Merge "Fix issue with aspect ratio not applying correctly when PIP is expanded" into oc-dev 2017-05-31 00:01:00 +00:00
TreeHugger Robot
633b32be55 Merge "Fix NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev 2017-05-30 23:58:11 +00:00
Lucas Dupin
6ea2787920 Fix header not set on initialization
Header not being set was causing min priority
groups to skip expansion animation.

Bug: 38436027
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationChildrenContainerTest.java
Change-Id: I34307a7e5ecfe7e30d5bf97880b17fedb0d84378
2017-05-30 16:46:23 -07:00
TreeHugger Robot
17e512528f Merge "Fix QS header touch targets" into oc-dev 2017-05-30 23:36:52 +00:00
TreeHugger Robot
0c78e8238d Merge "Show date + alarm icon when on lock screen" into oc-dev 2017-05-30 23:29:37 +00:00
Andrii Kulian
ea6c7db229 Merge "Temporarily enable screen wakelock logging in WM" into oc-dev 2017-05-30 23:19:51 +00:00
TreeHugger Robot
28355df745 Merge "Random hacks to make QS DND work" into oc-dev 2017-05-30 23:12:31 +00:00
Joe Onorato
82ba91ddb4 Turn off logspam
For more information, see https://source.android.com/source/code-style#log-sparingly

Bug: 37252687
Test: development/tools/logblame/app_switch_test
Test: development/tools/logblame/power_toggle_test
Test: development/tools/logblame/medium_idle_test
Change-Id: Ie2f6ef33df7b6c1ea976a8180945651ac9482976
2017-05-30 16:01:02 -07:00
Svet Ganov
5ded03bd46 Compare against correct user id to determine static lib clients
Test: manual, static shared lib CTS tests pass

bug:36632264

Change-Id: I58b2787ff0b95c89f9e9bb9a005b39e3505aefcb
2017-05-30 22:50:25 +00:00
TreeHugger Robot
7b64dbd529 Merge "Set correct task remove mode when reparenting" into oc-dev 2017-05-30 22:05:08 +00:00
TreeHugger Robot
13af917690 Merge "Fix ripple on QS Footer" into oc-dev 2017-05-30 22:01:38 +00:00
TreeHugger Robot
e3f2f29cde Merge "Fix crash from concurrent modification" into oc-dev 2017-05-30 21:50:08 +00:00
TreeHugger Robot
c56b1d3c98 Merge changes I5762a98d,I39f4e015 into oc-dev
* changes:
  ViewRootImpl: More careful draw accounting.
  SurfaceView: Avoid over-reporting DRAW_FINISHED.
2017-05-30 21:33:31 +00:00
TreeHugger Robot
d865c624bd Merge "Update Paint#mFontVariationSettings in set() and reset()" into oc-dev 2017-05-30 21:15:20 +00:00
Andrii Kulian
efe1b94acd Temporarily enable screen wakelock logging in WM
Enable DEBUG_KEEP_SCREEN_ON flag to get additional wakelock logs
to investigate b/38416971.

Bug: 38416971
Test: No change in logic
Change-Id: I83c45a26befb6a767b5d9fc30b1cde07a2432ebe
2017-05-30 14:09:21 -07:00
TreeHugger Robot
bf7f23cc9c Merge "Prevent unnecesary Surface preservation." into oc-dev 2017-05-30 20:46:10 +00:00
Adam Lesinski
8255ced3f5 Merge "AAPT2: Fix <add-resource> tag for overlays" into oc-dev 2017-05-30 20:42:07 +00:00
Seigo Nonaka
ffae6c7f71 Fix NPE and wrong behavior of Typeface.isSupportedAxes
The Typeface kept by Paint object can be null if nobody calls
setTypeface. The null typeface is equivalent to the Typeface.DEFAULT.
To check whether the passed axis is usable for Typeface.DEFAULT, we
need to pass Typeface.DEFAULT to isSupportedAxes if no typeface was set
on the Paint.

At the same time this CL fixes an issue in isSupportedAxes.
If the requested axis is listed in the first element of axes list,
isSupportedAxes returned false due to wrong handling of binarySearch
result.

Bug: 62146672
Bug: 62147012
Test: am instrument -w -e class android.graphics.cts.PaintTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I7c154adfe8a19d6ed24ad645df7c10cee7880461
2017-05-30 13:40:49 -07:00
Jason Monk
2d77c0f064 Random hacks to make QS DND work
- Don't clear out as much state on attach
 - Make sure condition updates trigger a reflecting radio check
 - Assume that null conditions are forever

Test: manual
Fixes: 37944320
Fixes: 36031650

Change-Id: Ie926d16226e7b5431551a33515ac2b847e1d7a93
2017-05-30 16:40:07 -04:00
Dianne Hackborn
1399d3abf5 Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev 2017-05-30 20:21:17 +00:00
Amit Pawar
4d473c65cb Merge "Fix #62169466 bug report sharing options empty" into oc-dev 2017-05-30 20:20:27 +00:00
Dianne Hackborn
abe2a94853 Fix issue #62196301: Pre-O background restrictions allow starts...
...from background apps

The check for whether a calling app was in the foreground was
way too lose, treating anything better than a receive as foreground.
Now we use the same foreground state check as elsewhere.

Test: manual

Change-Id: I6bb621f207204d14abfadc0d425297e7d5efe0f6
2017-05-30 13:18:20 -07:00
Amith Yamasani
1d6e1759d2 Fix #62169466 bug report sharing options empty
Was caused by a new requirement to not offer to show
non-exported intent handlers as options. For first
time warning dialog, don't show a chooser activity.

Change-Id: Ibada9a7a14b77ec0670bf35ba0944f369d42bf69
Fixes: 62169466
Test: manual
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner
2017-05-30 20:04:32 +00:00
Bryce Lee
4dfc067b2c Merge "Do not always skip preparing window to display when already visible." into oc-dev 2017-05-30 19:50:56 +00:00
Bryce Lee
cdb7e6d507 Merge "Check for source activity's task presence before referencing." into oc-dev 2017-05-30 19:50:18 +00:00
Jason Monk
7eba107dcd Fix ripple on QS Footer
Needs a background to draw on.

Test: manual
Change-Id: I7239520afc0aab65e9ff83a86dcf28b01a3fa25d
Fixes: 62194142
2017-05-30 15:37:11 -04:00
Jason Monk
7b3d4e4db1 Fix QS header touch targets
- Fix the sizing by removing padding and repositioning
 - Have container absorb clicks so misses don't collapse
   the panel.

Test: manual
Change-Id: I2f7f79ca23105561c4ce8b7ff44f59ae99131f85
Fixes: 37049839
Fixes: 38359316
2017-05-30 15:32:42 -04:00
Jason Monk
9dac11277a Show date + alarm icon when on lock screen
Test: manual
Change-Id: I3b1b9749c0acd029b9f59bf7c21a253ba2e30229
Fixes: 38123822
2017-05-30 15:21:29 -04:00
Robert Carr
486bbb73c8 Prevent unnecesary Surface preservation.
We don't save the Surface's pixel format, and so any time
there is a change in the pixel format as described in the params
we trigger a surface preservation. However if an app is switching
from forced translucent (due to HW accel) to explicitly translucent
even though the layout params have changed we don't actually need
to trigger a format change, just toggle the OPAQUE flag.

Bug: 38324871
Test: Launch Chrome Custom Tabs with Lateral Transition Animation from News and Weather App. No black bars. go/wm-smoke
Change-Id: I2151b4470fd7c395fba7aad7d6ffca4c51e55476
2017-05-30 11:47:14 -07:00
TreeHugger Robot
4bd47fce86 Merge changes from topic 'hide_passpoint_r2' into oc-dev
* changes:
  hotspot2: hide Release 2 APIs
  Voice Messaging Intent API.
2017-05-30 18:47:12 +00:00