mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
zhidou@ from ACE team is working on AConfigFakelib which will be useful to set fake flag values in both unit tests and UI automator tests. Meanwhile, we will mock the flag values for unit tests and UI automator tests will have all flags values defaulted to false. testAConfigLib with "test:true" doesn't generate fake flags values and forces us to set the flag values using "SetFlagsRule". "SetFlagsRule" doesn't work with Out Of Proc tests and hence doesn't serve the purpose for us. AConfigFakelib and FakeFlagTargetPreparer should use for Out Of Proc tests. testAConfigLib with "test:true" is suitable for java host tests where there is no device involved. Launcher tests are instrumentation tests and tests run on actual devices. So we can use the production version of the AConfig lib and device config flag values will be fetched for UI Automator tests. Also migrating "enable_twoline_allapps" to trunk stable. Unit tests is using mockito to mock the flag value as false. The owner of "enable_twoline_allapps" can mock the value to true in unit tests as next step. Bug: 294913042 Test: Local studio build and soong build Flag: enable_twoline_allapps Change-Id: Iea42bf18197832a9ecbddc1c3aaa8c9e36169131
30 lines
986 B
Plaintext
30 lines
986 B
Plaintext
// Copyright (C) 2023 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.
|
|
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
aconfig_declarations {
|
|
name: "com_android_launcher3_flags",
|
|
package: "com.android.launcher3",
|
|
srcs: ["**/*.aconfig"],
|
|
}
|
|
|
|
java_aconfig_library {
|
|
name: "com_android_launcher3_flags_lib",
|
|
aconfig_declarations: "com_android_launcher3_flags",
|
|
}
|