这个项目是针对Go版本,

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: but was:
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: but was:
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  
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 @@ 
 
 
 
-  
+  
 
 

 

更多相关文章

  1. android在java中动态改变控件大小
  2. Android(安卓)O 物理键盘和虚拟键盘同时支持
  3. Android(安卓)应用程序运行shell命令
  4. android的ndk修改app_platform的方法,亲测绝对可行
  5. Android(安卓)resource compilation failed( com.android.suppor
  6. Android固件img文件的解包, 修改和打包的命令行操作
  7. Android(安卓)读取安装的非系统应用程序
  8. Android(安卓)安装步骤
  9. android p 4G LTE 默认关闭修改

随机推荐

  1. android 系统属性 build.prop
  2. 2013.12.23 (2)——— android 代码调用she
  3. android获取手机号码以及imsi信息
  4. android按钮监听器的四种技术
  5. android网络图片的下载
  6. Android PinyinIME 源码笔记 -- 0. 简介
  7. Android Webview调用系统相册实现多选图
  8. Android图形报表之AchartEngine(附开发包
  9. Installation error: INSTALL_FAILED_INS
  10. 解决ListView的ItemView中带有Button时,On