Java Code Examples for android.os.Parcel#createTypedArray()
The following examples show how to use
android.os.Parcel#createTypedArray() .
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: EuiccProfileInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private EuiccProfileInfo(Parcel in) { mIccid = in.readString(); mNickname = in.readString(); mServiceProviderName = in.readString(); mProfileName = in.readString(); mProfileClass = in.readInt(); mState = in.readInt(); byte exist = in.readByte(); if (exist == (byte) 1) { mCarrierIdentifier = CarrierIdentifier.CREATOR.createFromParcel(in); } else { mCarrierIdentifier = null; } mPolicyRules = in.readInt(); mAccessRules = in.createTypedArray(UiccAccessRule.CREATOR); }
Example 2
Source File: SoundTrigger.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private static KeyphraseRecognitionEvent fromParcelForKeyphrase(Parcel in) { int status = in.readInt(); int soundModelHandle = in.readInt(); boolean captureAvailable = in.readByte() == 1; int captureSession = in.readInt(); int captureDelayMs = in.readInt(); int capturePreambleMs = in.readInt(); boolean triggerInData = in.readByte() == 1; AudioFormat captureFormat = null; if (in.readByte() == 1) { int sampleRate = in.readInt(); int encoding = in.readInt(); int channelMask = in.readInt(); captureFormat = (new AudioFormat.Builder()) .setChannelMask(channelMask) .setEncoding(encoding) .setSampleRate(sampleRate) .build(); } byte[] data = in.readBlob(); KeyphraseRecognitionExtra[] keyphraseExtras = in.createTypedArray(KeyphraseRecognitionExtra.CREATOR); return new KeyphraseRecognitionEvent(status, soundModelHandle, captureAvailable, captureSession, captureDelayMs, capturePreambleMs, triggerInData, captureFormat, data, keyphraseExtras); }
Example 3
Source File: JobParameters.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private JobParameters(Parcel in) { jobId = in.readInt(); extras = in.readPersistableBundle(); transientExtras = in.readBundle(); if (in.readInt() != 0) { clipData = ClipData.CREATOR.createFromParcel(in); clipGrantFlags = in.readInt(); } else { clipData = null; clipGrantFlags = 0; } callback = in.readStrongBinder(); overrideDeadlineExpired = in.readInt() == 1; mTriggeredContentUris = in.createTypedArray(Uri.CREATOR); mTriggeredContentAuthorities = in.createStringArray(); if (in.readInt() != 0) { network = Network.CREATOR.createFromParcel(in); } else { network = null; } stopReason = in.readInt(); debugStopReason = in.readString(); }
Example 4
Source File: SoundTrigger.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private static RecognitionConfig fromParcel(Parcel in) { boolean captureRequested = in.readByte() == 1; boolean allowMultipleTriggers = in.readByte() == 1; KeyphraseRecognitionExtra[] keyphrases = in.createTypedArray(KeyphraseRecognitionExtra.CREATOR); byte[] data = in.readBlob(); return new RecognitionConfig(captureRequested, allowMultipleTriggers, keyphrases, data); }
Example 5
Source File: ProgramSelector.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private ProgramSelector(Parcel in) { mProgramType = in.readInt(); mPrimaryId = in.readTypedObject(Identifier.CREATOR); mSecondaryIds = in.createTypedArray(Identifier.CREATOR); if (Stream.of(mSecondaryIds).anyMatch(id -> id == null)) { throw new IllegalArgumentException("secondaryIds list must not contain nulls"); } mVendorIds = in.createLongArray(); }
Example 6
Source File: BrailleDisplayProperties.java From brailleback with Apache License 2.0 | 5 votes |
private BrailleDisplayProperties(Parcel in) { mNumTextCells = in.readInt(); mNumStatusCells = in.readInt(); mKeyBindings = in.createTypedArray(BrailleKeyBinding.CREATOR); int size = in.readInt(); Map<String, String> names = new HashMap<String, String>(size); for (int i = 0; i < size; ++i) { names.put(in.readString(), in.readString()); } mFriendlyKeyNames = Collections.unmodifiableMap(names); }
Example 7
Source File: BrailleDisplayProperties.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
private BrailleDisplayProperties(Parcel in) { mNumTextCells = in.readInt(); mNumStatusCells = in.readInt(); mKeyBindings = in.createTypedArray(BrailleKeyBinding.CREATOR); int size = in.readInt(); Map<String, String> names = new HashMap<String, String>(size); for (int i = 0; i < size; ++i) { names.put(in.readString(), in.readString()); } mFriendlyKeyNames = Collections.unmodifiableMap(names); }
Example 8
Source File: ProviderInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private ProviderInfo(Parcel in) { super(in); authority = in.readString(); readPermission = in.readString(); writePermission = in.readString(); grantUriPermissions = in.readInt() != 0; uriPermissionPatterns = in.createTypedArray(PatternMatcher.CREATOR); pathPermissions = in.createTypedArray(PathPermission.CREATOR); multiprocess = in.readInt() != 0; initOrder = in.readInt(); flags = in.readInt(); isSyncable = in.readInt() != 0; }
Example 9
Source File: JobInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private JobInfo(Parcel in) { jobId = in.readInt(); extras = in.readPersistableBundle(); transientExtras = in.readBundle(); if (in.readInt() != 0) { clipData = ClipData.CREATOR.createFromParcel(in); clipGrantFlags = in.readInt(); } else { clipData = null; clipGrantFlags = 0; } service = in.readParcelable(null); constraintFlags = in.readInt(); triggerContentUris = in.createTypedArray(TriggerContentUri.CREATOR); triggerContentUpdateDelay = in.readLong(); triggerContentMaxDelay = in.readLong(); if (in.readInt() != 0) { networkRequest = NetworkRequest.CREATOR.createFromParcel(in); } else { networkRequest = null; } networkDownloadBytes = in.readLong(); networkUploadBytes = in.readLong(); minLatencyMillis = in.readLong(); maxExecutionDelayMillis = in.readLong(); isPeriodic = in.readInt() == 1; isPersisted = in.readInt() == 1; intervalMillis = in.readLong(); flexMillis = in.readLong(); initialBackoffMillis = in.readLong(); backoffPolicy = in.readInt(); hasEarlyConstraint = in.readInt() == 1; hasLateConstraint = in.readInt() == 1; priority = in.readInt(); flags = in.readInt(); }
Example 10
Source File: SoundTrigger.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private static KeyphraseRecognitionExtra fromParcel(Parcel in) { int id = in.readInt(); int recognitionModes = in.readInt(); int coarseConfidenceLevel = in.readInt(); ConfidenceLevel[] confidenceLevels = in.createTypedArray(ConfidenceLevel.CREATOR); return new KeyphraseRecognitionExtra(id, recognitionModes, coarseConfidenceLevel, confidenceLevels); }
Example 11
Source File: Issue.java From android with MIT License | 5 votes |
protected Issue(Parcel in) { id = in.readString(); name = in.readString(); reason = in.readString(); script = in.readString(); link = in.readString(); linkTitle = in.readString(); active = in.readInt() != 0; isSplit = in.readInt() != 0; contacts = in.createTypedArrayList(Contact.CREATOR); contactAreas = in.createStringArrayList(); outcomeModels = in.createTypedArrayList(Outcome.CREATOR); categories = in.createTypedArray(Category.CREATOR); }
Example 12
Source File: FragmentManager.java From adt-leanback-support with Apache License 2.0 | 4 votes |
public FragmentManagerState(Parcel in) { mActive = in.createTypedArray(FragmentState.CREATOR); mAdded = in.createIntArray(); mBackStack = in.createTypedArray(BackStackState.CREATOR); }
Example 13
Source File: CubeMapView.java From ShaderEditor with MIT License | 4 votes |
private SavedState(Parcel in) { super(in); savedSelectedFace = in.readInt(); savedFaces = in.createTypedArray(Face.CREATOR); }
Example 14
Source File: FragmentManager.java From guideshow with MIT License | 4 votes |
public FragmentManagerState(Parcel in) { mActive = in.createTypedArray(FragmentState.CREATOR); mAdded = in.createIntArray(); mBackStack = in.createTypedArray(BackStackState.CREATOR); }
Example 15
Source File: Insert.java From arca-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public Insert(final Parcel in) { super(in); mValues = in.createTypedArray(ContentValues.CREATOR); }
Example 16
Source File: FragmentManager.java From android-recipes-app with Apache License 2.0 | 4 votes |
public FragmentManagerState(Parcel in) { mActive = in.createTypedArray(FragmentState.CREATOR); mAdded = in.createIntArray(); mBackStack = in.createTypedArray(BackStackState.CREATOR); }
Example 17
Source File: GetDefaultDownloadableSubscriptionListResult.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
private GetDefaultDownloadableSubscriptionListResult(Parcel in) { this.result = in.readInt(); this.mSubscriptions = in.createTypedArray(DownloadableSubscription.CREATOR); }
Example 18
Source File: UartConfiguration.java From Android-nRF-Toolbox with BSD 3-Clause "New" or "Revised" License | 4 votes |
private UartConfiguration(final Parcel in) { id = in.readLong(); name = in.readString(); commands = in.createTypedArray(Command.CREATOR); }
Example 19
Source File: DrmInitData.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
DrmInitData(Parcel in) { schemeType = in.readString(); schemeDatas = in.createTypedArray(SchemeData.CREATOR); schemeDataCount = schemeDatas.length; }
Example 20
Source File: Extras.java From protrip with MIT License | 2 votes |
private Extras(Parcel in) { reviews = in.createTypedArray(Review.CREATOR); }