Commit Graph

19805 Commits

Author SHA1 Message Date
TreeHugger Robot
db736f39bb Merge "Catch unexpected detached view while creating FrameTracker" 2022-09-23 18:59:24 +00:00
Nick Chameyev
9755004796 Merge "[Partial Screensharing] Add initial recents selector UI" into tm-qpr-dev am: 66e9106619 am: d84bec201c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19867406

Change-Id: I555339bc5c939215a7d8604d73bd0264f49f372e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 17:11:27 +00:00
Ahan Wu
6826619762 Catch unexpected detached view while creating FrameTracker
Bug: 245083316
Test: atest FrameTrackerTest InteractionJankMonitorTest
Test: LatencyTrackerTest
Change-Id: I55941c78b7200bd70a4b30a29defc3c8306eead8
2022-09-23 16:44:37 +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
Nick Chameyev
333c007f08 [Partial Screensharing] Add initial recents selector UI
Adds a recycler view that can show list of thumbnails
and app icons that could be loaded asynchronously.
It is hidden under a flag, so it won't be visible
on normal builds.

Current limitations which will be fixed in
the follow up CLs:
* It doesn't load real data
* Task thumbnail sizes are hardcoded and
  not cropped correctly
* No actions on thumbnail click

Screenshot demo: https://screenshot.googleplex.com/68vhXBNefCKHR2G.png

Test: atest com.android.systemui.mediaprojection.appselector.MediaProjectionAppSelectorControllerTest
Bug: 240924921
Change-Id: Ia3c685050656659ea9a79ffc90a91465c114e259
2022-09-23 11:19:54 +01:00
Joanne Chung
62d698f8e8 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time"" am: 8be1773964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19992748

Change-Id: I93dcd232eb6205c8c6361406b4ccd0863a0dea46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 09:38:07 +00:00
Joanne Chung
990b2f2682 Merge "[DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""" into tm-qpr-dev 2022-09-23 09:05:50 +00:00
Miranda Kephart
e8a274a7b1 Merge changes Iffb62170,I9b795928 into tm-qpr-dev am: 4658046b52 am: 2584f20d58
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20007505

Change-Id: I44e47f44c3c1750d0701f641d00c759b7a2b3f75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 06:57:49 +00:00
Lucas Silva
58841ffe37 Merge "Add additional logging to dream enforcement logic to debug failures." into tm-qpr-dev am: 591f54ba80 am: b6fa124dc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970255

Change-Id: Ieb972fa8a3a223ba233170e6351f47c93575ca18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 05:42:35 +00:00
Justin Ghan
25e455e640 Merge "TextView implementation of remove space gesture, and join or split gesture" 2022-09-23 02:44:40 +00:00
Miranda Kephart
2584f20d58 Merge changes Iffb62170,I9b795928 into tm-qpr-dev am: 4658046b52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20007505

Change-Id: I1c6415729dd96888303831a4fa182d8baf1e057a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 19:32:09 +00:00
Miranda Kephart
4658046b52 Merge changes Iffb62170,I9b795928 into tm-qpr-dev
* changes:
  Clean up leaked screenshot connections
  Always reset screenshot preview to alpha=1
2022-09-22 19:13:56 +00:00
Lucas Silva
b6fa124dc9 Merge "Add additional logging to dream enforcement logic to debug failures." into tm-qpr-dev am: 591f54ba80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970255

Change-Id: Iba9816ef1e6db30c5228589e6a77a5f5b9ef0f32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 15:36:50 +00:00
Lucas Silva
591f54ba80 Merge "Add additional logging to dream enforcement logic to debug failures." into tm-qpr-dev 2022-09-22 14:46:45 +00:00
Miranda Kephart
9f8f1fd9a7 Clean up leaked screenshot connections
If a subsequent screenshot is taken after we bind to the screenshot
service, but before we get the onServiceConnected callback, we
leak the connection to the service, preventing it from ever getting
shut down. Fix this by unbinding the old connection before connecting
with the new one.

Bug: 242862442
Fix: 242862442
Test: forced DisplayPolicy to take two consecutive screenshots

Change-Id: Iffb62170266a2c1bb332bfb416f0f5e19c5236fb
2022-09-22 14:20:38 +00:00
Nick Chameyev
446bf92131 Merge "Do not use pool of SimpleIconFactory objects in Chooser/ResolverActivity" into tm-qpr-dev am: cbb45c6814 am: b35a6c0829
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19952284

Change-Id: Ida85c2fc90f55f4178de28633f669f1ca66a08e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 00:28:13 +00:00
Derek Jedral
aad5b3000d Merge "Fix TrustAgent showing unclear string." into tm-qpr-dev am: a20c6a4cf8 am: d6eff4971c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970372

Change-Id: Ibeab0482cd1d918bdcab8dfa9755bcbc0e99243e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 00:25:28 +00:00
Mythri Alle
cfcf961122 Merge "Reland "Don't enable jdwp by default on userdebug builds""" am: f3683fca37 am: a1b0512a78 am: 59afb30fdb am: e14b396e68 am: f973b28aa0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217921

