Android 电话相关架构及源代码分析和学习

分析com.android.internal.telephony,这是android系统内部实现的一些类。

1、ITelephony.aidl

 

interface ITelephony

/**
 * Interface used to interact with the phone.  Mostly this is used by the
 * TelephonyManager class.  A few places are still using this directly.
 * Please clean them up if possible and use TelephonyManager insteadl.

 */

这是一个接口,提供了一些和phone交互的一些函数,没有实现具体的功能比如:

void dial(String number);

 void call(String number);

boolean showCallScreen();

等等

 

从import语句:import android.telephony.NeighboringCellInfo来看,这个接口还使用了NeighboringCellInfo,因为ITelephony接口提供了下面这个函数方法:

/**
     * Returns the neighboring cell information of the device.
     */
    List<NeighboringCellInfo> getNeighboringCellInfo();

 

 

com.android.phone

 

1、PhoneInterfaceManager.java

 

public class PhoneInterfaceManager extends ITelephony.Stub

 


/**
 * Implementation of the ITelephony interface.
 */

 

这个类是对ITelephony中所有方法的实现,同时也添加了一些处理phone消息的方法。

 

2、PhoneUtils.java

 

/**
 * Misc utilities for the Phone app.
 */
public class PhoneUtils

 

主要提供了phone应用程序中所要使用的各种utilities

 

 

3、PhoneApp.java

 

/**
 * Top-level Application class for the Phone app.
 */
public class PhoneApp extends Application

 

这个类是最上层应用程序类。

 

4、BluetoothAtPhonebook.java

 

/**
 * Helper for managing phonebook presentation over AT commands
 * @hide
 */
public class BluetoothAtPhonebook

 

通过AT命令提供电话本的管理

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值