/system/core/storaged/ |
D | uid_info.cpp | 24 status_t UidInfo::writeToParcel(Parcel* parcel) const { in writeToParcel() 25 parcel->writeInt32(uid); in writeToParcel() 26 parcel->writeCString(name.c_str()); in writeToParcel() 27 parcel->write(&io, sizeof(io)); in writeToParcel() 29 parcel->writeInt32(tasks.size()); in writeToParcel() 31 parcel->writeInt32(task_it.first); in writeToParcel() 32 parcel->writeCString(task_it.second.comm.c_str()); in writeToParcel() 33 parcel->write(&task_it.second.io, sizeof(task_it.second.io)); in writeToParcel() 38 status_t UidInfo::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 39 uid = parcel->readInt32(); in readFromParcel() [all …]
|
/system/bt/service/common/android/bluetooth/ |
D | bluetooth_a2dp_codec_config.cc | 29 status_t BluetoothA2dpCodecConfig::writeToParcel(Parcel* parcel) const { in writeToParcel() 30 status_t status = parcel->writeInt32(codec_type_); in writeToParcel() 33 status = parcel->writeInt32(codec_priority_); in writeToParcel() 36 status = parcel->writeInt32(sample_rate_); in writeToParcel() 39 status = parcel->writeInt32(bits_per_sample_); in writeToParcel() 42 status = parcel->writeInt32(channel_mode_); in writeToParcel() 45 status = parcel->writeInt64(codec_specific_1_); in writeToParcel() 48 status = parcel->writeInt64(codec_specific_2_); in writeToParcel() 51 status = parcel->writeInt64(codec_specific_3_); in writeToParcel() 54 status = parcel->writeInt64(codec_specific_4_); in writeToParcel() [all …]
|
D | scan_settings.cc | 30 status_t ScanSettings::writeToParcel(Parcel* parcel) const { in writeToParcel() 31 status_t status = parcel->writeInt32(mode_); in writeToParcel() 34 status = parcel->writeInt32(callback_type_); in writeToParcel() 37 status = parcel->writeInt32(result_type_); in writeToParcel() 40 status = parcel->writeInt64(report_delay_ms_.InMilliseconds()); in writeToParcel() 43 status = parcel->writeInt32(match_mode_); in writeToParcel() 46 status = parcel->writeInt32(match_count_per_filter_); in writeToParcel() 50 status_t ScanSettings::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 52 status_t status = parcel->readInt32(&value); in readFromParcel() 56 status = parcel->readInt32(&value); in readFromParcel() [all …]
|
D | bluetooth_avrcp_media_attr.cc | 29 status_t BluetoothAvrcpMediaAttr::writeToParcel(Parcel* parcel) const { in writeToParcel() 31 parcel->writeString16(String16(title_.c_str(), title_.size())); in writeToParcel() 34 status = parcel->writeString16(String16(artist_.c_str(), artist_.size())); in writeToParcel() 37 status = parcel->writeString16(String16(album_.c_str(), album_.size())); in writeToParcel() 40 status = parcel->writeString16(String16(genre_.c_str(), genre_.size())); in writeToParcel() 43 status = parcel->writeInt32(track_num_); in writeToParcel() 46 status = parcel->writeInt32(num_tracks_); in writeToParcel() 49 status = parcel->writeInt32(play_time_); in writeToParcel() 55 status_t BluetoothAvrcpMediaAttr::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 57 status_t status = parcel->readString16(&title); in readFromParcel() [all …]
|
D | bluetooth_remote_device_props.cc | 31 status_t BluetoothRemoteDeviceProps::writeToParcel(Parcel* parcel) const { in writeToParcel() 33 parcel->writeString16(String16(name_.c_str(), name_.size())); in writeToParcel() 36 status = parcel->writeString16(String16(address_.c_str(), address_.size())); in writeToParcel() 44 status = parcel->writeParcelableVector(uuids); in writeToParcel() 47 status = parcel->writeInt32(device_class_); in writeToParcel() 50 status = parcel->writeInt32(device_type_); in writeToParcel() 53 status = parcel->writeInt32(rssi_); in writeToParcel() 59 status_t BluetoothRemoteDeviceProps::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 61 status_t status = parcel->readString16(&name); in readFromParcel() 66 status = parcel->readString16(&address); in readFromParcel() [all …]
|
D | bluetooth_gatt_characteristic.cc | 31 status_t BluetoothGattCharacteristic::writeToParcel(Parcel* parcel) const { in writeToParcel() 32 status_t status = parcel->writeInt32(handle_); in writeToParcel() 35 status = parcel->writeParcelable((UUID)uuid_); in writeToParcel() 38 status = parcel->writeInt32(properties_); in writeToParcel() 41 status = parcel->writeInt32(permissions_); in writeToParcel() 49 status = parcel->writeParcelableVector(descriptors); in writeToParcel() 53 status_t BluetoothGattCharacteristic::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 55 status_t status = parcel->readInt32(&tmp); in readFromParcel() 60 status = parcel->readParcelable(&uuid); in readFromParcel() 64 status = parcel->readInt32(&tmp); in readFromParcel() [all …]
|
D | bluetooth_gatt_service.cc | 31 status_t BluetoothGattService::writeToParcel(Parcel* parcel) const { in writeToParcel() 32 status_t status = parcel->writeInt32(handle_); in writeToParcel() 35 status = parcel->writeBool(primary_); in writeToParcel() 38 status = parcel->writeParcelable((UUID)uuid_); in writeToParcel() 44 status = parcel->writeParcelableVector(characteristics); in writeToParcel() 50 status = parcel->writeParcelableVector(includedServices); in writeToParcel() 55 status_t BluetoothGattService::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 57 status_t status = parcel->readInt32(&tmp); in readFromParcel() 61 status = parcel->readBool(&primary_); in readFromParcel() 65 status = parcel->readParcelable(&uuid); in readFromParcel() [all …]
|
D | advertise_settings.cc | 24 status_t AdvertiseSettings::writeToParcel(Parcel* parcel) const { in writeToParcel() 25 status_t status = parcel->writeInt32(mode_); in writeToParcel() 28 status = parcel->writeInt32(tx_power_level_); in writeToParcel() 31 status = parcel->writeInt32(connectable_); in writeToParcel() 34 status = parcel->writeInt32(timeout_.InMilliseconds()); in writeToParcel() 38 status_t AdvertiseSettings::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 40 status_t status = parcel->readInt32(&value); in readFromParcel() 45 status = parcel->readInt32(&value); in readFromParcel() 50 status = parcel->readInt32(&value); in readFromParcel() 55 status = parcel->readInt32(&value); in readFromParcel()
|
D | bluetooth_gatt_included_service.cc | 31 status_t BluetoothGattIncludedService::writeToParcel(Parcel* parcel) const { in writeToParcel() 32 status_t status = parcel->writeParcelable((UUID)uuid_); in writeToParcel() 35 status = parcel->writeInt32(handle_); in writeToParcel() 38 status = parcel->writeBool(primary_); in writeToParcel() 42 status_t BluetoothGattIncludedService::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 44 status_t status = parcel->readParcelable(&uuid); in readFromParcel() 49 status = parcel->readInt32(&tmp); in readFromParcel() 53 status = parcel->readBool(&primary_); in readFromParcel()
|
D | bluetooth_gatt_descriptor.cc | 30 status_t BluetoothGattDescriptor::writeToParcel(Parcel* parcel) const { in writeToParcel() 31 status_t status = parcel->writeParcelable((UUID)uuid_); in writeToParcel() 34 status = parcel->writeInt32(handle_); in writeToParcel() 37 status = parcel->writeInt32(permissions_); in writeToParcel() 41 status_t BluetoothGattDescriptor::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 43 status_t status = parcel->readParcelable(&uuid); in readFromParcel() 48 status = parcel->readInt32(&tmp); in readFromParcel() 52 status = parcel->readInt32(&tmp); in readFromParcel()
|
D | scan_result.cc | 34 status_t ScanResult::writeToParcel(Parcel* parcel) const { in writeToParcel() 36 parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel() 39 status = parcel->writeByteVector(scan_record_); in writeToParcel() 42 status = parcel->writeInt32(rssi_); in writeToParcel() 46 status_t ScanResult::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 48 status_t status = parcel->readString16(&addr); in readFromParcel() 52 status = parcel->readByteVector(&scan_record_); in readFromParcel() 55 status = parcel->readInt32(&rssi_); in readFromParcel()
|
D | scan_filter.cc | 34 status_t ScanFilter::writeToParcel(Parcel* parcel) const { in writeToParcel() 36 parcel->writeString16(String16(String8(device_name_.c_str()))); in writeToParcel() 39 status = parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel() 53 status = parcel->writeNullableParcelable(uuid); in writeToParcel() 63 status = parcel->writeNullableParcelable(uuid); in writeToParcel() 69 status_t ScanFilter::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 71 status_t status = parcel->readString16(&name); in readFromParcel() 76 status = parcel->readString16(&addr); in readFromParcel() 81 status = parcel->readParcelable(&uuid); in readFromParcel() 85 status = parcel->readParcelable(&uuid); in readFromParcel()
|
D | bluetooth_avrcp_int_value.cc | 29 status_t BluetoothAvrcpIntValue::writeToParcel(Parcel* parcel) const { in writeToParcel() 30 status_t status = parcel->writeInt32(id_); in writeToParcel() 33 status = parcel->writeInt32(value_); in writeToParcel() 39 status_t BluetoothAvrcpIntValue::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 41 status_t status = parcel->readInt32(&tmp); in readFromParcel() 45 status = parcel->readInt32(&tmp); in readFromParcel()
|
/system/connectivity/wificond/scanning/ |
D | pno_settings.cpp | 34 status_t PnoSettings::writeToParcel(::android::Parcel* parcel) const { in writeToParcel() 35 RETURN_IF_FAILED(parcel->writeInt32(interval_ms_)); in writeToParcel() 36 RETURN_IF_FAILED(parcel->writeInt32(min_2g_rssi_)); in writeToParcel() 37 RETURN_IF_FAILED(parcel->writeInt32(min_5g_rssi_)); in writeToParcel() 38 RETURN_IF_FAILED(parcel->writeInt32(pno_networks_.size())); in writeToParcel() 42 RETURN_IF_FAILED(parcel->writeInt32(1)); in writeToParcel() 43 RETURN_IF_FAILED(network.writeToParcel(parcel)); in writeToParcel() 48 status_t PnoSettings::readFromParcel(const ::android::Parcel* parcel) { in readFromParcel() argument 49 RETURN_IF_FAILED(parcel->readInt32(&interval_ms_)); in readFromParcel() 50 RETURN_IF_FAILED(parcel->readInt32(&min_2g_rssi_)); in readFromParcel() [all …]
|
D | scan_result.cpp | 56 status_t NativeScanResult::writeToParcel(::android::Parcel* parcel) const { in writeToParcel() 57 RETURN_IF_FAILED(parcel->writeByteVector(ssid)); in writeToParcel() 58 RETURN_IF_FAILED(parcel->writeByteVector( in writeToParcel() 60 RETURN_IF_FAILED(parcel->writeByteVector(info_element)); in writeToParcel() 61 RETURN_IF_FAILED(parcel->writeUint32(frequency)); in writeToParcel() 62 RETURN_IF_FAILED(parcel->writeInt32(signal_mbm)); in writeToParcel() 63 RETURN_IF_FAILED(parcel->writeUint64(tsf)); in writeToParcel() 66 RETURN_IF_FAILED(parcel->writeUint32(capability)); in writeToParcel() 67 RETURN_IF_FAILED(parcel->writeInt32(associated ? 1 : 0)); in writeToParcel() 68 RETURN_IF_FAILED(parcel->writeInt32(radio_chain_infos.size())); in writeToParcel() [all …]
|
D | single_scan_settings.cpp | 38 status_t SingleScanSettings::writeToParcel(::android::Parcel* parcel) const { in writeToParcel() 43 RETURN_IF_FAILED(parcel->writeInt32(scan_type_)); in writeToParcel() 44 RETURN_IF_FAILED(parcel->writeInt32(channel_settings_.size())); in writeToParcel() 48 RETURN_IF_FAILED(parcel->writeInt32(1)); in writeToParcel() 49 RETURN_IF_FAILED(channel.writeToParcel(parcel)); in writeToParcel() 51 RETURN_IF_FAILED(parcel->writeInt32(hidden_networks_.size())); in writeToParcel() 55 RETURN_IF_FAILED(parcel->writeInt32(1)); in writeToParcel() 56 RETURN_IF_FAILED(network.writeToParcel(parcel)); in writeToParcel() 61 status_t SingleScanSettings::readFromParcel(const ::android::Parcel* parcel) { in readFromParcel() argument 62 RETURN_IF_FAILED(parcel->readInt32(&scan_type_)); in readFromParcel() [all …]
|
D | pno_network.cpp | 31 status_t PnoNetwork::writeToParcel(::android::Parcel* parcel) const { in writeToParcel() 32 RETURN_IF_FAILED(parcel->writeInt32(is_hidden_ ? 1 : 0)); in writeToParcel() 33 RETURN_IF_FAILED(parcel->writeByteVector(ssid_)); in writeToParcel() 34 RETURN_IF_FAILED(parcel->writeInt32Vector(frequencies_)); in writeToParcel() 38 status_t PnoNetwork::readFromParcel(const ::android::Parcel* parcel) { in readFromParcel() argument 40 RETURN_IF_FAILED(parcel->readInt32(&is_hidden)); in readFromParcel() 42 RETURN_IF_FAILED(parcel->readByteVector(&ssid_)); in readFromParcel() 43 RETURN_IF_FAILED(parcel->readInt32Vector(&frequencies_)); in readFromParcel()
|
D | radio_chain_info.cpp | 30 status_t RadioChainInfo::writeToParcel(::android::Parcel* parcel) const { in writeToParcel() 31 RETURN_IF_FAILED(parcel->writeInt32(chain_id)); in writeToParcel() 32 RETURN_IF_FAILED(parcel->writeInt32(level)); in writeToParcel() 36 status_t RadioChainInfo::readFromParcel(const ::android::Parcel* parcel) { in readFromParcel() argument 37 RETURN_IF_FAILED(parcel->readInt32(&chain_id)); in readFromParcel() 38 RETURN_IF_FAILED(parcel->readInt32(&level)); in readFromParcel()
|
/system/tools/aidl/ |
D | aidl_to_java.cpp | 198 c.writer << c.parcel << ".writeInt(((" << c.var << ")?(1):(0)));\n"; in WriteToParcelFor() 202 c.writer << c.parcel << ".writeBooleanArray(" << c.var << ");\n"; in WriteToParcelFor() 206 c.writer << c.parcel << ".writeByte(" << c.var << ");\n"; in WriteToParcelFor() 210 c.writer << c.parcel << ".writeByteArray(" << c.var << ");\n"; in WriteToParcelFor() 214 c.writer << c.parcel << ".writeInt(((int)" << c.var << "));\n"; in WriteToParcelFor() 218 c.writer << c.parcel << ".writeCharArray(" << c.var << ");\n"; in WriteToParcelFor() 222 c.writer << c.parcel << ".writeInt(" << c.var << ");\n"; in WriteToParcelFor() 226 c.writer << c.parcel << ".writeIntArray(" << c.var << ");\n"; in WriteToParcelFor() 230 c.writer << c.parcel << ".writeLong(" << c.var << ");\n"; in WriteToParcelFor() 234 c.writer << c.parcel << ".writeLongArray(" << c.var << ");\n"; in WriteToParcelFor() [all …]
|
D | generate_java.cpp | 54 bool generate_java_parcel(const std::string& filename, const AidlStructuredParcelable* parcel, in generate_java_parcel() argument 56 auto cl = generate_parcel_class(parcel, typenames); in generate_java_parcel() 59 std::make_unique<Document>("" /* no comment */, parcel->GetPackage(), std::move(cl)); in generate_java_parcel() 97 const AidlStructuredParcelable* parcel, const AidlTypenames& typenames) { in generate_parcel_class() argument 99 parcel_class->comment = parcel->GetComments(); in generate_parcel_class() 102 parcel_class->type = parcel->GetCanonicalName(); in generate_parcel_class() 104 parcel_class->annotations = generate_java_annotations(*parcel); in generate_parcel_class() 106 for (const auto& variable : parcel->GetFields()) { in generate_parcel_class() 114 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsImmutable()) { in generate_parcel_class() 118 if (!parcel->IsImmutable() && variable->GetDefaultValue()) { in generate_parcel_class() [all …]
|
/system/iorap/include/binder/ |
D | app_launch_event.h | 76 ::android::status_t readFromParcel(const android::Parcel* parcel) override { in readFromParcel() 85 PARCEL_READ_OR_RETURN(parcel->readInt32, &type_int); in readFromParcel() 90 PARCEL_READ_OR_RETURN(parcel->readInt64, &sequence_id); in readFromParcel() 94 PARCEL_READ_OR_RETURN(readIntent, parcel); in readFromParcel() 100 PARCEL_READ_OR_RETURN(readActivityRecordProto, parcel); in readFromParcel() 102 PARCEL_READ_OR_RETURN(parcel->readInt32, &temperature_int); in readFromParcel() 107 PARCEL_READ_OR_RETURN(readActivityRecordProto, parcel); in readFromParcel() 110 PARCEL_READ_OR_RETURN(readActivityRecordProtoNullable, parcel); in readFromParcel() 127 ::android::status_t writeToParcel(android::Parcel* parcel) const override { in writeToParcel() 128 PARCEL_WRITE_OR_RETURN(parcel->writeInt32, static_cast<int32_t>(type)); in writeToParcel() [all …]
|
D | auto_parcelable.h | 46 status_t writeToParcel(Parcel* parcel) const override { in writeToParcel() 47 if (parcel == nullptr) { in writeToParcel() 54 result = writeAnyToParcel(/*inout*/parcel, value); in writeToParcel() 66 status_t readFromParcel(const Parcel* parcel) override { in readFromParcel() 67 if (parcel == nullptr) { in readFromParcel() 84 auto&& [res, read_value] = readAnyFromParcel<ValueT>(/*inout*/parcel); in readFromParcel() 121 static status_t writeAnyToParcel(Parcel* parcel, const F& value) { in writeAnyToParcel() 129 return value.writeToParcel(parcel); in writeAnyToParcel() 131 return writeAnyToParcel(parcel, static_cast<std::underlying_type_t<F>>(value)); in writeAnyToParcel() 134 return parcel->write ## fn_name (value); in writeAnyToParcel() [all …]
|
/system/connectivity/wificond/tests/ |
D | scan_settings_unittest.cpp | 63 Parcel parcel; in TEST_F() local 64 EXPECT_EQ(::android::OK, channel_settings.writeToParcel(&parcel)); in TEST_F() 67 parcel.setDataPosition(0); in TEST_F() 68 EXPECT_EQ(::android::OK, channel_settings_copy.readFromParcel(&parcel)); in TEST_F() 78 Parcel parcel; in TEST_F() local 79 EXPECT_EQ(::android::OK, hidden_network.writeToParcel(&parcel)); in TEST_F() 82 parcel.setDataPosition(0); in TEST_F() 83 EXPECT_EQ(::android::OK, hidden_network_copy.readFromParcel(&parcel)); in TEST_F() 104 Parcel parcel; in TEST_F() local 105 EXPECT_EQ(::android::OK, scan_settings.writeToParcel(&parcel)); in TEST_F() [all …]
|
/system/security/keystore/ |
D | KeyAttestationPackageInfo.cpp | 33 status_t KeyAttestationPackageInfo::writeToParcel(Parcel* parcel) const { in writeToParcel() 34 auto rc = parcel->writeString16(packageName_); in writeToParcel() 36 rc = parcel->writeInt64(versionCode_); in writeToParcel() 38 return parcel->writeParcelableVector(signatures_); in writeToParcel() 41 status_t KeyAttestationPackageInfo::readFromParcel(const Parcel* parcel) { in readFromParcel() argument 42 auto rc = parcel->readString16(&packageName_); in readFromParcel() 44 rc = parcel->readInt64(&versionCode_); in readFromParcel() 48 rc = parcel->readParcelableVector(&temp_vector); in readFromParcel()
|
/system/libhidl/transport/include/hidl/ |
D | HidlBinderSupport.h | 54 const Parcel &parcel, size_t parentHandle, size_t parentOffset); 57 Parcel *parcel, size_t parentHandle, size_t parentOffset); 62 const Parcel &parcel, size_t parentHandle, size_t parentOffset); 65 Parcel *parcel, size_t parentHandle, size_t parentOffset); 70 const Parcel &parcel, size_t parentHandle, size_t parentOffset); 73 Parcel *parcel, size_t parentHandle, size_t parentOffset); 79 status_t readFromParcel(Status *status, const Parcel& parcel); 80 status_t writeToParcel(const Status &status, Parcel* parcel); 87 const Parcel &parcel, in readEmbeddedFromParcel() argument 92 return parcel.readNullableEmbeddedBuffer( in readEmbeddedFromParcel() [all …]
|