Commit Graph

7531 Commits

Author SHA1 Message Date
Louis Chang
18614db0dd Merge "Reduce RippleDrawable background opacity when no window focus" 2022-06-07 10:36:54 +00:00
TreeHugger Robot
52dc6f568d Merge "Add transition timestamp to AccessibilityWindowInfo" 2022-06-03 20:50:17 +00:00
Sally Qi
8893a3b626 Add Depth into DataSpace API.
Bug: 205034862
Test: builds
Change-Id: Ie859fc46a553df03819250f9f7f8408bbacc43f2
2022-06-02 12:55:49 -07:00
Sally Qi
e51d2fa4e7 Merge "Add DATASPACE_BT2020_HLG into DataSpace API." 2022-06-02 19:28:33 +00:00
Sally Qi
6541a05325 Add DATASPACE_BT2020_HLG into DataSpace API.
Bug: 231727035
Test: builds
Change-Id: Ie2f5f61f2bda3bfb5bf02a2bb91d5e14d931aabf
2022-06-01 18:49:51 -07:00
Jiakai Zhang
d9cb8548a4 Expose UserHandle.getSharedAppGid as a system API.
Context: http://go/art-services-apis

Bug: 229268202
Test: m
Change-Id: Ifd9d1994fff98a6669e892f25acb54515e89c32b
2022-06-01 20:10:12 +01:00
Louis Chang
72c111de2c Reduce RippleDrawable background opacity when no window focus
Lower the background opacity when the window loses focus
while the view still has focus, in order to prevent user
confusion in a multi-window environment.

Bug: 230355625
Test: atest RippleDrawableTest
Change-Id: I59cd7faf35f05a12451f015f8ef2da47077b1bf2
2022-06-01 07:16:35 +00:00
TreeHugger Robot
735cccf341 Merge "Expose ServiceManager.waitForService as system API." 2022-05-27 13:52:06 +00:00
TreeHugger Robot
b142e15468 Merge "isMediaSharedWithParent UserHandleAware javadoc" 2022-05-26 16:56:09 +00:00
Jiakai Zhang
ee13e8d435 Expose ServiceManager.waitForService as system API.
ART module needs that method in order to connect to artd.

Bug: 233915142
Test: m
Change-Id: I3fc487476da8d88238b6974707747b429a132909
2022-05-25 20:05:40 +01:00
Eric Biggers
c0e1258a05 Merge "Re-deprecate ENCRYPTION_STATUS_ACTIVATING" 2022-05-25 15:57:15 +00:00
Tony Huang
5aca2dbbfd Merge "Remove the special logic of the divider bar z-ordering" into tm-qpr-dev am: 4f8c3f0841 am: 525db9b3b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18320962

Change-Id: I4cfd1dd9599570aa7c6259352b7a041d9f0cfd18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 02:47:35 +00:00
Tony Huang
525db9b3b9 Merge "Remove the special logic of the divider bar z-ordering" into tm-qpr-dev am: 4f8c3f0841
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18320962

Change-Id: Ibfb9f66c91467887bb91626085792d3e7652f05c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 02:05:46 +00:00
Tony Huang
4f8c3f0841 Merge "Remove the special logic of the divider bar z-ordering" into tm-qpr-dev 2022-05-25 02:01:26 +00:00
Eric Biggers
d57272d76b Re-deprecate ENCRYPTION_STATUS_ACTIVATING
As per more API council feedback, ENCRYPTION_STATUS_ACTIVATING should in
fact be deprecated, given that it has never actually been used.

Bug: 233801960
Change-Id: I6f8da12f291d1238008eb2d928547fda70ca9402
2022-05-24 23:15:34 +00:00
Eric Biggers
7439280e89 Merge changes Ia5112416,I16b8c152
* changes:
  Revert deprecation of DevicePolicyManager FDE constants
  Revert deprecation of Telephony FDE constant
