Java Code Examples for android.content.ComponentName#readFromParcel()
The following examples show how to use
android.content.ComponentName#readFromParcel() .
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 readFromParcel(Parcel source) { id = source.readInt(); persistentId = source.readInt(); baseIntent = source.readInt() > 0 ? Intent.CREATOR.createFromParcel(source) : null; origActivity = ComponentName.readFromParcel(source); realActivity = ComponentName.readFromParcel(source); description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); taskDescription = source.readInt() > 0 ? TaskDescription.CREATOR.createFromParcel(source) : null; stackId = source.readInt(); userId = source.readInt(); firstActiveTime = source.readLong(); lastActiveTime = source.readLong(); affiliatedTaskId = source.readInt(); affiliatedTaskColor = source.readInt(); baseActivity = ComponentName.readFromParcel(source); topActivity = ComponentName.readFromParcel(source); numActivities = source.readInt(); bounds = source.readInt() > 0 ? Rect.CREATOR.createFromParcel(source) : null; supportsSplitScreenMultiWindow = source.readInt() == 1; resizeMode = source.readInt(); }
Example 2
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { id = source.readInt(); stackId = source.readInt(); baseActivity = ComponentName.readFromParcel(source); topActivity = ComponentName.readFromParcel(source); if (source.readInt() != 0) { thumbnail = Bitmap.CREATOR.createFromParcel(source); } else { thumbnail = null; } description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); numActivities = source.readInt(); numRunning = source.readInt(); supportsSplitScreenMultiWindow = source.readInt() != 0; resizeMode = source.readInt(); }
Example 3
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { service = ComponentName.readFromParcel(source); pid = source.readInt(); uid = source.readInt(); process = source.readString(); foreground = source.readInt() != 0; activeSince = source.readLong(); started = source.readInt() != 0; clientCount = source.readInt(); crashCount = source.readInt(); lastActivityTime = source.readLong(); restarting = source.readLong(); flags = source.readInt(); clientPackage = source.readString(); clientLabel = source.readInt(); }
Example 4
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { stackId = source.readInt(); bounds = new Rect( source.readInt(), source.readInt(), source.readInt(), source.readInt()); taskIds = source.createIntArray(); taskNames = source.createStringArray(); final int boundsCount = source.readInt(); if (boundsCount > 0) { taskBounds = new Rect[boundsCount]; for (int i = 0; i < boundsCount; i++) { taskBounds[i] = new Rect(); taskBounds[i].set( source.readInt(), source.readInt(), source.readInt(), source.readInt()); } } else { taskBounds = null; } taskUserIds = source.createIntArray(); displayId = source.readInt(); userId = source.readInt(); visible = source.readInt() > 0; position = source.readInt(); if (source.readInt() > 0) { topActivity = ComponentName.readFromParcel(source); } }
Example 5
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { id = source.readInt(); persistentId = source.readInt(); baseIntent = source.readInt() > 0 ? Intent.CREATOR.createFromParcel(source) : null; origActivity = ComponentName.readFromParcel(source); realActivity = ComponentName.readFromParcel(source); description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); taskDescription = source.readInt() > 0 ? TaskDescription.CREATOR.createFromParcel(source) : null; stackId = source.readInt(); userId = source.readInt(); lastActiveTime = source.readLong(); affiliatedTaskId = source.readInt(); affiliatedTaskColor = source.readInt(); baseActivity = ComponentName.readFromParcel(source); topActivity = ComponentName.readFromParcel(source); numActivities = source.readInt(); bounds = source.readInt() > 0 ? Rect.CREATOR.createFromParcel(source) : null; supportsSplitScreenMultiWindow = source.readInt() == 1; resizeMode = source.readInt(); configuration.readFromParcel(source); }
Example 6
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { id = source.readInt(); stackId = source.readInt(); baseActivity = ComponentName.readFromParcel(source); topActivity = ComponentName.readFromParcel(source); if (source.readInt() != 0) { thumbnail = Bitmap.CREATOR.createFromParcel(source); } else { thumbnail = null; } description = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); numActivities = source.readInt(); numRunning = source.readInt(); supportsSplitScreenMultiWindow = source.readInt() != 0; resizeMode = source.readInt(); configuration.readFromParcel(source); }
Example 7
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void readFromParcel(Parcel source) { service = ComponentName.readFromParcel(source); pid = source.readInt(); uid = source.readInt(); process = source.readString(); foreground = source.readInt() != 0; activeSince = source.readLong(); started = source.readInt() != 0; clientCount = source.readInt(); crashCount = source.readInt(); lastActivityTime = source.readLong(); restarting = source.readLong(); flags = source.readInt(); clientPackage = source.readString(); clientLabel = source.readInt(); }
Example 8
Source File: AssistStructure.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
void go() { fetchData(); mActivityComponent = ComponentName.readFromParcel(mCurParcel); mFlags = mCurParcel.readInt(); mAcquisitionStartTime = mCurParcel.readLong(); mAcquisitionEndTime = mCurParcel.readLong(); final int N = mCurParcel.readInt(); if (N > 0) { if (DEBUG_PARCEL) Log.d(TAG, "Creating PooledStringReader @ " + mCurParcel.dataPosition()); mStringReader = new PooledStringReader(mCurParcel); if (DEBUG_PARCEL) Log.d(TAG, "PooledStringReader size = " + mStringReader.getStringCount()); for (int i=0; i<N; i++) { mWindowNodes.add(new WindowNode(this)); } } if (DEBUG_PARCEL) Log.d(TAG, "Finished reading: at " + mCurParcel.dataPosition() + ", avail=" + mCurParcel.dataAvail() + ", windows=" + mNumReadWindows + ", views=" + mNumReadViews); mCurParcel.recycle(); mCurParcel = null; // Parcel cannot be used after recycled. }
Example 9
Source File: ActivityManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
public void readFromParcel(Parcel source) { processName = source.readString(); pid = source.readInt(); uid = source.readInt(); pkgList = source.readStringArray(); flags = source.readInt(); lastTrimLevel = source.readInt(); importance = source.readInt(); lru = source.readInt(); importanceReasonCode = source.readInt(); importanceReasonPid = source.readInt(); importanceReasonComponent = ComponentName.readFromParcel(source); importanceReasonImportance = source.readInt(); processState = source.readInt(); }
Example 10
Source File: SearchableInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
/** * Instantiates a new SearchableInfo from the data in a Parcel that was * previously written with {@link #writeToParcel(Parcel, int)}. * * @param in The Parcel containing the previously written SearchableInfo, * positioned at the location in the buffer where it was written. */ SearchableInfo(Parcel in) { mLabelId = in.readInt(); mSearchActivity = ComponentName.readFromParcel(in); mHintId = in.readInt(); mSearchMode = in.readInt(); mIconId = in.readInt(); mSearchButtonText = in.readInt(); mSearchInputType = in.readInt(); mSearchImeOptions = in.readInt(); mIncludeInGlobalSearch = in.readInt() != 0; mQueryAfterZeroResults = in.readInt() != 0; mAutoUrlDetect = in.readInt() != 0; mSettingsDescriptionId = in.readInt(); mSuggestAuthority = in.readString(); mSuggestPath = in.readString(); mSuggestSelection = in.readString(); mSuggestIntentAction = in.readString(); mSuggestIntentData = in.readString(); mSuggestThreshold = in.readInt(); for (int count = in.readInt(); count > 0; count--) { addActionKey(new ActionKeyInfo(in)); } mSuggestProviderPackage = in.readString(); mVoiceSearchMode = in.readInt(); mVoiceLanguageModeId = in.readInt(); mVoicePromptTextId = in.readInt(); mVoiceLanguageId = in.readInt(); mVoiceMaxResults = in.readInt(); }
Example 11
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public void readFromParcel(Parcel source) { stackId = source.readInt(); bounds = new Rect( source.readInt(), source.readInt(), source.readInt(), source.readInt()); taskIds = source.createIntArray(); taskNames = source.createStringArray(); final int boundsCount = source.readInt(); if (boundsCount > 0) { taskBounds = new Rect[boundsCount]; for (int i = 0; i < boundsCount; i++) { taskBounds[i] = new Rect(); taskBounds[i].set( source.readInt(), source.readInt(), source.readInt(), source.readInt()); } } else { taskBounds = null; } taskUserIds = source.createIntArray(); displayId = source.readInt(); userId = source.readInt(); visible = source.readInt() > 0; position = source.readInt(); if (source.readInt() > 0) { topActivity = ComponentName.readFromParcel(source); } configuration.readFromParcel(source); }
Example 12
Source File: ActivityManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public void readFromParcel(Parcel source) { processName = source.readString(); pid = source.readInt(); uid = source.readInt(); pkgList = source.readStringArray(); flags = source.readInt(); lastTrimLevel = source.readInt(); importance = source.readInt(); lru = source.readInt(); importanceReasonCode = source.readInt(); importanceReasonPid = source.readInt(); importanceReasonComponent = ComponentName.readFromParcel(source); importanceReasonImportance = source.readInt(); processState = source.readInt(); }
Example 13
Source File: ChooserTarget.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
ChooserTarget(Parcel in) { mTitle = in.readCharSequence(); if (in.readInt() != 0) { mIcon = Icon.CREATOR.createFromParcel(in); } else { mIcon = null; } mScore = in.readFloat(); mComponentName = ComponentName.readFromParcel(in); mIntentExtras = in.readBundle(); }
Example 14
Source File: NetworkScorerAppData.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
protected NetworkScorerAppData(Parcel in) { packageUid = in.readInt(); mRecommendationService = ComponentName.readFromParcel(in); mRecommendationServiceLabel = in.readString(); mEnableUseOpenWifiActivity = ComponentName.readFromParcel(in); mNetworkAvailableNotificationChannelId = in.readString(); }
Example 15
Source File: WaitResult.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private WaitResult(Parcel source) { result = source.readInt(); timeout = source.readInt() != 0; who = ComponentName.readFromParcel(source); totalTime = source.readLong(); }