Lines Matching refs:Parcel

106 static_assert(sizeof(Parcel) == 120);
108 static_assert(sizeof(Parcel) == 60);
221 Parcel::RpcFields::RpcFields(const sp<RpcSession>& session) : mSession(session) { in RpcFields()
225 status_t Parcel::finishFlattenBinder(const sp<IBinder>& binder) in finishFlattenBinder()
232 status_t Parcel::finishUnflattenBinder( in finishUnflattenBinder()
253 status_t Parcel::flattenBinder(const sp<IBinder>& binder) { in flattenBinder()
339 status_t Parcel::unflattenBinder(sp<IBinder>* out) const in unflattenBinder()
392 Parcel::Parcel() in Parcel() function in android::Parcel
398 Parcel::~Parcel() in ~Parcel()
404 size_t Parcel::getGlobalAllocSize() { in getGlobalAllocSize()
408 size_t Parcel::getGlobalAllocCount() { in getGlobalAllocCount()
412 const uint8_t* Parcel::data() const in data()
417 size_t Parcel::dataSize() const in dataSize()
422 size_t Parcel::dataBufferSize() const { in dataBufferSize()
426 size_t Parcel::dataAvail() const in dataAvail()
435 size_t Parcel::dataPosition() const in dataPosition()
440 size_t Parcel::dataCapacity() const in dataCapacity()
445 status_t Parcel::setDataSize(size_t size) in setDataSize()
462 void Parcel::setDataPosition(size_t pos) const in setDataPosition()
477 status_t Parcel::setDataCapacity(size_t size) in setDataCapacity()
489 status_t Parcel::setData(const uint8_t* buffer, size_t len) in setData()
508 status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) { in appendFrom()
686 int Parcel::compareData(const Parcel& other) { in compareData()
694 status_t Parcel::compareDataInRange(size_t thisOffset, const Parcel& other, size_t otherOffset, in compareDataInRange()
713 bool Parcel::allowFds() const in allowFds()
718 bool Parcel::pushAllowFds(bool allowFds) in pushAllowFds()
727 void Parcel::restoreAllowFds(bool lastValue) in restoreAllowFds()
732 bool Parcel::hasFileDescriptors() const in hasFileDescriptors()
744 status_t Parcel::hasBinders(bool* result) const { in hasBinders()
750 std::vector<sp<IBinder>> Parcel::debugReadAllStrongBinders() const { in debugReadAllStrongBinders()
778 std::vector<int> Parcel::debugReadAllFileDescriptors() const { in debugReadAllFileDescriptors()
809 status_t Parcel::hasBindersInRange(size_t offset, size_t len, bool* result) const { in hasBindersInRange()
849 status_t Parcel::hasFileDescriptorsInRange(size_t offset, size_t len, bool* result) const { in hasFileDescriptorsInRange()
897 void Parcel::markSensitive() const in markSensitive()
902 void Parcel::markForBinder(const sp<IBinder>& binder) { in markForBinder()
910 void Parcel::markForRpc(const sp<RpcSession>& session) { in markForRpc()
917 bool Parcel::isForRpc() const { in isForRpc()
921 void Parcel::updateWorkSourceRequestHeaderPosition() const { in updateWorkSourceRequestHeaderPosition()
957 status_t Parcel::writeInterfaceToken(const String16& interface) in writeInterfaceToken()
962 status_t Parcel::writeInterfaceToken(const char16_t* str, size_t len) { in writeInterfaceToken()
981 bool Parcel::replaceCallingWorkSourceUid(uid_t uid) in replaceCallingWorkSourceUid()
998 uid_t Parcel::readCallingWorkSourceUid() const in readCallingWorkSourceUid()
1015 bool Parcel::checkInterface(IBinder* binder) const in checkInterface()
1020 bool Parcel::enforceInterface(const String16& interface, in enforceInterface()
1026 bool Parcel::enforceInterface(const char16_t* interface, in enforceInterface()
1089 void Parcel::setEnforceNoDataAvail(bool enforceNoDataAvail) { in setEnforceNoDataAvail()
1093 void Parcel::setServiceFuzzing() { in setServiceFuzzing()
1097 bool Parcel::isServiceFuzzing() const { in isServiceFuzzing()
1101 binder::Status Parcel::enforceNoDataAvail() const { in enforceNoDataAvail()
1116 size_t Parcel::objectsCount() const in objectsCount()
1124 status_t Parcel::errorCheck() const in errorCheck()
1129 void Parcel::setError(status_t err) in setError()
1134 status_t Parcel::finishWrite(size_t len) in finishWrite()
1153 status_t Parcel::writeUnpadded(const void* data, size_t len) in writeUnpadded()
1178 status_t Parcel::write(const void* data, size_t len) in write()
1194 void* Parcel::writeInplace(size_t len) in writeInplace()
1240 status_t Parcel::writeUtf8AsUtf16(const std::string& str) { in writeUtf8AsUtf16()
1265 status_t Parcel::writeUtf8AsUtf16(const std::optional<std::string>& str) { return writeData(str); } in writeUtf8AsUtf16()
1266 status_t Parcel::writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) { return writeData(str);… in writeUtf8AsUtf16()
1268 status_t Parcel::writeString16(const std::optional<String16>& str) { return writeData(str); } in writeString16()
1269 status_t Parcel::writeString16(const std::unique_ptr<String16>& str) { return writeData(str); } in writeString16()
1271 status_t Parcel::writeByteVector(const std::vector<int8_t>& val) { return writeData(val); } in writeByteVector()
1272 status_t Parcel::writeByteVector(const std::optional<std::vector<int8_t>>& val) { return writeData(… in writeByteVector()
1273 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) { return writeDat… in writeByteVector()
1274 status_t Parcel::writeByteVector(const std::vector<uint8_t>& val) { return writeData(val); } in writeByteVector()
1275 status_t Parcel::writeByteVector(const std::optional<std::vector<uint8_t>>& val) { return writeData… in writeByteVector()
1276 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val){ return writeDat… in writeByteVector()
1277 status_t Parcel::writeInt32Vector(const std::vector<int32_t>& val) { return writeData(val); } in writeInt32Vector()
1278 status_t Parcel::writeInt32Vector(const std::optional<std::vector<int32_t>>& val) { return writeDat… in writeInt32Vector()
1279 status_t Parcel::writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val) { return writeD… in writeInt32Vector()
1280 status_t Parcel::writeInt64Vector(const std::vector<int64_t>& val) { return writeData(val); } in writeInt64Vector()
1281 status_t Parcel::writeInt64Vector(const std::optional<std::vector<int64_t>>& val) { return writeDat… in writeInt64Vector()
1282 status_t Parcel::writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val) { return writeD… in writeInt64Vector()
1283 status_t Parcel::writeUint64Vector(const std::vector<uint64_t>& val) { return writeData(val); } in writeUint64Vector()
1284 status_t Parcel::writeUint64Vector(const std::optional<std::vector<uint64_t>>& val) { return writeD… in writeUint64Vector()
1285 status_t Parcel::writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val) { return writ… in writeUint64Vector()
1286 status_t Parcel::writeFloatVector(const std::vector<float>& val) { return writeData(val); } in writeFloatVector()
1287 status_t Parcel::writeFloatVector(const std::optional<std::vector<float>>& val) { return writeData(… in writeFloatVector()
1288 status_t Parcel::writeFloatVector(const std::unique_ptr<std::vector<float>>& val) { return writeDat… in writeFloatVector()
1289 status_t Parcel::writeDoubleVector(const std::vector<double>& val) { return writeData(val); } in writeDoubleVector()
1290 status_t Parcel::writeDoubleVector(const std::optional<std::vector<double>>& val) { return writeDat… in writeDoubleVector()
1291 status_t Parcel::writeDoubleVector(const std::unique_ptr<std::vector<double>>& val) { return writeD… in writeDoubleVector()
1292 status_t Parcel::writeBoolVector(const std::vector<bool>& val) { return writeData(val); } in writeBoolVector()
1293 status_t Parcel::writeBoolVector(const std::optional<std::vector<bool>>& val) { return writeData(va… in writeBoolVector()
1294 status_t Parcel::writeBoolVector(const std::unique_ptr<std::vector<bool>>& val) { return writeData(… in writeBoolVector()
1295 status_t Parcel::writeCharVector(const std::vector<char16_t>& val) { return writeData(val); } in writeCharVector()
1296 status_t Parcel::writeCharVector(const std::optional<std::vector<char16_t>>& val) { return writeDat… in writeCharVector()
1297 status_t Parcel::writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val) { return writeD… in writeCharVector()
1299 status_t Parcel::writeString16Vector(const std::vector<String16>& val) { return writeData(val); } in writeString16Vector()
1300 status_t Parcel::writeString16Vector( in writeString16Vector()
1302 status_t Parcel::writeString16Vector( in writeString16Vector()
1304 status_t Parcel::writeUtf8VectorAsUtf16Vector( in writeUtf8VectorAsUtf16Vector()
1306 status_t Parcel::writeUtf8VectorAsUtf16Vector( in writeUtf8VectorAsUtf16Vector()
1308 status_t Parcel::writeUtf8VectorAsUtf16Vector(const std::vector<std::string>& val) { return writeDa… in writeUtf8VectorAsUtf16Vector()
1310 status_t Parcel::writeUniqueFileDescriptorVector(const std::vector<unique_fd>& val) { in writeUniqueFileDescriptorVector()
1313 status_t Parcel::writeUniqueFileDescriptorVector(const std::optional<std::vector<unique_fd>>& val) { in writeUniqueFileDescriptorVector()
1316 status_t Parcel::writeUniqueFileDescriptorVector( in writeUniqueFileDescriptorVector()
1321 status_t Parcel::writeStrongBinderVector(const std::vector<sp<IBinder>>& val) { return writeData(va… in writeStrongBinderVector()
1322 status_t Parcel::writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val) { retu… in writeStrongBinderVector()
1323 status_t Parcel::writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val) { re… in writeStrongBinderVector()
1325 status_t Parcel::writeParcelable(const Parcelable& parcelable) { return writeData(parcelable); } in writeParcelable()
1327 status_t Parcel::readUtf8FromUtf16(std::optional<std::string>* str) const { return readData(str); } in readUtf8FromUtf16()
1328 status_t Parcel::readUtf8FromUtf16(std::unique_ptr<std::string>* str) const { return readData(str);… in readUtf8FromUtf16()
1330 status_t Parcel::readString16(std::optional<String16>* pArg) const { return readData(pArg); } in readString16()
1331 status_t Parcel::readString16(std::unique_ptr<String16>* pArg) const { return readData(pArg); } in readString16()
1333 status_t Parcel::readByteVector(std::vector<int8_t>* val) const { return readData(val); } in readByteVector()
1334 status_t Parcel::readByteVector(std::vector<uint8_t>* val) const { return readData(val); } in readByteVector()
1335 status_t Parcel::readByteVector(std::optional<std::vector<int8_t>>* val) const { return readData(va… in readByteVector()
1336 status_t Parcel::readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const { return readData(… in readByteVector()
1337 status_t Parcel::readByteVector(std::optional<std::vector<uint8_t>>* val) const { return readData(v… in readByteVector()
1338 status_t Parcel::readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const { return readData… in readByteVector()
1339 status_t Parcel::readInt32Vector(std::optional<std::vector<int32_t>>* val) const { return readData(… in readInt32Vector()
1340 status_t Parcel::readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const { return readDat… in readInt32Vector()
1341 status_t Parcel::readInt32Vector(std::vector<int32_t>* val) const { return readData(val); } in readInt32Vector()
1342 status_t Parcel::readInt64Vector(std::optional<std::vector<int64_t>>* val) const { return readData(… in readInt64Vector()
1343 status_t Parcel::readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const { return readDat… in readInt64Vector()
1344 status_t Parcel::readInt64Vector(std::vector<int64_t>* val) const { return readData(val); } in readInt64Vector()
1345 status_t Parcel::readUint64Vector(std::optional<std::vector<uint64_t>>* val) const { return readDat… in readUint64Vector()
1346 status_t Parcel::readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const { return readD… in readUint64Vector()
1347 status_t Parcel::readUint64Vector(std::vector<uint64_t>* val) const { return readData(val); } in readUint64Vector()
1348 status_t Parcel::readFloatVector(std::optional<std::vector<float>>* val) const { return readData(va… in readFloatVector()
1349 status_t Parcel::readFloatVector(std::unique_ptr<std::vector<float>>* val) const { return readData(… in readFloatVector()
1350 status_t Parcel::readFloatVector(std::vector<float>* val) const { return readData(val); } in readFloatVector()
1351 status_t Parcel::readDoubleVector(std::optional<std::vector<double>>* val) const { return readData(… in readDoubleVector()
1352 status_t Parcel::readDoubleVector(std::unique_ptr<std::vector<double>>* val) const { return readDat… in readDoubleVector()
1353 status_t Parcel::readDoubleVector(std::vector<double>* val) const { return readData(val); } in readDoubleVector()
1354 status_t Parcel::readBoolVector(std::optional<std::vector<bool>>* val) const { return readData(val)… in readBoolVector()
1355 status_t Parcel::readBoolVector(std::unique_ptr<std::vector<bool>>* val) const { return readData(va… in readBoolVector()
1356 status_t Parcel::readBoolVector(std::vector<bool>* val) const { return readData(val); } in readBoolVector()
1357 status_t Parcel::readCharVector(std::optional<std::vector<char16_t>>* val) const { return readData(… in readCharVector()
1358 status_t Parcel::readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const { return readDat… in readCharVector()
1359 status_t Parcel::readCharVector(std::vector<char16_t>* val) const { return readData(val); } in readCharVector()
1361 status_t Parcel::readString16Vector( in readString16Vector()
1363 status_t Parcel::readString16Vector( in readString16Vector()
1365 status_t Parcel::readString16Vector(std::vector<String16>* val) const { return readData(val); } in readString16Vector()
1366 status_t Parcel::readUtf8VectorFromUtf16Vector( in readUtf8VectorFromUtf16Vector()
1368 status_t Parcel::readUtf8VectorFromUtf16Vector( in readUtf8VectorFromUtf16Vector()
1370 status_t Parcel::readUtf8VectorFromUtf16Vector(std::vector<std::string>* val) const { return readDa… in readUtf8VectorFromUtf16Vector()
1372 status_t Parcel::readUniqueFileDescriptorVector(std::optional<std::vector<unique_fd>>* val) const { in readUniqueFileDescriptorVector()
1375 status_t Parcel::readUniqueFileDescriptorVector( in readUniqueFileDescriptorVector()
1379 status_t Parcel::readUniqueFileDescriptorVector(std::vector<unique_fd>* val) const { in readUniqueFileDescriptorVector()
1383 status_t Parcel::readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const { retur… in readStrongBinderVector()
1384 status_t Parcel::readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const { ret… in readStrongBinderVector()
1385 status_t Parcel::readStrongBinderVector(std::vector<sp<IBinder>>* val) const { return readData(val)… in readStrongBinderVector()
1387 status_t Parcel::readParcelable(Parcelable* parcelable) const { return readData(parcelable); } in readParcelable()
1389 status_t Parcel::writeInt32(int32_t val) in writeInt32()
1394 status_t Parcel::writeUint32(uint32_t val) in writeUint32()
1399 status_t Parcel::writeInt32Array(size_t len, const int32_t *val) { in writeInt32Array()
1415 status_t Parcel::writeByteArray(size_t len, const uint8_t *val) { in writeByteArray()
1432 status_t Parcel::writeBool(bool val) in writeBool()
1437 status_t Parcel::writeChar(char16_t val) in writeChar()
1442 status_t Parcel::writeByte(int8_t val) in writeByte()
1447 status_t Parcel::writeInt64(int64_t val) in writeInt64()
1452 status_t Parcel::writeUint64(uint64_t val) in writeUint64()
1457 status_t Parcel::writePointer(uintptr_t val) in writePointer()
1462 status_t Parcel::writeFloat(float val) in writeFloat()
1469 status_t Parcel::writeDouble(double val) in writeDouble()
1481 status_t Parcel::writeDouble(double val) in writeDouble()
1488 status_t Parcel::writeCString(const char* str) in writeCString()
1493 status_t Parcel::writeString8(const String8& str) in writeString8()
1498 status_t Parcel::writeString8(const char* str, size_t len) in writeString8()
1516 status_t Parcel::writeString16(const String16& str) in writeString16()
1521 status_t Parcel::writeString16(const char16_t* str, size_t len) in writeString16()
1540 status_t Parcel::writeStrongBinder(const sp<IBinder>& val) in writeStrongBinder()
1546 status_t Parcel::writeRawNullableParcelable(const Parcelable* parcelable) { in writeRawNullableParcelable()
1555 status_t Parcel::writeNativeHandle(const native_handle* handle) in writeNativeHandle()
1579 status_t Parcel::writeFileDescriptor(int fd, bool takeOwnership) { in writeFileDescriptor()
1632 status_t Parcel::writeDupFileDescriptor(int fd) in writeDupFileDescriptor()
1645 status_t Parcel::writeParcelFileDescriptor(int fd, bool takeOwnership) in writeParcelFileDescriptor()
1651 status_t Parcel::writeDupParcelFileDescriptor(int fd) in writeDupParcelFileDescriptor()
1664 status_t Parcel::writeUniqueFileDescriptor(const unique_fd& fd) { in writeUniqueFileDescriptor()
1668 status_t Parcel::writeBlob(size_t len, bool mutableCopy, WritableBlob* outBlob) in writeBlob()
1730 status_t Parcel::writeDupImmutableBlobFileDescriptor(int fd) in writeDupImmutableBlobFileDescriptor()
1739 status_t Parcel::write(const FlattenableHelperInterface& val) in write()
1785 status_t Parcel::writeObject(const flat_binder_object& val, bool nullMetaData) in writeObject()
1841 status_t Parcel::writeNoException() in writeNoException()
1847 status_t Parcel::validateReadData(size_t upperBound) const in validateReadData()
1917 status_t Parcel::read(void* outData, size_t len) const in read()
1945 const void* Parcel::readInplace(size_t len) const in readInplace()
1974 status_t Parcel::readOutVectorSizeWithCheck(size_t elmSize, int32_t* size) const { in readOutVectorSizeWithCheck()
1998 status_t Parcel::readAligned(T *pArg) const { in readAligned()
2022 T Parcel::readAligned() const { in readAligned()
2032 status_t Parcel::writeAligned(T val) { in writeAligned()
2047 status_t Parcel::readInt32(int32_t *pArg) const in readInt32()
2052 int32_t Parcel::readInt32() const in readInt32()
2057 status_t Parcel::readUint32(uint32_t *pArg) const in readUint32()
2062 uint32_t Parcel::readUint32() const in readUint32()
2067 status_t Parcel::readInt64(int64_t *pArg) const in readInt64()
2073 int64_t Parcel::readInt64() const in readInt64()
2078 status_t Parcel::readUint64(uint64_t *pArg) const in readUint64()
2083 uint64_t Parcel::readUint64() const in readUint64()
2088 status_t Parcel::readPointer(uintptr_t *pArg) const in readPointer()
2098 uintptr_t Parcel::readPointer() const in readPointer()
2104 status_t Parcel::readFloat(float *pArg) const in readFloat()
2110 float Parcel::readFloat() const in readFloat()
2117 status_t Parcel::readDouble(double *pArg) const in readDouble()
2130 double Parcel::readDouble() const in readDouble()
2142 status_t Parcel::readDouble(double *pArg) const in readDouble()
2147 double Parcel::readDouble() const in readDouble()
2154 status_t Parcel::readBool(bool *pArg) const in readBool()
2162 bool Parcel::readBool() const in readBool()
2167 status_t Parcel::readChar(char16_t *pArg) const in readChar()
2175 char16_t Parcel::readChar() const in readChar()
2180 status_t Parcel::readByte(int8_t *pArg) const in readByte()
2188 int8_t Parcel::readByte() const in readByte()
2193 status_t Parcel::readUtf8FromUtf16(std::string* str) const { in readUtf8FromUtf16()
2219 const char* Parcel::readCString() const in readCString()
2236 String8 Parcel::readString8() const in readString8()
2249 status_t Parcel::readString8(String8* pArg) const in readString8()
2262 const char* Parcel::readString8Inplace(size_t* outLen) const in readString8Inplace()
2280 String16 Parcel::readString16() const in readString16()
2294 status_t Parcel::readString16(String16* pArg) const in readString16()
2307 const char16_t* Parcel::readString16Inplace(size_t* outLen) const in readString16Inplace()
2325 status_t Parcel::readStrongBinder(sp<IBinder>* val) const in readStrongBinder()
2337 status_t Parcel::readNullableStrongBinder(sp<IBinder>* val) const in readNullableStrongBinder()
2342 sp<IBinder> Parcel::readStrongBinder() const in readStrongBinder()
2352 int32_t Parcel::readExceptionCode() const in readExceptionCode()
2360 native_handle* Parcel::readNativeHandle() const in readNativeHandle()
2394 int Parcel::readFileDescriptor() const { in readFileDescriptor()
2435 int Parcel::readParcelFileDescriptor() const { in readParcelFileDescriptor()
2467 status_t Parcel::readUniqueFileDescriptor(unique_fd* val) const { in readUniqueFileDescriptor()
2488 status_t Parcel::readUniqueParcelFileDescriptor(unique_fd* val) const { in readUniqueParcelFileDescriptor()
2509 status_t Parcel::readBlob(size_t len, ReadableBlob* outBlob) const in readBlob()
2552 status_t Parcel::read(FlattenableHelperInterface& val) const in read()
2604 const flat_binder_object* Parcel::readObject(bool nullMetaData) const in readObject()
2674 void Parcel::closeFileDescriptors() { in closeFileDescriptors()
2699 uintptr_t Parcel::ipcData() const in ipcData()
2704 size_t Parcel::ipcDataSize() const in ipcDataSize()
2709 uintptr_t Parcel::ipcObjects() const in ipcObjects()
2717 size_t Parcel::ipcObjectsCount() const in ipcObjectsCount()
2725 void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize, const binder_size_t* objects, in ipcSetDataReference()
2782 status_t Parcel::rpcSetDataReference( in rpcSetDataReference()
2829 void Parcel::print(std::ostream& to, uint32_t /*flags*/) const { in print()
2857 void Parcel::releaseObjects() in releaseObjects()
2880 void Parcel::acquireObjects() in acquireObjects()
2903 void Parcel::freeData() in freeData()
2909 void Parcel::freeDataNoInit() in freeDataNoInit()
2936 status_t Parcel::growData(size_t len) in growData()
2967 status_t Parcel::restartWrite(size_t desired) in restartWrite()
3025 status_t Parcel::continueWrite(size_t desired) in continueWrite()
3224 status_t Parcel::truncateRpcObjects(size_t newObjectsSize) { in truncateRpcObjects()
3253 void Parcel::initState() in initState()
3271 void Parcel::scanForFds() const { in scanForFds()
3282 size_t Parcel::getBlobAshmemSize() const in getBlobAshmemSize()
3290 size_t Parcel::getOpenAshmemSize() const in getOpenAshmemSize()
3320 Parcel::Blob::Blob() : in Blob()
3324 Parcel::Blob::~Blob() { in ~Blob()
3328 void Parcel::Blob::release() { in release()
3335 void Parcel::Blob::init(int fd, void* data, size_t size, bool isMutable) { in init()
3342 void Parcel::Blob::clear() { in clear()