2022-05-24 17:34:34 +00:00
Yuqing Mao
f3586740f7 Merge "Add API of isOatArtifactDeletionEnabled for system apps" 2022-05-24 04:51:27 +00:00
yuqingmao
2aba347087 Add API of isOatArtifactDeletionEnabled for system apps
The interface of `isOatArtifactDeletionEnabled` is only available on internal system server. As request from ART service, it should be an open API available in system apps, for logic of `canOptimizePackage` and other purposes.

Bug: 229203212
Test: atest AppHibernationIntegrationTest

Change-Id: I195fdddcce2451e230414ce1a02202e9f8c6af19
2022-05-23 11:09:12 -07:00
Adam Bookatz
c7f3fb51dc isMediaSharedWithParent UserHandleAware javadoc
Using the standard format for describing the UserHandleAware situation
of this API (e.g. same as isCredentialSharableWithParent has).

Test: N/A. Just javadoc.
Change-Id: I3b9f79af286ac1f4628824899db04fc0a454486a
2022-05-23 10:58:36 -07:00
TreeHugger Robot
8396293613 Merge "Remove preferKeepClearAreaForFocusDelay, turn it into a flag" into tm-dev am: 12a7628e16 am: c3f7c80692 am: b3a0c13a88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18184947

Change-Id: I6b28748c2b0db3d04e65132debcff107df758fdd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 16:58:54 +00:00
TreeHugger Robot
b3a0c13a88 Merge "Remove preferKeepClearAreaForFocusDelay, turn it into a flag" into tm-dev am: 12a7628e16 am: c3f7c80692
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18184947

Change-Id: I0b1f8272f51f60519011d3a98b1679fe83a3e6ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 16:34:16 +00:00
Tony Huang
20e5039095 Remove the special logic of the divider bar z-ordering
Remove the divider bar z-ordering logic since the divider bar is
attached to a single-top root task for split screen now. Remove
split anchor too because it is for legacy split screen using.
Also removed corresponding tests which are no longer needed after
this patch.

Bug: 199236198
Test: pass existing tests
Change-Id: I3435a3c81de78804c8110eb38bbacd0a23b391ef
2022-05-20 14:58:55 +08:00
Robert Horvath
2a6ce367fe Remove preferKeepClearAreaForFocusDelay, turn it into a flag
TV PiP repositioning in response to keep clear area changes will be
debounced in SystemUI, so the client side delay in setting a keep clear
area with focus becomes obsolete.
Instead the config is turned into a flag for whether focused views
should automatically be marked as keep clear areas.

Bug: 231309309
Test: atest KeepClearRectsTests
Change-Id: I0ac61e671bb75e22a95b400c9bd8d84004379e43
Merged-In: I0ac61e671bb75e22a95b400c9bd8d84004379e43
2022-05-19 19:27:44 +00:00
Robert Horvath
120877630e Merge "Remove preferKeepClearAreaForFocusDelay, turn it into a flag" 2022-05-19 19:25:09 +00:00
Robert Horvath
ce6d04cce0 Remove preferKeepClearAreaForFocusDelay, turn it into a flag
TV PiP repositioning in response to keep clear area changes will be
debounced in SystemUI, so the client side delay in setting a keep clear
area with focus becomes obsolete.
Instead the config is turned into a flag for whether focused views
should automatically be marked as keep clear areas.

Bug: 231309309
Test: atest KeepClearRectsTests
Change-Id: I0ac61e671bb75e22a95b400c9bd8d84004379e43
2022-05-18 18:48:43 +02:00
Chet Haase
7625f95003 Allow system to disable behavior of pausing animators for bg apps
This change adds a static method which can be called to disable the
default behavior of pausing infinite animators when an app's windows
are all in the background. This could potentially be used for
global behavior of a system property to disable this behavior system
wide.

Bug: 232937493
Test: Added new cts test to AnimatorLeakTest to verify behavior
Change-Id: Idf4957e3968253228096671fde89f820311883e3
2022-05-18 13:46:47 +00:00
Treehugger Robot
7878d961a1 Merge "Make binderDied(IBinder who) public API" am: dcbb21deaa am: 5b4764e7a1 am: e96c133793 am: fc6068e669 am: 3f6772c8e3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1916883

