Commit Graph

4830 Commits

Author SHA1 Message Date
Tadashi G. Takaoka
17aa9a5913 Fix GraphicBuffer creation not to use 0 usage flag
(This is a cherry-pick of Ibd477a335e from pi-arc-dev)

Fixes: 110907362
Test: atest FrameworksServicesTests:com.android.server.wm.TaskSnapshotSurfaceTest
Change-Id: Ibd477a335e82f92bc39ec214c01bbeeead802ab0
2018-07-05 17:00:16 +09:00
Winson Chung
2426b52393 Merge "Skip animation start logic if canceled" 2018-07-03 21:50:34 +00:00
Wale Ogunwale
20a65c4e7b Merge "Break direct calls to UserController object in AMS from activity classes (12/n)" 2018-07-03 20:50:18 +00:00
TreeHugger Robot
78f4ba282a Merge "Be more strict about triggering notification lights" 2018-07-03 19:21:57 +00:00
Julia Reynolds
28149f65f9 Be more strict about triggering notification lights
Don't trigger lights if they should be suppressed by notification flags.

Don't log that notification lights happened if global or temporary
settings have turned them off

Test: runtest systemui-notification, verify
notification_itnerruptiveness numbers for a fresh 3p app that uses
lights
Bug: 111069748

Change-Id: I68750bf39eb76ef0bda40ddacfd90e1be79e8575
2018-07-03 13:54:53 -04:00
TreeHugger Robot
e7ece5a69d Merge "Fix leak where system held onto slice providers" 2018-07-03 17:41:21 +00:00
Wale Ogunwale
86b7446c2b Break direct calls to UserController object in AMS from activity classes (12/n)
Make calls from activity classes go through ActivityManagerInternal
interface to case UserController instead of calling AMS.mUserController
object directly. Note that calls to UserController should not hold the
AMS lock.

Bug: 80414790
Test: Existing tests pass
Change-Id: Ie56f08d10b62d609e9b5e31f45b5f0d6eed3a9d4
2018-07-03 08:22:59 -07:00
Jason Monk
e1c0c2cb8d Fix leak where system held onto slice providers
Test: uiservicestests
Bug: 110985973
Change-Id: Ie8fab3c7b8c22d302825fb147d2c3468f9ae7172
2018-07-03 11:08:32 -04:00
Jorim Jaggi
1f079b4f97 Merge "Only use simple rects for cutout region" into pi-dev am: 4764921dcc
am: b7dc212a61

Change-Id: I2af32c72ea859ff908fa30b5de1e722a99b28479
2018-07-02 14:58:32 -07:00
Jorim Jaggi
b7dc212a61 Merge "Only use simple rects for cutout region" into pi-dev
am: 4764921dcc

Change-Id: Icfb41008189d5c01f90afd4992428433043b4c4e
2018-07-02 14:47:09 -07:00
Andrew Zeng
0c40911ee6 Merge "Add flag to disable sticky behaviour for battery saver." 2018-07-02 21:14:03 +00:00
Winson Chung
8f54a7c515 Merge changes Ibae2de51,I1d6718d9
* changes:
  Allow share/edit screenshot actions from lockscreen
  Prevent clobbering of activity options bundle when merging
2018-07-02 21:04:39 +00:00
Makoto Onuki
de869af4b7 Merge "Fix BatterySaverStateMachineTest" 2018-07-02 18:32:09 +00:00
TreeHugger Robot
24158ba81b Merge "Make sure keys get flushed when connection falls apart." 2018-07-02 17:58:20 +00:00
Winson Chung
a06403d52e Skip animation start logic if canceled
Bug: 110255768
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerActivityVisibilityTests#testHomeVisibleOnActivityTaskPinned
Change-Id: Ifb3e4d1f44b8df28795d9b2c98a714a6c2b08860
Signed-off-by: Winson Chung <winsonc@google.com>
2018-07-02 10:36:28 -07:00
Jorim Jaggi
606405180f Only use simple rects for cutout region
Otherwise there is a big performance hit in all kinds of
situations where we do operations with the region, specifically
when:

