PhoneAccount.java:
1、简介
(1)当user打电话时,是用户APP和dialer、incallui的桥梁。通过TelephonyManager注册: registerPhoneAccount
(2) When building a PhoneAccout,
the app should supply a valid PhoneAccountHandle
that references the connection service implementation Telecom will use to interact with the app.
2、PhoneAccount参数
(1)static class Builder: 提供创建PhoneAccount接口
(2)mAddress:outgoing call和incoming call的电话号码
(3)mSubscriptionAddress:TelephonyManager.setLine1NumberForDisplay:sim卡里面的本机号码
(4)getSupportedAudioRoutes: 耳机、蓝牙等支持程度。