summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorFelka Chang <felkachang@google.com>2021-10-12 17:35:54 +0800
committerFelka Chang <felkachang@google.com>2021-10-14 02:46:49 +0800
commitdb9a988a1b86aa795091075cd483f68e3f756b74 (patch)
tree744eb8fad6032fb4b4aab1dd1fef3d8ab4a9794b /core/java/android/inputmethodservice/AbstractInputMethodService.java
parentc8efa5b87fb2fd294aec9be04891a2111a709958 (diff)
Change OverlayHostTest to be devide_tests only.
Although OverlayHostTests.jar is a java jar file, it can run on any java VM. However, all files in frameworks/core/tests/overlaytests/host should be considered as one module rather than only OverlayHostTests.jar. ag/15993030 skip tests if the certificate of "android" package in ROM is different from "android" overlay package. ag/15993030 has a logic wrong. When the device_tests run on different certificate devices, the expected result is fail instead of skip. Test: make general-tests device-tests ; \ assertFiles() { \ unzip -l "$1" | awk \ -v "expectedNumOfApk=$2" -v "expectedNumOfJar=$3" \ '$4 ~ /OverlayHostTests.jar$/ { print $4 ; numberOfJar++ } \ $4 ~ /OverlayHostTest.*.apk$/ { print $4 ; numberOfApk++ } \ END { \ if (numberOfApk != expectedNumOfApk) { print "Fail for the apk files" } \ if (numberOfJar != expectedNumOfJar) { print "Fail for the jar file" } \ }' ;\ } ;\ assertFiles "$ANDROID_PRODUCT_OUT/device-tests.zip" 8 1 ;\ assertFiles "$ANDROID_PRODUCT_OUT/general-tests.zip" 0 0 Bug: 200698485 Fixes: 202254755 Change-Id: Iaa7b4bd8ef19f1d3fedcddfaa65e45c9024777d4
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions