A reference to the callback was being removed while still
needed. Instead use a local copy for posted callback.
Bug: 12345678
Test: atest ScrollCaptureConnectionTest#testCloseWhileActive
Change-Id: I3a11ac86a8c291972f442ebce962ba8a3a1ddee6
Default 60ms after next animation pulse, configurable with:
adb shell settings put global screenshot.scroll_capture_delay ##
Bug: 173700533
Test: manual - long screenshot Play Store/Google Photos
observe that images are fully visible when captured
Change-Id: I84e0b1fd6b94d3ff7177fa00166da40b30f311cf
Add limits so that individual packages can't run more than X number
of jobs concurrently (so that we allow other apps to run their jobs
as well). For now, limit packages to 3 concurrent expedited jobs and
8 concurrent regular jobs. TOP apps are not subject to this restriction,
and the restriction also only comes into effect if there are more jobs
running+pending than slots available.
Bug: 171305774
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: Id9d6f118b078ab54e3abafffd7d0ed00795d19c6
If a method is called by adb command "service call"
with no parameters. It will cause to crash because
of a null object reference.
Add a null check for them to avoid system server crash.
Bug: 172885426
Test: FrameworksNetTest
adb shell service call connectivity #
Change-Id: I8748fc5c6a7a6e82db3581e3026a3f75909a357e
Bug: 184751735
This makes some small improvements to the snapshot statistics.
The change emphasizes long rebuild times over short snapshot
lifetimes.
1. The pm_snapshot_rebuild "elapsed" field is renamed "lifetime".
This is the number of times the previous snapshot (the snapshot
that was replaced by this rebuild) was used.
2. The pm_snapshot_stats cumulative build time is now a long.
Wrap-around of the 32-bit int was seen during testing. Also, the
"quick_rebuilds" has been renamed to "short_lived".
3. pm_snapshot_rebuild events are only logged for long rebuild times.
Short lifetimes are still counted but do not generate their own
events. Also, any rebuild time that is greater than the current
maximum rebuild time is logged, even if the number of logged events
is greater than the limit.
4. Snapshot statistics are included in the package manager dump. Two
sets of statistics are presented: there is a set of 10, rolling
over every minute, and a set of two, rolling over every week.
The snapshot statistics are part of the default "package" dumpsys
output and can be selected individually with "package snapshot".
5. The SnapshotStatistics class is now in its own file. At the
momement, the class has code that is specific to
PackageManagerService, but it should be possible to make the class
more generic in the future, if desired.
See the bug for sample output.
Test: manual steps -
* Create a bug report and verify that the new statistics are present.
* Verify that pm_snapshot_rebuild events are generated for long
rebuild times.
Change-Id: I3197d6b76e86ecfcdaff36f47e8a6b5d4a6e456d
Previously Winscope considered only the `isVisible` property to determine if the window was visible or not. This failed in cases such as `com.google.android.googlequicksearchbox/android.app.ContextImpl` when launching apps, where `isVisible=true` and `alpha=0`
Bug: 181630910
Bug: 182720234
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I75fab0c6de02e43265002986901353f8e230baa5
Allow IME to control the applications and AutofillService to display
inline suggestions in the inline strip.
Bug: 184731683
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ifa99e51d93e844f5c28861e4466c2433f92d7881
* If the password quality is NUMERIC
or NUMERIC_COMPLEX, the credential
type should be CREDENTIAL_TYPE_PIN
Bug: 184103377
Test: atest com.android.server.devicepolicy.PasswordPolicyTest
atest android.app.admin.PasswordMetricsTest
atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.ManagedProfilePasswordTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.password
CtsVerifier > Device owner tests > policy transparency test
> set password quality
Change-Id: Ibad35d22c34b6cd9ed34b2e671b38503becd7da5
Allow bootanimation to play if the boot is quiescent and the system
property ro.bootanim.quiescent.enabled is set to true.
This allows the bootanimation to become visible if the display is
turned on during the bootanimation. If OEMs want this behavior and the
device implements suppression of video/audio during quiescent boot,
they can set the system property
ro.bootanim.quiescent.enabled.
Bug: 185118020
Test: PRODUCT_PRODUCT_PROPERTIES += ro.bootanim.quiescent.enabled=true
adb reboot quiescent
Spam `adb shell input keyevent POWER` during boot
Test: Repeat the above test with the property set to 0
Change-Id: I54a4ad552704106ca06c4992fed4a2d501aa3fa5
As part of Error Prone checks, we're now placing these annotations
directly on AIDL interfaces. However, many portions of the OS are
built using prebuilt AIDL files, where RetentionPolicy.SOURCE
annotations have been stripped away.
To retain these annotations for aiding permission enforcement
checks, this change upgrades to RetentionPolicy.CLASS.
Bug: 183626724
Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true
Change-Id: Ic88cbf470efc1d50926fe2ff16f0e2f6cd7b1173
* Check whether the caller is system or has
permission to set the profile owner before
checking whether the package exists on
device.
Manual testing
* Call DPMS setProfileOwner with an installed
package but not as the system caller
* Call DPMS setProfileOwner with an uninstalled
package and not as the system caller
* Both calls should give the same error message
and logs.
Bug: 184525740
Test: manual testing
atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.ProfileOwnerTest
Change-Id: I24e4d33442b0cf9baae290c0dbde45d725843055