Commit Graph

19325 Commits

Author SHA1 Message Date
Shan Huang
bcb5bd5c00 Merge "Add AndroidX SpringAnimation library to core." into tm-qpr-dev am: a24bed9f38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20171590

Change-Id: I40d68291f995c5db5adda9e3ed6d7b8fa3ea6840
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 01:15:44 +00:00
Shan Huang
a24bed9f38 Merge "Add AndroidX SpringAnimation library to core." into tm-qpr-dev 2022-10-18 01:06:42 +00:00
Shan Huang
80c44686c2 Add AndroidX SpringAnimation library to core.
This allows core libraries (such as predictive back progress animation)
to use spring animation.

Files in androidx/dynamicanimation/animation that are not copied over:

FlingAnimation.java - Unused atm
AnimationHandler.java - Replaced with the framework AnimationHandler
FloatPropertyCompat.java - Replaced with FloatProperty
FrameCallbackScheduler.java - Unused in framework AnimationHandler

Test: m -j
Bug: 238475284
Change-Id: Ifdf847da0aa2a6cf57e18f9ac7c91bb0fe3b12c2
2022-10-17 20:45:41 +00:00
Andrey Epin
03b221874b Merge "Load direct-share icons asynchronously" into tm-qpr-dev am: 087c3d1918
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19920873

Change-Id: I0c5ca0aa635f8cfe51a16082187cf2476e6c3f47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 21:25:39 +00:00
Andrey Epin
087c3d1918 Merge "Load direct-share icons asynchronously" into tm-qpr-dev 2022-10-13 20:50:28 +00:00
Andrey Epin
7de4fa9bd2 Merge "Fix Resolver dragging animation" into tm-qpr-dev am: adad5c91bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19719026

Change-Id: I30639003d4944eed4f10ff78168cbfe6cc9a5161
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 17:13:43 +00:00
Andrey Epin
adad5c91bd Merge "Fix Resolver dragging animation" into tm-qpr-dev 2022-10-12 17:07:20 +00:00
TreeHugger Robot
a2f02ea1e8 Merge "Update DreamService -> DreamOverlayService connection to handle crashes" into tm-qpr-dev am: 2ab63d23d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20107778

Change-Id: Ied0ea3a6d52dab588907872f3170547a667b0b15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 15:16:58 +00:00
TreeHugger Robot
2ab63d23d3 Merge "Update DreamService -> DreamOverlayService connection to handle crashes" into tm-qpr-dev 2022-10-12 14:53:54 +00:00
Lucas Silva
7bbcdc1c01 Update DreamService -> DreamOverlayService connection to handle crashes
This change implements PersistentServiceConnection and
ObservableServiceConnection helper classes in framework for better
handling of crashes.

Fixes: 247103878
Test: manually by crashing systemui using adb while dreaming and
verifying that the overlay is visible
Test: atest com.android.internal.util.PersistentServiceConnectionTest
Test: atest com.android.internal.util.ObservableServiceConnectionTest

Change-Id: Ib9a7e8675e408c1724567335a3c186fe5c9f5f59
Merged-In: Ib9a7e8675e408c1724567335a3c186fe5c9f5f59
2022-10-11 13:37:59 +00:00
Philip Junker
9b5f8d21ed Merge "Sync BatteryStats user activity types with PowerManager ones." into tm-qpr-dev 2022-10-07 15:32:21 +00:00
TreeHugger Robot
6f4ad539f6 Merge "[2/2] Fix sharing to another profile where an app has multiple targets" into tm-qpr-dev am: dd4fc6db67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20063949

Change-Id: I6175a98e7c4b596916fd3b5bc08629a9d64176bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 13:59:11 +00:00
TreeHugger Robot
dd4fc6db67 Merge "[2/2] Fix sharing to another profile where an app has multiple targets" into tm-qpr-dev 2022-10-07 12:52:26 +00:00
Philip Junker
715cba5f63 Sync BatteryStats user activity types with PowerManager ones.
Add more logs when entering doze.

