Java Code Examples for android.content.ComponentName#writeToParcel()
The following examples show how to use
android.content.ComponentName#writeToParcel() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeInt(stackId); ComponentName.writeToParcel(baseActivity, dest); ComponentName.writeToParcel(topActivity, dest); if (thumbnail != null) { dest.writeInt(1); thumbnail.writeToParcel(dest, 0); } else { dest.writeInt(0); } TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE); dest.writeInt(numActivities); dest.writeInt(numRunning); dest.writeInt(supportsSplitScreenMultiWindow ? 1 : 0); dest.writeInt(resizeMode); }
Example 2
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel dest, int flags) { ComponentName.writeToParcel(service, dest); dest.writeInt(pid); dest.writeInt(uid); dest.writeString(process); dest.writeInt(foreground ? 1 : 0); dest.writeLong(activeSince); dest.writeInt(started ? 1 : 0); dest.writeInt(clientCount); dest.writeInt(crashCount); dest.writeLong(lastActivityTime); dest.writeLong(restarting); dest.writeInt(this.flags); dest.writeString(clientPackage); dest.writeInt(clientLabel); }
Example 3
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeInt(stackId); ComponentName.writeToParcel(baseActivity, dest); ComponentName.writeToParcel(topActivity, dest); if (thumbnail != null) { dest.writeInt(1); thumbnail.writeToParcel(dest, 0); } else { dest.writeInt(0); } TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE); dest.writeInt(numActivities); dest.writeInt(numRunning); dest.writeInt(supportsSplitScreenMultiWindow ? 1 : 0); dest.writeInt(resizeMode); configuration.writeToParcel(dest, flags); }
Example 4
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void writeToParcel(Parcel dest, int flags) { ComponentName.writeToParcel(service, dest); dest.writeInt(pid); dest.writeInt(uid); dest.writeString(process); dest.writeInt(foreground ? 1 : 0); dest.writeLong(activeSince); dest.writeInt(started ? 1 : 0); dest.writeInt(clientCount); dest.writeInt(crashCount); dest.writeLong(lastActivityTime); dest.writeLong(restarting); dest.writeInt(this.flags); dest.writeString(clientPackage); dest.writeInt(clientLabel); }
Example 5
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeInt(persistentId); if (baseIntent != null) { dest.writeInt(1); baseIntent.writeToParcel(dest, 0); } else { dest.writeInt(0); } ComponentName.writeToParcel(origActivity, dest); ComponentName.writeToParcel(realActivity, dest); TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE); if (taskDescription != null) { dest.writeInt(1); taskDescription.writeToParcel(dest, 0); } else { dest.writeInt(0); } dest.writeInt(stackId); dest.writeInt(userId); dest.writeLong(firstActiveTime); dest.writeLong(lastActiveTime); dest.writeInt(affiliatedTaskId); dest.writeInt(affiliatedTaskColor); ComponentName.writeToParcel(baseActivity, dest); ComponentName.writeToParcel(topActivity, dest); dest.writeInt(numActivities); if (bounds != null) { dest.writeInt(1); bounds.writeToParcel(dest, 0); } else { dest.writeInt(0); } dest.writeInt(supportsSplitScreenMultiWindow ? 1 : 0); dest.writeInt(resizeMode); }
Example 6
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeString(processName); dest.writeInt(pid); dest.writeInt(uid); dest.writeStringArray(pkgList); dest.writeInt(this.flags); dest.writeInt(lastTrimLevel); dest.writeInt(importance); dest.writeInt(lru); dest.writeInt(importanceReasonCode); dest.writeInt(importanceReasonPid); ComponentName.writeToParcel(importanceReasonComponent, dest); dest.writeInt(importanceReasonImportance); dest.writeInt(processState); }
Example 7
Source File: WaitResult.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(result); dest.writeInt(timeout ? 1 : 0); ComponentName.writeToParcel(who, dest); dest.writeLong(totalTime); }
Example 8
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeInt(persistentId); if (baseIntent != null) { dest.writeInt(1); baseIntent.writeToParcel(dest, 0); } else { dest.writeInt(0); } ComponentName.writeToParcel(origActivity, dest); ComponentName.writeToParcel(realActivity, dest); TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE); if (taskDescription != null) { dest.writeInt(1); taskDescription.writeToParcel(dest, 0); } else { dest.writeInt(0); } dest.writeInt(stackId); dest.writeInt(userId); dest.writeLong(lastActiveTime); dest.writeInt(affiliatedTaskId); dest.writeInt(affiliatedTaskColor); ComponentName.writeToParcel(baseActivity, dest); ComponentName.writeToParcel(topActivity, dest); dest.writeInt(numActivities); if (bounds != null) { dest.writeInt(1); bounds.writeToParcel(dest, 0); } else { dest.writeInt(0); } dest.writeInt(supportsSplitScreenMultiWindow ? 1 : 0); dest.writeInt(resizeMode); configuration.writeToParcel(dest, flags); }
Example 9
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public void writeToParcel(Parcel dest, int flags) { dest.writeString(processName); dest.writeInt(pid); dest.writeInt(uid); dest.writeStringArray(pkgList); dest.writeInt(this.flags); dest.writeInt(lastTrimLevel); dest.writeInt(importance); dest.writeInt(lru); dest.writeInt(importanceReasonCode); dest.writeInt(importanceReasonPid); ComponentName.writeToParcel(importanceReasonComponent, dest); dest.writeInt(importanceReasonImportance); dest.writeInt(processState); }
Example 10
Source File: AssistStructure.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
ParcelTransferWriter(AssistStructure as, Parcel out) { mSanitizeOnWrite = as.mSanitizeOnWrite; mWriteStructure = as.waitForReady(); ComponentName.writeToParcel(as.mActivityComponent, out); out.writeInt(as.mFlags); out.writeLong(as.mAcquisitionStartTime); out.writeLong(as.mAcquisitionEndTime); mNumWindows = as.mWindowNodes.size(); if (mWriteStructure && mNumWindows > 0) { out.writeInt(mNumWindows); } else { out.writeInt(0); } }
Example 11
Source File: ChooserTarget.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeCharSequence(mTitle); if (mIcon != null) { dest.writeInt(1); mIcon.writeToParcel(dest, 0); } else { dest.writeInt(0); } dest.writeFloat(mScore); ComponentName.writeToParcel(mComponentName, dest); dest.writeBundle(mIntentExtras); }
Example 12
Source File: NetworkScorerAppData.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(packageUid); ComponentName.writeToParcel(mRecommendationService, dest); dest.writeString(mRecommendationServiceLabel); ComponentName.writeToParcel(mEnableUseOpenWifiActivity, dest); dest.writeString(mNetworkAvailableNotificationChannelId); }