Commit Graph

9876 Commits

Author SHA1 Message Date
Chris Wren
3d9660f771 Merge "clone the visibility objects for the handler thread" into pi-dev am: 404273a627
am: cd5fe1d4c4

Change-Id: Iaebcacbe8164e7495f3f64fdf72b263658d89e3b
2018-05-18 17:26:52 -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
Adrian Roos
ab2f888137 Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev am: 177ee3d7a1
am: 6098f6db68

Change-Id: Idf260e2dd6e0bbfdcaefc1d3f85ac82dadf31050
2018-05-18 15:27:56 -07: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
Olivier Gaillard
9429bf57d1 Track exception count using BinderCallStats.
Test: manual

Change-Id: I0ba876ff89749c67c7f422690ec45a18ffa1303e
2018-05-16 22:37:37 +01:00
Olivier Gaillard
5484e08ac6 Merge "Tracks binder call latencies in a similar way to cpu time." 2018-05-16 20:03:40 +00:00
Sanry Huang
313120b2e3 Merge "Fix odd avatar when message sender is a number" into pi-dev am: cd5ca7e618
am: f975ab3bd6

Change-Id: I8dbc1d80b5b3c02167b5c306fa428b3c45edd732
2018-05-15 18:07:00 -07:00
Olivier Gaillard
121988e6f1 Tracks binder call latencies in a similar way to cpu time.
Test: manual

Change-Id: Ibb752c653b1263f7181721f30e2fe3551bcfa525
2018-05-16 01:37:42 +01: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
Suprabh Shukla
e6092dff25 Merge "Fixing user tap on suspended widget" into pi-dev am: 98deba8412
am: fa03e5043f

Change-Id: Idd89e6255c02016b4dec92bcf05740406109f1c1
2018-05-14 16:56:13 -07:00
TreeHugger Robot
98deba8412 Merge "Fixing user tap on suspended widget" into pi-dev 2018-05-14 23:32:08 +00:00
Makoto Onuki
507ac48862 Merge "Rework battery saver synchronization logic" into pi-dev am: 869c6f559a
am: 934e659eac

Change-Id: I40d98b52c1234149cebe013a6d722c93f188f8df
2018-05-14 08:59:45 -07:00
Makoto Onuki
869c6f559a Merge "Rework battery saver synchronization logic" into pi-dev 2018-05-14 15:42:14 +00:00
Pavel Grafov
06f28034fb Merge "Provide convenience to check max password length." 2018-05-14 12:33:33 +00:00
Matthew Ng
63c10599a1 Merge "Fixes splitscreen when executed from fullscreen app" into pi-dev am: 765801d5fb
am: 88f945d557

Change-Id: I872d59b62f33f5c14dcba2164e5b9a4f17a2c2f6
2018-05-11 18:11:44 -07: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
Ondrej Novak
8e416767f3 Register fallback even if background already exists
Fallback would not be registered/drawn if background was explicitly set before calling
setContentView and the area that was supposed to be covered by fallback ended up black.
mBackgroundDrawable does not control fallback, so setting fallback should not be dependent on
it's existence.

Change-Id: I7da85e8c61dababa3a7ce930238ea0f283d19b32
Fixes: 68822553
Test: atest PhoneWindowTest
2018-05-11 18:38:11 +00:00
Kenny Guy
421338f853 Merge "Fix colorized messaging layout and smart replies." into pi-dev am: a1aafd7718
am: dd2ea24a43

Change-Id: Iefeec29c87fd5b2821c652c0eeef561c94a4bd38
2018-05-10 04:57:52 -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
Dianne Hackborn
19e99b432b Merge "Further flesh out app ops foreground state." into pi-dev am: 7105e2ca9a
am: 74dc457242

Change-Id: I54ec9070d60b234f22c6940f78ab001ffdd15b28
2018-05-09 23:11:48 -07: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
74dc457242 Merge "Further flesh out app ops foreground state." into pi-dev
am: 7105e2ca9a

Change-Id: I3a8056b6685ad7687ff5d54748c242eb9c906343
2018-05-09 22:59:34 -07: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
8c65f9b68a Merge "MediaSessionService: Provide caller information for media key events" into pi-dev am: 183a63474f
am: 399a7e999c

Change-Id: I7282bf70bfb59ed9d9d81f5780bd49090bb252c6
2018-05-09 22:13:52 -07:00
Jaewan Kim
399a7e999c Merge "MediaSessionService: Provide caller information for media key events" into pi-dev
am: 183a63474f

