CtsTelecomTestCases

今天遇到下面的错误 发现需要加入overlay的路径

加入/vendor/partner_gms/apps/GoogleDialer/overlay/vendor/mediatek/proprietary/packages/services/Telecomm/res/values/config.xml

具体可以看引用的文章

-------------
下面这个例子是在"vendor/google"路径中实现了对Telecom.apk资源配置的overlay。这个overlay会影响到incall-ui以及拨号盘的使用。
具体路径:“vendor/google/apps/GoogleDialer/overlay/packages/services/Telecomm/res/values/config.xml”
config.xml的内容如下:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Package name for the default in-call UI and dialer [DO NOT TRANSLATE] -->
    <string name="ui_default_package" translatable="false">com.google.android.dialer</string>

    <!-- Class name for the default main Dialer activity [DO NOT TRANSLATE] -->
    <string name="dialer_default_class" translatable="false">com.google.android.dialer.extensions.GoogleDialtactsActivity</string>

    <!-- Class name for the default incall activity [DO NOT TRANSLATE] -->
    <string name="incall_default_class" translatable="false">com.android.incallui.InCallServiceImpl</string>
</resources>

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

下面是make文件的内容:

# Overlay for GoogleDialer
PRODUCT_PACKAGE_OVERLAYS += $(ANDROID_PARTNER_GMS_HOME)/apps/GoogleDialer/overlay
 

-----------------

android.telecom.cts.ConnectionServiceTest#testConnectionServiceFocusGainedWithSameConnectionService

fail

java.util.ConcurrentModificationException

android.telecom.cts.ConnectionServiceTest#testGetAllConnections

fail

java.lang.Exception: Mock ConnectionService exists. Failed to call tearDown().

android.telecom.cts.ExtendedInCallServiceTest#testAcceptRingingCallTwoCallsCarMode

fail

junit.framework.AssertionFailedError: MockInCallService not yet unbound! expected:<false> but was:<true>

android.telecom.cts.ExtendedInCallServiceTest#testCanAddCall_CannotAddForExistingDialingCall

fail

junit.framework.AssertionFailedError: MockInCallService not yet unbound! expected:<false> but was:<true>

android.telecom.cts.ExtendedInCallServiceTest#testIncomingCallFromBlockedNumber_IsRejected

fail

junit.framework.AssertionFailedError: MockInCallService not yet unbound! expected:<false> but was:<true>

android.telecom.cts.ExtendedInCallServiceTest#testSwitchAudioRoutes

fail

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

android.telecom.cts.MissedCallTest#testMissedCall_NotifyDialer

fail

java.lang.Exception: Mock ConnectionService exists. Failed to call tearDown().

android.telecom.cts.NumberDialingTest#testEndInPound

fail

junit.framework.AssertionFailedError: MockInCallService not yet unbound! expected:<false> but was:<true>

android.telecom.cts.SelfManagedConnectionServiceTest#testAudioRoute

fail

java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1

android.telecom.cts.SelfManagedConnectionServiceTest#testTelecomManagerGetSelfManagedPhoneAccounts

fail

junit.framework.AssertionFailedError: MockInCallService not yet unbound! expected:<false> but was:<true>

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值