summaryrefslogtreecommitdiff
path: root/services/java
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-1/+2
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * Proto dump from SystemUI.Fabian Kozynski2022-10-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Needs to be called by doing `adb shell dumpsys statusbar --proto` because using `dumpsys activity service` adds text to the dump. Will also be dumped as part of the BR Test: atest SystemUITests Test: Used in CTS Test: manual dump and BR Fixes 237786667 Change-Id: I74abf65a76c059ea9bb5a14728192b6b683b7fc7
* | base: treewide: Disable debug loggingGeorge Zacharia2023-01-121-1/+1
| | | | | | Change-Id: Ic6cfbb8e5f60b69401fc69ca44e2d879b506003d
* | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-151-8/+0
|\| | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * Merge "[DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection ↵Joanne Chung2022-09-231-7/+0
| |\ | | | | | | | | | toolbar code from build time""" into tm-qpr-dev
| | * [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code ↵Joanne Chung2022-09-201-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from build time"" This reverts commit 888e79f7a05c33bfe1895cf22d73ed0f567b24ae. Reason for revert: The feature is planned in QPR2. This should be removed before QPR1 deadline. Change-Id: I8af811935171d7ff51d9ba2a9ea60437695d7966
| * | Remove impl of cloudsearch apiHui Wu2022-09-221-8/+0
| |/ | | | | | | | | | | Bug: 246376638 Test: Manually Tested Change-Id: I1740d5e1a0fb25a0fedea0a92e8a901684e35635
| * Revert "[DO NOT MERGE] Remove selection toolbar code from build time"Joanne Chung2022-08-081-0/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit ade911b9c76e4eaeff692656af552a0cd192e4bf. Reason for revert: The feature is planned to run a study in QPR1 with the aim of launching in QPR-2. The code will be removed from build time before QPR1 finalized. Change-Id: Ida04260a1196121bb4084b527216aae1e4e6ec54
* | services: SystemServer: remove redundant startService for lineage hardware ↵jhonboy1212022-11-161-6/+2
| | | | | | | | | | | | | | service Change-Id: I9aad3302c9fb1fa49f80415ec01008067f599057 Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
* | [SQUASH] pocket: Introduce pocket judgeCarlo Savignano2022-10-261-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ZeNiXxX * Bring to Android 10 DennySPb: adapt to 11, 12 Change-Id: I33153b451f5d38d83e226be0f76bda1ed022dd48 policy: introduce pocket lock * Block touch screen and keys inputs when device is in pocket. * Safe-door to disable pocket lock within long press power button if sensors do not behave correctly after PocketManager.isDeviceInPocket() returns true. * Window uses TYPE_SYSTEM_ERROR flag with ensure high priority over the lockscreen and other high priority windows. * Do not illuminate buttons when pocket lock is showing. * Disable fingerprint events and gestures when in pocket * Be friendly towards Keypress Boost Contributors: Carlo Savignano <carlosavignano@aospa.co> Chris Lahaye <dev@chrislahaye.com> Anas Karbila <anaskarbila@aospa.co> Alex Naidis <alex.naidis@linux.com> Park Ju Hyung <qkrwngud825@gmail.com> Ticket: NOUGAT-15 ZeNiXxX * Fix booting issues * Fix NPEs * Bring to Android 10 DennySPb: adapt for 11, 12 Change-Id: I34108fa38f28f15b0b99c8ebb6551dcc4dabad14 pocket: Add hardware acceleration and properly maintain SYSTEM_UI flags Change-Id: I585598242beec34bd92c5df5836ab395b36cea05 PocketService: Adjust light sensor rate to 400ms We already adjusted the proximity sensor rate to 400ms, so adjust the rate for the light sensor accordingly and create a tunable. Change-Id: Ie6dda80df8cdc677eb6cdb873a5ce1e888572fe7 pocket: introduce pocket bridge This service communicates pocket state to the pocket judge kernel driver. It maintains the pocket state by binding to the pocket service. Ticket: NOUGAT-49 Change-Id: Iee77f767f23d3f77a0d1d871f9305f3b3c6d6630 pocket: Adjust sleep timeout for pocket lock view to 10 secs - Fix the case where user sets a high value for sleep timeout in display settings and the pocket view is also displayed for that much duration. Change-Id: If6c4daa1fd98992141f22db70e0e86d5d990f789 pocket: Fix pocket lock view for display cutouts - Use LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES layout flag to extend pocket lock view for display cutout mode. Change-Id: I21e4e47cf999b3a0f3d6ebf9165ba9f5596ece0e Pocket lock improvements * Fix auto hide not working correctly * Restore systemui visibility when hidden ZeNiXxX * remove faceunlock logic and adapt for android 10 Change-Id: I61b38798d01775b252af88abb01dd2423b3a7638 pocket: Use MD2 lock drawable Change-Id: Ifb89a68505a9f9b401a2474b5179ea65e9c0e3ce pocket: Reduce sleep timeout for pocket lock *if the proximity value changes within 10s, pocketlock exits to lockscreen. Inorder to avoid that reduce timeout to 3s Change-Id: Iee08801534bebacc2fc62f0bc6e3a0712ce12712 Pocket lock: Add config_pocketModeSupported overlay Change-Id: I6768c9f8cdd40b2a62df3bd9ddfa04022d69ce10 PocketLock: fix flickering on animations Change-Id: I4b5499042d0e9ae8f73ecf5c32030d146f640362 PocketJudge: allow register vendor pocket sensor Some devices (ie OnePlus) have own pocket sensor. This change allow to use native pocket sensor instead of proximity and light. Sensor name must be specified in device tree overlay. In this case PocketService will try to use vendor sensor first. If sensor wasn't found, fallback sensors (proximity and light) will be in use. Example for OnePlus sensor: <string name="config_pocketJudgeVendorSensorName">oneplus.sensor.pocket</string> Change-Id: Ibe423478cfd9d49e0831e2df0af793178f62c0e0 Fix an edge case in KeyguardUpdateMonitor pocket callback Change-Id: If872c365ab22bd744c610b136b442ff161c65522 base: Redo Pocket mode view like OOS Change-Id: I037f5120315581cade60b6c11a64b07cc47ba376 SystemUI: Improve pocket mode layout Change-Id: I590bc187a5e205102b129fbb9e3625f51b532afd PocketLock: Make using light sensor optional * On some devices using light sensor may break autobrightness Change-Id: I2bb4aad1ecc6808a4546dfdcada4335074d0d40e PocketJudge: Allow to register vendor proximity sensor Some devices (ie OnePlus) have bunch of proximity sensors and default one may not work properly. This change allow to use particular proximity sensor. Example for OnePlus infrared proximity sensor: <string name="config_pocketJudgeVendorProximitySensorName">oneplus.sensor.infrared.proximity</string> Change-Id: I208bcd1ac68bae805c9848175edc8d598e550b7e pocket lock: Increase to 15 sec the pocket lock screen during a call, vibration stop working when pocket lock screen turn off 15 seconds should be enough to feel the vibration Change-Id: Iebfc61b4c3f31119e126f70475b1d1ed0f6812c2 Co-authored-by: Chris Lahaye <dev@chrislahaye.com> Co-authored-by: Anas Karbila <anaskarbila@aospa.co> Co-authored-by: Alex Naidis <alex.naidis@linux.com> Co-authored-by: Park Ju Hyung <qkrwngud825@gmail.com> Co-authored-by: TheStrix <parthbhatia98@gmail.com> Co-authored-by: Henrique Silva <jhenrique09.mcz@hotmail.com> Co-authored-by: Anushek Prasal <anushekprasal@gmail.com> Co-authored-by: RadixCube <radixcube@gmail.com> Co-authored-by: DennySPb <dennyspb@gmail.com> Co-authored-by: paphonb <paphonb@gmail.com> Co-authored-by: Jyotiraditya Panda <jyotiraditya@aospa.co> Co-authored-by: Laker <lakerman1987@gmail.com> Co-authored-by: Hikari-no-Tenshi <kyryljan.serhij@gmail.com> Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I25029f02eff7e5f65b4c135762e53278d2e308e6
* | Introduce LiveDisplay from LineageHenrique Silva2022-09-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All credits to LineageOS and related authors on: https://github.com/LineageOS/android_lineage-sdk Included fwb commit: commit 5ef7a9bb0996cc0c141d054514744ceaa93ba036 Author: Dan Pasanen <dan.pasanen@gmail.com> Date: Tue Feb 20 07:51:43 2018 -0600 NightDisplayController: report unavailable if livedisplay feature is present Change-Id: Id677e76d452ced2e62373337d63593c7b85f2fba Syberia: forward port to 10, 11 squashed with: lineage-sdk: ServiceType.GPS -> ServiceType.LOCATION lineage-sdk: Update DisplayTransformManager class path commit 6a61685af1ba1144d59b59a3cbcd7394241af628 (HEAD -> eleven-plus) Author: dianlujitao <dianlujitao@lineageos.org> Date: Wed Aug 7 14:51:40 2019 +0800 LiveDisplayManager: Perform null check in getConfig() * LiveDisplayConfig isn't instanced until boot completed, thus if LiveDisplayManager is instanced earlier, null is always returned. commit 1b8a1c540e6c8e4d9e09a66200c65bf80eed6051 Author: dianlujitao <dianlujitao@lineageos.org> Date: Tue Aug 6 23:59:53 2019 +0800 OutdoorModeController: Unconditionally enable auto mode on HWC2 * On HWC2, setting "Display mode" to "Automatic" and disabling "Automatic outdoor mode" at the same time makes no difference with setting "Display mode" to "Off" alone. Obviously this is redundant and could confuse the user, so simply ignore the "Automatic outdoor mode" setting on HWC2 to reduce redundancy. commit 1766313da836fee60f9ef515ba5766f9eb51a719 Author: dianlujitao <dianlujitao@lineageos.org> Date: Tue Aug 6 23:23:42 2019 +0800 OutdoorModeController: Advertise MODE_AUTO * This capability is set by ColorTemperatureController on HWC1 which is not used on HWC2, but it controls whether to enable automatic outdoor mode, thus advertise it here. * Set the default mode back to MODE_AUTO. commit 3ec8c2b0759d59ef17ddc31a7e3dc38367d17a41 Author: dianlujitao <dianlujitao@lineageos.org> Date: Wed Aug 7 15:52:22 2019 +0800 LiveDisplayService: Properly disable ColorTemperature This reverts commit f781a9399aeb3a6c4db78a8848188781c7c0720a. * Twilight tracker and display mode are still used by ColorTemperatureController commit 0437a38513361574ac972c6b45e8828c92e712db Author: dianlujitao <dianlujitao@lineageos.org> Date: Thu Aug 8 16:32:50 2019 +0800 LiveDisplayService: Notify SystemUI after initialization finished commit c743fb0c6a652b8bea26844de4fbacf35af3d72b Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Jun 4 22:14:10 2019 +0100 LiveDisplayService: Disable ColorTemperature when NightDisplay is available * Having decided to use AOSP's night display feature in favor of our equivalent implementation, then we should take care of getting the latter completely disabled. Not only it can happen that a user was likely using it and enabling night display will now cause color transformation matrices to be applied twice, but also because there are resources being used for nothing. commit 6b2cbb0bae88c9861d774e997b1437e2c134a456 Author: Paul Keith <javelinanddart@gmail.com> Date: Wed May 22 10:19:53 2019 +0300 LiveDisplay: Use Google's algorithm to convert color temperature to RGB * Google's works better than ours does commit c4062ef343e0352c06dce6efdc7a324adf02c37f Author: Paul Keith <javelinanddart@gmail.com> Date: Mon Feb 18 00:04:57 2019 +0100 LiveDisplay: Change night/day mode transition behavior * Update 2x a minute rather than 1x a minute as a result of dropping TWILIGHT_ADJUSTMENT_TIME from 1hr to 30min in an earlier change * Use an AccelerateDecelerateInterpolator for transitioning from day to night mode and back to make the transition smoother for the user * Update copyright while we're at it commit 82e4e5f3b3698efe4aa89a4ba356bd85a6ad5e9b Author: Henrique Silva <jhenrique09.mcz@hotmail.com> Date: Mon May 6 15:51:57 2019 -0300 LiveDisplay: don't start services if phone is encrypted commit e67ec644abf7f0169a88e6a0932981e6d96e00ff Author: Paul Keith <javelinanddart@gmail.com> Date: Tue Jan 14 02:41:13 2020 +0000 fwb: Add overlay for disabling livedisplay * config_defaultLiveDisplayMode should also be set to 0. Change-Id: I06ded48ec8783d5319925f391cb7f54391cd1dea [jhonboy121]: adapt to A12 PendingIntent flags requirements Signed-off-by: jhonboy121 <alfredmathew05@gmail.com> Change-Id: Ic8cadb9d914a79be3a6ab6b5ba4bd5853937996a
* | Initial import of lineagehwjhenrique092022-09-121-0/+9
|/ | | | | | | | | All credits to LineageOS and related authors on: https://github.com/LineageOS/android_lineage-sdk Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com> Change-Id: Ief90ce8c20115d6a1c17c84a9874af6246dc1dcd
* Change Bluetooth apex mountpointWilliam Escande2022-06-221-1/+1
| | | | | | | | | Apex name has been changed to com.android.btservices Changing mount point accordingly Bug: 235892590 Test: Flash / boot bt / look logs & pair a device Change-Id: I8cff5f6449ee19466b3df571a40e062964a9e46c
* Include watchdog timeout configuration in dumpsys outputJing Ji2022-05-111-0/+1
| | | | | | Bug: 209932320 Test: dumpsys Change-Id: I682c6749b0a5c7c25e1ca9109ce187e28d70697f
* [DO NOT MERGE] Remove selection toolbar code from build timeJoanne Chung2022-05-051-7/+0
| | | | | | | | | | | The feature punts to QPR so disable or remove code from the build time. Bug: 222185402 Test: build pass and can boot to home Test: make sure the toolbar using local implementation Change-Id: Idad82c3c46ddce0731a26f4599de01eecb0e52c3
* Merge "Don't preload into nonexistent zygote" am: c3a27297c4 am: 3aab9125d9 ↵Hans Boehm2022-04-201-2/+3
|\ | | | | | | | | | | | | | | | | am: 80b4f59eec Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067474 Change-Id: Ic146cd903313a76e93f39dace347382b5d4bb484 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Don't preload into nonexistent zygoteHans Boehm2022-04-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | We tried to access the first entry of Build.SUPPORTED_32_BIT_ABIS even when there where none, causing an out of bounds array access. The resulting exception was handled correctly, so this only speeds things up a little and avoids log spam. Bug: 228390898 Test: Build and boot master, Treehugger Change-Id: I5827c6991065dd50d3f6e797930a9e6b7616de6e
* | Merge "Log pending odsign metrics on start" am: 59137a2227 am: a6976f726d ↵Alan Stokes2022-04-081-0/+9
|\| | | | | | | | | | | | | | | | | am: 1ef1c6a842 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2058177 Change-Id: Ide9144dbe1d5d7ada7885a14b723ce379807f0b4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Log pending odsign metrics on startAlan Stokes2022-04-071-0/+9
| | | | | | | | | | | | Bug: 202926606 Test: Manual - create file, observe logs, file is deleted Change-Id: Ie7f35cf4ebd9e293b376da6c7a2d13b98315c587
| * Merge changes from topic "aosp-remove-iorapd"Treehugger Robot2022-03-221-6/+0
| |\ | | | | | | | | | | | | | | | * changes: [Re-land] Remove scripts related to iorap [Re-land] Remove iorap framework codes
| | * [Re-land] Remove iorap framework codesEric Jeong2022-03-141-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2f393cdbce9878ede68b7d4c32ddc404727c3532. - It's decided to remove iorap from Android. - This CL removes iorap framework codes. - Removing iorap daemon and git repo will follow. Bug: 211461392 Test: build okay Change-Id: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266 Merged-In: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266 (cherry picked from commit 7ee89676b975e17e44de19bfc63173bdb9614d3b)
| * | Split out the ethernet API surface and use framework-connectivity-tXiao Ma2022-03-141-9/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ethernet framework and service source code is going to be moved to Connectivity mainline module, this CL contains below corresponding changes to adapt the migration in f/b side: 1. Split out ethernet module-lib APIs to Connectivity module. Add the ethernet resource filegroup to tiramisu-updatable-sources filegroup as well, build them together. Also update the module-lib and system api txt to reflect the APIs change. Remove the hidden APIs which are moved to Connectivity module. This removal fixes the api inconsistent issue with Tethering/apex/hidden/. 2. Remove EthernetService from SystemServer which will be registered from ConnectivityServiceInitializer. 3. Replace the BackgroundThread class(imported from f/b/core/java) with the one in the modules-utils-backgroundthread lib, which is visible to Connectivity module. Bug: 210586283 Test: m Test: atest FrameworksNetTests EthernetServiceTests Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17 Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
| * [MS62.1] Start NetworkStatsService from the module am: c3c278779fJunyu Lai2022-02-281-20/+6
| |\ | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987466 Change-Id: I1f72e7f3fbcb64052e90a10bc2869076fc9ecea7
| | * [MS62.1] Start NetworkStatsService from the moduleJunyu Lai2022-02-181-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkStatsService is going to be moved into Connectivity mainlne module and it will be not visible to SystemServiceResistry after migration done. Thus: 1. Register service in NetworkStatsServiceInitialalizer, a separate initializer is needed because the service needs to be created before NetworkPolicyManagerService's initialization. 2. Call SystemReady at PHASE_ACTIVITY_MANAGER_READY phase where it needs to be ready before StatsPullAtomService pulls at PHASE_THIRD_PARTY_APPS_CAN_START. 3. Register manager in ConnectivityFrameworkInitializerTiramisu instead of SystemServiceRegistery. Test: atest FrameworksNetTests CtsNetTestCases NetworkUsageStatsTest Bug: 204830222 (cherry-picked from ag/16688794) Change-Id: I95020d816ed613ce3480a0720a5b71dcdc7fab72 Merged-In: I95020d816ed613ce3480a0720a5b71dcdc7fab72
| * | Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li2022-02-111-0/+9
| |\ \ | | |/ | |/| | | | | | | | | | Bug: 214455710 Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5 Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
| * | Split out the ipsec API surface and use framework-connectivity-tiramisuAaron Huang2022-02-101-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 1dad7aa006492035293e68080aeaf606df02618a) Bug: 204153604 Test: TH Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
* | | Start TelecomLoaderService based on FEATURE_TELECOMHui Wang2022-03-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TelecomLoaderService should be configured by FEATURE_TELECOM. We also keep checking FEATURE_TELEPHONY for backward compatible, which will be phased out in the future. Bug: 221098783 Test: build Change-Id: I0bee21402e1dc6baa485205290d674336c8283ae
* | | Split out the ethernet API surface and use framework-connectivity-tXiao Ma2022-03-101-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ethernet framework and service source code is going to be moved to Connectivity mainline module, this CL contains below corresponding changes to adapt the migration in f/b side: 1. Split out ethernet module-lib APIs to Connectivity module. Add the ethernet resource filegroup to tiramisu-updatable-sources filegroup as well, build them together. Also update the module-lib and system api txt to reflect the APIs change. Remove the hidden APIs which are moved to Connectivity module. This removal fixes the api inconsistent issue with Tethering/apex/hidden/. 2. Remove EthernetService from SystemServer which will be registered from ConnectivityServiceInitializer. 3. Replace the BackgroundThread class(imported from f/b/core/java) with the one in the modules-utils-backgroundthread lib, which is visible to Connectivity module. Bug: 210586283 Test: m Test: atest FrameworksNetTests EthernetServiceTests Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
* | | Merge "Start system service for AdServices." into tm-devNeha Pattan2022-03-091-0/+7
|\ \ \
| * | | Start system service for AdServices.Neha Pattan2022-03-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Test: build (the service is empty) Bug: 216375107 Change-Id: I6d8212f65e424c08a433e1dad54bf17dd50dba18
* | | | Isolate IPackageManager implementationWinson2022-03-071-4/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid leaking IPackageManager methods directly into PackageManagerService, moves the IPM implementation into an inner class similar to PackageManagerInternal. This will help enforce snapshot consistency by ensuring that all non-IPM PMS methods can always take in a Computer instance to re-use. Bug: 217961172 Test: presubmit Change-Id: Ibf7bd3d1d90a40786279763ba8d62eb9348bb760
* | | Merge changes from topic "tm-remove-iorapd" into tm-devTreeHugger Robot2022-03-031-6/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: [Re-land] Remove scripts related to iorap [Re-land] Remove iorap framework codes
| * | | [Re-land] Remove iorap framework codesEric Jeong2022-02-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2f393cdbce9878ede68b7d4c32ddc404727c3532. - It's decided to remove iorap from Android. - This CL removes iorap framework codes. - Removing iorap daemon and git repo will follow. Bug: 211461392 Test: build okay Change-Id: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266 Merged-In: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266 (cherry picked from commit 7ee89676b975e17e44de19bfc63173bdb9614d3b)
* | | | Merge "Rename SupplementalProcess to SdkSandbox" into tm-devNikita Ioffe2022-03-011-5/+5
|\ \ \ \
| * | | | Rename SupplementalProcess to SdkSandboxNikita Ioffe2022-02-281-5/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 218314884 Bug: 220320098 Test: presubmit Test: atest PackageManagerShellCommandTest Test: atest SdkSandboxPermissionTest Change-Id: I9fb98e0caee75bdaaa35d11d174004505f236799
* | | | Merge "Enabling Apex in BT" into tm-devRoopa Sattiraju2022-02-251-3/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Enabling Apex in BTRoopa Sattiraju2022-02-241-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 217736913 Test: Compile, bringup and test user journeys Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
* | | | Use AppSearchModule$Lifecycle class for starting system services in appsearchMangesh Ghiware2022-02-231-4/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | ag/16942831 creates a new AppSearchModule class that dispatches system service lifecycle callbacks to both AppSearchManagerService and ContactsIndexerManagerService. Test: refactoring CL. Existing unit tests still pass. Change-Id: Ia57732d0ad0c5de86a41b08ec4edafa2dca1ce0e
* | | Merge "Use onBootPhase for PowerManagerService bring-up"TreeHugger Robot2022-02-171-9/+0
|\ \ \
| * | | Use onBootPhase for PowerManagerService bring-upLais Andrade2022-02-141-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change PowerManagerService to remove the extra systemReady method called from SystemServer and use the boot phase for system services ready instead. Fix: 218847044 Test: PowerManagerServiceTest Change-Id: Ib69f0a0a5168e270e413c25d75f739809787eded
* | | | Changing server location to com.android.server.bluetoothRoopa Sattiraju2022-02-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 217736913 Test: Compile and bringup Change-Id: I570a8cf84246cc8e7c6cc2c0a0bfef49d9e69c9d
* | | | Merge "Revert "Move Scheduling system service into apex manifest.""TreeHugger Robot2022-02-101-0/+10
|\ \ \ \
| * | | | Revert "Move Scheduling system service into apex manifest."Artur Satayev2022-02-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1e0219774fc519f412c824756f036335752d8dc1. Reason for revert: we need explicit declaration in SystemServer for non-mainline devices since they use flattened apex Fix: 215565746 Test: presubmit Change-Id: Ie0cbe03c21a18a185df54a9cd9b9a2ff1ae6f821
* | | | | Merge "Replaces com.android.server.Dumpable by android.util.Dumpable."TreeHugger Robot2022-02-071-1/+7
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Replaces com.android.server.Dumpable by android.util.Dumpable.Felipe Leme2022-02-031-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: adb shell dumpsys system_server_dumper Bug: 149254050 Change-Id: I4e027599ef46b58963c8b0f97d66e510902f05c7
* | | | | Merge "Add half watchdogs to dropbox and make the watchdog timeout ↵Olivier Gaillard2022-02-071-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | configurable."
| * | | | | Add half watchdogs to dropbox and make the watchdog timeoutOlivier Gaillard2022-02-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configurable. The content of the half watchdog is now more consistent with watchdogs to make it more actionable (watchdog subject, memory psi, cpu data). The half watchdog is also published to dropbox in a similar way to the watchdog. We also use a thread to publish to dropbox to make sure that we do not block the watchdog handler code. For the half watchdog, we know wait for 5s to get the cpu data (similar to the watchdog) which delays the next run. That's only 10% of the default timeout though so that's not a big difference. For the configurable watchdog timeout, we delay fetching the value to be able to start the watchdog as early as possible when system server starts to detect blocked threads that might happen early. As well, even if fetching settings is broken, the watchdog will still be running with the default timeout values. Test: tested that the half watchdog is added to dropbox ~/master$ adb shell dumpsys dropbox | grep watchdog 2022-01-25 23:22:19 system_server_pre_watchdog (compressed text, 21612 bytes) 2022-01-25 23:22:56 system_server_watchdog (compressed text, 21386 bytes) 2022-01-25 23:29:09 system_server_pre_watchdog (compressed text, 21621 bytes) The watchdogs and half wathdogs were generated by adding a message with a long sleep on the ui thread Runnable runnable = new Runnable() { @Override public void run() { SystemClock.sleep(40_000); // 40s } }; Message msg = Message.obtain(UiThread.getHandler(), runnable); msg.setAsynchronous(true); UiThread.getHandler().sendMessage(msg); Bug: 209932320 Change-Id: I1bca723d1d7bee98dc7e1aade73a2e4384d6f035
* | | | | | [MS62.1] Start NetworkStatsService from the moduleJunyu Lai2022-02-071-20/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkStatsService is going to be moved into Connectivity mainlne module and it will be not visible to SystemServiceResistry after migration done. Thus: 1. Register service in NetworkStatsServiceInitialalizer, a separate initializer is needed because the service needs to be created before NetworkPolicyManagerService's initialization. 2. Call SystemReady at PHASE_ACTIVITY_MANAGER_READY phase where it needs to be ready before StatsPullAtomService pulls at PHASE_THIRD_PARTY_APPS_CAN_START. 3. Register manager in ConnectivityFrameworkInitializerTiramisu instead of SystemServiceRegistery. Test: atest FrameworksNetTests CtsNetTestCases NetworkUsageStatsTest Bug: 204830222 Change-Id: I95020d816ed613ce3480a0720a5b71dcdc7fab72
* | | | | | Fix a bug where the AmbientContextManager is not registered if the ↵Kathy Chen2022-02-031-5/+0
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AmbientContextDetectionService is not available. The manager should always be available, and return STATUS_SERVICE_NOT_AVAILABLE in this case. Test: end-to-end test Bug: 192476579 Change-Id: Ifce8c8dbb71a7bb6efd65db41686c14681cf0e4a
* | | | | Merge "Revert "Revert "Revert "Revert "Introduce initOrder for ↵Artur Satayev2022-02-031-8/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | apex-system-services."""""