- updating input windows
- insetting the cutout during layout
- touch dispatch

Test: DisplayCutoutTest, WmDisplayCutoutTest
Bug: 110464019
Bug: 110452325
Change-Id: I94a25c3794ecd33b8b7204ca308ac91623498f13
2018-07-02 17:58:10 +02:00
Winson Chung
3743d28ec9 Prevent clobbering of activity options bundle when merging
- RemoteViews specify an ActivityOptions when calling startIntentSender()
  (for click handling), but if the PendingIntent being started also has an
  ActivityOptions, the merging of the two options will fail since the
  ActivityOptions properties are always written into the bundle (regardless
  of whether they are actually set).  Instead, only write non-default
  values to the bundle (the defaults will be read out if not set when
  restoring the options from the bundle anyways).

Bug: 72459081
Test: atest FrameworksServicesTests:ActivityOptionsTest

change-id: i1d6718d9db4b3f7056412c5b4c5347a19ffa7c09
2018-06-29 17:36:16 -07:00
Wale Ogunwale
f673393b93 Moved more stuff from ActivityManagerService to ActivityTaskManagerService (11/n)
Moved more stuff related to activities out of the current service to the new one.

Bug: 80414790
Fixes: 110988007
Test: Existing tests pass.
Change-Id: Iceed1da8a7441a26d11efebc6d9f692fd053bc7f
2018-06-29 23:51:01 +00:00
Michael Kwan
e322502f91 Add flag to disable sticky behaviour for battery saver.
Bug: 78239179
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: I33ce8a0698f1aca8d09096574a3b9e0a31281557
2018-06-28 23:43:41 +00:00
Adora Zhang
48dd614a81 Pull AUTOGROUP_AT_COUNT into an XML config.
Test: runtest systemui-notification
Change-Id: I0bf1bacb116b1cf4e77a2e1020c8de0749173224
2018-06-28 19:41:07 +00:00
Makoto Onuki
b047662902 Fix BatterySaverStateMachineTest
Change-Id: Iec5306e423d0eb04fc27f393c16356a4d6c059e3
Fixes: 110892713
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
2018-06-28 11:05:38 -07:00
Qasid Sadiq
5bbc301350 Make sure keys get flushed when connection falls apart.
This is for the event that a key has been intercepted, sent to the app,
and the app hasn't handled it yet. If the connection dies, the key is
lost. So flush all pending keys.

Test: Unit test (this would have caught me introducing this bug in the
first place).

Bug:74593001
Change-Id: I5a94aafe5c58f18a3e9ca46f7cd5a9cb71d38aaa
2018-06-27 22:33:11 +00:00
Ming-Shin Lu
a21ec6618d Merge "Add a unit test for verify IActivityTaskManager.resizeDockedStack." 2018-06-27 03:15:29 +00:00
Neil Fuller
58969298c1 Merge "Add more behavior to TimeDetectorService" am: b1fc5a4c7e am: 325ecf7df4
am: 55b29baea1

Change-Id: I4fe5fe32ffbd807680d688f4415e5dc9e47069d5
2018-06-26 05:33:35 -07:00
Neil Fuller
55b29baea1 Merge "Add more behavior to TimeDetectorService" am: b1fc5a4c7e
am: 325ecf7df4

Change-Id: I28d5b3dbd666dc9d097f6fb7c15dc5ba8cf931e9
2018-06-26 05:23:26 -07:00
Neil Fuller
325ecf7df4 Merge "Add more behavior to TimeDetectorService"
am: b1fc5a4c7e

Change-Id: Ibbda2d253bf807cc480a4218aa1d898d6737ec7b
2018-06-26 05:14:31 -07:00
Neil Fuller
f18981698d resolve merge conflicts of 55c0a66825 to stage-aosp-master
am: e01a7adf5a

