/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: G:\\publish\\codes\\10\\10.3\\BlockList\\src\\com\\android\\internal\\telephony\\ITelephony.aidl
*/
package com.android.internal.telephony;
/**
* 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.
*
* {@hide}
*/
public interface ITelephony extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.android.internal.telephony.ITelephony
{
private static final java.lang.String DESCRIPTOR = "com.android.internal.telephony.ITelephony";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
* Cast an IBinder object into an com.android.internal.telephony.ITelephony interface,
* generating a proxy if needed.
*/
public static com.android.internal.telephony.ITelephony asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.android.internal.telephony.ITelephony))) {
return ((com.android.internal.telephony.ITelephony)iin);
}
return new com.android.internal.telephony.ITelephony.Stub.Proxy(obj);
}
public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_dial:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.dial(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_call:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.call(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_showCallScreen:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.showCallScreen();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_showCallScreenWithDialpad:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
boolean _result = this.showCallScreenWithDialpad(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_endCall:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.endCall();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_answerRingingCall:
{
data.enforceInterface(DESCRIPTOR);
this.answerRingingCall();
reply.writeNoException();
return true;
}
case TRANSACTION_silenceRinger:
{
data.enforceInterface(DESCRIPTOR);
this.silenceRinger();
reply.writeNoException();
return true;
}
case TRANSACTION_isOffhook:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isOffhook();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isRinging:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isRinging();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isIdle:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isIdle();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isRadioOn:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isRadioOn();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isSimPinEnabled:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isSimPinEnabled();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_cancelMissedCallsNotification:
{
data.enforceInterface(DESCRIPTOR);
this.cancelMissedCallsNotification();
reply.writeNoException();
return true;
}
case TRANSACTION_supplyPin:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _result = this.supplyPin(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_handlePinMmi:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _result = this.handlePinMmi(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_toggleRadioOnOff:
{
data.enforceInterface(DESCRIPTOR);
this.toggleRadioOnOff();
reply.writeNoException();
return true;
}
case TRANSACTION_setRadio:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
boolean _result = this.setRadio(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_updateServiceLocation:
{
data.enforceInterface(DESCRIPTOR);
this.updateServiceLocation();
reply.writeNoException();
return true;
}
case TRANSACTION_enableLocationUpdates:
{
data.enforceInterface(DESCRIPTOR);
this.enableLocationUpdates();
reply.writeNoException();
return true;
}
case TRANSACTION_disableLocationUpdates:
{
data.enforceInterface(DESCRIPTOR);
this.disableLocationUpdates();
reply.writeNoException();
return true;
}
case TRANSACTION_enableApnType:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _result = this.enableApnType(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_disableApnType:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
int _result = this.disableApnType(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_enableDataConnectivity:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.enableDataConnectivity();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_disableDataConnectivity:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.disableDataConnectivity();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isDataConnectivityPossible:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isDataConnectivityPossible();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getCellLocation:
{
data.enforceInterface(DESCRIPTOR);
android.os.Bundle _result = this.getCellLocation();
reply.writeNoException();
if ((_result!=null)) {
reply.writeInt(1);
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
}
else {
reply.writeInt(0);
}
return true;
}
case TRANSACTION_getNeighboringCellInfo:
{
data.enforceInterface(DESCRIPTOR);
java.util.List<android.telephony.NeighboringCellInfo> _result = this.getNeighboringCellInfo();
reply.writeNoException();
reply.writeTypedList(_result);
return true;
}
case TRANSACTION_getCallState:
{
data.enforceInterface(DESCRIPTOR);
int _result = this.getCallState();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_getDataActivity:
{
data.enforceInterface(DESCRIPTOR);
int _result = this.getDataActivity();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_getDataState:
{
data.enforceInterface(DESCRIPTOR);
int _result = this.getDataState();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.android.internal.telephony.ITelephony
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
/**
* Dial a number. This doesn't place the call. It displays
* the Dialer screen.
* @param number the number to be dialed. If null, this
* would disp
安卓四大组件学习源代码



在安卓应用开发中,四大组件是构建应用程序的核心元素,它们分别是:Activity、Service、BroadcastReceiver以及ContentProvider。这些组件各自承担着不同的职责,是安卓应用功能实现的关键。 1. **Activity**:Activity 是用户界面的主要载体,它代表了一个可视化的交互窗口。用户可以通过点击、滑动等操作与Activity进行交互。一个应用可以有多个Activity,它们可以通过Intent来跳转。源代码中,通常会看到onCreate()、onStart()、onResume()、onPause()、onStop()和onDestroy()等生命周期方法,理解这些方法的工作原理对于掌握Activity至关重要。 2. **Service**:Service是在后台运行,不提供用户界面的服务。它可以长时间执行任务,如播放音乐或网络通信。Service的生命周期包括onCreate()、onStartCommand()和onDestroy()等方法。服务可以通过startService()启动,或者bindService()绑定,两者的区别在于是否需要与服务保持连接。 3. **BroadcastReceiver**:广播接收器用于监听系统或应用的广播事件。当特定的广播事件发生时,BroadcastReceiver会接收到通知并执行相应的处理。在源代码中,需要定义BroadcastReceiver类,并重写onReceive()方法。注册BroadcastReceiver有两种方式:静态注册(在AndroidManifest.xml中)和动态注册(在代码中)。 4. **ContentProvider**:ContentProvider是安卓系统中数据共享的桥梁,它允许应用之间交换数据。例如,联系人应用就是通过ContentProvider暴露其数据,其他应用可以查询或修改这些数据。创建ContentProvider需要继承ContentProvider类,实现query()、insert()、delete()、update()等方法。此外,还需在AndroidManifest.xml中声明ContentProvider。 源代码学习可以帮助开发者深入理解这四大组件的内部工作原理,如何相互协作以及如何与系统交互。通过分析每个组件的生命周期方法调用顺序,可以更好地掌握应用的运行流程。同时,源码还能展示如何处理Intent、如何响应系统广播以及如何实现数据持久化。 例如,Activity的源码可能包含如何正确管理Activity状态(比如在配置变化时保存和恢复),Service的源码则可能涉及如何处理长时间运行的任务和避免内存泄漏。BroadcastReceiver的源码可以揭示如何编写高效的广播接收器,避免阻塞主线程。至于ContentProvider,源码将展示如何安全地暴露和访问数据,遵循安卓的数据访问规范。 通过研究"安卓四大组件学习源代码",开发者可以提升对安卓系统运行机制的理解,从而写出更高效、稳定的应用程序。对于初学者来说,这是一个很好的起点,能够帮助他们建立起坚实的安卓开发基础。
























































































































- 1
- 2
- 3
- 4
- 5
- 6
- 17

- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整
- hitwh1311105262014-04-10受益匪浅啊!
- 舒雨2014-09-25不错, 正自学习中
- liushaoyidai2014-09-11内容很好,很有用!

- 粉丝: 17
- 资源: 28
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- [AB PLC例程源码][MMS_043640]DeviceNet Diagnostic.zip
- [AB PLC例程源码][MMS_039840]ASCII_Messaging.zip
- [AB PLC例程源码][MMS_040306]Configuration of AMCI 3601 Single Axis Stepper Motor Controller with.zip
- [AB PLC例程源码][MMS_040307]MD60, MD65 Drives control with CompactLogix.zip
- [AB PLC例程源码][MMS_040305]ASCII Read , Write for CompactLogix & Bul90.zip
- [AB PLC例程源码][MMS_040316]DINT Conversion of INT data type and Arithmatic comparison .zip
- [AB PLC例程源码][MMS_040315]Double INC and Double DEC of INT datatype.zip
- [AB PLC例程源码][MMS_040317]DINT Conversion of INT data type and Arithmetic operations like Div, Mul.zip
- [AB PLC例程源码][MMS_040319]Swaps Byte in an array.zip
- [AB PLC例程源码][MMS_040318]DINT data type to String data type conversion.zip
- [AB PLC例程源码][MMS_040322]Decoding of Boolean array.zip
- [AB PLC例程源码][MMS_040323]Encoding of Boolean array.zip
- [AB PLC例程源码][MMS_040324]Value search in an array.zip
- [AB PLC例程源码][MMS_040325]Bubble sorting.zip
- [AB PLC例程源码][MMS_040326]Level control using FBD.zip
- [AB PLC例程源码][MMS_040327]Ramp Control of Electrical parameters.zip


