Create a new GTS test for logcat dialog content validation

Create a test app to trigger the logcat dialog (per-use prompt). The
GTS test uses UiAutomator to fetch the title and body, then compares
against reference strings in SystemUI resources.

Bug: 244173032
Test: atest GtsReadLogStringTest
Change-Id: I1ca1777dc2640dbab7b089b0795b44e3d1b3d6ee
This commit is contained in:
Xiaozhen Lin
2022-11-23 02:18:08 +00:00
parent cb7442eeaa
commit 5306304bdb
2 changed files with 37 additions and 0 deletions

View File

@@ -66,6 +66,24 @@ filegroup {
],
}
//Create a library to expose SystemUI's resources to other modules.
android_library {
name: "SystemUI-res",
resource_dirs: [
"res-product",
"res-keyguard",
"res",
],
static_libs: [
"SystemUISharedLib",
"SettingsLib",
"androidx.leanback_leanback",
"androidx.slice_slice-core",
"androidx.slice_slice-view",
],
manifest: "AndroidManifest-res.xml",
}
android_library {
name: "SystemUI-core",
srcs: [

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Google Inc.
*
* 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 package= "com.android.systemui.res">
<application/>
</manifest>