summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge "Make AppTransition animations sharable (1/n)" into sc-devTony Huang2021-02-011-0/+1
|\ \ \ \ \
| * | | | | Make AppTransition animations sharable (1/n)Tony Huang2021-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move some animation functions in AppTransition to new TransitionAnimation class for wm-shell using. Bug: 175053726 Test: build Change-Id: I7eef67359fd4532f7e4d97c787d5288362a32f13
* | | | | | Merge "Add a new system service: MediaCommunicationService" into sc-devHyundo Moon2021-02-011-0/+7
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Add a new system service: MediaCommunicationServiceHyundo Moon2021-01-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 175511943 Test: MediaCommunicationService can run. 'adb shell service list' shows the service. Change-Id: I81a1e11d96d1d30a29760507be6fe04592afcf70 Merged-In: I81a1e11d96d1d30a29760507be6fe04592afcf70
* | | | | | Add GameManager service.Peiyong Lin2021-01-291-0/+6
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GameManager service is a service to manage game related features. This patch creates the initial service to manage the game mode and persist the data across reboot. Bug: b/174956354 Test: atest GameManagerTests Test: atest GameManagerServiceTests Test: atest GameManagerServiceSettingsTests Change-Id: Iee2ab47c79d29f48847bc6d4b3eb781a5af18ff4
* | | | | Start VcnManagementService after ConnectivityServiceBenedict Wong2021-01-281-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change alters the start-up order of the VCN and Connectivity services. Bug: 174636568 Test: atest FrameworksVcnTests Test: atest FrameworksNetTests Change-Id: I1af29d52b94e77781eb2bf2082fcbe43648ee800
* | | | | Merge "Add System speech recognition service." into sc-devSergey Volnov2021-01-281-1/+12
|\ \ \ \ \
| * | | | | Add System speech recognition service.Eugenio Marchiori2021-01-271-1/+12
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Bug: 176578753 Test: local demo, CTS will follow Change-Id: Ia7766c506bf43a5db5b9719363da66aab263fd8d
* / | | | Move code from c.a.server.location.timezoneNeil Fuller2021-01-271-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move code from com.android.server.location.timezone to com.android.server.timezonedetector.location. It has more in common with time zone detection than location code. Bug: 175119330 Test: Treehugger Change-Id: I80e8c88ba1e3903f3b662cb195c5b2877ba661b0
* | | | Merge "Thread.sleep takes milliseconds, not seconds." am: b79bd2867f am: ↵Josh Gao2021-01-271-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 81830b2d5f am: 629791842e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1560108 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie06960dc37d80daebce68bf51e58b1b4cb7c6c0f
| * | | Merge "Thread.sleep takes milliseconds, not seconds."Josh Gao2021-01-261-1/+1
| |\ \ \
| | * | | Thread.sleep takes milliseconds, not seconds.Josh Gao2021-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Test: treehugger Change-Id: I822937ecd7778f0b9cf2fd22d281ace195f7cb56
* | | | | Merge "Add app hibernation service stubs" am: d7bac025fb am: d131f3737d am: ↵Treehugger Robot2021-01-271-0/+9
|\| | | | | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1438f59fb0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1544924 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I938d23eada77c80966b710a373de927adf72fae4
| * | | Merge "Add app hibernation service stubs"Treehugger Robot2021-01-261-0/+9
| |\ \ \ | | |/ / | |/| |
| | * | Add app hibernation service stubsKevin Han2021-01-131-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add app hibernation system service and manager class and start it when app hibernation flag is enabled. The actual API is currently stubbed and will be implemented in further CLs. Bug: 175829330 Test: adb shell device_config put app_hibernation app_hibernation_enabled true adb reboot adb shell services list Change-Id: Ide2758d3eaabae7d3df6356d4b6435c5137c554d
* | | | Introduces RotationResolverService to the systemYi Jiang2021-01-251-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rotation Resolver Service provides the suggested screen rotation to the system server. Bug: 162359770 Bug: 172370409 Test: atest RotationResolverManagerPerUserServiceTest Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
* | | | Move role into module.Hai Zhang2021-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes have to be in this CL together because: - Code in service-permission depends on IRoleManager in framework-permission, so the APIs in framework-permission and the code in service-permission need to be moved together. - The changes to service-permission build rules doesn't make sense without the code moved in, so they have to be together as well. Other details: - framework-annotations: Several annotations are added into framework-annoatations. Since the discussion with API council seems to allow user IDs in system server in-process APIs, @UserIdInt and @AppIdInt is added. @MainThread and @AnyThread is added since @WorkerThread is already added. @CallSuper is added since @CheckResult is also already added and they are similar in terms of category of functionality. - framework-permission-s-shared-srcs: 3 classes (and 2 AIDL files) from framework is copied as shared source files and jarjared for framework-permission, and an additional 3 is added for service-permission as service-permission-shared-srcs. Similar to framework-wifi and service-wifi, the 3 classes in framework-permission is also available to service-permission by the stub library framework-permission-pre-jarjar, and the other 3 classes used only for service-permission is included separately to minimize our impact on classes loaded into boot classpath. framework-permission and service-permission shares the same jarjar rules to make sure the classes remain available, and for the same reason framework-permission cannot be shrank during any optimization. - framework-permission-s-shared: A java_library target for framework-permission-shared-srcs is created to make sure that the public classes won't be counted as APIs, as it would be if directly included as srcs for framework-permission java_sdk_library. service-permission-shared is the same thing for service-permission. - framework-permission-s: A new java_sdk_library target created to be loaded into bootclasspath by Android S+. - Dumpsys Protobuf: The dumpsys protobuf file (rolemanagerservice.proto) is moved into the module, and both the platform (incident.proto) and the module uses protoc-gen-javastream to generate the Java classes from it. This should be fine since it's a "source level inclusion", and we jarjar the generated classes in our module to avoid conflict with platform copies. Bug: 158736025 Test: manual Test: device boots, default apps can be changed successfully. Change-Id: I1914774f631e51d0c587a7e527a1c9bc05ee1595
* | | | Prepare role code for modularization.Hai Zhang2021-01-221-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - PooledLambda: PoolLambda is replaced with plain lambdas, to avoid adding ~20 classes to boot classpath (for each module that uses lambda). - SystemServiceRegistry: RoleFrameworkInitializer is added to add ROLE_SERVICE, similar to other modules. - RoleService: RoleManagerService is renamed to RoleService to better reflect the manager/service relationship. - @MainThread: import for Looper is removed because it's only used in javadoc and triggers package not exist error during build. @linkplain in the javadoc is also removed because it triggers an error in Metalava parsing and isn't critical. - Added small utilities: These utilities has their full version in platform, but is too large and contains too many internal references in methods unreferenced by role, whereas actually role only needs 1 or 2 methods from them. So just create a small copy of the used methods for role modularization, and they will be moved into APEX with role. Bug: 158736025 Test: manual Change-Id: I74f20b37d23370e258e7fc7130e28c5312abf46c
* | | | Move computePackageStateHash() implementation into platform.Hai Zhang2021-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The computePackageStateHash() implementation needs PackageManagerInternal.forEachInstalledPackage(), getApplicationEnabledState(), getEnabledComponents() and getDisabledComponents() to work, for which we don't have good alternatives in API. Even if we added those APIs, generating and iterating over PackageInfo for all packages in the system would surely drive up CPU and memory usage and regress our performance, and the new AndroidPackage system APIs isn't ready in S yet. So we can move computePackageStateHash() implementation into platform. Once we move role logic into system server, granting default roles may be fast enough and we may consider the deprecation/removal of this. This way we can also remove the final dependency we have on PackageManagerInternal and be ready for modularization. Bug: 158736025 Test: presubmit Change-Id: I14119f2e95c861ee3539108748a4912b051b4462
* | | | Merge changes Ife27ecd6,I1a893ea8Eva Chen2021-01-211-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add GnssTimeUpdateService. Add meta-text about gnss time update attribution.
| * | | | Add GnssTimeUpdateService.Eva Chen2021-01-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GnssTimeUpdateService listens for location updates. Once an update is received, it reads the time provided by GPS and suggests it to TimeDetectorService. TimeDetectorService can then use it to set the SystemClock based on included time sources and priority. Bug: 157265008 Test: Presubmits + atest + Manual - atest frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/GnssTimeUpdateServiceTest.java - For manual testing, the Location Shell Commands can be used to add / enable a gps test provider to set gps locations with a specified time. The time detector dumpsys can then be used to verify that a GNSS suggestion has been made. Change-Id: Ife27ecd6d122f33b7cc93d7832e3085acc33c160
* | | | | Use a single interface for reading pre-Q and pre-S role state.Hai Zhang2021-01-151-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic to read the platform XML is moved from RoleUserState. The logic to read legacy settings is left untouched except refactored to return the mapping at once. Bug: 158736025 Test: presubmit Change-Id: Ifd1770bf869ea77b2f8a4ff8b3eae46a46cc90cf
* | | | Merge changes I0f1d59ae,I2f63bffb am: 9f7a73fc21 am: 87caaf0da8 am: e0cbabe562Josh Gao2021-01-141-1/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432973 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0298ef531a86502e0da39b68193f2647a13ce01d
| * | | Merge changes I0f1d59ae,I2f63bffbJosh Gao2021-01-141-1/+66
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | * changes: fdtrack: GC before checking fd count. Move system_server fdtrack implementation to Java.
| | * | fdtrack: GC before checking fd count.Josh Gao2021-01-111-0/+6
| | | | | | | | | | | | | | | | | | | | Test: treehugger Change-Id: I0f1d59ae4240a24f8b8e4b015c1923acb1140bce
| | * | Move system_server fdtrack implementation to Java.Josh Gao2021-01-111-1/+60
| | |/ | | | | | | | | | | | | Test: manual Change-Id: I2f63bffba55d6fc82d128c7e7546a193e0f62a73
* | | Merge changes I3eb82680,I9d6147d9 am: bbd9fb5c27 am: c27bf45cb6 am: 54e08a027cLorenzo Colitti2021-01-131-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1547644 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3f0d6bfead295ed6a98a15ef9bb3542b88d5652a
| * | Stop using IIpConnectivityMetrics in ConnectivityService.Lorenzo Colitti2021-01-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, ConnectivityService calls the IpConnectivityMetrics service class directly to log default network events. This is incompatible with ConnectivityService being in a mainline module. Replace direct access to IIpConnectivityMetrics with public methods in IpConnectivityLog, which is @SystemApi class. The new methods are not yet @SystemApi, but they can be made so if desired. Alternatively, these metrics could be deleted. Also remove the IpConectivityMetrics service from the service-connectivity JAR, and go back to starting it from SystemServer.java, which is what was happening a few hours ago before aosp/1542626 was merged. Test: builds, boots Test: atest FrameworksNetTests Test: "dumpsys connmetrics" shows events, including default network events Change-Id: I9d6147d93590363a2f8f83f39f05c03d001b4851
* | | Register translation service.Joanne Chung2021-01-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 173243538 Test: manual. Make sure device can boot to home and we can get the TranslationManager successfully. Change-Id: Ib0e733d6b8f3792431d71f9791b5b2e43a029a7b
* | | Merge "Revert^2 "Move service-connectivity to the tethering APEX"" am: ↵Remi NGUYEN VAN2021-01-121-3/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f0fafeb11 am: f931a80e81 am: ce98a47a89 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542626 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I81a7577b0cf474bbb53ca38ddd093ba4342ab543
| * | Merge "Revert^2 "Move service-connectivity to the tethering APEX""Remi NGUYEN VAN2021-01-121-3/+6
| |\ \
| | * | Revert^2 "Move service-connectivity to the tethering APEX"Remi NGUYEN VAN2021-01-081-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of modularization of ConnectivityService and expansion of the Tethering module scope, move service-connectivity.jar into the tethering APEX, and load it from there. This rolls forward the change. The original topic was reverted because of a bad merged-in clause; this is fixed and re-verified in this topic. Bug: 171540887 Test: m, device boots and connectivity Change-Id: I293b09c0dc04c6ccafa30cd0f1a63efe32283604
| * | | Merge changes from topic "revert-1532910-connectivity_jar_in_apex-LKXFLQGLIU"Treehugger Robot2021-01-071-6/+3
| |\| | | | | | | | | | | | | | | | | | | | | | * changes: Revert "Set setCurrentProxyScriptUrl as public" Revert "Move service-connectivity to the tethering APEX"
| | * | Revert "Move service-connectivity to the tethering APEX"Pete Bentley2021-01-071-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert submission 1532910-connectivity_jar_in_apex Reason for revert: Breaks boot tests: b/176969905 Reverted Changes: Ie41a5b569:Set setCurrentProxyScriptUrl as public Id7b6a4664:Move service-connectivity to the tethering APEX Ia7cb83834:Add service-connectivity to tethering APEX Change-Id: I1c369dd8a6527513f8fc1a5cacde59d78d104c7e
* | | | Merge "Do not load Typefaces twice in system server."Kohsuke Yatoh2021-01-091-1/+3
|\ \ \ \
| * | | | Do not load Typefaces twice in system server.Kohsuke Yatoh2020-12-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Zygote should have already loaded them if ENABLE_LAZY_TYPEFACE_INITIALIZATION is false. Bug: 172891184 Test: boot Change-Id: I3c02463b217f31068dc26bf3451cb1d612154230
* | | | | Revert "Move service-connectivity to the tethering APEX"Pete Bentley2021-01-071-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert submission 1532910-connectivity_jar_in_apex Reason for revert: Breaks boot tests: b/176969905 Reverted Changes: Ie41a5b569:Set setCurrentProxyScriptUrl as public Id7b6a4664:Move service-connectivity to the tethering APEX Ia7cb83834:Add service-connectivity to tethering APEX Change-Id: I1c369dd8a6527513f8fc1a5cacde59d78d104c7e (cherry picked from commit 3e157018f7745956e03bc82324ef4921366a43fc)
* | | | | Merge changes from topic "preinstall-overrides" am: 29ed176b46 am: ↵Andrei-Valentin Onea2021-01-071-0/+3
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d1ebbf5086 am: dd1d1cbacc Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520701 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifbdca1201aa118e59b45f7dd89441a210fc2fa9c
| * | | | Merge changes from topic "preinstall-overrides"Andrei-Valentin Onea2021-01-071-0/+3
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | * changes: Add force_non_debuggable_final_build_for_compat Allow overriding compat config prior to install time.
| | * | | Allow overriding compat config prior to install time.Andrei Onea2020-12-301-0/+3
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user tries to apply an override for a package that is not yet installed, the override is put into a 'deferred' bucket, to be validated upon installation. Overrides are rechecked every time an app is installed, updated or deleted. If a deferred override is valid at install or update time, it gets promoted to a regular override. If a deferred override cannot be applied upon app installation or update, it remains deferred. If an app is deleted, all its overrides become deferred. When any of the reset commands are called for a given package, that removes both regular and deferred overrides. Bug: 158696818 Test: atest CompatConfigTest Test: atest OverrideValidatorImplTest Change-Id: I50eab62214d1325ec6185ddcfe9e8f425e11c98b
* | | | Merge changes from topic "connectivity_jar_in_apex" am: 60dfb880de am: ↵Lorenzo Colitti2021-01-071-3/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6feb97a95b am: 7a26ec1976 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532910 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I49964ba08c0983cd51fa06afe0be07a5c9bfaab1
| * | | Move service-connectivity to the tethering APEXRemi NGUYEN VAN2021-01-071-3/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of modularization of ConnectivityService and expansion of the Tethering module scope, move service-connectivity.jar into the tethering APEX, and load it from there. Bug: 171540887 Test: m, device boots and connectivity Change-Id: Id7b6a4664ae73224b9ab219c94f56d603a62ee5a
| * | Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855Xin Li2020-12-021-7/+16
| |\ \ | | | | | | | | | | | | | | | | | | | | Bug: 172690556 Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6 Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
* | | | Add Initial SearchUIManagerHyunyoung Song2020-12-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:162234997 Test: builds, locally ran cts tests CTS tests: ag/13129468 [Meeting notes with Svet/Sunny/Winson] go/aaplus-search-api [Design diagrams] go/aaplus-search-supl Change-Id: I4589cd411e124dc9d7ea132a71651f6b9f9656ae
* | | | Migrate DisplayFoldController fold state to be based on device state.Darryl L Johnson2020-12-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies DisplayFoldController to base it's internal 'fold' state from being configured directly based on the lid switch (or the proximity sensor) to be based on the device state. Bug: 159401801 Test: Manual - fold/unfold and validate fold state Change-Id: Ib3ecc6326b1d73720d31fa94f33160cfaf1109cd
* | | | Implement setAlwaysOn to IVibratorManagerServiceLais Andrade2020-12-041-0/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implementation supports synced CombinedVibrationEffect instances with prebaked effects only. This implementation adds some vibration checks from VibratorService to VibratorManager, and wires the implementation of VibratorController native service to IVibratorManager. Bug: 167946816 Bug: 131311651 Test: atest FrameworksServiceTests:VibratorManagerServiceTest Change-Id: I8da10c7903e91bba30b11fe46515121858fb5211
* | | Prepare switching font loading to system server.Kohsuke Yatoh2020-12-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, fonts are loaded in Zygote. This CL adds a preparation to switch it to system server and bindApplication(), so that system server will be able to update font map at runtime. (1) Zygote will be initialized without fonts. (2) System server will maintain a serialized font map in ashmem. (3) Apps will load font map from the ashmem in bindApplication(). The change is guarded by Typeface.ENABLE_LAZY_TYPEFACE_INITIALIZATION, and the new behavior is disabled by default. I tested with ENABLE_LAZY_TYPEFACE_INITIALIZATION = true. Bug: 172891184 Test: atest FrameworksCoreTests:TypefaceTest Test: atest CtsGraphicsTestCases Test: atest CtsTextTestCases Test: atest CtsWidgetTestCases Change-Id: I40832962a4b27f6160c4dc6268689c52f6a4dd33
* | | Merge "Initialize AIDL biometric HALs after BiometricService is started"TreeHugger Robot2020-11-121-3/+16
|\ \ \
| * | | Initialize AIDL biometric HALs after BiometricService is startedKevin Chyn2020-11-111-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 172291793 Test: On device with default AIDL HAL, notice it's registered with BiometricService Test: atest com.android.server.biometrics Change-Id: Ia7283cf9473ef1d33237f2b4788d81b79ae26824
* | | | Initial definition of DevicePolicySafetyChecker.Felipe Leme2020-11-111-2/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This object will be used to fail DevicePolicyManagers that cannot be executed on automotive when it's not safe to (for example, because the vehicle is moving). Test: atest CarDevicePolicyManagerTest#testLockNow_safe \ CarDevicePolicyManagerTest#testLockNow_unsafe Bug: 172376923 Change-Id: I7f910a7ee5efc7d647525db1687bd27e68cb7c0a