Bug: 243518837
Test: atest BatteryStatsTests
Test: atest PowerManagerServiceTest
Test: manually observe logs using logcat / adb bugreport

Change-Id: I234a999cf41da0346ce4d9f05663cae116b095a3
Merged-In: I234a999cf41da0346ce4d9f05663cae116b095a3
2022-10-07 08:17:41 +00:00
Philip Junker
998b368a66 Merge "Sync BatteryStats user activity types with PowerManager ones." into tm-qpr-dev-plus-aosp 2022-10-07 08:17:18 +00:00
Andrey Epin
a54f0d13a6 Load direct-share icons asynchronously
Move direct-share icons loading off the main thread in the same way
we're loding A-Z icons.

Test: Manual testing with rotatin and screen locking, artificially
delaying image loading, debug logging for potential event loops.
Test: atest ChooserListAdapterTest
Fix: 215699869
Change-Id: I97e3383a74bb4ef795099fe55cae9fc5aed2b790

Change-Id: I3b110447d4cf2ab94e663c2684cd2cce4968d4ca
2022-10-06 14:42:05 -07:00
Derek Jedral
a9104016ea Merge "Revert "Fix TrustAgent showing unclear string."" into tm-qpr-dev am: 84e68e28b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20122571

Change-Id: I57e7259014605c40712b406e285e30b0cd1a3f71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 17:36:54 +00:00
Derek Jedral
84e68e28b2 Merge "Revert "Fix TrustAgent showing unclear string."" into tm-qpr-dev 2022-10-06 17:00:01 +00:00
Philip Junker
e9c793f8c4 Merge "Initialize ContentObserver in startObserving()." into tm-qpr-dev am: af0795a722
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20111661

Change-Id: I81b04a769382ef1c5c8df1129f4b12db73462eaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 16:20:42 +00:00
Philip Junker
af0795a722 Merge "Initialize ContentObserver in startObserving()." into tm-qpr-dev 2022-10-06 15:47:39 +00:00
Philip Junker
4928d74f0d Sync BatteryStats user activity types with PowerManager ones.
Add more logs when entering doze.

Bug: 243518837
Test: atest BatteryStatsTests
Test: atest PowerManagerServiceTest
Test: manually observe logs using logcat / adb bugreport

Change-Id: I234a999cf41da0346ce4d9f05663cae116b095a3
Merged-In: I234a999cf41da0346ce4d9f05663cae116b095a3
2022-10-06 12:32:48 +00:00
Derek Jedral
f60d171a4b Revert "Fix TrustAgent showing unclear string."
This reverts commit 140516bf65.

Reason for revert: Bug where users cannot use biometrics to re-auth after trustagent timeout.

Bug: 251078638
Change-Id: I6254196327e09381eaa047e6444034ada6030113
2022-10-05 19:42:49 +00:00
Philip Junker
90e2f37790 Initialize ContentObserver in startObserving().
This removes a race condition where ContentObserver is initialized
while mHandler is null which causes the ContentObserver#onChange() callback to run on a different thread and can cause an NPE.

Bug: 246843362
Test: manual
Test: atest BrightnessSynchronizerTest
Change-Id: Ib8e192c3961390ece721fa473d5c09323c30bafe
2022-10-05 14:30:47 +00:00
Andrey Epin
260401b184 Merge "Load icons and labels only once" into tm-qpr-dev am: 3002386445
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19961127

Change-Id: I79d2abc85622e57dbb004a4df7cd73635fd1f5d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 21:06:26 +00:00
Andrey Epin
3002386445 Merge "Load icons and labels only once" into tm-qpr-dev 2022-10-04 20:39:58 +00:00
Matt Casey
7b19c4b99f Merge "Copy multi-image editor fix to QPR" into tm-qpr-dev 2022-10-04 20:01:43 +00:00
Liahav Eitan
a4fe4bd9a2 [2/2] Fix sharing to another profile where an app has multiple targets
Complete the change in ag/19657256 to also apply in SelectableTargetInfo.
That would ensure that in all cases of cross-profile targets the URIs
are fixed to include the user-id prefix.

