Home
last modified time | relevance | path

Searched refs:parcel (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/frameworks/native/services/powermanager/
DBatterySaverPolicyConfig.cpp25 status_t BatterySaverPolicyConfig::readDeviceSpecificSettings(const android::Parcel *parcel) { in readDeviceSpecificSettings() argument
27 status_t ret = parcel->readInt32(&num); in readDeviceSpecificSettings()
33 ret = parcel->readString16(&key) ?: in readDeviceSpecificSettings()
34 parcel->readString16(&val); in readDeviceSpecificSettings()
43 status_t BatterySaverPolicyConfig::readFromParcel(const android::Parcel *parcel) { in readFromParcel() argument
44 if (parcel == nullptr) { in readFromParcel()
49 return parcel->readFloat(&mAdjustBrightnessFactor) in readFromParcel()
50 ?: parcel->readBool(&mAdvertiseIsEnabled) in readFromParcel()
51 ?: parcel->readBool(&mDeferFullBackup) in readFromParcel()
52 ?: parcel->readBool(&mDeferKeyValueBackup) in readFromParcel()
[all …]
/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions.cpp28 uint32_t flags, int timeMs, Parcel *parcel) { in getParcelOfDescriptions() argument
29 parcel->freeData(); in getParcelOfDescriptions()
33 return extract3GPPGlobalDescriptions(data, size, parcel); in getParcelOfDescriptions()
35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel); in getParcelOfDescriptions()
39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); in getParcelOfDescriptions()
50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { in extractSRTLocalDescriptions() argument
51 parcel->writeInt32(KEY_LOCAL_SETTING); in extractSRTLocalDescriptions()
52 parcel->writeInt32(KEY_START_TIME); in extractSRTLocalDescriptions()
53 parcel->writeInt32(timeMs); in extractSRTLocalDescriptions()
55 parcel->writeInt32(KEY_STRUCT_TEXT); in extractSRTLocalDescriptions()
[all …]
/frameworks/native/libs/gui/
DLayerDebugInfo.cpp32 status_t LayerDebugInfo::writeToParcel(Parcel* parcel) const { in writeToParcel()
33 RETURN_ON_ERROR(parcel->writeCString(mName.c_str())); in writeToParcel()
34 RETURN_ON_ERROR(parcel->writeCString(mParentName.c_str())); in writeToParcel()
35 RETURN_ON_ERROR(parcel->writeCString(mType.c_str())); in writeToParcel()
36 RETURN_ON_ERROR(parcel->write(mTransparentRegion)); in writeToParcel()
37 RETURN_ON_ERROR(parcel->write(mVisibleRegion)); in writeToParcel()
38 RETURN_ON_ERROR(parcel->write(mSurfaceDamageRegion)); in writeToParcel()
39 RETURN_ON_ERROR(parcel->writeUint32(mLayerStack)); in writeToParcel()
40 RETURN_ON_ERROR(parcel->writeFloat(mX)); in writeToParcel()
41 RETURN_ON_ERROR(parcel->writeFloat(mY)); in writeToParcel()
[all …]
DWindowInfo.cpp82 status_t WindowInfo::writeToParcel(android::Parcel* parcel) const { in writeToParcel()
83 if (parcel == nullptr) { in writeToParcel()
88 parcel->writeInt32(0); in writeToParcel()
91 parcel->writeInt32(1); in writeToParcel()
97 status_t status = parcel->writeStrongBinder(token) ?: in writeToParcel()
98 parcel->writeInt64(dispatchingTimeout.count()) ?: in writeToParcel()
99 parcel->writeInt32(id) ?: in writeToParcel()
100 parcel->writeUtf8AsUtf16(name) ?: in writeToParcel()
101 parcel->writeInt32(layoutParamsFlags.get()) ?: in writeToParcel()
102 parcel->writeInt32( in writeToParcel()
[all …]
DDisplayInfo.cpp29 status_t DisplayInfo::readFromParcel(const android::Parcel* parcel) { in readFromParcel() argument
30 if (parcel == nullptr) { in readFromParcel()
36 SAFE_PARCEL(parcel->readInt32, &displayId); in readFromParcel()
37 SAFE_PARCEL(parcel->readInt32, &logicalWidth); in readFromParcel()
38 SAFE_PARCEL(parcel->readInt32, &logicalHeight); in readFromParcel()
39 SAFE_PARCEL(parcel->readFloat, &dsdx); in readFromParcel()
40 SAFE_PARCEL(parcel->readFloat, &dtdx); in readFromParcel()
41 SAFE_PARCEL(parcel->readFloat, &tx); in readFromParcel()
42 SAFE_PARCEL(parcel->readFloat, &dtdy); in readFromParcel()
43 SAFE_PARCEL(parcel->readFloat, &dsdy); in readFromParcel()
[all …]
DScreenCaptureResults.cpp23 status_t ScreenCaptureResults::writeToParcel(android::Parcel* parcel) const { in writeToParcel()
25 SAFE_PARCEL(parcel->writeBool, true); in writeToParcel()
26 SAFE_PARCEL(parcel->write, *buffer); in writeToParcel()
28 SAFE_PARCEL(parcel->writeBool, false); in writeToParcel()
32 SAFE_PARCEL(parcel->writeBool, true); in writeToParcel()
33 SAFE_PARCEL(parcel->write, *fence); in writeToParcel()
35 SAFE_PARCEL(parcel->writeBool, false); in writeToParcel()
38 SAFE_PARCEL(parcel->writeBool, capturedSecureLayers); in writeToParcel()
39 SAFE_PARCEL(parcel->writeBool, capturedHdrLayers); in writeToParcel()
40 SAFE_PARCEL(parcel->writeUint32, static_cast<uint32_t>(capturedDataspace)); in writeToParcel()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/
DFlag.kt72 override fun createFromParcel(parcel: Parcel) = object : BooleanFlag(parcel) {} in createFromParcel()
77 private constructor(parcel: Parcel) : this( in newArray()
78 id = parcel.readInt(), in newArray()
79 name = parcel.readString() ?: "", in newArray()
80 namespace = parcel.readString() ?: "", in newArray()
81 default = parcel.readBoolean(), in newArray()
82 teamfood = parcel.readBoolean(), in newArray()
83 overridden = parcel.readBoolean() in newArray()
86 override fun writeToParcel(parcel: Parcel, flags: Int) { in newArray()
87 parcel.writeInt(id) in newArray()
[all …]
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs19 use crate::parcel::BorrowedParcel;
42 fn write_to_parcel(&self, parcel: &mut BorrowedParcel<'_>) -> Result<()>; in write_to_parcel()
50 fn read_from_parcel(&mut self, parcel: &BorrowedParcel<'_>) -> Result<()>; in read_from_parcel()
57 fn serialize(&self, parcel: &mut BorrowedParcel<'_>) -> Result<()>; in serialize()
64 fn deserialize(parcel: &BorrowedParcel<'_>) -> Result<Self>; in deserialize()
69 fn deserialize_from(&mut self, parcel: &BorrowedParcel<'_>) -> Result<()> { in deserialize_from()
70 *self = Self::deserialize(parcel)?; in deserialize_from()
84 fn serialize_array(slice: &[Self], parcel: &mut BorrowedParcel<'_>) -> Result<()> { in serialize_array()
88 parcel.as_native_mut(), in serialize_array()
104 parcel: *mut sys::AParcel, in serialize_element()
[all …]
/frameworks/av/camera/
DCaptureResult.cpp29 status_t CaptureResultExtras::readFromParcel(const android::Parcel *parcel) { in readFromParcel() argument
30 if (parcel == NULL) { in readFromParcel()
35 parcel->readInt32(&requestId); in readFromParcel()
36 parcel->readInt32(&burstId); in readFromParcel()
37 parcel->readInt32(&afTriggerId); in readFromParcel()
38 parcel->readInt32(&precaptureTriggerId); in readFromParcel()
39 parcel->readInt64(&frameNumber); in readFromParcel()
40 parcel->readInt32(&partialResultCount); in readFromParcel()
41 parcel->readInt32(&errorStreamId); in readFromParcel()
42 auto physicalCameraIdPresent = parcel->readBool(); in readFromParcel()
[all …]
DCameraSessionStats.cpp29 status_t CameraStreamStats::readFromParcel(const android::Parcel* parcel) { in readFromParcel() argument
30 if (parcel == NULL) { in readFromParcel()
38 if ((err = parcel->readInt32(&width)) != OK) { in readFromParcel()
44 if ((err = parcel->readInt32(&height)) != OK) { in readFromParcel()
50 if ((err = parcel->readInt32(&format)) != OK) { in readFromParcel()
56 if ((err = parcel->readFloat(&maxPreviewFps)) != OK) { in readFromParcel()
62 if ((err = parcel->readInt32(&dataSpace)) != OK) { in readFromParcel()
68 if ((err = parcel->readInt64(&usage)) != OK) { in readFromParcel()
74 if ((err = parcel->readInt64(&requestCount)) != OK) { in readFromParcel()
80 if ((err = parcel->readInt64(&errorCount)) != OK) { in readFromParcel()
[all …]
/frameworks/native/libs/binder/ndk/
Dparcel.cpp49 static binder_status_t WriteAndValidateArraySize(AParcel* parcel, bool isNullArray, in WriteAndValidateArraySize() argument
63 Parcel* rawParcel = parcel->get(); in WriteAndValidateArraySize()
71 static binder_status_t ReadAndValidateArraySize(const AParcel* parcel, int32_t* length) { in ReadAndValidateArraySize() argument
72 if (status_t status = parcel->get()->readInt32(length); status != STATUS_OK) { in ReadAndValidateArraySize()
78 if (static_cast<size_t>(*length) > parcel->get()->dataAvail()) return STATUS_NO_MEMORY; in ReadAndValidateArraySize()
84 binder_status_t WriteArray(AParcel* parcel, const T* array, int32_t length) { in WriteArray() argument
85 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray()
92 void* const data = parcel->get()->writeInplace(size); in WriteArray()
102 binder_status_t WriteArray<char16_t>(AParcel* parcel, const char16_t* array, int32_t length) { in WriteArray() argument
103 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray()
[all …]
/frameworks/base/core/jni/
Dandroid_os_Parcel.cpp95 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_markSensitive() local
96 if (parcel) { in android_os_Parcel_markSensitive()
97 parcel->markSensitive(); in android_os_Parcel_markSensitive()
104 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_markForBinder() local
105 if (parcel) { in android_os_Parcel_markForBinder()
106 parcel->markForBinder(ibinderForJavaObject(env, binder)); in android_os_Parcel_markForBinder()
112 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataSize() local
113 return parcel ? parcel->dataSize() : 0; in android_os_Parcel_dataSize()
118 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataAvail() local
119 return parcel ? parcel->dataAvail() : 0; in android_os_Parcel_dataAvail()
[all …]
/frameworks/base/core/java/android/content/
DSyncStatusInfo.java91 public void writeToParcel(Parcel parcel) { in writeToParcel() argument
92 parcel.writeLong(totalElapsedTime); in writeToParcel()
93 parcel.writeInt(numSyncs); in writeToParcel()
94 parcel.writeInt(numSourcePoll); in writeToParcel()
95 parcel.writeInt(numSourceOther); in writeToParcel()
96 parcel.writeInt(numSourceLocal); in writeToParcel()
97 parcel.writeInt(numSourceUser); in writeToParcel()
98 parcel.writeInt(numSourcePeriodic); in writeToParcel()
99 parcel.writeInt(numSourceFeed); in writeToParcel()
100 parcel.writeInt(numFailures); in writeToParcel()
[all …]
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_composer_layer.cpp18 status_t ParcelableComposerLayer::writeToParcel(Parcel* parcel) const { in writeToParcel()
19 status_t ret = parcel->writeUint64(layer_.id); in writeToParcel()
22 ret = parcel->write(*layer_.buffer); in writeToParcel()
25 ret = parcel->writeBool(layer_.fence->isValid()); in writeToParcel()
29 ret = parcel->writeFileDescriptor(layer_.fence->dup(), true); in writeToParcel()
33 ret = parcel->writeInt32(layer_.display_frame.left); in writeToParcel()
36 ret = parcel->writeInt32(layer_.display_frame.top); in writeToParcel()
39 ret = parcel->writeInt32(layer_.display_frame.right); in writeToParcel()
42 ret = parcel->writeInt32(layer_.display_frame.bottom); in writeToParcel()
45 ret = parcel->writeFloat(layer_.crop.left); in writeToParcel()
[all …]
/frameworks/native/libs/graphicsenv/
DGpuStatsInfo.cpp27 status_t GpuStatsGlobalInfo::writeToParcel(Parcel* parcel) const { in writeToParcel()
29 if ((status = parcel->writeUtf8AsUtf16(driverPackageName)) != OK) return status; in writeToParcel()
30 if ((status = parcel->writeUtf8AsUtf16(driverVersionName)) != OK) return status; in writeToParcel()
31 if ((status = parcel->writeUint64(driverVersionCode)) != OK) return status; in writeToParcel()
32 if ((status = parcel->writeInt64(driverBuildTime)) != OK) return status; in writeToParcel()
33 if ((status = parcel->writeInt32(glLoadingCount)) != OK) return status; in writeToParcel()
34 if ((status = parcel->writeInt32(glLoadingFailureCount)) != OK) return status; in writeToParcel()
35 if ((status = parcel->writeInt32(vkLoadingCount)) != OK) return status; in writeToParcel()
36 if ((status = parcel->writeInt32(vkLoadingFailureCount)) != OK) return status; in writeToParcel()
37 if ((status = parcel->writeInt32(vulkanVersion)) != OK) return status; in writeToParcel()
[all …]
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp40 status_t AudioMixMatchCriterion::readFromParcel(Parcel *parcel) in readFromParcel() argument
42 mRule = parcel->readInt32(); in readFromParcel()
46 mValue.mUsage = (audio_usage_t) parcel->readInt32(); in readFromParcel()
50 mValue.mSource = (audio_source_t) parcel->readInt32(); in readFromParcel()
54 mValue.mUid = (uid_t) parcel->readInt32(); in readFromParcel()
58 mValue.mUserId = (int) parcel->readInt32(); in readFromParcel()
67 status_t AudioMixMatchCriterion::writeToParcel(Parcel *parcel) const in writeToParcel()
69 parcel->writeInt32(mRule); in writeToParcel()
70 parcel->writeInt32(mValue.mUsage); in writeToParcel()
78 status_t AudioMix::readFromParcel(Parcel *parcel) in readFromParcel() argument
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel.h57 void AParcel_delete(AParcel* parcel) __INTRODUCED_IN(29);
70 binder_status_t AParcel_setDataPosition(const AParcel* parcel, int32_t position)
86 int32_t AParcel_getDataPosition(const AParcel* parcel) __INTRODUCED_IN(29);
186 typedef binder_status_t (*AParcel_writeParcelableElement)(AParcel* parcel, const void* arrayData,
200 typedef binder_status_t (*AParcel_readParcelableElement)(const AParcel* parcel, void* arrayData,
405 binder_status_t AParcel_writeStrongBinder(AParcel* parcel, AIBinder* binder) __INTRODUCED_IN(29);
418 binder_status_t AParcel_readStrongBinder(const AParcel* parcel, AIBinder** binder)
434 binder_status_t AParcel_writeParcelFileDescriptor(AParcel* parcel, int fd) __INTRODUCED_IN(29);
451 binder_status_t AParcel_readParcelFileDescriptor(const AParcel* parcel, int* fd)
470 binder_status_t AParcel_writeStatusHeader(AParcel* parcel, const AStatus* status)
[all …]
/frameworks/base/media/java/android/media/
DTimedText.java361 public TimedText(Parcel parcel) { in TimedText() argument
362 if (!parseParcel(parcel)) { in TimedText()
406 private boolean parseParcel(Parcel parcel) { in parseParcel() argument
407 parcel.setDataPosition(0); in parseParcel()
408 if (parcel.dataAvail() == 0) { in parseParcel()
412 int type = parcel.readInt(); in parseParcel()
414 type = parcel.readInt(); in parseParcel()
418 int mStartTimeMs = parcel.readInt(); in parseParcel()
421 type = parcel.readInt(); in parseParcel()
426 int textLen = parcel.readInt(); in parseParcel()
[all …]
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_parcel_utils.h290 static inline binder_status_t AParcel_writeNullableStrongBinder(AParcel* parcel,
292 return AParcel_writeStrongBinder(parcel, binder.get());
298 static inline binder_status_t AParcel_readNullableStrongBinder(const AParcel* parcel,
301 binder_status_t status = AParcel_readStrongBinder(parcel, &readBinder);
311 static inline binder_status_t AParcel_writeRequiredStrongBinder(AParcel* parcel,
317 return AParcel_writeStrongBinder(parcel, binder.get());
323 static inline binder_status_t AParcel_readRequiredStrongBinder(const AParcel* parcel,
326 binder_status_t ret = AParcel_readStrongBinder(parcel, &readBinder);
341 AParcel* parcel, const ScopedFileDescriptor& fd) {
342 return AParcel_writeParcelFileDescriptor(parcel, fd.get());
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java1391 public void initFromParcel(Parcel parcel) { in initFromParcel() argument
1392 mSealed = (parcel.readInt() == 1); in initFromParcel()
1393 mEventType = parcel.readInt(); in initFromParcel()
1394 mMovementGranularity = parcel.readInt(); in initFromParcel()
1395 mAction = parcel.readInt(); in initFromParcel()
1396 mContentChangeTypes = parcel.readInt(); in initFromParcel()
1397 mWindowChangeTypes = parcel.readInt(); in initFromParcel()
1398 mSpeechStateChangeTypes = parcel.readInt(); in initFromParcel()
1399 mPackageName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); in initFromParcel()
1400 mEventTime = parcel.readLong(); in initFromParcel()
[all …]
/frameworks/av/media/libmediatranscoding/include/media/
DTranscodingRequest.h31 TranscodingRequest(const TranscodingRequestParcel& parcel) { setTo(parcel); } in TranscodingRequest() argument
39 void setTo(const TranscodingRequestParcel& parcel) { in setTo() argument
42 parcel.writeToParcel(p); in setTo()
47 sourceFilePath = parcel.sourceFilePath; in setTo()
48 sourceFd = ndk::ScopedFileDescriptor(dup(parcel.sourceFd.get())); in setTo()
49 destinationFilePath = parcel.destinationFilePath; in setTo()
50 destinationFd = ndk::ScopedFileDescriptor(dup(parcel.destinationFd.get())); in setTo()
51 clientUid = parcel.clientUid; in setTo()
52 clientPid = parcel.clientPid; in setTo()
53 clientPackageName = parcel.clientPackageName; in setTo()
[all …]
/frameworks/native/libs/gui/view/
DSurface.cpp30 status_t Surface::writeToParcel(Parcel* parcel) const { in writeToParcel()
31 return writeToParcel(parcel, false); in writeToParcel()
34 status_t Surface::writeToParcel(Parcel* parcel, bool nameAlreadyWritten) const { in writeToParcel() argument
35 if (parcel == nullptr) return BAD_VALUE; in writeToParcel()
40 res = parcel->writeString16(name); in writeToParcel()
44 res = parcel->writeInt32(0); in writeToParcel()
48 res = IGraphicBufferProducer::exportToParcel(graphicBufferProducer, parcel); in writeToParcel()
50 return parcel->writeStrongBinder(surfaceControlHandle); in writeToParcel()
53 status_t Surface::readFromParcel(const Parcel* parcel) { in readFromParcel() argument
54 return readFromParcel(parcel, false); in readFromParcel()
[all …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java45 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_noUsers() local
46 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_noUsers()
49 parcel.setDataPosition(0); in testKeyphraseParcelUnparcel_noUsers()
50 Keyphrase unparceled = Keyphrase.CREATOR.createFromParcel(parcel); in testKeyphraseParcelUnparcel_noUsers()
65 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_zeroUsers() local
66 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_zeroUsers()
69 parcel.setDataPosition(0); in testKeyphraseParcelUnparcel_zeroUsers()
70 Keyphrase unparceled = Keyphrase.CREATOR.createFromParcel(parcel); in testKeyphraseParcelUnparcel_zeroUsers()
85 Parcel parcel = Parcel.obtain(); in testKeyphraseParcelUnparcel_pos() local
86 keyphrase.writeToParcel(parcel, 0); in testKeyphraseParcelUnparcel_pos()
[all …]
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextUnitTest.cpp133 Parcel parcel; in TEST_P() local
136 flag, kStartTimeMs, &parcel); in TEST_P()
138 ALOGI("Size of the Parcel: %zu", parcel.dataSize()); in TEST_P()
139 ASSERT_GT(parcel.dataSize(), 0) << "Parcel is empty"; in TEST_P()
141 parcel.setDataPosition(0); in TEST_P()
142 int32_t key = parcel.readInt32(); in TEST_P()
145 key = parcel.readInt32(); in TEST_P()
147 ASSERT_EQ(parcel.readInt32(), kStartTimeMs) << "Parcel has invalid timings"; in TEST_P()
149 key = parcel.readInt32(); in TEST_P()
151 ASSERT_EQ(parcel.readInt32(), mFileSize) << "Parcel has invalid text data"; in TEST_P()
[all …]
/frameworks/base/core/java/android/view/
DWindowInfo.java116 public void writeToParcel(Parcel parcel, int flags) { in writeToParcel() argument
117 parcel.writeInt(displayId); in writeToParcel()
118 parcel.writeInt(taskId); in writeToParcel()
119 parcel.writeInt(type); in writeToParcel()
120 parcel.writeInt(layer); in writeToParcel()
121 parcel.writeStrongBinder(token); in writeToParcel()
122 parcel.writeStrongBinder(parentToken); in writeToParcel()
123 parcel.writeStrongBinder(activityToken); in writeToParcel()
124 parcel.writeInt(focused ? 1 : 0); in writeToParcel()
125 regionInScreen.writeToParcel(parcel, flags); in writeToParcel()
[all …]

12345678910>>...24