summaryrefslogtreecommitdiff
path: root/apex/jobscheduler
AgeCommit message (Collapse)Author
2021-03-11Add support for a hw_timeout_multiplier system property.Peter Collingbourne
In order to test the platform in emulators that are orders of magnitude slower than real hardware we need to be able to avoid hitting timeouts that prevent it from coming up properly. For this purpose introduce a system property, ro.hw_timeout_multiplier, which may be set to an integer value that acts as a multiplier for various timeouts on the system. Bug: 178231152 Change-Id: I6d7710beed0c4c5b1720e74e7abe3a586778c678 Merged-In: I6d7710beed0c4c5b1720e74e7abe3a586778c678
2021-02-21Merge ab/7061308 into stage.Xin Li
Bug: 180401296 Merged-In: I4bf82035631ccff6d5a6144d6d9b1d203b076851 Change-Id: I1b5f3a672a55eaabba0f5389bab110b395553559
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to frameworks/baseBob Badour
Added SPDX-license-identifier-Apache-2.0 to: apct-tests/perftests/autofill/Android.bp apct-tests/perftests/blobstore/Android.bp apct-tests/perftests/core/Android.bp apct-tests/perftests/core/apps/overlay/Android.bp apct-tests/perftests/core/apps/reources_manager/Android.bp apct-tests/perftests/core/jni/Android.bp apct-tests/perftests/multiuser/Android.bp apct-tests/perftests/multiuser/apps/dummyapp/Android.bp apct-tests/perftests/packagemanager/Android.bp apct-tests/perftests/packagemanager/apps/query-all/Android.bp apct-tests/perftests/textclassifier/Android.bp apct-tests/perftests/utils/Android.bp apct-tests/perftests/windowmanager/Android.bp apex/Android.bp apex/blobstore/framework/Android.bp apex/blobstore/service/Android.bp apex/jobscheduler/framework/Android.bp apex/jobscheduler/service/Android.bp apex/media/Android.bp apex/media/aidl/Android.bp apex/media/framework/Android.bp cmds/am/Android.bp cmds/app_process/Android.bp cmds/appops/Android.bp cmds/appwidget/Android.bp cmds/backup/Android.bp cmds/bmgr/Android.bp cmds/bootanimation/Android.bp cmds/bu/Android.bp cmds/content/Android.bp cmds/dpm/Android.bp cmds/hid/Android.bp cmds/hid/jni/Android.bp cmds/idmap2/Android.bp cmds/ime/Android.bp cmds/incident/Android.bp cmds/incident_helper/Android.bp cmds/incidentd/Android.bp cmds/input/Android.bp cmds/interrupter/Android.bp cmds/locksettings/Android.bp cmds/pm/Android.bp cmds/requestsync/Android.bp cmds/screencap/Android.bp cmds/sm/Android.bp cmds/svc/Android.bp cmds/telecom/Android.bp cmds/uiautomator/Android.bp cmds/uiautomator/cmds/uiautomator/Android.bp cmds/uiautomator/instrumentation/Android.bp cmds/uiautomator/library/Android.bp cmds/vr/Android.bp cmds/wm/Android.bp config/Android.bp core/java/android/service/wallpaper/Android.bp core/jni/Android.bp core/sysprop/Android.bp core/tests/BroadcastRadioTests/Android.bp core/tests/ConnectivityManagerTest/Android.bp core/tests/PackageInstallerSessions/Android.bp core/tests/PlatformCompatFramework/Android.bp core/tests/bandwidthtests/Android.bp core/tests/benchmarks/Android.bp core/tests/bluetoothtests/Android.bp core/tests/bugreports/Android.bp core/tests/coretests/Android.bp core/tests/coretests/BinderDeathRecipientHelperApp/Android.bp core/tests/coretests/BinderProxyCountingTestApp/Android.bp core/tests/coretests/BinderProxyCountingTestService/Android.bp core/tests/coretests/BstatsTestApp/Android.bp core/tests/coretests/DisabledTestApp/Android.bp core/tests/coretests/EnabledTestApp/Android.bp core/tests/coretests/aidl/Android.bp core/tests/coretests/apks/Android.bp core/tests/coretests/apks/install/Android.bp core/tests/coretests/apks/install_bad_dex/Android.bp core/tests/coretests/apks/install_complete_package_info/Android.bp core/tests/coretests/apks/install_decl_perm/Android.bp core/tests/coretests/apks/install_jni_lib/Android.bp core/tests/coretests/apks/install_jni_lib_open_from_apk/Android.bp core/tests/coretests/apks/install_loc_auto/Android.bp core/tests/coretests/apks/install_loc_internal/Android.bp core/tests/coretests/apks/install_loc_sdcard/Android.bp core/tests/coretests/apks/install_loc_unspecified/Android.bp core/tests/coretests/apks/install_use_perm_good/Android.bp core/tests/coretests/apks/install_uses_feature/Android.bp core/tests/coretests/apks/install_verifier_bad/Android.bp core/tests/coretests/apks/install_verifier_good/Android.bp core/tests/coretests/apks/keyset/Android.bp core/tests/coretests/apks/locales/Android.bp core/tests/coretests/apks/overlay_config/Android.bp core/tests/coretests/apks/version/Android.bp core/tests/coretests/apks/version_nosys/Android.bp core/tests/featureflagtests/Android.bp core/tests/hdmitests/Android.bp core/tests/hosttests/test-apps/AutoLocTestApp/Android.bp core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/ExternalLocAllPermsTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocPermsFLTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocTestApp/Android.bp core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/ExternalLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/ExternalSharedPerms/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsBT/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/Android.bp core/tests/hosttests/test-apps/ExternalSharedPermsFL/Android.bp core/tests/hosttests/test-apps/InternalLocTestApp/Android.bp core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/Android.bp core/tests/hosttests/test-apps/NoLocTestApp/Android.bp core/tests/hosttests/test-apps/NoLocVersionedTestApp_v1/Android.bp core/tests/hosttests/test-apps/NoLocVersionedTestApp_v2/Android.bp core/tests/hosttests/test-apps/SharedUid/32/Android.bp core/tests/hosttests/test-apps/SharedUid/32/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/64/Android.bp core/tests/hosttests/test-apps/SharedUid/64/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/dual/Android.bp core/tests/hosttests/test-apps/SharedUid/dual/jni/Android.bp core/tests/hosttests/test-apps/SharedUid/java_only/Android.bp core/tests/hosttests/test-apps/SimpleTestApp/Android.bp core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/Android.bp core/tests/hosttests/test-apps/UpdateExtToIntLocTestApp_v2_int/Android.bp core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v1_ext/Android.bp core/tests/hosttests/test-apps/UpdateExternalLocTestApp_v2_none/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_Auto/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_External/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_Internal/Android.bp core/tests/hosttests/test-apps/VersatileTestApp_None/Android.bp core/tests/mockingcoretests/Android.bp core/tests/notificationtests/Android.bp core/tests/overlaytests/device/Android.bp core/tests/overlaytests/device/test-apps/AppOverlayOne/Android.bp core/tests/overlaytests/device/test-apps/AppOverlayTwo/Android.bp core/tests/overlaytests/device/test-apps/FrameworkOverlay/Android.bp core/tests/overlaytests/host/Android.bp core/tests/overlaytests/remount/Android.bp core/tests/overlaytests/remount/test-apps/Overlay/Android.bp core/tests/overlaytests/remount/test-apps/SharedLibrary/Android.bp core/tests/overlaytests/remount/test-apps/SharedLibraryOverlay/Android.bp core/tests/overlaytests/remount/test-apps/Target/Android.bp core/tests/packagemanagertests/Android.bp core/tests/privacytests/Android.bp core/tests/screenshothelpertests/Android.bp core/tests/systemproperties/Android.bp core/tests/utillib/Android.bp core/tests/utiltests/Android.bp core/tests/utiltests/jni/Android.bp core/tests/uwbtests/Android.bp core/xsd/Android.bp core/xsd/vts/Android.bp data/etc/Android.bp data/etc/car/Android.bp data/fonts/Android.bp data/keyboards/Android.mk drm/jni/Android.bp errorprone/Android.bp graphics/proto/Android.bp keystore/Android.bp keystore/tests/Android.bp libs/WindowManager/Jetpack/Android.bp libs/WindowManager/Shell/Android.bp libs/WindowManager/Shell/tests/Android.bp libs/androidfw/Android.bp libs/androidfw/fuzz/resourcefile_fuzzer/Android.bp libs/hostgraphics/Android.bp libs/incident/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/protoutil/Android.bp libs/services/Android.bp libs/storage/Android.bp libs/usb/tests/AccessoryChat/Android.bp libs/usb/tests/AccessoryChat/accessorychat/Android.bp location/lib/Android.bp location/tests/Android.bp location/tests/locationtests/Android.bp lowpan/tests/Android.bp media/Android.bp media/java/Android.bp media/java/android/media/tv/tunerresourcemanager/Android.bp media/jni/Android.bp media/jni/audioeffect/Android.bp media/jni/soundpool/Android.bp media/jni/soundpool/tests/Android.bp media/lib/remotedisplay/Android.bp media/lib/signer/Android.bp media/lib/tvremote/Android.bp media/lib/tvremote/tests/Android.bp media/mca/filterfw/Android.bp media/mca/filterfw/native/Android.bp media/mca/filterpacks/Android.bp media/mca/samples/CameraEffectsRecordingSample/Android.bp media/mca/tests/Android.bp media/native/midi/Android.bp media/packages/BluetoothMidiService/Android.bp media/packages/BluetoothMidiService/tests/unit/Android.bp media/tests/AudioPolicyTest/Android.bp media/tests/CameraBrowser/Android.bp media/tests/EffectsTest/Android.bp media/tests/MediaDump/Android.bp media/tests/MediaFrameworkTest/Android.bp media/tests/MediaRouter/Android.bp media/tests/MtpTests/Android.bp media/tests/ScoAudioTest/Android.bp media/tests/SoundPoolTest/Android.bp media/tests/TunerTest/Android.bp media/tests/audiotests/Android.bp media/tests/players/Android.bp mime/Android.bp native/android/Android.bp native/graphics/jni/Android.bp native/webview/loader/Android.bp nfc-extras/Android.bp nfc-extras/tests/Android.bp packages/AppPredictionLib/Android.bp packages/BackupEncryption/Android.bp packages/BackupEncryption/test/robolectric-integration/Android.bp packages/BackupEncryption/test/robolectric/Android.bp packages/BackupEncryption/test/unittest/Android.bp packages/BackupRestoreConfirmation/Android.bp packages/CarSystemUI/Android.bp packages/CarrierDefaultApp/Android.bp packages/CarrierDefaultApp/tests/unit/Android.bp packages/CompanionDeviceManager/Android.bp packages/Connectivity/framework/Android.bp packages/Connectivity/service/Android.bp packages/CtsShim/Android.bp packages/CtsShim/build/Android.bp packages/CtsShim/build/jni/Android.bp packages/DynamicSystemInstallationService/Android.bp packages/DynamicSystemInstallationService/tests/Android.bp packages/EasterEgg/Android.bp packages/EncryptedLocalTransport/Android.bp packages/ExtShared/Android.bp packages/ExternalStorageProvider/Android.bp packages/ExternalStorageProvider/tests/Android.bp packages/FakeOemFeatures/Android.bp packages/FusedLocation/Android.bp packages/InputDevices/Android.bp packages/LocalTransport/Android.bp packages/PackageInstaller/Android.bp packages/PrintRecommendationService/Android.bp packages/PrintSpooler/Android.bp packages/PrintSpooler/jni/Android.bp packages/PrintSpooler/tests/outofprocess/Android.bp packages/SettingsLib/ActionBarShadow/Android.bp packages/SettingsLib/ActionButtonsPreference/Android.bp packages/SettingsLib/AdaptiveIcon/Android.bp packages/SettingsLib/Android.bp packages/SettingsLib/AppPreference/Android.bp packages/SettingsLib/BarChartPreference/Android.bp packages/SettingsLib/DisplayDensityUtils/Android.bp packages/SettingsLib/EntityHeaderWidgets/Android.bp packages/SettingsLib/HelpUtils/Android.bp packages/SettingsLib/LayoutPreference/Android.bp packages/SettingsLib/ProgressBar/Android.bp packages/SettingsLib/RadioButtonPreference/Android.bp packages/SettingsLib/RestrictedLockUtils/Android.bp packages/SettingsLib/SchedulesProvider/Android.bp packages/SettingsLib/SearchProvider/Android.bp packages/SettingsLib/SearchWidget/Android.bp packages/SettingsLib/SettingsSpinner/Android.bp packages/SettingsLib/SettingsTheme/Android.bp packages/SettingsLib/Tile/Android.bp packages/SettingsLib/Utils/Android.bp packages/SettingsLib/search/Android.bp packages/SettingsLib/tests/integ/Android.bp packages/SettingsLib/tests/robotests/Android.bp packages/SettingsProvider/Android.bp packages/SharedStorageBackup/Android.bp packages/Shell/Android.bp packages/Shell/tests/Android.bp packages/SimAppDialog/Android.bp packages/SoundPicker/Android.bp packages/StatementService/Android.bp packages/SystemUI/Android.bp packages/SystemUI/plugin/Android.bp packages/SystemUI/plugin/ExamplePlugin/Android.bp packages/SystemUI/plugin_core/Android.bp packages/SystemUI/shared/Android.bp packages/VpnDialogs/Android.bp packages/WAPPushManager/Android.bp packages/WAPPushManager/tests/Android.bp packages/WallpaperBackup/Android.bp packages/WallpaperCropper/Android.bp packages/overlays/Android.mk packages/overlays/tests/Android.bp packages/services/PacProcessor/Android.bp packages/services/PacProcessor/jni/Android.bp packages/services/Proxy/Android.bp proto/Android.bp rs/jni/Android.mk samples/demo/haptic-assessment/Android.bp sax/tests/saxtests/Android.bp services/Android.bp services/accessibility/Android.bp services/appprediction/Android.bp services/appwidget/Android.bp services/autofill/Android.bp services/backup/Android.bp services/backup/backuplib/Android.bp services/companion/Android.bp services/contentcapture/Android.bp services/contentsuggestions/Android.bp services/core/Android.bp services/core/java/com/android/server/vcn/Android.bp services/core/jni/Android.bp services/core/xsd/Android.bp services/core/xsd/vts/Android.bp services/coverage/Android.bp services/devicepolicy/Android.bp services/incremental/Android.bp services/midi/Android.bp services/net/Android.bp services/people/Android.bp services/print/Android.bp services/profcollect/Android.bp services/restrictions/Android.bp services/robotests/Android.bp services/robotests/backup/Android.bp services/systemcaptions/Android.bp services/tests/PackageManagerComponentOverrideTests/Android.bp services/tests/PackageManagerServiceTests/host/Android.bp services/tests/PackageManagerServiceTests/host/test-apps/Android.bp services/tests/mockingservicestests/Android.bp services/tests/rescueparty/Android.bp services/tests/servicestests/Android.bp services/tests/servicestests/aidl/Android.bp services/tests/servicestests/apks/Android.bp services/tests/servicestests/apks/install-split-base/Android.bp services/tests/servicestests/apks/install-split-feature-a/Android.bp services/tests/servicestests/apks/install_intent_filters/Android.bp services/tests/servicestests/apks/install_uses_sdk/Android.bp services/tests/servicestests/test-apps/ConnTestApp/Android.bp services/tests/servicestests/test-apps/JobTestApp/Android.bp services/tests/servicestests/test-apps/PackageParserApp/Android.bp services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp services/tests/servicestests/test-apps/SimpleServiceTestApp/Android.bp services/tests/servicestests/test-apps/SuspendTestApp/Android.bp services/tests/shortcutmanagerutils/Android.bp services/tests/uiservicestests/Android.bp services/tests/wmtests/Android.bp services/usage/Android.bp services/usb/Android.bp services/voiceinteraction/Android.bp services/wifi/Android.bp startop/apps/test/Android.bp startop/iorap/Android.bp startop/iorap/functional_tests/Android.bp startop/iorap/stress/Android.bp startop/iorap/tests/Android.bp startop/view_compiler/Android.bp startop/view_compiler/dex_builder_test/Android.bp test-base/hiddenapi/Android.bp test-mock/Android.bp test-runner/tests/Android.bp tests/AccessibilityEventsLogger/Android.bp tests/AccessoryDisplay/common/Android.bp tests/AccessoryDisplay/sink/Android.bp tests/AccessoryDisplay/source/Android.bp tests/ActivityManagerPerfTests/stub-app/Android.bp tests/ActivityManagerPerfTests/test-app/Android.bp tests/ActivityManagerPerfTests/tests/Android.bp tests/ActivityManagerPerfTests/utils/Android.bp tests/ActivityTests/Android.bp tests/ActivityViewTest/Android.bp tests/AmSlam/Android.bp tests/ApkVerityTest/Android.bp tests/ApkVerityTest/ApkVerityTestApp/Android.bp tests/ApkVerityTest/block_device_writer/Android.bp tests/AppLaunch/Android.bp tests/AppLaunchWear/Android.bp tests/AppResourcesLoaders/Android.bp tests/AppResourcesLoaders/Overlay/Android.bp tests/Assist/Android.bp tests/AutoVerify/app1/Android.bp tests/AutoVerify/app2/Android.bp tests/AutoVerify/app3/Android.bp tests/AutoVerify/app4/Android.bp tests/BackgroundDexOptServiceIntegrationTests/Android.bp tests/BandwidthTests/Android.bp tests/BatteryWaster/Android.bp tests/BiDiTests/Android.bp tests/BlobStoreTestUtils/Android.bp tests/BootImageProfileTest/Android.bp tests/BrowserPowerTest/Android.bp tests/Camera2Tests/SmartCamera/SimpleCamera/jni/Android.bp tests/CameraPrewarmTest/Android.bp tests/Codegen/Android.bp tests/Compatibility/Android.bp tests/CoreTests/android/Android.bp tests/DataIdleTest/Android.bp tests/DozeTest/Android.bp tests/DpiTest/Android.bp tests/DynamicCodeLoggerIntegrationTests/Android.mk tests/FeatureSplit/base/Android.bp tests/FeatureSplit/feature1/Android.bp tests/FeatureSplit/feature2/Android.bp tests/FixVibrateSetting/Android.bp tests/FlickerTests/Android.bp tests/FlickerTests/test-apps/Android.bp tests/FlickerTests/test-apps/flickerapp/Android.bp tests/FrameworkPerf/Android.bp tests/GamePerformance/Android.bp tests/GridLayoutTest/Android.bp tests/HierarchyViewerTest/Android.bp tests/HugeBackup/Android.bp tests/HwAccelerationTest/Android.bp tests/Internal/Android.bp tests/JankBench/Android.bp tests/JobSchedulerPerfTests/Android.bp tests/JobSchedulerTestApp/Android.bp tests/LargeAssetTest/Android.bp tests/LegacyAssistant/Android.bp tests/LocalizationTest/Android.bp tests/LocationTracker/Android.bp tests/LotsOfApps/Android.bp tests/LowStorageTest/Android.bp tests/ManagedProfileLifecycleStressTest/Android.bp tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp tests/MemoryUsage/Android.bp tests/MirrorSurfaceTest/Android.bp tests/NativeProcessesMemoryTest/Android.bp tests/NetworkSecurityConfigTest/Android.bp tests/NullHomeTest/Android.bp tests/OdmApps/Android.bp tests/OdmApps/app/Android.bp tests/OdmApps/priv-app/Android.bp tests/OneMedia/Android.bp tests/PackageWatchdog/Android.bp tests/PlatformCompatGating/Android.bp tests/PlatformCompatGating/test-rules/Android.bp tests/ProtoInputStreamTests/Android.bp tests/RemoteDisplayProvider/Android.bp tests/RenderThreadTest/Android.bp tests/RollbackTest/Android.bp tests/SerialChat/Android.bp tests/ServiceCrashTest/Android.bp tests/SharedLibrary/client/Android.bp tests/SharedLibrary/lib/Android.bp tests/ShowWhenLockedApp/Android.bp tests/SmokeTest/Android.bp tests/SmokeTest/tests/Android.bp tests/SmokeTestApps/Android.bp tests/SoundTriggerTestApp/Android.bp tests/Split/Android.bp tests/StagedInstallTest/Android.bp tests/StatusBar/Android.bp tests/SurfaceComposition/Android.bp tests/SurfaceControlViewHostTest/Android.bp tests/SystemMemoryTest/device/Android.bp tests/SystemMemoryTest/host/Android.bp tests/SystemUIDemoModeController/Android.bp tests/TaskOrganizerTest/Android.bp tests/TelephonyCommonTests/Android.bp tests/TouchLatency/Android.bp tests/TransformTest/Android.bp tests/TtsTests/Android.bp tests/UiBench/Android.bp tests/UsageReportingTest/Android.bp tests/UsageStatsPerfTests/Android.bp tests/UsageStatsTest/Android.bp tests/UsbHostExternalManagmentTest/AoapTestDevice/Android.bp tests/UsbHostExternalManagmentTest/AoapTestHost/Android.bp tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/Android.bp tests/UsbManagerTests/Android.bp tests/UsbManagerTests/lib/Android.bp tests/UsbTests/Android.bp tests/UsesFeature2Test/Android.bp tests/VectorDrawableTest/Android.bp tests/VoiceEnrollment/Android.bp tests/VoiceInteraction/Android.bp tests/WallpaperTest/Android.bp tests/WindowAnimationJank/Android.bp tests/WindowInsetsTests/Android.bp tests/appwidgets/AppWidgetHostTest/Android.bp tests/appwidgets/AppWidgetProviderTest/Android.bp tests/backup/Android.mk tests/benchmarks/Android.bp tests/libs-permissions/Android.bp tests/net/Android.bp tests/net/common/Android.bp tests/net/deflake/Android.bp tests/net/integration/Android.bp tests/net/jni/Android.bp tests/net/smoketest/Android.bp tests/notification/Android.bp tests/permission/Android.bp tests/privapp-permissions/Android.bp tests/testables/Android.bp tests/testables/tests/Android.bp tests/utils/StubIME/Android.bp tests/utils/hostutils/Android.bp tests/utils/testutils/Android.bp tests/vcn/Android.bp tools/aapt/Android.bp tools/aapt2/Android.bp tools/aapt2/integration-tests/AutoVersionTest/Android.bp tools/aapt2/integration-tests/BasicTest/Android.bp tools/aapt2/integration-tests/MergeOnlyTest/LeafLib/Android.mk tools/aapt2/integration-tests/MergeOnlyTest/LocalLib/Android.mk tools/aapt2/integration-tests/NamespaceTest/LibOne/Android.mk tools/aapt2/integration-tests/NamespaceTest/LibTwo/Android.mk tools/aapt2/integration-tests/StaticLibTest/App/Android.bp tools/aapt2/integration-tests/StaticLibTest/LibOne/Android.bp tools/aapt2/integration-tests/StaticLibTest/LibTwo/Android.bp tools/aapt2/integration-tests/SymlinkTest/Android.bp tools/bit/Android.bp tools/codegen/Android.bp tools/dump-coverage/Android.bp tools/incident_report/Android.bp tools/incident_section_gen/Android.bp tools/lock_agent/Android.bp tools/locked_region_code_injection/Android.bp tools/obbtool/Android.bp tools/powermodel/Android.bp tools/preload-check/Android.bp tools/preload-check/device/Android.bp tools/preload/loadclass/Android.bp tools/processors/staledataclass/Android.bp tools/processors/view_inspector/Android.bp tools/protologtool/Android.bp tools/sdkparcelables/Android.bp tools/split-select/Android.bp tools/streaming_proto/Android.bp tools/validatekeymaps/Android.bp wifi/java/Android.bp wifi/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: libs/hwui/Android.bp native/webview/plat_support/Android.bp obex/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-CC-BY SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C legacy_unencumbered to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_unencumbered to: core/java/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0 to: test-base/Android.bp test-runner/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL to: core/res/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0 to: libs/usb/Android.bp libs/usb/tests/accessorytest/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: tools/preload/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: api/Android.bp boot/Android.bp cmds/device_config/Android.bp cmds/settings/Android.bp core/api/Android.bp core/tests/coretests/certs/Android.bp core/tests/overlaytests/remount/test-apps/certs/Android.bp core/tests/overlaytests/remount/test-apps/overlaid_apex/Android.bp core/tests/overlaytests/remount/test-apps/overlay_apex/Android.bp libs/tracingproxy/Android.bp services/startop/Android.bp test-legacy/Android.mk tests/ApkVerityTest/testdata/Android.bp tests/TransitionTests/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ic44d662936d1ff0cae7fbe915932b37aa4e4869a Merged-in: I6e9103c3275cb2e6df5dc586588eccd7d2ab6b06
2021-02-04[CS04]Remove hidden API usage of NetworkCapabilitieslifr
The connection service will become the mainline module. The mutating NetworkCapabilities is deprecated, and the NetworkCapabilities should be built through their Builder instead. Bug: 170598012 Test: atest FrameworksMockingServicesTests:ConnectivityControllerTest Test: atest CtsJobSchedulerTestCases Change-Id: I931f6f4cedd89a3ff7c811266c68c00f26e8ce43
2021-01-29Limit build visibility of modules in apex/...Anton Hansson
This changes the default visibility of soong modules in this directory to __subpackages__, from the current public default. This helps accidental dependencies sneaking in without intent from the module owner. Bug: 175604587 Test: m nothing Merged-In: I1df8b8e087d27f62ce8c09d7e6e32d511efdba6b Change-Id: I1df8b8e087d27f62ce8c09d7e6e32d511efdba6b
2020-12-16Merge "Add dplotnikov to OWNERS" am: 634c55be11 am: f460e08478Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531678 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iaabff6835dfed220a49990c0ed1b9eccbc29e669
2020-12-16Add dplotnikov to OWNERSAnton Hansson
...and sort the list. Change-Id: I60fa68b6b3fbd61380258ca9385d6510426282ab
2020-12-08Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78Jeff Sharkey
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9cJeff Sharkey
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08Improve OWNERS coverage across frameworks/base/.Jeff Sharkey
As general background, OWNERS files expedite code reviews by helping code authors quickly find relevant reviewers, and they also ensure that stakeholders are involved in code changes in their areas. Some teams under frameworks/base/ have been using OWNERS files successfully for many years, and we're ready to expand them to cover more areas. Here's the historical coverage statistics for the last two years of changes before these new OWNERS changes land: -- 56% of changes are fully covered by OWNERS -- 17% of changes are partially covered by OWNERS -- 25% of changes have no OWNERS coverage Working closely with team leads, we've now identified clear OWNERS on a per-package basis, and we're using "include" directives whenever possible to to simplify future maintenance. With this extensive effort, we've now improved our coverage as follows: -- 98% of changes are fully covered by OWNERS -- 1% of changes are partially covered by OWNERS -- 1% of changes have no OWNERS coverage This specific change is automatically generated by a script from detailed ownership information confirmed by team leads. Bug: 174932174 Test: manual Exempt-From-Owner-Approval: refactoring with team leads buy-in Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-02Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855Xin Li
Bug: 172690556 Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6 Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-01Merge "Remove JobInfo usage of NetworkRequest#networkCaps" am: fdef604e07 ↵Treehugger Robot
am: 0d18955d47 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512666 Change-Id: Ib154e508d4d6e3be54df4d598ccb1686e602b023
2020-12-01Remove JobInfo usage of NetworkRequest#networkCapsRemi NGUYEN VAN
NetworkRequest#networkCapabilities is an implementation detail (not part of the NetworkRequest API); NetworkRequest has getters that return the same information. Bug: 174436414 Bug: 142281756 Test: m Merged-In: I47e7ab1b887b2fe2dddef223bd7c66bdd290fc56 Change-Id: I47e7ab1b887b2fe2dddef223bd7c66bdd290fc56
2020-11-20Move BasicShellCommandHandler to frameworks/lib/modules-utils am: d5726c1916 ↵Chiachang Wang
am: d3e4d83eb7 am: b6f524b2df Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483965 Change-Id: Ib09544e292d472e8dcd7dcf218035a0ec6de293c
2020-11-20Move BasicShellCommandHandler to frameworks/lib/modules-utils am: d5726c1916Chiachang Wang
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1483965 Change-Id: Ib2a99f1aeb31b89e69a5b313ca3774ba145dde33
2020-11-20Merge changes from topic "move_BSCH"Chiachang Wang
* changes: Remove BasicShellCommandHandler from frameworks/base Move BasicShellCommandHandler to frameworks/lib/modules-utils
2020-11-19Move BasicShellCommandHandler to frameworks/lib/modules-utilsChiachang Wang
BasicShellCommandHandler is used by mainline modules and the framwork. There is a new repo that was created for putting this kind of utility class. Move BasicShellCommandHandler for the incoming ConnectivityService mainline and updating the related usage. Bug: 170598012 Test: m ; verify with adb shell cmd Change-Id: I8a2873df6e7d8342b7a8b466bda155f74c807ee3 Merged-In: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-13Merge "Suppress all hidden abstract methods in constructable classes." am: ↵Aurimas Liutikas
bdd6c53abb am: c08c4d9b02 am: 65ed2cb534 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495396 Change-Id: Icb989e4ac7190afbdb3b09552fa0055c2a742ceb
2020-11-13Suppress all hidden abstract methods in constructable classes.Aurimas Liutikas
Having a hidden abstract method for a class that can be extended means that public implementors cannot implement these hidden methods posing a risk that custom implementations will not have required abstract methods resulting in an exception. Bug: 151134792 Test: make update-api Change-Id: I758d12465fabc671be19bedeeceb16885de23c87 Merged-In: I758d12465fabc671be19bedeeceb16885de23c87 Exempt-From-Owner-Approval: large scale suppression of existing issues, no-op in terms of behavior
2020-11-12Merge "Cache network capabilities." into rvc-qpr-dev am: 2a1b3c7408Kweku Adams
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12901724 Change-Id: If16b0c7b056e9123926f68fa21b5cd4e298367c3
2020-11-04Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-02Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I8285daa8530260251ecad6f3f38f98e263629ca7 Change-Id: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
2020-10-22Cache network capabilities.Kweku Adams
Cache network capabilities to reduce the number of calls ConnectivityController makes to ConnectivityManager. Bug: 164460449 Bug: 166702583 Test: atest com.android.server.job.controllers.ConnectivityControllerTest Test: atest CtsJobSchedulerTestCases Change-Id: I501e5153d7bffd2494aec484c74b9e1b6252aeeb (cherry picked from commit 6f9ab029005993e3674f5ccaa321f9bc4467d5b8)
2020-10-20Merge "Remove @TestApi from @SystemApi symbols" am: d2d4637685 am: ↵Anton Hansson
cbe282347e am: 14897c256d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466264 Change-Id: I859503688ea3254d5bd1b55e80cf1962286e948f
2020-10-19Remove @TestApi from @SystemApi symbolsAnton Hansson
I ran these commands: cd frameworks/base grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs' grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs' Bug: 171179806 Test: m checkapi Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789 Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-09-24Merge "Prevent default wellbeing app from falling below WORKING_SET bucket" ↵Michael Wachenschwanz
into rvc-qpr-dev am: 711cdc2220 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12663452 Change-Id: I5c85d31b5c42f4bbb7c33671d36120a6bcff5d80
2020-09-22Prevent default wellbeing app from falling below WORKING_SET bucketMichael Wachenschwanz
Bug: 166301584 Test: atest AppStandbyControllerTests Change-Id: I5ef67308cabbe43801103e888165d488f4888ab9 (cherry picked from commit 9df9e30727b510fb37790085554e70423834a42b)
2020-09-14Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae ↵Treehugger Robot
am: 1d3e694b97 am: e022945d69 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048 Change-Id: I5725049a13c30e122e1f8b5e4e772b7431a4e32d
2020-09-14Replace 'whitelist' with 'allowlist'Julia Reynolds
Change-Id: If7422064e59e6c055c9dae092ead298b81cf41e8 Test: atest Bug: 161889253 Merged-In: I94a43c1c995052b034d8a5377786e1a15e4c9c59
2020-07-21Postpone updating idle states to after the boot.Sudheer Shanka
Bug: 161712793 Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Change-Id: Ic22e1e7bf3356d523a37ca41a234aefc5d738ec5 Merged-In: Ic22e1e7bf3356d523a37ca41a234aefc5d738ec5 (cherry picked from commit 88338ff08016b99338821f956a720b93030e5a77)
2020-07-16Check app idle states and inform listeners on power-save-wl change.Sudheer Shanka
Bug: 161477606 Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Change-Id: I0bb436f4c45b135c8e9c873c9073ef4a505192f7
2020-07-10Don't count proxied jobs toward scheduling limit.Kweku Adams
1. Some API calls (such as SyncManager calls) can result in multiple job schedule calls. Given that underlying implementation detail, we don't count jobs scheduled via proxy towards the source app's schedule limit. Calls using scheduleAsPackage for itself will still count. 2. Limit the number of times we log that a specific app has exceeded the limit to once per minute. 3. Update the error message and documentation to help developers identify what to do when they encounter the issue. Bug: 160796417 Test: atest JobSchedulerServiceTest Test: atest JobSchedulingTest Change-Id: Ia682aa889ec2a26d373d0309e8c0324570f7d816 Merged-In: Ia682aa889ec2a26d373d0309e8c0324570f7d816
2020-06-23Postpone headless app caching to after boot.Kweku Adams
Moving the headless app cache loading to the background thread still affects boot time. Moving the loading to after boot has completed means that it will no longer impact boot time. Bug: 159057406 Bug: 159434503 Test: atest CtsUsageStatsTestCases:UsageStatsTest Test: atest FrameworksServicesTests:AppIdleHistoryTests Test: atest FrameworksServicesTests:AppStandbyControllerTests Test: Confirm SystemServerTiming_OnBootPhase_500_com.android.server.BinderCallsStatsService$LifeCycle timing decreases Change-Id: Ib79939ed15f9886d4fea02f7eda172b8cc82b674
2020-06-20Merge "Move AppStandbyController calls out of UsageStats lock" into rvc-devMichael Wachenschwanz
2020-06-20Merge "Speed up NetworkPolicy thread during user creation" into rvc-devAmith Yamasani
2020-06-19Move AppStandbyController calls out of UsageStats lockMichael Wachenschwanz
Move reportEvent, flushToDisk, and dumping out of the UsageStats lock. Fixes: 158361735 Test: atest com.android.server.usage.AppStandbyControllerTests Test: atest android.app.usage.UsageStatsTest Test: manual ("adb shell dumpsys usagestats", with multiple users) Change-Id: I9f5c2adcb3ef71e82b969b35e7129e715fbfa00d
2020-06-18Speed up NetworkPolicy thread during user creationAmith Yamasani
Network Policy Manager makes a ton of calls to UsageStats.isAppIdle, which in turn tries to get the network scorer and results in a lot of calls to PackageManager. Caching the network scorer reduces a lot of the lock contention with PackageManager. Also, caching calls to check for an app's internet permission. Handler for USER_ADDED broadcast reduced in wallclock duration from 2+ seconds to 114ms. Bug: 156582823 Test: atest UserLifecycleTests#createAndStartUser Test: atest AppStandbyTests Change-Id: I369f9c129ca8a13016e00b1bec2776111fa04513
2020-06-17Merge "Cache power whitelisted apps." into rvc-devTreeHugger Robot
2020-06-17Retrieve direct boot aware activities.Kweku Adams
Immediately on boot (before a user is unlocked), PackageManager only returns components that are direct boot aware. If we don't specify that direct boot unaware components be returned as well, then ASC will think all system apps are headless. Also switching the cache from an ArrayMap to an ArraySet because there's no need for the boolean value. Bug: 155761007 Test: manually verify that apps with launcher activities aren't in the headless app list Test: atest CtsUsageStatsTestCases:UsageStatsTest Test: atest FrameworksServicesTests:AppIdleHistoryTests Test: atest FrameworksServicesTests:AppStandbyControllerTests Change-Id: Ieec648226d0d5a32197647af286c2cd4c167dd8b
2020-06-16Cache power whitelisted apps.Kweku Adams
DeviceIdleController sits higher in the lock hierarchy than AppStandbyController, so ASC shouldn't call out to DIC with its lock held. In order to know if an app is power whitelisted, ASC needs to call out to DIC and cache the result outside of holding the lock. Bug: 158779091 Test: atest CtsBatterySavingTestCases Test: atest CtsJobSchedulerTestCases Test: atest CtsUsageStatsTestCases:UsageStatsTest Test: atest FrameworksServicesTests:AppIdleHistoryTests Test: atest FrameworksServicesTests:AppStandbyControllerTests Change-Id: Iff500f3ab00f6881348926604be7ab07693bdf40
2020-06-12Offload initial headless app query to handler thread.Kweku Adams
Query package manager for the headless system app check on the handler thread to avoid impacting boot time. Bug: 157941190 Test: verify cache is still populated Change-Id: Idb446e68c0ad4e1e693b45297d5297be855849bf
2020-05-28Load headless system app cache on boot.Kweku Adams
AppStandbyController.initializeDefaultsForSystemApps() is only called when there's a system update. The headless system app cache needs to be loaded on every boot, so this moves the loading to the on-boot path. Bug: 155761007 Test: reboot device multiple times Change-Id: I94fd6a85b791388f937e208448c6b38d9639005e
2020-05-27Fix app standby bugs.Kweku Adams
1. Don't set app standby buckets when app idle is disabled. When the bucket is set when app idle is disabled, AppStandbyController notifies listeners, which then puts the listeners in an invalid state where they think some apps are exempted from things like battery saver. 2. Remove uninstalled packages from AppStateTracker's exempted package cache. Bug: 156868557 Test: make cts -j 64 && cts-tradefed run commandAndExit cts -m CtsBatterySavingTestCases -t android.os.cts.batterysaving.BatterySaverAlarmTest Test: make cts -j 64 && cts-tradefed run commandAndExit cts-on-gsi -m CtsBatterySavingTestCases -t android.os.cts.batterysaving.BatterySaverAlarmTest Change-Id: If62c75eff0bc56ef1750e109335ba7e47832c128 Merged-In: 2a94051c041dab180dc7f22e9a4f5ff36dd7d483
2020-05-14Reduce widget exemption status.Kweku Adams
Apps with active widgets should be fine operating in the ACTIVE bucket instead of being fully exempted from app standby. They were previously put in the EXEMPTED bucket because we previously didn't have a concept of exemption levels. Bug: 156236665 Test: atest FrameworksServicesTests:AppIdleHistoryTests Test: atest FrameworksServicesTests:AppStandbyControllerTests Change-Id: Iea30f00ca8199f487bcc3281e4ae3f98b41d369f
2020-05-14Merge "Partially exempt headless system apps from app standby." into rvc-devKweku Adams
2020-05-12Use LimitExceededException instead of IllegalStateException.Kweku Adams
Bug: 141645789 Test: Android builds Change-Id: If4b8cd24af96062acf86bef9ebd5ce5db63c9e0e
2020-05-11Partially exempt headless system apps from app standby.Kweku Adams
The user can't interact with headless system apps (pre-installed apps without any activities) but they're expected to work properly. We don't want to fully exempt the apps from app standby, but they should be fine operating in the ACTIVE bucket, so we make sure that headless system apps never fall below the ACTIVE bucket. Bug: 155761007 Test: atest FrameworksServicesTests:AppIdleHistoryTests Test: atest FrameworksServicesTests:AppStandbyControllerTests Change-Id: I1549bb81eca293be31691b079bab2142cbcdf8a7
2020-05-08Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-devKweku Adams
2020-05-07Merge "Add charging parole notification for network changes." into rvc-devKweku Adams
2020-05-06Add charging parole notification for network changes.Kweku Adams
This is a partial revert of the change to remove parole from AppStandbyController (Ide382ad7fb9c7441f0a5232833ad39bf8c3a1e94). This adds back the listener and notification of when parole (due to charging) turns on and off so that NetworkPolicyManagerService can quickly update the network policy for affected apps. AlarmManager and JobScheduler already listen to charging status, so I'm excluding them from this change to make it as simple and low-risk as possible. This has a slight change to follow standard practice where a client registering a listener retrieves the current value after registering the listener instead of the registerListener() method calling the listener's onStateChanged() method. Bug: 151802309 Test: atest FrameworksServicesTests:AppStandbyControllerTests Test: atest --rerun-until-failure 10 com.android.cts.net.HostsideRestrictBackgroundNetworkTests Change-Id: I18d8d771d455456351e3a9a6c9469e4ec620ae4e