Bug:244876518
Bug:242605257
Test: manually share image from work Photos app to personal WhatsApp's
frequent contact target.

Change-Id: Ib41c8a3c46afcc2d62a4c1a924212bcd98bcfbe4
2022-10-04 09:15:39 +00:00
Andrey Epin
cd7c00c36e Load icons and labels only once
The current implementation triggers icon loading each time a view gets
bound and, as binding happens multiple times, icon and label loadings
are unnecessarily duplicated. In addition, as a loading task never gets
canceled, there’re cases (like in the associated ticket) when a view
gets rapidly bound to multiple positions and all the icon loadings
eventually catches up updating it, ending up in icons rapidly changing
on the screen for the view.
This change addresses this by simplifying the icon loading/binding
logic: a view is always bound to the current data and the task is only
updates the data with the missing piece of info once (and applied for
both icons and label loading tasks).
There is one extra change in ResolverActivity due to LoadIconTask
interface change and cancellation logic for the tasks.

Fix: 245934835
Test: Manual tests on a list which does not fit into the screen.
Test: Manual tests with arficial delays added into the tasks.
Test: atest FrameworksCoreTests:ResolverActivityTest
Test: atest FrameworksCoreTests:ChooserActivityTest
Change-Id: I76fe5663523232a74d4f505c535cd6dbcf7f8759
2022-10-03 22:38:47 -07:00
Andrey Epin
2e1805e892 Fix Resolver dragging animation
Adds a new ResolverDrawerLayout XML property, ignoreOffsetTopLimit, that
takes a direct child view’s id. The specified view will serve as a top
limit for all child views below it with layout_ignoreOffset attribute
set to true i.e. they will be pushed down by the view when the drawer
is moving.

Fix: 240481385
Test: atest FrameworksCoreTests:ResolverActivityTest
Test: atest FrameworksCoreTests:ChooserActivityTest
Test: Manual testing with some injected code that simulates various
conditions:
  * various property values or property absence
  * simultaneous layout and drawer moving
  * one-time layout while an "ignoreOffset" view has been moved out of
    place with a consequent release.

Change-Id: Ib9aa4f11d35c2dede06b0913091e7b146438e57e
2022-10-03 17:21:29 -07:00
Daniel Norman
ce09a229dd Adds more OWNERS to a11y FW dirs. am: b6dc971384 am: 4292755d27 am: 2325eb5313 am: e9dd122ce4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2234907

Change-Id: I005464c49af46492ee791c3068ec1e21cdaea18f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 21:18:45 +00:00
Daniel Norman
2325eb5313 Adds more OWNERS to a11y FW dirs. am: b6dc971384 am: 4292755d27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2234907

Change-Id: I9a70dc471223f0cd68bfeaeecdb6c0b6ac033efa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 19:43:37 +00:00
Daniel Norman
b6dc971384 Adds more OWNERS to a11y FW dirs.
Bug: n/a
Test: n/a
Change-Id: I1331e89caf4942d2118e644ed3f9710daa66be95
2022-09-28 09:15:49 -07:00
TreeHugger Robot
6fc7651cdc Merge "Catch unexpected detached view while creating FrameTracker" into tm-qpr-dev am: 05914b98a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20033151

Change-Id: I70f58c963ee1e25a276e88a290d3f6bda3f94c8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-27 13:44:21 +00:00
TreeHugger Robot
05914b98a4 Merge "Catch unexpected detached view while creating FrameTracker" into tm-qpr-dev 2022-09-27 13:14:43 +00:00
Matt Casey
09daaaf5e2 Copy multi-image editor fix to QPR
Already fixed in master via https://android-review.googlesource.com/c/platform/frameworks/base/+/2049443

This is that change, but in QPR.

Test: Share multiple images from photos, verify that edit button doesn't
      appear.
Bug: 247638926
Merged-In: Id6ce93efacd54a86d870595ae32b4e6efcec0c04
Change-Id: I51b7d332b6b7e59ee559716022d795bb8de4a71c
2022-09-26 20:30:24 +00:00
TreeHugger Robot
cc6597d2d1 Merge "Add Logging of the UI Latency for hotword invocation" into tm-qpr-dev am: 7ca15df236
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20021705