Change-Id: Ie28523879c7b472ff910259ed8df73abdcf3f1c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 07:35:38 +00:00
Treehugger Robot
3f6772c8e3 Merge "Make binderDied(IBinder who) public API" am: dcbb21deaa am: 5b4764e7a1 am: e96c133793 am: fc6068e669
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1916883

Change-Id: I9da90e62fa1fb10707ddacb901f2095c0483bf62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 07:23:05 +00:00
Treehugger Robot
e96c133793 Merge "Make binderDied(IBinder who) public API" am: dcbb21deaa am: 5b4764e7a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1916883

Change-Id: I5d40556a579454f06a1d3494d47b8e983f4883f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 06:39:50 +00:00
Treehugger Robot
5b4764e7a1 Merge "Make binderDied(IBinder who) public API" am: dcbb21deaa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1916883

Change-Id: I01aa64cd8cef1042c81eab891602c93a6b294b6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 05:54:00 +00:00
ryanlwlin
630a657d98 Add transition timestamp to AccessibilityWindowInfo
We use a timestamp to know when is the last transition
of the window. With the value, devlopers could define
the meaning of a stable window.

Bug: 215487047
Test: atest AccessibilityWindowQueryTest AccessibilityWindowInfoTest
      manual test
Change-Id: I3ea1c6f4ff135e9ded0a016a6b8a61eb1f754ed7
2022-05-18 12:51:18 +08:00
Treehugger Robot
dcbb21deaa Merge "Make binderDied(IBinder who) public API" 2022-05-17 17:37:10 +00:00
Eric Biggers
9a3cf7c7ec Revert deprecation of DevicePolicyManager FDE constants
The API council doesn't want these constants to be deprecated.  This is
a partial revert of http://ag/18171342, which keeps and revises the text
that was added to the documentation.

Bug: 208476087
Bug: 232310299
Change-Id: Ia5112416bcccf4dac2fa8f17ebe39dab0a8177f3
2022-05-17 00:58:11 +00:00
Eric Biggers
148a2bd590 Revert deprecation of Telephony FDE constant
The API council doesn't want this constant be deprecated.  This is a
partial revert of http://ag/17812636, which keeps and revises the text
that was added to the documentation.

Bug: 208476087
Bug: 232310299
Change-Id: I16b8c15288963d7c3318e8c614f0f7f0b091c221
2022-05-17 00:27:39 +00:00
Chet Haase
b68f279eef Merge "Pause animators when app is not visible" 2022-05-16 22:57:06 +00:00
Chet Haase
298ab29152 Pause animators when app is not visible
Because animators are not tied to the lifecycle of any UI
elements, it is possible for an app to go into the background
and for the animators to continue running. Ideally, the app would
track the lifecycle of the activity/etc and pause or disable the
animators, but it is common for this to not happen, causing the
animators to continue spinning when the app does not need them.
The animators are not causing as much work as for a foreground
activity (since they do not cause any re-rendering), but they cause
work nonetheless by keeping Choreographer awake to continue pulsing
frames.

The ideal fix would be to introduce new API for animators that
tied them to lifecycle concepts (View, Activity, etc). But that kind
of fix would only be available for future versions of the platform,
and does not address existing app code. A workaround for the current
situation is to address the most egregious problems; infinite animators
running on backgrounded apps.

The fix here is exactly that: when an app's visible surface (either an
activity or, for Wallpapers, a WallpaperService) is backgrounded,
a request is sent to pause animators for that surface. When that surface
comes to the foreground, a request is sent to resume those animators.
Since all animators are handled on the same thread for the same process,
in AnimationHandler, we should only ever pause animators when *all*
surfaces for a process are not visible (and resume them when *any*
surface becomes visible). Also, to mitigate any issues with thrashing
animator state for apps which become only transiently backgrounded,
we delay pausing for some time.

Bug: 228598053
Test: new AnimatorLeak CTS test, plus manual testing for activities
    and wallpapers

