Test: Automated tests should pass. Menu should render at correct size, shape, and position for 0-9 action items.
Bug: 121385065
Change-Id: I3448e7e333ea8fdaeb09a241249ce7521920169e
Adding a quota mechanism for deferring alarms based on their standby
buckets.
Number of times an app can receive alarms in an hour is now capped by a
maximum depending on their standby bucket, with the frequency getting
more restricted as the buckets move higher.
Restricting presubmit test to only run when AlarmManagerService changed,
as some tests can take a while to complete.
Test: atest android.util.LongArrayQueueTest
atest CtsAlarmManagerTestCases:AppStandbyTests
atest FrameworksMockingServicesTests:AlarmManagerServiceTest
Bug: 122974477
Change-Id: Icbd5bbb8aeef91b543d09acee553fd0aa3a23f30
- Originally, we had two parameters "total active jobs=6" and "max FG jobs=4",
but because of how we counted jobs against those, sometimes we ran at most 6
jobs and sometimes 10, depending on how pending jobs are queued. Now we made it
consistent.
- The new parameters that control it are:
1. Max total jobs
2. Max BG jobs
3. Min BG jobs
* This is used to ensure a certain number of BG jobs should run
even when the TOP app keeps scheduling new jobs and consume
the max total jobs.
(4. Screen off rampup delay.)
We have these 3 values for each "memory trim level" and "screen on/off".
The intention is that when the screen is off, we should run more jobs. However,
when the screen is off, we don't increase the concurrency right away, but
we'll do so after the rampup delay.
- The current max values are based on the lenient side of the previous values,
but with a slightly lowered the max job count when the screen is on.
Under NOTMAL memory trim level, when the screen is ON:
* 8 total jobs, 6 max BG jbos.
Under NOTMAL memory trim level, when the screen is OFF:
* 10 total jobs, 6 max BG jbos.
Bug: 111360323
Test: Manual test using "adb shell requestsync"
Test: atest JobCountTrackerTest MaxJobCountsTest
Test: atest CtsJobSchedulerTestCases (following failed; all known issues)
android.jobscheduler.cts.BatteryConstraintTest#testBatteryNotLowConstraintFails_withoutPower
android.jobscheduler.cts.BatteryConstraintTest#testChargingConstraintExecutes
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_metered
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_withMobile
android.jobscheduler.cts.ConnectivityConstraintTest#testUnmeteredConstraintFails_withMobile
android.jobscheduler.cts.JobThrottlingTest#testBackgroundConnectivityJobsThrottled
Change-Id: I0a9de5832b946cb1cac8a69aedbb0cb59251ea47
This API will be used by Android Studio layout inspector to
query where a given resource attribute originated from to allow
developers to have an easier way to find what needs to be changed
to affect a given resource attribute.
Test: CTS added in the topic
Bug: 111439551
Change-Id: Ifbb52b39912ed0444030a86164290a1cd4155250
This includes laying down some groundwork to make the remaining migrations
more straightforward
Bug: 110557011
Test: atest RoleManagerTest && atest SmsManagerTest
Change-Id: Ie96abd73751d10f521756c9dcdab2a5710ca2045
1. Enables image wallpaper in AOD.
2. Enables a mask with 70% black scrim and vignette effects.
3. Add feature flag in developer options which is default disabled.
Bug: 111861907
Bug: 118470430
Test: Manually test the flow
Test: runtest systemui
Test: atest ImageWallpaperTransformerTest
Test: atest AodMaskViewTest
Change-Id: Iff2642d52264e88012f4759842a59aaf5bc45b38
Current description for android.util.Range says ""All ranges are bounded, and the left side of the
range is always {@code >=} * the right side of the range." It should have been "<=" there instead
of ">=". So, corrected that in this CL.
Bug: 122271254
Test: make offline-sdk-docs
Modified description was visible correctly.
Change-Id: I1eaa94210b39813b3e72ac2a0834bc0b466a99a5
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.
Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.
For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.
Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.
Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.
For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.
Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
Implement controlWindowInsetsAnimation
Based on the leashes we have on the client, and the insets the
client has requested, we are able to move the surfaces around
such that the resulting insets will match what the client
requested.
Bug: 118118435
Change-Id: I0616e53455a6544aaf374c1b0eb10e258aced21d
We'll use different max numbers for screen on and screen off,
and the semantics will be different from that of P (since the previous
code was broken), so I'm just adding a new set of configs.
Also add wrapper classes for config values.
Bug: 111360323
Test: dumpsys jobscheduler contains the following sections.
max_job_total_on_normal=4
max_job_bg_on_normal=2
max_job_total_on_moderate=4
max_job_bg_on_moderate=1
max_job_total_on_low=4
max_job_bg_on_low=1
max_job_total_on_critical=2
max_job_bg_on_critical=1
max_job_total_off_normal=8
max_job_bg_off_normal=4
max_job_total_off_moderate=6
max_job_bg_off_moderate=4
max_job_total_off_low=4
max_job_bg_off_low=1
max_job_total_off_critical=2
max_job_bg_off_critical=1
Change-Id: I46004a1633494c0498681f4ee1d0045d3c3ab4d7
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.
Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.
Bug: 119026403
Test: build only
Exempt-From-Owner-Approval: Trivial import change
Merged-In: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
Change-Id: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
(cherry picked from commit 164394db8e)
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.
Bug: 119026403
Test: build only
Exempt-From-Owner-Approval: Trivial import change
Change-Id: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
New method has been requested by Setup Wizard.
Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f02)
1.Remove feature flag and let Emergency Dialer Shortcut feature always
enabled.
2.Add feature flag for Safety Hub (the bug ID to clean up this feature flag is b/118848485).
Test: Manually
Bug: 117128459
Bug: 118809382
Change-Id: I0a3819629bc579d93c682451abdf271d0b36bf59
New method has been requested by Setup Wizard.
Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9