本文整理了Java中android.os.Parcel.readMap()
方法的一些代码示例,展示了Parcel.readMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parcel.readMap()
方法的具体详情如下:
包路径:android.os.Parcel
类名称:Parcel
方法名:readMap
[英]Please use #readBundle(ClassLoader) instead (whose data must have been written with #writeBundle. Read into an existing Map object from the parcel at the current dataPosition().
[中]请改用#readBundle(ClassLoader)(其数据必须使用#writeBundle.Read从当前数据位置()的地块读入现有地图对象)。
代码示例来源:origin: openxc/openxc-android
protected void readFromParcel(Parcel in) {
in.readMap(mParts, null);
}
代码示例来源:origin: renyuneyun/Easer
private DynamicsLink(Parcel in) {
in.readMap(link, HashMap.class.getClassLoader());
}
代码示例来源:origin: baasbox/Android-SDK
protected JsonObject(Parcel source) {
this();
source.readMap(map, JsonObject.class.getClassLoader());
}
代码示例来源:origin: flipkart-incubator/proteus
public SimpleIdGenerator(Parcel source) {
sNextGeneratedId = new AtomicInteger(source.readInt());
source.readMap(idMap, null);
}
代码示例来源:origin: stackoverflow.com
public DataPasser(Parcel in) {
this.id = in.readString();
this.pw = in.readString();
in.readMap(cookies, Map.class.getClassLoader());
}
代码示例来源:origin: stackoverflow.com
public DataPasser(Parcel in) {
this.id = in.readString();
this.pw = in.readString();
in.readMap(cookies, String.class.getClassLoader());
}
代码示例来源:origin: bilibili/BiliShare
protected BaseShareParam(Parcel in) {
mTitle = in.readString();
mContent = in.readString();
mTargetUrl = in.readString();
try {
in.readMap(mExtraMap, Map.class.getClassLoader());
} catch (Exception e) {
e.printStackTrace();
}
}
}
代码示例来源:origin: osmandapp/osmand-api-demo
private void readFromParcel(Parcel in) {
id = in.readString();
shortName = in.readString();
fullName = in.readString();
typeName = in.readString();
color = in.readInt();
location = in.readParcelable(ALatLon.class.getClassLoader());
in.readStringList(details);
in.readMap(params, HashMap.class.getClassLoader());
}
代码示例来源:origin: Countly/countly-sdk-android
public MessageImpl createFromParcel(Parcel in) {
Map<String, String> map = new HashMap<>();
in.readMap(map, ClassLoader.getSystemClassLoader());
Log.d("Countly", "read: " + map.get(KEY_ID));
return new MessageImpl(map);
}
代码示例来源:origin: gigabytedevelopers/FireFiles
@Override
public State createFromParcel(Parcel in) {
final State state = new State();
state.action = in.readInt();
state.userMode = in.readInt();
state.acceptMimes = new String[in.readInt()];
in.readStringArray(state.acceptMimes);
state.userSortOrder = in.readInt();
state.allowMultiple = in.readInt() != 0;
state.showSize = in.readInt() != 0;
state.showFolderSize = in.readInt() != 0;
state.showThumbnail = in.readInt() != 0;
state.showHiddenFiles = in.readInt() != 0;
state.localOnly = in.readInt() != 0;
state.forceAdvanced = in.readInt() != 0;
state.showAdvanced = in.readInt() != 0;
state.rootMode = in.readInt() != 0;
state.stackTouched = in.readInt() != 0;
state.restored = in.readInt() != 0;
DurableUtils.readFromParcel(in, state.stack);
state.currentSearch = in.readString();
in.readMap(state.dirState, null);
return state;
}
代码示例来源:origin: com.google.android.apps.common.testing.accessibility.framework/accessibility-test-framework
private ContrastSwatch(Parcel source) {
mBackgroundColors = new LinkedList<Integer>();
mForegroundColors = new LinkedList<Integer>();
mLuminanceMap = new HashMap<Integer, Double>();
mLuminanceHistogram = new HashMap<Double, Integer>();
mName = source.readString();
source.readMap(mLuminanceMap, null);
source.readMap(mLuminanceHistogram, null);
source.readList(mBackgroundColors, null);
source.readList(mForegroundColors, null);
mBackgroundLuminance = source.readDouble();
mForegroundLuminance = source.readDouble();
mScreenBounds = (Rect) source.readValue(Rect.class.getClassLoader());
mContrastRatio = source.readDouble();
}
代码示例来源:origin: stackoverflow.com
city = in.readString();
rating = in.readString();
in.readMap(cuisines, Object.class.getClassLoader());
内容来源于网络,如有侵权,请联系作者删除!