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
Disables pooling of SimpleIconFactory objects as it caches
density which could be changed in runtime in tests.
Test: presubmit
Bug: 245354130
Change-Id: I124e02e078ba7e6ed3a42b543698c2758e5d0c0e
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
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
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