Commit Graph

9725 Commits

Author SHA1 Message Date
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
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
66f7bff6d7 Merge "Properly prepare system server profiles" into pi-dev am: cd319fc094
am: 67d2efe0f3

Change-Id: I717b51fd98c81a8ea7a247c44cf9812045a12bcc
2018-05-04 16:02:48 -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
4a10072c84 Merge "Fixed an animation issue with Smart Replies" into pi-dev am: 12bae55fbc
am: e74dc3cfdd

Change-Id: Ia363a381aa2a35a930a8029a49c625c7f95944bf
2018-05-04 14:43:31 -07: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
Yohei Yukawa
136b6ceca8 Revert "Shift+Meta+Space should reverse-rotate subtypes."
This reverts commit d39ae85482 [1].

Reason for revert: to deprecate Meta-Space.

 [1]: I3694edd80be6dfe18b90360e24ae4d451b331928

Bug: 79150878
Test: manual
Change-Id: Id2ee2e552ffec009722525a56c65767bda46a63b
2018-05-04 12:53:19 -07:00
Yohei Yukawa
c7cc0ca7d4 Revert "Shift+Meta+Space should reverse-rotate subtypes part 2."
This reverts commit b1e2f4fc3a [1].

Reason for revert: to deprecate Meta-Space.

 [1]: I246223c0856382d68323f22987b998cd1613e98c

Bug: 79150878
Test: manual
Change-Id: Iad0d4e940e7fbc29d2fbcffaa7bd4030e478c244
2018-05-04 12:53:08 -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
Calin Juravle
8eb891be6f 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
Change-Id: I5647e0bfb47d31c0e39bb3f59650cc956f49c4db
2018-05-03 20:06:10 -07:00