Change-Id: Ia09d62f94fb98ef9c0fedaa9cd5b4df58902ddeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 04:18:40 +00:00
TreeHugger Robot
7ca15df236 Merge "Add Logging of the UI Latency for hotword invocation" into tm-qpr-dev 2022-09-24 03:51:17 +00:00
Jing Ji
316c6e8df8 Merge "Check the null pointer in ProcStats" into tm-qpr-dev am: 52ef129d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20040059

Change-Id: Ic69c4987f96c0085834105010d621901a24dd9f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 03:21:34 +00:00
Jing Ji
52ef129d27 Merge "Check the null pointer in ProcStats" into tm-qpr-dev 2022-09-24 03:10:28 +00:00
Nicholas Ambur
0cf35e854e Add Logging of the UI Latency for hotword invocation
Log the UI latency with UIActionLatencyReported atom. We plan to
calulate the latency from when the SoundTrigger HAL emits an event to
when the VoiceInteraction system UI view is shown.

Test: device_config put latency_tracker enabled true; verify traces
and latency is logged in WW.
Bug: 247879896

Change-Id: I3edb91691e81f8f23660c0823a6388338fe926ad
2022-09-23 18:13:14 -07:00
Josh Tsuji
e99749d20b Merge "Add jank instrumentation for occlude/unocclude/launcher unlock." into tm-qpr-dev am: 11ffb9c8b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19601329

Change-Id: Iaf8e39aaf62ef5272b43a06b1b76cafe8d8448a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 00:56:55 +00:00
Eun-Jeong Shin
9f8c630473 Merge "Add hyperlink to "Learn more" in device log access dialog" into tm-qpr-dev am: ce1f5634ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20029318

Change-Id: Ied834646b40513958d19633556813d521dfa65b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 00:55:22 +00:00
Josh Tsuji
11ffb9c8b4 Merge "Add jank instrumentation for occlude/unocclude/launcher unlock." into tm-qpr-dev 2022-09-24 00:23:28 +00:00
Jing Ji
5ecd71861f Check the null pointer in ProcStats
Bug: 246663534
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Test: atest CtsStatsdHostTestCases
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: Ie39e232970238f44b447467173ae46d4775e6432
2022-09-23 16:47:50 -07:00
Josh Tsuji
64a3f7394a Add jank instrumentation for occlude/unocclude/launcher unlock.
Fixes: 241195239
Test: grab a trace
Change-Id: If9af9aa95ddff26c9baf5101fb5aa45389e532eb
2022-09-23 15:33:52 -04:00
Josh Tsuji
06a8a923de Merge "Enable presubmit for com.android.internal.jank" into tm-qpr-dev-plus-aosp 2022-09-23 19:27:37 +00:00
Eun-Jeong Shin
db1ed6fa67 Add hyperlink to "Learn more" in device log access dialog
Add a hyperlink to explain device log access in "Learn more"

Bug: 231437131
Test: GtsVerifier
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: Id7978ee800367f696a8b9ea0d80d0b7e0c2d41eb
2022-09-23 17:30:44 +00:00
Ahan Wu
830249f303 Catch unexpected detached view while creating FrameTracker
Bug: 245083316
Test: atest FrameTrackerTest InteractionJankMonitorTest
Test: LatencyTrackerTest
Change-Id: I55941c78b7200bd70a4b30a29defc3c8306eead8
Merged-In: I55941c78b7200bd70a4b30a29defc3c8306eead8
2022-09-23 16:48:24 +00:00
Nick Chameyev
d84bec201c Merge "[Partial Screensharing] Add initial recents selector UI" into tm-qpr-dev am: 66e9106619
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19867406

Change-Id: I4f6b2799fa1009f3c3b888ac926c8c7455cfbc28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 14:11:03 +00:00
Nick Chameyev
66e9106619 Merge "[Partial Screensharing] Add initial recents selector UI" into tm-qpr-dev 2022-09-23 13:20:23 +00:00