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
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
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
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
Add new APIs for select and delete with two rectangles.
Test: atest InputConnectionEndToEndTest
Test: atest StylusHandwritingest
Bug: 239783077
Change-Id: Ia7240d3eaac8610c774c3a4aad074a4b84b71521
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
Constructors for boxed primitives (Byte, Short, Integer, etc) have
long been deprecated. The preferred pattern is to use valueOf(). d8
fails to convert these instances in TypedProperties, most likely due
to the method complexity.
Bug: N/A
Test: Treehugger
Change-Id: Ib58ecc853e2bd1e5d53e9ec256ef0467aa051d9f
Revert "Update the class name of jank related atoms"
Revert "Add TEST_MAPPING file for checking jank atoms"
Revert submission 19784398-jank_presubmit
Reason for revert: see b/246684475
Reverted Changes:
I3880fa2bb:Enable presubmit for com.android.internal.jank
Ia1c4e3214:Add TEST_MAPPING file for checking jank atoms
If8a041770:Update the class name of jank related atoms
Change-Id: I7ab08b691f15647ca026e55e3cf115c9edcd9160
Previously we only auto enable factory system trust agents when the
devices is booted for the first time. This change added logic to detect
newly installed/enabled trust agents, and enable them if appropriate.
Fixes: b/243705470
Test: atest FrameworksMockingServicesTests:TrustManagerServiceTest
Change-Id: I3c345a44cfcfccc6f7e2507ba37e378b6b16bd98
In case seeing the unexpected fallback keyboard layout when focusing to
the window without an editor from the app has shown the IME.
Note that this behaviour change affects when the IME focus switching to
the next window with following configurations from an IME shown window:
1) SOFT_INPUT_STATE_UNCHANGED state without an editor
2) SOFT_INPUT_STATE_VISIBLE state without an editor
3) SOFT_INPUT_STATE_ALWAYS_VISIBLE state without an editor
Also, we guarded this platform behavior with DeviceConfig platform flag
in input method manager namespace.
Fix: 240701729
Bug: 243897178
Test: manual as issue steps
1) In Launcher, swiping up to enter all apps page.
2) Tap the search bar to show IME
3) Type "Keep" to show Keeps app's shortcut
4) Tap Keeps app's shortcut
5) Verify IME won't be shown on top of Keeps app's activity
(As the app set SOFT_INPUT_STATE_UNCHANGED without focusing an
editor by default)
Test: atest KeyboardVisbilityControltest#\
ImeInvisible_softInputAdjustNothingFromImeShownApp
Change-Id: I0c502bec5c5e21dabde08d610a9a1969c1229b08
We would like to have userdebug builds as close to user builds as
possible so don't enable jdwp by default on userdebug builds. This
means that we won't be able to attach a debugger to non-debuggable
builds in userdebug builds by default. However, this support can
be enabled by setting persist.debuggable.dalvik.vm.jdwp.enabled
property. Eng builds still enable jdwp by default.
Bug: 240410400
Test: System boots
Change-Id: Iad52254be9b9bc8c9deac8b3ad46e9db1b610160