Change-Id: I6ad5053137c2ae7d123940c7f5239060d70ce68f
2018-05-09 22:02:41 -07: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
8172cb6abc Merge "Make system server profiling an explicit runtime intent" am: 232011c7d9 am: a50afa5ebf
am: 9821335e98

Change-Id: Id51584aca3c16e1d8e90fbac16bd851b4e4f7879
2018-05-09 16:44:05 -07:00
Calin Juravle
9821335e98 Merge "Make system server profiling an explicit runtime intent" am: 232011c7d9
am: a50afa5ebf

Change-Id: I163a9815f5001bbd5963dd0575b9fd2125169b38
2018-05-09 16:34:54 -07:00
Calin Juravle
a50afa5ebf Merge "Make system server profiling an explicit runtime intent"
am: 232011c7d9

Change-Id: I07e6b4f0e75ff96bda3d5ce5acf6b9ea1f999325
2018-05-09 16:25:53 -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
68dc2af927 Update the snap targets in minimized mode to reflect the correct targets am: 6317df6e1e
am: 4ef6ed96bd

Change-Id: I946bbf8c833a807a24f72ba5c7206a9e343d43bf
2018-05-09 12:08:34 -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
android-build-team Robot
2ec88c4050 Merge "Allow to influence how loadSafeLabel works" 2018-05-09 15:28:33 +00:00
Michael Kwan
e643fd3101 Merge "Add watch specific tweaks to global actions layouts." into pi-dev am: 9327d2d757
am: b4d35d55fc

Change-Id: I7e340cb83524c566f72980352990c79b915e82b9
2018-05-08 19:14:33 -07:00
Michael Kwan
9327d2d757 Merge "Add watch specific tweaks to global actions layouts." into pi-dev 2018-05-09 01:53:50 +00:00
android-build-team Robot
86aea8a52d Merge "Use the non-chained interface for mobile/wifi power atoms." into pi-dev am: ac10be860f
am: 8e773ac198

Change-Id: Ia7292c552d9a1e27be2bb1fdfbaf5abb782538a7
2018-05-08 12:46:15 -07:00
Philip P. Moltmann
a6f5c70b91 Allow to influence how loadSafeLabel works
Also remove all references to old loadSafeLabel method to prevent
proliferation of old method via copy+paste.

The implementation assumes that there are three cases:
- Short labels that don't have anything wrong with them
- Labels that are fine, but are a little too long
- Intentionally bad label that try to break stuff and slow things down.

In the first two cases no characters are marked for removal, in the
third case we have an implementation that does not use a lot of memory
and has linear performance when there are a lot of bad characters.

Test: gts-tradefed run gts-dev -m GtsContentTestCases
Bug: 77964730
Change-Id: I3feb17b2a12018cd5407c88fe3603f2ebbc9d14e
2018-05-08 11:27:41 -07:00
Pavel Grafov
2e7929e415 Provide convenience to check max password length.
Test: manual, applied password length restriction via TestDPC and
      set a new password via settings (see the other CL in the topic)
Bug: 30558331
Change-Id: I51302bad02604c8fc0def37dc33a5837f29ab858
2018-05-08 16:01:41 +01: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
93c48c70d1 Merge "Fixed the historic messaging experience" into pi-dev am: e12f7fffcf
am: 64a4170c37

Change-Id: I16b309e7f37d2282055141cd5b3480ec5913d85b
2018-05-07 16:55:01 -07:00
Selim Cinek
e12f7fffcf Merge "Fixed the historic messaging experience" into pi-dev 2018-05-07 20:48:38 +00:00
Selim Cinek
a67c58f4e6 Merge "Fixed the padding when the sender name was empty" into pi-dev am: 4e9bdcdcac
am: 0e765611d9

Change-Id: I8a12fec73778a0a088ae79b322043c8d9088bdb2
2018-05-07 13:24:43 -07: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
android-build-team Robot
1cd00f3c8a Merge changes I5ed0feb5,I33faa3c8,Id2ee2e55,Iad0d4e94,I3ae5e544
* changes:
  Revert "Rotate IMEs (subtypes) by Meta+Space."
  Revert "Show toast when subtype is rotated by Meta-Space."
  Revert "Shift+Meta+Space should reverse-rotate subtypes."
  Revert "Shift+Meta+Space should reverse-rotate subtypes part 2."
  Revert "Make sure that Toast is always shown by Meta-Space."
2018-05-07 02:13:23 +00:00