IPC机制阅读笔记

IPC机制(阅读笔记)

查看线程信息

adb shell ps | grep com.xxx.xxx

系统创建新的进程同时分配独立虚拟机,所以这个过程其实就是启动一个应用的过程。

SharedUID

对象序列化

https://my.oschina.net/wuyiwu/blog/87154

DeathRecipient

https://my.oschina.net/shaorongjie/blog/124133
http://blog.csdn.net/free555/article/details/14754323

CharSequence

/**
 * This interface represents an ordered set of characters and defines the
 * methods to probe them.
 */
public interface CharSequence {

    /**
     * Returns the number of characters in this sequence.
     *
     * @return the number of characters.
     */
    public int length();

    /**
     * Returns the character at {@code index}.
     * @throws IndexOutOfBoundsException if {@code index < 0} or {@code index >= length()}.
     */
    public char charAt(int index);

    /**
     * Returns a {@code CharSequence} from the {@code start} index (inclusive)
     * to the {@code end} index (exclusive) of this sequence.
     *
     * @param start
     *            the start offset of the sub-sequence. It is inclusive, that
     *            is, the index of the first character that is included in the
     *            sub-sequence.
     * @param end
     *            the end offset of the sub-sequence. It is exclusive, that is,
     *            the index of the first character after those that are included
     *            in the sub-sequence
     * @return the requested sub-sequence.
     * @throws IndexOutOfBoundsException
     *             if {@code start < 0}, {@code end < 0}, {@code start > end},
     *             or if {@code start} or {@code end} are greater than the
     *             length of this sequence.
     */
    public CharSequence subSequence(int start, int end);

    /**
     * Returns a string with the same characters in the same order as in this
     * sequence.
     *
     * @return a string based on this sequence.
     */
    public String toString();
}

RemoteCallbackList

在多进程中,Binder会将传递的对象重新转化并生成一个新的对象,对象的跨进程传输的本质都是反序列化的过程。

public class RemoteCallbackList<E extends IInterface> {
    /*package*/ ArrayMap<IBinder, Callback> mCallbacks = new ArrayMap<IBinder, Callback>();
    ...
}

AIDL权限验证

http://blog.csdn.net/ekeuy/article/details/39697683

MediaStore

https://developer.android.com/reference/android/provider/MediaStore.html
http://blog.csdn.net/zqiang_55/article/details/7061882

ContentProvider通过Uri区分外界要访问的数据集合、

UriMatcher

http://blog.csdn.net/feng88724/article/details/6331396

SQLiteDatabase内部对数据库的操作是有同步处理的。

ContentResolver

http://blog.csdn.net/cankingapp/article/details/7792999

Binder连接池

http://blog.csdn.net/ljd2038/article/details/50733153

CountDownlatch

http://blog.csdn.net/chenqinglin163/article/details/38690909
http://blog.csdn.net/chenssy/article/details/49794141

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值