summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-04 20:28:22 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-04-04 20:28:22 +0000
commit3e122248ac46c601427b552bf20a4fbb39528471 (patch)
treef47d8c0c1accf0d0e585b6dab963ca3a15c5b8de
parent9966b135c4ae44e7899e6d5e3dc0bc0156cb5539 (diff)
parent1176e982930766e05c6fcbf18386404f4a3ffe03 (diff)
downloadcts-sparse-9890527-L02900000960452812.tar.gz
Merge "Snap for 9876814 from 8c6fe811beacaf5e4d00bdf491f4bb053bc4a5d1 to android12-tests-release" into android12-tests-releasesparse-9890527-L46100000960419840sparse-9890527-L02900000960452812
-rw-r--r--tests/accessibilityservice/res/values/dimens.xml21
-rw-r--r--tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java6
-rw-r--r--tests/accessibilityservice/src/android/accessibilityservice/cts/activities/AccessibilityEndToEndActivity.java3
-rw-r--r--tools/cts-tradefed/res/config/cts-known-failures.xml4
4 files changed, 31 insertions, 3 deletions
diff --git a/tests/accessibilityservice/res/values/dimens.xml b/tests/accessibilityservice/res/values/dimens.xml
new file mode 100644
index 00000000000..a50549c55ed
--- /dev/null
+++ b/tests/accessibilityservice/res/values/dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ ~ 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.
+ -->
+
+<resources>
+ <dimen name="button_touchable_width_increment_amount">48dp</dimen>
+</resources> \ No newline at end of file
diff --git a/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java b/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
index 1b003e3cdbe..0621ac54d72 100644
--- a/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
+++ b/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
@@ -870,7 +870,8 @@ public class AccessibilityEndToEndTest {
final Button buttonWithTooltip = mActivity.findViewById(R.id.buttonWithTooltip);
final int[] buttonWithTooltipLocation = new int[2];
buttonWithTooltip.getLocationOnScreen(buttonWithTooltipLocation);
- final int touchableSize = 48;
+ final int touchableSize = resources.getDimensionPixelSize(
+ R.dimen.button_touchable_width_increment_amount);
final int hoverRight = buttonWithTooltipLocation[0] + touchableSize / 2;
final int hoverLeft = buttonLocation[0] + button.getWidth() + touchableSize / 2;
final int hoverMiddle = (hoverLeft + hoverRight) / 2;
@@ -925,8 +926,9 @@ public class AccessibilityEndToEndTest {
throws Throwable {
mActivity.waitForEnterAnimationComplete();
- final int touchableSize = 48;
final Resources resources = sInstrumentation.getTargetContext().getResources();
+ final int touchableSize = resources.getDimensionPixelSize(
+ R.dimen.button_touchable_width_increment_amount);
final String targetResourceName = resources.getResourceName(R.id.buttonDelegated);
final View textView = mActivity.findViewById(R.id.delegateText);
final Button target = mActivity.findViewById(R.id.buttonDelegated);
diff --git a/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/AccessibilityEndToEndActivity.java b/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/AccessibilityEndToEndActivity.java
index 0e16b790e8c..7f2b95d48d3 100644
--- a/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/AccessibilityEndToEndActivity.java
+++ b/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/AccessibilityEndToEndActivity.java
@@ -74,7 +74,8 @@ public class AccessibilityEndToEndActivity extends AccessibilityTestActivity {
ListView listView = (ListView) findViewById(R.id.listview);
listView.setAdapter(listAdapter);
- final int touchableSize = 48;
+ final int touchableSize = getResources().getDimensionPixelSize(
+ R.dimen.button_touchable_width_increment_amount);
Button button = findViewById(R.id.button);
Function<View, Rect> withTouchableAtRight = (v) -> new Rect(
v.getLeft(), 0, v.getRight() + touchableSize, v.getHeight());
diff --git a/tools/cts-tradefed/res/config/cts-known-failures.xml b/tools/cts-tradefed/res/config/cts-known-failures.xml
index 057692d9368..83db5b608a6 100644
--- a/tools/cts-tradefed/res/config/cts-known-failures.xml
+++ b/tools/cts-tradefed/res/config/cts-known-failures.xml
@@ -23,6 +23,10 @@
<option name="compatibility:exclude-filter" value="CtsLocationTestCases android.location.cts.GnssTtffTests#testTtffWithNetwork" />
<option name="compatibility:exclude-filter" value="CtsLocationTestCases[instant] android.location.cts.GnssTtffTests#testTtffWithNetwork" />
+ <!-- b/17989532 -->
+ <option name="compatibility:exclude-filter" value="CtsCameraTestCases android.hardware.camera2.cts.SurfaceViewPreviewTest#testPreparePerformance" />
+ <option name="compatibility:exclude-filter" value="CtsCameraTestCases[instant] android.hardware.camera2.cts.SurfaceViewPreviewTest#testPreparePerformance" />
+
<!-- b/23776893 -->
<option name="compatibility:exclude-filter" value="CtsDumpsysHostTestCases android.dumpsys.cts.DumpsysHostTest#testBatterystatsOutput" />
<option name="compatibility:exclude-filter" value="CtsDumpsysHostTestCases android.dumpsys.cts.DumpsysHostTest#testGfxinfoFramestats" />