Change-Id: I993dc856b8fe0f42d7ad5f766727be32d3d611fe
2018-06-26 04:05:36 -07:00
Neil Fuller
e01a7adf5a resolve merge conflicts of 55c0a66825 to stage-aosp-master
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ie524607cabc6688911eee7e4f61c50fd406c71f4
2018-06-26 11:55:46 +01:00
Neil Fuller
b1fc5a4c7e Merge "Add more behavior to TimeDetectorService" 2018-06-26 08:43:55 +00:00
Kazuki Takise
dd7b69d3c5 Merge "Position stack at top when always on top flag is set" 2018-06-26 04:14:41 +00:00
Neil Fuller
4d9f7a8bc3 Merge "Minimum viable TimeZoneDetectorService" 2018-06-25 18:47:39 +00:00
Neil Fuller
4980bbcd30 Add more behavior to TimeDetectorService
The client code now "suggests" time updates
to the time detection service. The current implementation
of the time detection service will validate and set the
device system clock as needed. In future it will ignore
these suggestions if better information is available.

Responsibility for sending the
TelephonyIntents.ACTION_NETWORK_SET_TIME intent has
been moved to the time detection service until it can be
removed or replaced.

The telephony code is still responsible for basic rate
limiting but the majority of the decision logic has been
moved to the service.

There is an associated change in telephony code to switch to
using the server.

Bug: 78217059
Test: atest FrameworksServicesTests:com.android.server.timedetector
Test: atest FrameworksCoreTests:android.util.TimestampedValueTest
Change-Id: I4f7a10ac06b2d32da22689e1ddf309e0a2795f30
2018-06-25 19:34:05 +01:00
lumark
37e2952504 Add a unit test for verify IActivityTaskManager.resizeDockedStack.
Verify split-screen primary stack & task can resized as expected.

Bug: 110276714
Test: atest ActivityStackSupervisorTests#testResizeDockedStackForSplitScreenPrimary
Change-Id: I63925971c2d62396a882a944326e72987dd6d4cd
2018-06-25 22:12:30 +08:00
TreeHugger Robot
1248d0db95 Merge "Introduced WindowProcessController/Listener (10/n)" 2018-06-23 05:52:22 +00:00
Wale Ogunwale
9e4f3e077f Introduced WindowProcessController/Listener (10/n)
One heavy dependence between the current AMS service and activities
is process management which is heavy affected by activities and their
current state. We introduce WindowProcessController and WindowProcessListener
objects as a structured way for the process changes in AM package to
be communicated to the WM package and WindowProcessListner for activity
changes in the WM package to the communicated back to the AM package.
The ProcessRecord object in AM will own the WindowProcessController object
and also implement the WindowProcessListener.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790
Change-Id: I9e96e841b0f95e99a597cb4629fa5d2fe45760b6
2018-06-22 14:26:24 -07:00
Jason Monk
4f645cc2d6 Fix uris coming into SliceManager.getPinnedSpecs
Test: Added a test
Bug: 110699668
Change-Id: I8c4c377babba4b44484096e5456184dd364350c8
2018-06-22 16:01:55 -04:00
Julia Reynolds
aca215a67a Improve backup and restore for empty sounds
Test: runtest systemui-notification
Change-Id: Iab2eebb0da8163f520af95c2ad5fd8f35333a9d5
Fixes: 109777940
2018-06-22 09:35:10 -04:00
Kazuki Takise
f85197be4a Position stack at top when always on top flag is set
When always on top is set, the position of the stack must be
changed in ActivityDisplay and in DisplayContent. This CL
introduces this logic in ActivityStack.setAlwaysOnTop().

