summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "profcollectd: Only start the forwarding service if enabled through ↵Yi Kong2020-11-031-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | device config" am: fb8f388ce7 am: f69edfbddf am: de81949fe4 am: ffbd8ee487 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484896 Change-Id: I2ed9be0bfbb31d52d1f36db6653cc2baca51364f
| * | | Merge "profcollectd: Only start the forwarding service if enabled through ↵Yi Kong2020-11-031-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device config" am: fb8f388ce7 am: f69edfbddf am: de81949fe4 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484896 Change-Id: Icac75d15493ab3b7c83fdb5d1c167244a98585f4
| | * | profcollectd: Only start the forwarding service if enabled through device configYi Kong2020-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Test: boot profcollect build Bug: 79161490 Change-Id: I8058594fd78327bbd0983c7f39391dc82e18e2a3
* | | | Merge "Add logic to forward foldable device state to native cameraserver."Darryl Johnson2020-11-031-6/+6
|\ \ \ \
| * | | | Add logic to forward foldable device state to native cameraserver.Darryl L Johnson2020-11-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds two methods to CameraServiceProxy to be used within system_server for setting camera device state flags. It also updates DisplayFoldController to leverage these methods. Bug: 153788656 Bug: 154038218 Bug: 159401801 Test: Trigger fold and verify camera's toggle Change-Id: I08392a62bc65d10a0715ef0d831c8bb919035a5d
* | | | | Merge "Add shell VcnManagementService" am: fa2c588ab5 am: 1ee8f22e8a am: ↵Benedict Wong2020-10-291-0/+20
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | e0eb89cf66 am: 3eda5ec4f9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456942 Change-Id: Ib6d081351c2440945d094e7e97433f1e91e1fa8b
| * | | Merge "Add shell VcnManagementService" am: fa2c588ab5 am: 1ee8f22e8a am: ↵Benedict Wong2020-10-291-0/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0eb89cf66 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456942 Change-Id: I774426130072afa26da857ee66b724f94b627cd7
| | * | Add shell VcnManagementServiceBenedict Wong2020-10-271-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a shell of the VcnManagementService and VcnManager Bug: 163431877 Test: Compiles, Boots Change-Id: I1f3d8ab9c9bff7d419ea6d3edaae3b6b41b1d775
| * | | Merge "Create service-connectivity.jar" am: bfceacea50 am: b91257f553 am: ↵Aaron Huang2020-10-201-14/+19
| |\| | | | |/ | |/| | | | | | | | | | | | | | | | 5b03885d43 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1351252 Change-Id: I9a04f911043e34c3de1bcac3647773c5adfde294
| | * Create service-connectivity.jarAaron Huang2020-10-161-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new target service-connectivity to split ConnectivityService from services.core. Add ConnectivityServiceInitializer for initializing ConnectivityService and add systemReady() in ConnectivityManager so that SystemServer can call systemReady() through ConnectivityManager which won't change current behavior. Bug: 158268939 Test: make target-java, make host-java atest FrameworksNetIntegrationTests atest FrameworksNetTests make, device can boot, atest CtsStrictJavaPackagesTestCases wifi and mobile data work. Change-Id: I99401772ba9c1c34adca20040da3c7c72d86ddd9 Merged-In: Ie732bfaf381404af0bb599ca2f421a96e7aa4257
| * | Introduce ProfcollectForwardingService am: a0bd2a99ee am: fbeb0d8002 am: ↵Yi Kong2020-09-111-0/+7
| |\| | | | | | | | | | | | | | | | | | | | | | 4914fdc68c am: 4e400a6f4e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425268 Change-Id: Ic5961ad3b5c4aceaad32bca1ed86342fb00223f9
| | * Introduce ProfcollectForwardingServiceYi Kong2020-09-111-0/+7
| | | | | | | | | | | | | | | | | | | | | Bug: 79161490 Test: boot and observe logcat Change-Id: I0413c52f08b930b1e42971acc7f50e2e2da52f99 Merged-In: I0413c52f08b930b1e42971acc7f50e2e2da52f99
| * | Merge "Revert "Revert "SystemServer: Dynamically load wifi-service"" into ↵Roshan Pius2020-08-041-7/+16
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | rvc-qpr-dev am: b2c8cb2a53 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12282648 Change-Id: I4f0c4543aa511bc33d0c639488a03504aa265877
| | * Revert "Revert "SystemServer: Dynamically load wifi-service"Roshan Pius2020-08-031-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert submission 10144846-revert-10103769-load_wifi_service_dynamically-XZNQJHXURR Reason for revert: Changes in build system to store uncompressed and aligned DEX files for java libs in APEXes. Reverted Changes: Icc0b680c2: Revert "SystemServer: Dynamically load wifi-servic... I83a2f93e3: Revert "product: Remove wifi-service off SystemSer... Bug: 148099857 Bug: 162371380 Bug: 162746981 Test: Compiles Change-Id: I6c3f36873cae476dc76fd353d20fb6bd2c177f0b
* | | Created a mechanism to dump service-less SystemServer state.Felipe Leme2020-10-231-3/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SystemServer has classes (like SystemServerInitThreadPool, SystemServiceManager, and even SystemServer itself) that are not associated with a service; hence, the state of these classes are not dumped in a bugreport. Test: adb shell dumpsys system_server_dumper Test: adb shell dumpsys system_server_dumper --list Test: adb shell dumpsys system_server_dumper --name SystemServer Bug: 159831354 Fixes: 163921395 Change-Id: I5719f7cd3a9022dc0ab12a3b3b22487e2b4866e0
* | | Create service-connectivity.jarAaron Huang2020-10-161-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new target service-connectivity to split ConnectivityService from services.core. Add ConnectivityServiceInitializer for initializing ConnectivityService and add systemReady() in ConnectivityManager so that SystemServer can call systemReady() through ConnectivityManager which won't change current behavior. Bug: 158268939 Test: make target-java, make host-java atest FrameworksNetIntegrationTests atest FrameworksNetTests make, device can boot, atest CtsStrictJavaPackagesTestCases wifi and mobile data work. Change-Id: Ie732bfaf381404af0bb599ca2f421a96e7aa4257
* | | Merge "Add system service for music recognition."Nick Moukhine2020-10-091-0/+13
|\ \ \
| * | | Add system service for music recognition.Nick Moukhine2020-09-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The client submits a RecognitionRequest via MusicRecognitionManager. System server opens an audio stream based on the request and sends it to a MusicRecognitionService (which is exposed by a system app). The result is passed back through system server to the original caller. Test: tracked in b/169662646 Bug: 169403302 Change-Id: I4c7fd9d9d72ddd5678867fd037cab6198bff2c2d
* | | | Add DeviceStateManagerService and stub implementation of policy.TreeHugger Robot2020-10-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: atest DeviceStateManagerServiceTest Bug: 159401801 Change-Id: Ib7f424e905c80812b36e0e0bb30771224ce56e34
* | | | Merge "Initial version of LocationTimeZoneManagerService"Neil Fuller2020-09-181-2/+12
|\ \ \ \
| * | | | Initial version of LocationTimeZoneManagerServiceNeil Fuller2020-09-171-2/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes an initial version of LocationTimeZoneManagerService, supporting / implementation classes and test infra. This commit is not final code (see various TODOs) but forms the scaffolding for later commits. The ControllerImpl only supports a single LocationTimeZoneProvider, and the "real" binder implementation is left for a later commit. Test: atest services/tests/servicestests/src/com/android/server/location/timezone/ Bug: 149014708 Change-Id: Icfba9a816e55a51ee555e08bb889848644539735
* / / / Initial commit of PowerStatsServiceMat Bevilacqua2020-09-141-0/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 164465661 Bug: 164466995 Bug: 167280723 Test: Verified PowerStatsService is functional on targets that have ODPM data. Change-Id: Ic555b380c566ea26bc2214374f142c5448ea2ee7
* | | Merge "[Media ML] Remove hidden API usage in SystemServer"Jin Seok Park2020-08-041-4/+6
|\ \ \
| * | | [Media ML] Remove hidden API usage in SystemServerJin Seok Park2020-08-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace calling MediaSessionService and MediaResourceMonitorService directly with calling string equivalents. Bug: 162734094 Test: build, boot and check service is running with adb command: "adb shell service list" Change-Id: I243b1dbeabcfeadd8927de51cd595fceb48d461b
* | | | Introduce ProfcollectForwardingServiceYi Kong2020-08-041-0/+7
|/ / / | | | | | | | | | | | | | | | Bug: 79161490 Test: boot and observe logcat Change-Id: I0413c52f08b930b1e42971acc7f50e2e2da52f99
* | | Merge "Initial splitting of Content Providers from AMS."TreeHugger Robot2020-07-271-1/+1
|\ \ \
| * | | Initial splitting of Content Providers from AMS.Varun Shah2020-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first of many CLs for refactoring Content Provider related code from Activity Manager Service. This CL simply pulls out most of the CP code from AMS into its own class. There are no logic or lock-related changes in this particular CL. Bug: 156262145 Test: atest ContentProviderTest [all] Change-Id: I03310a1f06d354e15439a37f7aeffa543192dad3
* | | | Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: ↵Nicolas Geoffray2020-07-071-6/+0
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | 0642fc19f3 am: dd85ce6a50 am: 11f4874360 am: c21f8b9143 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663 Change-Id: Ib3e7dbefdb78b3ad9c7b00766d563c7877f823ac
| * | Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: ↵Nicolas Geoffray2020-07-071-6/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0642fc19f3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663 Change-Id: Ic39e4a46f50fd3ab18dba5c859ec39c9458191a0
| | * | Remove old code that isn't relevant anymore.Nicolas Geoffray2020-07-021-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to reduce the CorePlatformAPI surface. Test: m Bug: 154796679 Change-Id: I428fe21d764bf6897942d7e67d85297d826d3716
| * | | Merge "Use new package name for ZoneInfo and libcore.timezone" am: ↵vichang2020-06-301-2/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | af6f8e2301 am: 64937407f2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1346485 Change-Id: I5ded5092e4c7706f58417a5c97f3207524b44a95
| | * | Use new package name for ZoneInfo and libcore.timezoneVictor Chang2020-06-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 141747409 Test: None Merged-In: Id99a345ec024179295063c3644f72c062cb50554 Change-Id: Id99a345ec024179295063c3644f72c062cb50554
| * | | Merge "Be more defensive around invalid tzids" am: f60c302dad am: 96c57398b4Neil Fuller2020-05-261-2/+11
| |\| | | | | | | | | | | | | | Change-Id: If8695ee257155eaedc901aa797f1939eab0c721e
| | * | Be more defensive around invalid tzidsNeil Fuller2020-05-261-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add checks during boot in case the persist.sys.timezone property is set to a bad ID. This can happen in the rare case of a mainline rollback: i.e. if a device has been set to a new ID and then the update is rolled back. Using GMT as a fallback probably works without this change (it does in java.util.TimeZone), but relies on all code, including native code that uses persist.sys.timezone directly, knowing to interpret a bad ID as "GMT". This commit makes that choice more explicit and defensive. This change also removes the possibility of IOException, which is never thrown, from some ZoneInfoDb methods. Bug: 155738410 Test: boot with a valid id, verify persist.sys.timezone is unchanged Test: boot with an invalid id set, verify persist.sys.timezone is "GMT" Merged-In: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd Exempt-From-Owner-Approval: Approved / landed internally
| | * | Add gating, logging for PhoneStateListener's limitHall Liu2020-04-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add gating via PlatformCompat and DeviceConfig and logging via PlatformCompat to the limit instituted on per-process listeners Fixes: 152074216 Test: atest CtsTelephonyHostCases Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2 Merged-In: I4d6681d90705b68c3349f4124e434a29b50fd3a2
* | | | Use new package name for ZoneInfo and libcore.timezoneVictor Chang2020-06-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 141747409 Test: None Change-Id: Id99a345ec024179295063c3644f72c062cb50554
* | | | 1/n: Move modality-specific files into new subdirectoryKevin Chyn2020-06-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's easier to read/maintain if we separate sensor-specific code from BiometricPrompt/BiometricManager code Bug: 157790417 Test: Enroll/auth fingerprint/face on respective devices Test: atest com.android.server.biometrics Change-Id: I472c206743482bbea75498051c6f81e1fbd351ad
* | | | Be more defensive around invalid tzidsNeil Fuller2020-05-211-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add checks during boot in case the persist.sys.timezone property is set to a bad ID. This can happen in the rare case of a mainline rollback: i.e. if a device has been set to a new ID and then the update is rolled back. Using GMT as a fallback probably works without this change (it does in java.util.TimeZone), but relies on all code, including native code that uses persist.sys.timezone directly, knowing to interpret a bad ID as "GMT". This commit makes that choice more explicit and defensive. This change also removes the possibility of IOException, which is never thrown, from some ZoneInfoDb methods. Bug: 155738410 Test: boot with a valid id, verify persist.sys.timezone is unchanged Test: boot with an invalid id set, verify persist.sys.timezone is "GMT" Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
* | | | Move AlarmManager to apexSuprabh Shukla2020-05-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mechanical refactoring to move all except native code to the apex directory. Accesses across the jar boundary will be cleaned up in follow-ups. Also, moved alarm manager code into its own package for better organization. Test: Buids, boots. Existing tests: atest FrameworksMockingServicesTests:AlarmManagerServiceTest atest CtsAlarmManagerTestCases Bug: 151976605 Change-Id: Ida46491c1f1dff02dce4c50d3fafd4efbf977766
* | | | Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into ↵TreeHugger Robot2020-05-111-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | rvc-dev am: 3ce5a9b85b am: 5ab2f9aa78 am: 9f2a62c067 am: 949db94e76 Change-Id: Ib45dc4ad1276044fef31ff3c405187e3935897fe
| * | | Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into ↵TreeHugger Robot2020-05-111-1/+0
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | rvc-dev am: 3ce5a9b85b Change-Id: I0b4b9ad545f2cebd9edd4adf3259ac34371bb79d
| | * | Fixed when SystemServerInitThreadPool.shutdown() is called.felipeal2020-05-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The class' Javadoc says it's shut down after P HASE_BOOT_COMPLETED, whic was not the case. Test: manual verification / boot Fixes: 156257347 Change-Id: I3c8b24c6855c7c83cdf1eacc637b8e064a121fe3
* | | | Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into ↵Amy Zhang2020-05-071-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | rvc-dev am: 71f11a7ec5 am: 0309df1780 am: a6e2e81943 am: 6f70a2a80b Change-Id: Ib3d4f8e845b387889e99c64c1e8071d8a1698139
| * | | Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into ↵Amy Zhang2020-05-071-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | rvc-dev am: 71f11a7ec5 Change-Id: I70a1ddac77f1be879809c4a7b79be4c6e8b13b9f
| | * | Start TunerResourceManager when FEATURE_TUNER is supportedAmy Zhang2020-05-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Test: make services Bug: 147380513 Change-Id: I56201db818018b019dfa7d442e3905fba30806d7
| * | | Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bcYurii Zubrytskyi2020-04-221-6/+6
| |\| | | | | | | | | | | | | | Change-Id: I7ba1058a91b3e2140e05b69d749cc65d62511251
* | | | Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: ↵Yurii Zubrytskyi2020-04-221-6/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5899bac92e am: b8eb14b2b7 am: 3d7c09e846 Change-Id: I34b1d1a54a1c172dc1d514787e55c5d1e35c4880
| * \ \ \ Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: ↵Yurii Zubrytskyi2020-04-221-6/+6
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | | | | | 5899bac92e Change-Id: I76abfe6251fbd50bd0f11a187363a2df786002b1
| | * | [incfs] Notify IncrementalService about system startup laterYurii Zubrytskyi2020-04-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It needs system to be ready to bind to services, which is much later in the boot process Bug: 151241369 Test: boot up Android, make sure no error messages from IncrementalService trying to bind a DataLoader when the OS can't bind services yet Change-Id: Ibcef3f405965ee07c5b8adbb41f068be734bde9e
* | | | Merge "Revert "Revert "SystemServer: Dynamically load wifi-service""Roshan Pius2020-04-201-7/+16
|\ \ \ \