Commit Graph

19647 Commits

Author SHA1 Message Date
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
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
Arthur Hung
828907a179 Fix potential stuck when enabled pointer location
Replace ArrayList by SparseArray to track each pointer by pointer id, so
we could avoid generating lots redundant PointerStates if the event has
an unexpected pointer id value (such as 0xFFFFFFFF).

This also fix text size and path width when the density has changed.

Bug: 243548346
Test: enabled pointer location
Change-Id: I0a5b04b3034f02c3b06803a90d9b97561afdd9e0
2022-09-15 04:24:55 +00:00
TreeHugger Robot
ac5cbb5ebe Merge "Add LongArrayMultiStateCounter.combineValues" 2022-09-15 02:29:34 +00:00
Mythri Alle
40e793c8f6 Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf am: 7d4c0fec93 am: 38333df066 am: 9b60a6d16d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: I1360a4a173047de833c28498c6cd964fc6295673
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 01:48:24 +00:00
Taran Singh
85a57bc143 Introduce Scribe Select/DeleteRangeGesture
Add new APIs for select and delete with two rectangles.

Test: atest InputConnectionEndToEndTest
Test: atest StylusHandwritingest
Bug: 239783077

Change-Id: Ia7240d3eaac8610c774c3a4aad074a4b84b71521
2022-09-15 00:36:40 +00:00
Dmitri Plotnikov
bb76e0fe02 Add LongArrayMultiStateCounter.combineValues
This method combines values into a smaller array
by using an index map.

Bug: 244623253
Test: atest com.android.internal.os.LongArrayMultiStateCounterTest
Change-Id: Ic35d30cc1f8765cd4e21366943da8291355a0047
2022-09-14 16:59:31 -07:00
Mythri Alle
9b60a6d16d Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf am: 7d4c0fec93 am: 38333df066
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: Ifff7c4493145d6e4c283b5e5df1a14d2b2b516b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 17:15:49 +00:00
Mythri Alle
7d4c0fec93 Merge "Revert "Don't enable jdwp by default on userdebug builds"" am: e6a7509dbc am: a9cc544dbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2216445

Change-Id: I47e373c97837014c838c6b13d4027965baeffb06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 16:20:27 +00:00
Pascal Muetschard
09055e3d4d Fixes a NPE in the DisplayResolutionTracker.
Bug: 246761682
Change-Id: I18f41166e2db92e9330c283600a492a3031b320f
2022-09-14 16:38:01 +02:00
Mythri Alle
50c258ca37 Revert "Don't enable jdwp by default on userdebug builds"
This reverts commit 1b989de3d7.

Reason for revert: Test failures:
https://b.corp.google.com/issues/246707198
https://buganizer.corp.google.com/issues/246616689

Change-Id: Ibeb5a92bcfe129df01f94bec2a41fea57303e53e
2022-09-14 09:57:03 +00:00