Bug: 69370884
Test: go/wm-smoke
Test: atest DisplayContentTests
Test: atest WindowContainerTests
Change-Id: Ie7efe175175a4db209a6b0f3476d9dfc27432df5
2018-06-22 16:05:16 +09:00
Wale Ogunwale
a6191b4fa1 Moved more stuff from ActivityManagerService to ActivityTaskManagerService (9/n)
Moved more stuff related to activities out of the current service to the new one.

Test: Existing tests pass
Test: go/wm-smoke-auto
Bug: 80414790
Change-Id: I16863dd977bf09136cc23b0ab3aa197c613879ea
2018-06-21 15:11:21 -07:00
Julia Reynolds
3850aff60e Merge "Always ignore summaries" into pi-dev
am: 1fa5751789

Change-Id: Ic1a0d9c9bf50ea4c250bf4b5736a5da92abf0200
2018-06-21 12:12:57 -07:00
Julia Reynolds
6b302d0afb Always ignore summaries
Test: runtest systemui-notification
Bug: 78643290
Change-Id: Ia036e528666af336897431dd11efeffc92accdc7
(cherry picked from commit 760fa7613e)
2018-06-21 16:09:55 +00:00
Julia Reynolds
760fa7613e Always ignore summaries
Test: runtest systemui-notification
Bug: 78643290
Change-Id: Ia036e528666af336897431dd11efeffc92accdc7
2018-06-21 14:00:38 +00:00
Neil Fuller
cccc48d0fe Minimum viable TimeZoneDetectorService
This is a do-nothing TimeZoneDetectorService that can be
populated in following commits. A temporary method has been
added so the service has one method.

Unit tests can be run with:

atest FrameworksServicesTests:TimeZoneDetectorServiceTest

Test: build / boot
Test: See above
Merged-In: I565fb5dd2f18b7aac2e5779d346bfe69e9da02af
Change-Id: I565fb5dd2f18b7aac2e5779d346bfe69e9da02af
2018-06-21 09:30:34 +00:00
Neil Fuller
7fb88c3928 Minimum viable TimeZoneDetectorService
This is a do-nothing TimeZoneDetectorService that can be
populated in following commits. A temporary method has been
added so the service has one method.

Unit tests can be run with:

atest FrameworksServicesTests:TimeZoneDetectorServiceTest

Test: build / boot
Test: See above
Change-Id: I565fb5dd2f18b7aac2e5779d346bfe69e9da02af
2018-06-21 10:28:47 +01:00
Kazuki Takise
5e66d5d963 Merge "Make sure mFlags is synced properly in WindowConfiguration" 2018-06-21 00:46:07 +00:00
Julia Reynolds
e6ac04e010 Don't throw uri exceptions for user chosen sounds
am: 89945c5a22

Change-Id: I727de67d610818b4dc29a685446d0a1e7c975518
2018-06-20 14:16:31 -07:00
Julia Reynolds
89945c5a22 Don't throw uri exceptions for user chosen sounds
Bug: 109889733
Test: runtest systemui-notification
Change-Id: I5ed599deca83f97899affce44e3ed8fbcacae366
(cherry picked from commit 218871ee3f)
2018-06-20 17:00:04 +00:00
Kazuki Takise
4e7e789be2 Make sure mFlags is synced properly in WindowConfiguration
The previous logic doesn't have the logic to distinguish "off" and
"undefined" for mFlags. This CL solves this issue by introducing
a variable dedicated to always on top. See b/110383970 for more
background.

Bug: 110383970
Test: atest WindowConfigurationTests
Test: go/wm-smoke
Change-Id: Ia4fe8f43e5f6d65d68b1257951b1770a49af35bc
2018-06-20 15:10:06 +09:00
TreeHugger Robot
6b3f38aa9f Merge "Fix flaky ScheduleCalendarTest" 2018-06-19 21:03:43 +00:00
Wale Ogunwale
622ea7dbfb Merge "Switched ActivityStackSupervisor.mService to ActivityTaskManagerService (8/n)" 2018-06-19 02:06:26 +00:00