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