Change-Id: I179d74253c1c49b522ae3a9db2f6e45677397687
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 00:11:21 +00:00
Nick Chameyev
b35a6c0829 Merge "Do not use pool of SimpleIconFactory objects in Chooser/ResolverActivity" into tm-qpr-dev am: cbb45c6814
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19952284

Change-Id: Ied1239518758bd583218ccbb6f59dc22ac7ae789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 23:21:52 +00:00
Derek Jedral
d6eff4971c Merge "Fix TrustAgent showing unclear string." into tm-qpr-dev am: a20c6a4cf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19970372

Change-Id: I1007d99c24b9d804a8f196ae7ca855e4ff91cd6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 23:18:42 +00:00
Mythri Alle
f973b28aa0 Merge "Reland "Don't enable jdwp by default on userdebug builds""" am: f3683fca37 am: a1b0512a78 am: 59afb30fdb am: e14b396e68
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217921

Change-Id: I3ad547777dcfaf69718f68ac0c9a1824f06f371f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 23:12:01 +00:00
Mythri Alle
59afb30fdb Merge "Reland "Don't enable jdwp by default on userdebug builds""" am: f3683fca37 am: a1b0512a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2217921

Change-Id: I27a3ba70e4da3a93d39abeb539366e5b959750fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 21:58:15 +00:00
Jason Sun
4fd1467783 Merge "Auto enable new system trust agents" into tm-qpr-dev am: 73ce3e64f0 am: 84435238c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19824313

Change-Id: I9b40c9f7f4e3c15da877fbc592aa77d4cef6147a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 21:42:25 +00:00
Jason Sun
84435238c4 Merge "Auto enable new system trust agents" into tm-qpr-dev am: 73ce3e64f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19824313

Change-Id: I79539f4e42c07d9eb694389febb0b32c15a2b265
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-21 21:37:29 +00:00
Nick Chameyev
cbb45c6814 Merge "Do not use pool of SimpleIconFactory objects in Chooser/ResolverActivity" into tm-qpr-dev 2022-09-21 17:40:52 +00:00
Mohamad Mahmoud
ef199b6f64 Merge "Add ANR Latency Tracking" 2022-09-21 14:03:40 +00:00
Mythri Alle
f3683fca37 Merge "Reland "Don't enable jdwp by default on userdebug builds""" 2022-09-21 07:49:34 +00:00
Derek Jedral
140516bf65 Fix TrustAgent showing unclear string.
TrustAgents currently show the string "Device was locked manually" if
the trustagent times out, or if lockUser() was called. Changed to show a
more generic string, informing the user that they need to authenticate
with whatever credentials they have set up (instead of using the
trustagent).

Test: Test trustagent timeout, lockUser, verify string appears
Bug: 243710694
Change-Id: I96b113ab3ae63123782517339b0bdb3c6cdec2e2
2022-09-20 21:07:15 +00:00
Jason Sun
73ce3e64f0 Merge "Auto enable new system trust agents" into tm-qpr-dev 2022-09-20 19:48:17 +00:00
Nick Chameyev
bcec37aef9 Do not use pool of SimpleIconFactory objects in Chooser/ResolverActivity
Disables pooling of SimpleIconFactory objects as it caches
density which could be changed in runtime in tests.

Test: presubmit
Bug: 245354130
Change-Id: I124e02e078ba7e6ed3a42b543698c2758e5d0c0e
2022-09-20 17:02:08 +00:00
Orion Hodson
31e1a33f26 Merge "Prefer valueOf() to boxed primitive constructors" am: 773627cfd3 am: 2488ef52b4 am: f43a706e53 am: 53e69c7eb3 am: 0d6ff93e5e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216444

Change-Id: Ic0e27a6b22e9f6b2d5114ea513f7f51a21c1ddde
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 16:14:15 +00:00
Orion Hodson
0d6ff93e5e Merge "Prefer valueOf() to boxed primitive constructors" am: 773627cfd3 am: 2488ef52b4 am: f43a706e53 am: 53e69c7eb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216444

Change-Id: I91f8849596f8dc62be4dcf49d46cac41fdee4e80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 15:32:15 +00:00
Wu Ahan
9a54da6d23 Merge "DO NOT MERGE: Enable presubmit for com.android.internal.jank" into tm-qpr-dev 2022-09-20 13:11:48 +00:00
Orion Hodson
f43a706e53 Merge "Prefer valueOf() to boxed primitive constructors" am: 773627cfd3 am: 2488ef52b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216444

Change-Id: I353181417b100675b65f0f2eaedf93748f747e83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-20 12:01:07 +00:00
TreeHugger Robot
6f677a36ec Merge "Enable presubmit for com.android.internal.jank" 2022-09-20 09:54:03 +00:00
Orion Hodson
773627cfd3 Merge "Prefer valueOf() to boxed primitive constructors" 2022-09-20 07:40:59 +00:00
Lucas Silva
5ec702b7b0 Add additional logging to dream enforcement logic to debug failures.
Bug: 246091760
Test: n/a
Change-Id: I171225b28e0661bf0a0b1b0ef6bdb3a4e85f64ea
2022-09-20 00:49:57 -04:00
Joanne Chung
8be1773964 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""
This reverts commit 888e79f7a0.

