Commit Graph

9593 Commits

Author SHA1 Message Date
TreeHugger Robot
758cfd63db Merge "Add utility methods to AmbientDisplayConfig" into pi-dev 2018-05-21 23:37:24 +00:00
Matthew Fritze
3461bb46d0 Add utility methods to AmbientDisplayConfig
The added utility methods are to enable increased
granularity in determinining the availability of gesture
settings dependant on Always on Display.

Bug: 79779562
Test: robotests
Change-Id: Ib54a867ca554d44ee4190706805fa8545aec9fa0
2018-05-21 13:12:36 -07:00
TreeHugger Robot
404273a627 Merge "clone the visibility objects for the handler thread" into pi-dev 2018-05-18 23:59:37 +00:00
TreeHugger Robot
177ee3d7a1 Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev 2018-05-18 22:12:30 +00:00
Adrian Roos
f7b7426d81 Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout
ActionBarOverlayLayout used to drop WindowInsets, extract the content insets
as a rect, and then dispatch a modified rect to the content view; this because
there was no way to retarget the WindowInsets to the content view, and the
WindowInsets were not truly immutable. That means however, that other kinds of
insets than the content insets do not get dispatched, such as the display cutout.

To fix this, we add APIs to inset WindowInsets, make them immutable. Note that
a similar change is needed for the support lib.

Bug: 79733300
Test: atest ActionBarOverlayLayoutTest
Change-Id: I6a69d8462163ca5e66fdb53f83def6bc4063f8aa
2018-05-18 20:58:38 +00:00
Chris Wren
2e89e8d893 clone the visibility objects for the handler thread
The main thread was recycling the objects before the hander could
pack up the binder call.

Change-Id: I4289bdcc5b940a0a8209fdd5d3df47972de0fa4b
Fixes: 72953296
Test: atest com.android.notification.functional.NotificationInteractionTests#testNotificationShadeMetrics
2018-05-18 15:32:21 -04:00
Tony Huang
4552368cdf Fix odd avatar when message sender is a number
When sender symbol is number or special-char, use person avatar icon
with sendor name color tint.

Fixes: 73551742
Test: manual use different sender name and send message notification
Change-Id: I5e3080efc834bf09c1dae93ef8af06cf3df4d22d
2018-05-15 15:26:06 +00:00
TreeHugger Robot
98deba8412 Merge "Fixing user tap on suspended widget" into pi-dev 2018-05-14 23:32:08 +00:00
Makoto Onuki
869c6f559a Merge "Rework battery saver synchronization logic" into pi-dev 2018-05-14 15:42:14 +00:00
Suprabh Shukla
1ab90a2ed5 Fixing user tap on suspended widget
Widgets get masked with separate remove views when suspended. Need to
update them with the correct pending intent. Moved around the logic
creating the suspended alert activity to make it reusable.

Test: Manually, "pm suspend <app-with-widget>", followed by tap on
widget
Existing tests pass:
atest GtsSuspendAppsTestCases
atest com.android.server.am.ActivityStartInterceptorTest

Bug: 79474038
Change-Id: Ic75ee762434bf92c54bda307e9cb6018f94a914c
2018-05-11 14:24:54 -07:00
Matthew Ng
303071233b Fixes splitscreen when executed from fullscreen app
Fixes splitscreen from the right for launching splitscreen from
fullscreen app including pixel launcher and 3rd party launchers. With
3rd party launchers, the experience is the same as Android O. With pixel
launcher since launcher and recents are merged, it will split to
minimized mode. When pixel launcher is used, the recents stack is
ignored.

Fixes: 73250406
Fixes: 78247419
Test: use split screen; invoke command with supportapp.apk in b/78247419
adb shell am broadcast -a launcher-acc --ei cmd 1
Change-Id: I70b0551c517465b3a059ff7d0641c27f71e8114e
2018-05-11 20:28:51 +00:00
Makoto Onuki
bd7a625389 Rework battery saver synchronization logic
- Stop using individual lock instances and use use the power manager lock.
- Make sure not to access external components with the lock held,
*except for settings provider*, which is already touched by the power manager
and the battery service

