[CTS] CtsServicesHostTestCases | Sukhu

android.server.cts.ActivityManagerDisplayTests#testConsequentLaunchActivityFromSecondaryDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

android.server.cts.ActivityManagerDisplayTests#testConsequentLaunchActivityFromVirtualDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testConsequentLaunchActivityFromVirtualDisplayToTargetDisplay    fail    junit.framework.ComparisonFailure: Launched activity must be focused expected:<android.server.cts[.second/.Second]Activity> but was:<android.server.cts[/.Launching]Activity>
android.server.cts.ActivityManagerDisplayTests#testContentDestroyOnDisplayRemoved    fail    junit.framework.AssertionFailedError: Activity from removed display must be destroyed
android.server.cts.ActivityManagerDisplayTests#testDisplayResize    fail    junit.framework.AssertionFailedError: Activity=android.server.cts/.ResizeableActivity must be visible.
android.server.cts.ActivityManagerDisplayTests#testExternalDisplayActivityTurnPrimaryOff    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testExternalDisplayToggleState    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testImmediateLaunchOnNewDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchActivitiesAffectsVisibility    fail    junit.framework.AssertionFailedError: Activity=android.server.cts/.VirtualDisplayActivity must be visible.
android.server.cts.ActivityManagerDisplayTests#testLaunchActivityFromAppToSecondaryDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchActivityOnSecondaryDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchExternalDisplayActivityWhilePrimaryOff    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchNonResizeableActivityFromSecondaryDisplayNewTask    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchNonResizeableActivityFromSecondaryDisplaySameTask    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testLaunchWithoutPermissionOnVirtualDisplayByOwner    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<15> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testMoveNonResizeableActivityToSecondaryDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testMoveTaskBetweenDisplays    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<21> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testMoveToDisplayOnLaunch    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testNewTaskSameDisplay    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testPermissionLaunchFromAppOnSecondary    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<3> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testPermissionLaunchFromDifferentApp    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<6> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testPermissionLaunchFromOwner    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<5> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testPermissionLaunchFromShell    fail    junit.framework.AssertionFailedError: Focused stack must be on secondary display expected:<2> but was:<0>
android.server.cts.ActivityManagerDisplayTests#testPermissionLaunchMultiUidTask    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testRotationNotAffectingSecondaryScreen    fail    junit.framework.AssertionFailedError: Sizes must not change after rotation
android.server.cts.ActivityManagerDisplayTests#testStackFocusSwitchOnDisplayRemoved3    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testStackFocusSwitchOnTouchEvent    fail    junit.framework.ComparisonFailure: Focus must be switched back to primary display expected:<android.server.cts/.[VirtualDisplay]Activity> but was:<android.server.cts/.[Test]Activity>
android.server.cts.ActivityManagerDisplayTests#testStackFocusSwitchOnTouchEventAfterKeyguard    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
android.server.cts.ActivityManagerDisplayTests#testTaskMatchAcrossDisplays    fail    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

解决方案


进行如下修改:

frameworks/native/data/etc/handheld_core_hardware.xml

From b04ac23dc510b0b6869ea3b3827f47d16af87ef9 Mon Sep 17 00:00:00 2001 
From: Bulbul Dabi <bdabi@codeaurora.org> 
Date: Thu, 25 Jan 2018 14:07:45 +0530 
Subject: [PATCH] Disable "activities_on_secondary_displays" for low ram 
devices 

Wihout this, cts will expect test activity to be launched on 
secondary display for low ram devices also. 

CTS Test: android.server.cts.ActivityManagerDisplayTests 
GTS Test: com.google.android.gts.cast.VirtualDisplayHostTest 
#testTestActivityEmbeddingOnVirtualDisplay 

Change-Id: Ib65f2ea4179e4ad04c7a66d08a52c732f80a0123 
--- 
data/etc/handheld_core_hardware.xml | 2 +- 
1 file changed, 1 insertion(+), 1 deletion(-) 

diff --git a/data/etc/handheld_core_hardware.xml b/data/etc/handheld_core_hardware.xml 
index f2073e2..89adbe4 100644 
--- a/data/etc/handheld_core_hardware.xml 
+++ b/data/etc/handheld_core_hardware.xml 
@@ -45,7 +45,7 @@ 
<feature name="android.software.backup" /> 
<feature name="android.software.home_screen" /> 
<feature name="android.software.input_methods" /> 
- <feature name="android.software.activities_on_secondary_displays" /> 
+ <feature name="android.software.activities_on_secondary_displays" notLowRam="true" /> 
<feature name="android.software.print" /> 
<feature name="android.software.companion_device_setup" /> 
<feature name="android.software.autofill" />

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据