Pre-emptively update PageIndicator's numPages before measuring in
QSPanel so that views will be appropriately measured. Previously, new
PageIndicator child views would be added in the middle of a QSPanel layout pass
after already being measured, so the new PageIndicator child wouldn't be
measured.
Test: manually add and remove new QS tiles. rotate between landscape +
portrait modes. observe the PageIndicator is correct.
Fixes: 157542221
Change-Id: Ic1bb29039dd12993a50758bf48a4ad792d8cdfc3
Use the fixed value to locate the center of icon instead
of use value of density. Because the value of density will
different between the device according the resolution.
Bug: 156689249
Test: build pass
Change-Id: I6d3a53e68058232871dd281ec4736179090a6580
Find a issue that when a background app crashed, the top focus
task would also changed because of AMS trigger resumeTopActivities.
However there should be nothing changed.
For some tasks like home or split screen, because they can be more
than one layer of task-to-container structure, so when adjusting
focus task, we should move the whole chain to the top of it's
container.
Also update preferred top focusable stack in
TaskDisplayArea#positionChildAt so the API can be more identical.
Fixes: 157393169
Test: atest ActivityRecordTests
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest MultiDisplayPolicyTests
Change-Id: Ibf86f375ac91a50a013cfa7a7ea19e571a0a0d61
Fixed rotation transform was finished and continued
to update the orientation when transferring the
starting window, which was before the activity ready to
show and caused flickers. This can happen while trampoline
activities were started during app launch.
This also fixes other flickers that happens when the
fixed rotation launching app's animation finished
before other associated activities.
Bug: 157446341
Test: atest DisplayContentTests AppWindowTokenTests
Change-Id: Ibeb50edc7dfd9dddffe2c420fde92c1ebb70ed37
1. decouple Bubble from NotificationEntry
2. save title from Bubble into BubbleEntity
3. copied boolean values from NotificationEntry into Bubble for UI
variants (e.g. isVisuallyInterruptive, isClearable,
shouldSuppressNotificationDot... e.t.c)
Bug: 151474524
Change-Id: I606c6ff93b3dc3867b4d0a6129d7117d9999c170
Test: manual
Don't skip buckets with MULTIPLE_SKIPPED_BUCKETS reason for pushed
metric that is not diffed.
Fixes: 156690892
Test: atest --rerun-until-failure=100
CtsStatsdHostTestCases: android.cts.statsd.metric.ValueMetricsTests#testValueMetriccts.statsd.metric.ValueMetricsTests#testValueMetric
Change-Id: Ic14198d38ab63d99700a4df9e9e7ae04181f5139
Add hidden API to support allowed networks type for
specific reason like power.
Bug: 156709797
Test: system test
Change-Id: If4424d7d94ac26ad31725a1658dad5751d0d2629