Move code in settingslib/devicestate into its own module
Code in SettingsProvider will need to use DeviceStateRotationLockSettingsManager, but shouldn't have to pull in the entire SettingsLib just for one class. Bug: 196933725 Test: atest DeviceStateRotationLockSettingsManagerTest Test: build Android Change-Id: I93679700c1638396c5930386c82fa23f1f3ad6a0
This commit is contained in:
@@ -50,6 +50,7 @@ android_library {
|
||||
"SettingsLibTwoTargetPreference",
|
||||
"SettingsLibSettingsTransition",
|
||||
"SettingsLibButtonPreference",
|
||||
"SettingsLibDeviceStateRotationLock",
|
||||
"setupdesign",
|
||||
"zxing-core-1.7",
|
||||
],
|
||||
|
||||
16
packages/SettingsLib/DeviceStateRotationLock/Android.bp
Normal file
16
packages/SettingsLib/DeviceStateRotationLock/Android.bp
Normal file
@@ -0,0 +1,16 @@
|
||||
package {
|
||||
// See: http://go/android-license-faq
|
||||
// A large-scale-change added 'default_applicable_licenses' to import
|
||||
// all of the 'license_kinds' from "frameworks_base_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["frameworks_base_license"],
|
||||
}
|
||||
|
||||
android_library {
|
||||
name: "SettingsLibDeviceStateRotationLock",
|
||||
|
||||
srcs: ["src/**/*.java"],
|
||||
|
||||
min_sdk_version: "21",
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.settingslib.devicestate">
|
||||
|
||||
</manifest>
|
||||
@@ -25,7 +25,7 @@ android_test {
|
||||
name: "SettingsLibTests",
|
||||
defaults: [
|
||||
"SettingsLibDefaults",
|
||||
"framework-wifi-test-defaults"
|
||||
"framework-wifi-test-defaults",
|
||||
],
|
||||
|
||||
certificate: "platform",
|
||||
@@ -47,6 +47,7 @@ android_test {
|
||||
"androidx.test.espresso.core",
|
||||
"mockito-target-minus-junit4",
|
||||
"truth-prebuilt",
|
||||
"SettingsLibDeviceStateRotationLock",
|
||||
"SettingsLibSettingsSpinner",
|
||||
"SettingsLibUsageProgressBarPreference",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user