Change-Id: I8b9f841cc80babb972244c724968a5c085a06b69
2022-05-16 17:53:35 +00:00
Treehugger Robot
aa21aea93e Merge "Add new Telephony feature flags and update API annotations" am: 3d7b4e4ded
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910630

Change-Id: Iaef6cfaa107be10d533d3e63ddcafe27806a82e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 17:45:09 +00:00
Treehugger Robot
3d7b4e4ded Merge "Add new Telephony feature flags and update API annotations" 2022-05-13 17:13:38 +00:00
Automerger Merge Worker
77f5bbc82a Merge "Merge "Unhide LogSessionId constant." am: 2274d85fe6 am: fd51a9fc22 am: ac7808eb02" into tm-d1-dev-plus-aosp am: cd464c7f9e am: afbbf25506
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2090583

Change-Id: I9f3ec454e3e8a49e42df03f0449bd883b24b2504
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 16:12:26 +00:00
Automerger Merge Worker
afbbf25506 Merge "Merge "Unhide LogSessionId constant." am: 2274d85fe6 am: fd51a9fc22 am: ac7808eb02" into tm-d1-dev-plus-aosp am: cd464c7f9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2090583

Change-Id: I750538fe33a98b33ff902609389ada4386472117
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 03:15:43 +00:00
Ovidiu Pana
ac7808eb02 Merge "Unhide LogSessionId constant." am: 2274d85fe6 am: fd51a9fc22
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2090583

Change-Id: I27dd0f7e9d9151ac38d21a695aa87f86a08effb6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 00:27:36 +00:00
Ovidiu Pana
fd51a9fc22 Merge "Unhide LogSessionId constant." am: 2274d85fe6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2090583

Change-Id: I0c2c0634e9250d7d3126fee54018fdf42722f55f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 23:57:50 +00:00
Ovidiu Pana
2274d85fe6 Merge "Unhide LogSessionId constant." 2022-05-12 23:28:03 +00:00
Treehugger Robot
037b772f40 Merge "Add new MMS result codes" am: fe5f242360
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2097353

Change-Id: I3c17b4f6397b9200da4eacd258670f2ab56e31a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 21:11:12 +00:00
Hui Wang
160a0832e7 Add new Telephony feature flags and update API annotations
Bug: 206437821
Test: make
Test: atest CtsTelephonyTestCases FrameworksTelephonyTests
Change-Id: I511afb5afc52b859a37f8ae27ab671c2b8037527
Merged-In: I511afb5afc52b859a37f8ae27ab671c2b8037527
2022-05-12 11:12:39 -07:00
Tom Taylor
88b5149d4e Add new MMS result codes
Test: manual - sent/received mms
Bug: 185275986

Change-Id: I190345240482437289d26101857d805cf06e0341
Merged-In: I190345240482437289d26101857d805cf06e0341
2022-05-12 11:05:06 -07:00
Julia Reynolds
0e1b658671 Merge "Fix blockable system notifications" into tm-dev am: ddfeaa18f7 am: 0c63a032f3 am: cb38803c23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18292722

Change-Id: I2227befa6e5be09279dcbf6cfc22ee10fb4ca0a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 13:14:06 +00:00
Julia Reynolds
7a0a7b35fe Merge "Fix blockable system notifications" into tm-dev am: ddfeaa18f7 am: 8ff5f8b1ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18292722

Change-Id: I24261b51b142853cd540e3e596d3bfe0f20c1adf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 12:50:44 +00:00
Julia Reynolds
cb38803c23 Merge "Fix blockable system notifications" into tm-dev am: ddfeaa18f7 am: 0c63a032f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18292722

Change-Id: I444b147a291bb8cf9db30f3ecb20fa00d8e7535e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 12:50:06 +00:00
Julia Reynolds
4e886df594 Merge "Fix blockable system notifications" into tm-dev am: ddfeaa18f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18292722

Change-Id: I385a699e3d7e377d9ccb8b3c09b106df3167449b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 12:26:54 +00:00