Reason for revert: The feature is planned in QPR2. This should be removed before QPR1 deadline.

Change-Id: I8af811935171d7ff51d9ba2a9ea60437695d7966
2022-09-20 02:23:28 +00:00
Justin Ghan
52b915f439 TextView implementation of remove space gesture, and join or split gesture
Bug: 240436909
Test: atest android.widget.cts.TextViewHandwritingGestureTest
Change-Id: I0a899f0aecd953f67b398df6b48b90f09c73e4d1
2022-09-19 14:24:31 -07:00
Ahan Wu
87c0106ea7 DO NOT MERGE: Enable presubmit for com.android.internal.jank
This CL consists of following parts:
 - TEST_MAPPING files for presubmit.
 - Correct CUJ constant definitions in LatencyTracker.
 - Use auto-generated enum constants instead of hardcoded
   numbers in LatencyTracker.
 - Create LatencyTrackerTest to test:
   - The constant names of CUJ definitions should be the same with
     corresponding enum names.
   - The amount of CUJ definitions should be the same with
     the amount of enums, means both must be added at the same time.
   - The static getNameOfXX() methods return just the name of the
     CUJ constant definitions.
   - The CUJ constant definitions has 1:1 mapping onto the enums.

Bug: 245250904
Test: check TH if FrameworksCoreTests is triggered
Test: atest FrameTrackerTest InteractionJankMonitorTest
Test: atest LatencyTrackerTest
Change-Id: I0a6f403694039aec6b9ce44254f6c5cab531f765
Merged-In: Ibddd36410a0d4a909522de011f23a337b53d6889
2022-09-19 13:48:08 +00:00
TreeHugger Robot
765a65bf37 Merge "Call enforceCallingPermission instead of annotation EnforcePermission" 2022-09-19 11:05:16 +00:00
Ryan Zuklie
e92778a65e Merge "Export BatteryStats info to Atrace." into tm-qpr-dev am: 745d055d20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19901887

Change-Id: Id86f2b027d7579dca6249d0ce841ffc3e66c6740
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 23:20:31 +00:00
Ryan Zuklie
745d055d20 Merge "Export BatteryStats info to Atrace." into tm-qpr-dev 2022-09-16 23:09:20 +00:00
Ryan Zuklie
3aeb8f4925 Merge "Export BatteryStats events to Atrace." 2022-09-16 23:07:49 +00:00
Ahan Wu
2864143e32 Enable presubmit for com.android.internal.jank
This CL consists of following parts:
 - TEST_MAPPING files for presubmit.
 - Correct CUJ constant definitions in LatencyTracker.
 - Use auto-generated enum constants instead of hardcoded
   numbers in LatencyTracker.
 - Create LatencyTrackerTest to test:
   - The constant names of CUJ definitions should be the same with
     corresponding enum names.
   - The amount of CUJ definitions should be the same with
     the amount of enums, means both must be added at the same time.
   - The static getNameOfXX() methods return just the name of the
     CUJ constant definitions.
   - The CUJ constant definitions has 1:1 mapping onto the enums.

Bug: 245250904
Test: check TH if FrameworksCoreTests is triggered
Test: atest FrameTrackerTest InteractionJankMonitorTest
Test: atest LatencyTrackerTest
Change-Id: I767681618a3635b2c0ebdae78cf086d56baeaad0
2022-09-16 18:03:44 +00:00
Mohamad Mahmoud
577ebec851 Add ANR Latency Tracking
Add the classes AnrLatencyTracker and AnrLatencyTrackerHelper which
facilitate trackig ANRs through atrace and statslog

Design Document: go/anr-store-stack-dump-latency
Test: tested on a device
Bug: 237671718

Change-Id: I7bc4a115315717d8c07def1d50153befa70bec4d
2022-09-16 08:53:02 +00:00
Arthur Hung
7f1b6e61ad Merge "Fix potential stuck when enabled pointer location" 2022-09-16 01:35:06 +00:00
Taran Singh
0046013807 Merge "Introduce Scribe Select/DeleteRangeGesture" 2022-09-15 18:00:37 +00:00
Mythri Alle
0fc653c307 Reland "Don't enable jdwp by default on userdebug builds""
This reverts commit 50c258ca37.

Reason for revert: Relanding after fixes for the failures Fixes:
1. Mark the com.android.perftests.core as profileable from shell so
that we would be able to read /proc/self/io
2. Fix a JDWP test to expect the new behaviour on userdebug builds.
We can no longer attach debugger on profileable apps on userdebug builds

Bug: 240410400, 246616689
Test: System boots
Change-Id: I6fff6f1a683893244bc2d40f930044747befb2ce
2022-09-15 14:33:36 +00:00