(I'm planning to re-organize things for Q: b/79580230)

Fixes: 79486713

Test: atest /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/Battery*Test.java /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/*Test.java
Test: Manual test with ./development/scripts/battery_simulator.py with toggling
battery saver on and off and then watch
adb logcat -b all | grep -P '(battery_saving_stats|battery_saver_mode)'

Change-Id: I8ecdfefe978de348ee979d765c82e3d8f0280082
2018-05-11 13:24:50 -07:00
Kenny Guy
14d035c969 Fix colorized messaging layout and smart replies.
Modify messaging style and smart replies view to
cope with colorized backgrounds.

Bug: 78928664
Bug: 77927019
Test: atest SystemUITests (with patch from ag/3992401)
Test: visual - see bug for screenshots

Change-Id: Iee66931574fb48d0340986bf520532f798ef59fc
2018-05-10 10:25:14 +01:00
Calin Juravle
9845141701 Merge "Make system server profiling an explicit runtime intent" into pi-dev 2018-05-10 06:03:08 +00:00
Dianne Hackborn
7105e2ca9a Merge "Further flesh out app ops foreground state." into pi-dev 2018-05-10 05:49:08 +00:00
Jaewan Kim
183a63474f Merge "MediaSessionService: Provide caller information for media key events" into pi-dev 2018-05-10 04:48:35 +00:00
Dianne Hackborn
65a4f251c7 Further flesh out app ops foreground state.
Fix some bugs, add the ability to monitor state changes, improve
dumpsys output to help debugging, add a new check API that allows
the caller to get the real state.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I3d41be9968c1d95a1456f4052da958ea64aa068d
2018-05-09 18:02:35 -07:00
Calin Juravle
5627db8996 Make system server profiling an explicit runtime intent
Pass an explicit flag to the runtime when we need to profile the system
server. This ensures that we only start the ProfileSaver and allocate the
code cache when needed.

Test: manual, on a device with system server profiling enabled
Bug: 74081010

(cherry picked from commit 8eb891be6f)

Merged-In: I756682a9644796afb53f0c010d2bd2764ea5a828
Change-Id: I756682a9644796afb53f0c010d2bd2764ea5a828
2018-05-09 14:37:56 -07:00
Matthew Ng
6317df6e1e Update the snap targets in minimized mode to reflect the correct targets
In minimized mode there is only 1 split snap target compared to regular
portrait that has 30%, 50%, 70% targets. Update the accessibility options
for minimized mode to reflect the correct targets. Also removed the
middle target if there is only 1 split snap target.

Test: using talkback, see custom options on divider handle in minimized
mode
Fixes: 78304300

Change-Id: I8421499616cf0fe503c1f6a081a2151098640a9c
2018-05-09 17:48:33 +00:00
Michael Kwan
9327d2d757 Merge "Add watch specific tweaks to global actions layouts." into pi-dev 2018-05-09 01:53:50 +00:00
Jaewan Kim
77748b623c MediaSessionService: Provide caller information for media key events
Current limitation is that we cannot distinguish between key events
from Window#injectInputEvent() and key presses from physical devices.

Bug: 79185725
Test: Manually verified with the test app, and Cts
Change-Id: I1c3da4a963238512eec8b57fbc2d825c7436b140
2018-05-08 15:53:00 +09:00
Yangster-mac
4c7255fdf2 Use the non-chained interface for mobile/wifi power atoms.
Test: statsd test

BUG: b/78075513

Change-Id: Id5b00fdc9738be518aa1b6b4551d959a90443f93
2018-05-08 00:50:38 +00:00
Selim Cinek
e12f7fffcf Merge "Fixed the historic messaging experience" into pi-dev 2018-05-07 20:48:38 +00:00
Selim Cinek
4e9bdcdcac Merge "Fixed the padding when the sender name was empty" into pi-dev 2018-05-07 19:51:59 +00:00
Selim Cinek
0f6a0d0c17 Fixed the padding when the sender name was empty
Certain apps use empty sender names, which looks very
broken. Let me do this one last workaround...

Change-Id: I958319d1e4f9387e5e05afb304c05bef55c3e2fb
Fixes: 73139872
Test: receive a message with empty sender, observe visually
2018-05-04 16:25:07 -07:00
Calin Juravle
cd319fc094 Merge "Properly prepare system server profiles" into pi-dev 2018-05-04 22:46:15 +00:00
android-build-team Robot
12bae55fbc Merge "Fixed an animation issue with Smart Replies" into pi-dev 2018-05-04 21:17:18 +00:00
Calin Juravle
3f3a08ad0d Properly prepare system server profiles
Update the logic for system server profiles to work without disabling
SELinux policies.

Test: check that system_server profile is created without disabling
SElinux

Bug: 74081010
Change-Id: I8aa1e57da0f8059bcfb149fe7366d8278b4bf516
2018-05-04 13:45:20 -07:00
Selim Cinek
73f1be9388 Fixed an animation issue with Smart Replies
Updating a remoteInputHistory message to non-history
was generating a weird animation because we would
not reuse the view if the remoteInputHistory state
changed.

Bug: 77957392
Test: visual, observe normal animations
Change-Id: Iac869159411cc57c90476ef684a05e8547c14aa4
2018-05-04 12:18:32 -07:00
Selim Cinek
f45ca9b6c1 Fixed the historic messaging experience
The historic message groups are now also gone,
not just the messages

Change-Id: Ib7a454809425c18f5c2fd5905b3dae9ec5ec846f
Fixes: 	72556979
Test: visually, add historic messages, observe group is gone too
2018-05-04 11:37:24 -07:00
Selim Cinek
497fa8b8ab Merge "Changed the way the ellipsizing of text is measured" into pi-dev 2018-05-04 00:54:13 +00:00
Michael Kwan
59b735803d Add watch specific tweaks to global actions layouts.
Also add null check to single action global actions.

Bug: 78276813
Change-Id: I02ebd642b5df00084b7ac5e6425defb6119c3955
2018-05-03 17:45:01 -07:00
Selim Cinek
4fefed2b5e Changed the way the ellipsizing of text is measured
This also fixed the paddings for the bigtext layout
by remeasuring it after the initial measure.

Test: runtest systemui
Change-Id: I4b974645606691e6faf2b99b8e52c791e69ee6ea
Fixes: 79111092
2018-05-03 16:13:11 -07:00
android-build-team Robot
8e4b8ea38a Merge "Fixes a visual issue with the Messaging Layout" into pi-dev 2018-05-03 22:20:04 +00:00
Selim Cinek
5572657366 Fixes a visual issue with the Messaging Layout
A messaging group would still look visible if all of its children
were hidden, which is incorrect. We instead regard it as measured too
small.

Test: add message notification with smart reply, click on smart reply
Change-Id: If5174f95038bf16022d935fd05f337969984f0c2
Fixes: 78214933
2018-05-03 14:14:34 -07:00
android-build-team Robot
f4e0438a46 Merge "In place split install native support" into pi-dev 2018-05-03 16:38:54 +00:00
android-build-team Robot
0d58b9bb64 Merge "BackgroundFallback: Cover all cases where the fallback is needed" into pi-dev 2018-05-03 13:55:38 +00:00
Jeff Sharkey
f7d3e028ae Merge "Return to modifying raw /mnt/media_rw paths." into pi-dev 2018-05-02 21:14:17 +00:00
android-build-team Robot
e696cf636d Merge changes from topic "ifaceStatsDetail" into pi-dev
* changes:
  Remove the unused file parsing function
  Use eBPF map data for per iface stats
2018-05-02 19:17:27 +00:00
Adrian Roos
786ea783ea BackgroundFallback: Cover all cases where the fallback is needed
Fixes an issue where uncovered regions were not
covered if they are to the right or bottom of the
content view.

Fixes: 78661186
Test: Install test app from bug, enable cuotut, open test app, go to landscape, verify white fallback background is drawn in both landscape and seascape
Test: atest BackgroundFallbackTest
Change-Id: I442f03395a71550a534d64233762aa84002319dd
2018-05-02 12:58:54 +00:00
Chenbo Feng
bbabc51b5b Remove the unused file parsing function
With the new xt_bpf support for iface stats. We no longer need to parse
the per interface stats from /proc/net/dev. And since the old xt_qtaguid
code path also not depend on it, we can completly remove that helper
function since no caller is depending on it now.

Bug: 72111305
Test: runtest frameworks-net -c com.android.internal.net.NetworkStatsFactoryTest
Change-Id: Icb7eaeef0eeb9fdffd32a90316c76ee05bafffbe
Merged-In: Icb7eaeef0eeb9fdffd32a90316c76ee05bafffbe
(cherry picked from aosp commit b815c978b8)
2018-05-01 19:48:03 -07:00
Chenbo Feng
804be4a3bc Use eBPF map data for per iface stats
After adding the xt_bpf module and ifaceStatsMap, eBPF tool can now
support reading per interface data. So networkStatsFactory should move
away from parsing proc/net/dev and use the eBPF map stats instead.

Bug: 72111305
Test: atest com.android.server.net.NetworkStatsServiceTest
Change-Id: Ibcc6150d00835b3bd33af22a72e4a86e172581cf
Merged-In: Ibcc6150d00835b3bd33af22a72e4a86e172581cf
(cherry picked from aosp commit dcc56783f5)
2018-05-01 19:46:09 -07:00
Selim Cinek
1e543887f5 Merge "Fixed an issue where the messaging layout could appear empty" into pi-dev 2018-05-01 22:42:53 +00:00
Selim Cinek
7a1e03a5fb Merge "Fixed the messaging clipping for RTL languages" into pi-dev 2018-05-01 22:38:09 +00:00
android-build-team Robot
b2e6d9eee0 Merge "Avoid redundant getAllocatableBytes() calls." into pi-dev 2018-05-01 22:04:05 +00:00
Jeff Sharkey
41afa65947 Avoid redundant getAllocatableBytes() calls.
Shuffle around the ordering of resolveInstallVolume() so that we
determine the fitsOnInternal value while doing a drive-by of all
possible target volumes.  This way we only call getAllocatableBytes()
internal storage once.

Bug: 70985520
Test: atest android.content.pm.PackageHelperTests
Change-Id: I8273c239af4a13b1db17f320e15ee0ef2dc89186
2018-05-01 13:09:30 -06:00
Selim Cinek
1110fd776d Fixed the messaging clipping for RTL languages
Because in landscape the width is bigger than the height,
our clipping logic was wrong and clipped off most of the
text.

Test: add messaging style notification, switch to RTL, landscape, observe normal clipping
Change-Id: I8c74a8405280047f8b2a08ecdf3f37b0fbeeec62
Fixes: 73895612
Fixes: 78606052
2018-05-01 10:57:39 -07:00
Selim Cinek
46f589178f Fixed an issue where the messaging layout could appear empty
Change-Id: I0fe6e7a23068f10e6c867424027e7a86c9210186
Fixes: 73952748
Test: send long message, observe normal layout, not cut off
2018-05-01 09:11:26 -07:00
Jeff Sharkey
b00d5ea59a Return to modifying raw /mnt/media_rw paths.
We thought we could push everyone through sdcardfs, but secondary
devices mounted in a stable location don't give full write access to
apps holding WRITE_EXTERNAL_STORAGE, so system internals still need
to reach behind sdcardfs.

To keep sdcardfs in the loop about changes that we make behind its
back, we issue access(2) calls which should be enough for it to
invalidate any cached details.

Bug: 74132243
Test: manual
Change-Id: I727cd179a5a825b16ec4df6e2f41a079758d41c5
2018-05-01 10:03:18 -06:00
android-build-team Robot
9f88bbc064 Merge "Secondary split screen app will be next to the navigation bar (1/2)" into pi-dev 2018-05-01 00:40:27 +00:00