createTypedArray ( )源码实例Demo

android.os.Parcel#createTypedArray ( )源码实例Demo

下面列出了android.os.Parcel#createTypedArray ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: android_9.0.0_r45   文件: JobParameters.java
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();
}
 
源代码2 项目: android_9.0.0_r45   文件: SoundTrigger.java
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);
}
 
源代码3 项目: android_9.0.0_r45   文件: EuiccProfileInfo.java
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);
}
 
源代码4 项目: android   文件: Issue.java
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);
}
 
源代码5 项目: android_9.0.0_r45   文件: SoundTrigger.java
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);
}
 
源代码6 项目: android_9.0.0_r45   文件: JobInfo.java
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();
}
 
源代码7 项目: android_9.0.0_r45   文件: ProviderInfo.java
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;
}
 
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);
}
 
源代码9 项目: brailleback   文件: BrailleDisplayProperties.java
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);
}
 
源代码10 项目: android_9.0.0_r45   文件: ProgramSelector.java
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();
}
 
源代码11 项目: android_9.0.0_r45   文件: SoundTrigger.java
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);
}
 
源代码12 项目: TelePlus-Android   文件: DrmInitData.java
DrmInitData(Parcel in) {
  schemeType = in.readString();
  schemeDatas = in.createTypedArray(SchemeData.CREATOR);
  schemeDataCount = schemeDatas.length;
}
 
源代码13 项目: android-recipes-app   文件: FragmentManager.java
public FragmentManagerState(Parcel in) {
    mActive = in.createTypedArray(FragmentState.CREATOR);
    mAdded = in.createIntArray();
    mBackStack = in.createTypedArray(BackStackState.CREATOR);
}
 
源代码14 项目: guideshow   文件: FragmentManager.java
public FragmentManagerState(Parcel in) {
    mActive = in.createTypedArray(FragmentState.CREATOR);
    mAdded = in.createIntArray();
    mBackStack = in.createTypedArray(BackStackState.CREATOR);
}
 
源代码15 项目: ShaderEditor   文件: CubeMapView.java
private SavedState(Parcel in) {
	super(in);

	savedSelectedFace = in.readInt();
	savedFaces = in.createTypedArray(Face.CREATOR);
}
 
源代码16 项目: adt-leanback-support   文件: FragmentManager.java
public FragmentManagerState(Parcel in) {
    mActive = in.createTypedArray(FragmentState.CREATOR);
    mAdded = in.createIntArray();
    mBackStack = in.createTypedArray(BackStackState.CREATOR);
}
 
源代码17 项目: arca-android   文件: Insert.java
public Insert(final Parcel in) {
	super(in);
	mValues = in.createTypedArray(ContentValues.CREATOR);
}
 
private GetDefaultDownloadableSubscriptionListResult(Parcel in) {
    this.result = in.readInt();
    this.mSubscriptions = in.createTypedArray(DownloadableSubscription.CREATOR);
}
 
源代码19 项目: Android-nRF-Toolbox   文件: UartConfiguration.java
private UartConfiguration(final Parcel in) {
	id = in.readLong();
	name = in.readString();
	commands = in.createTypedArray(Command.CREATOR);
}
 
源代码20 项目: protrip   文件: Extras.java
private Extras(Parcel in) {

        reviews = in.createTypedArray(Review.CREATOR);
    }
 
源代码评论
动弹
沙发等你来抢
 方法所在类
 同类方法