Home
last modified time | relevance | path

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

1234

/system/core/storaged/
Duid_info.cpp24 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/
Dbluetooth_a2dp_codec_config.cc29 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 …]
Dscan_settings.cc30 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 …]
Dbluetooth_avrcp_media_attr.cc29 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 …]
Dbluetooth_remote_device_props.cc31 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 …]
Dbluetooth_gatt_characteristic.cc31 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 …]
Dbluetooth_gatt_service.cc31 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 …]
Dadvertise_settings.cc24 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()
Dbluetooth_gatt_included_service.cc31 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()
Dbluetooth_gatt_descriptor.cc30 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()
Dscan_result.cc34 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()
/system/update_engine/
Dparcelable_update_engine_status.cc39 status_t ParcelableUpdateEngineStatus::writeToParcel(Parcel* parcel) const { in writeToParcel()
42 status = parcel->writeInt64(last_checked_time_); in writeToParcel()
47 status = parcel->writeString16(current_operation_); in writeToParcel()
52 status = parcel->writeDouble(progress_); in writeToParcel()
57 status = parcel->writeString16(current_version_); in writeToParcel()
62 status = parcel->writeString16(current_system_version_); in writeToParcel()
67 status = parcel->writeInt64(new_size_); in writeToParcel()
72 status = parcel->writeString16(new_version_); in writeToParcel()
77 return parcel->writeString16(new_system_version_); in writeToParcel()
80 status_t ParcelableUpdateEngineStatus::readFromParcel(const Parcel* parcel) { in readFromParcel() argument
[all …]
/system/connectivity/wificond/scanning/
Dpno_settings.cpp34 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 …]
Dscan_result.cpp56 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 …]
Dsingle_scan_settings.cpp38 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 …]
Dpno_network.cpp31 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()
Dradio_chain_info.cpp30 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/
Daidl_to_java.cpp171 c.writer << c.parcel << ".writeInt(((" << c.var << ")?(1):(0)));\n"; in WriteToParcelFor()
175 c.writer << c.parcel << ".writeBooleanArray(" << c.var << ");\n"; in WriteToParcelFor()
179 c.writer << c.parcel << ".writeByte(" << c.var << ");\n"; in WriteToParcelFor()
183 c.writer << c.parcel << ".writeByteArray(" << c.var << ");\n"; in WriteToParcelFor()
187 c.writer << c.parcel << ".writeInt(((int)" << c.var << "));\n"; in WriteToParcelFor()
191 c.writer << c.parcel << ".writeCharArray(" << c.var << ");\n"; in WriteToParcelFor()
195 c.writer << c.parcel << ".writeInt(" << c.var << ");\n"; in WriteToParcelFor()
199 c.writer << c.parcel << ".writeIntArray(" << c.var << ");\n"; in WriteToParcelFor()
203 c.writer << c.parcel << ".writeLong(" << c.var << ");\n"; in WriteToParcelFor()
207 c.writer << c.parcel << ".writeLongArray(" << c.var << ");\n"; in WriteToParcelFor()
[all …]
/system/iorap/include/binder/
Dapp_launch_event.h76 ::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 …]
Dauto_parcelable.h46 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()
122 static status_t writeAnyToParcel(Parcel* parcel, const F& value) { in writeAnyToParcel()
130 return value.writeToParcel(parcel); in writeAnyToParcel()
132 return writeAnyToParcel(parcel, static_cast<std::underlying_type_t<F>>(value)); in writeAnyToParcel()
135 return parcel->write ## fn_name (value); in writeAnyToParcel()
[all …]
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h54 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);
77 status_t writeToParcel(const hidl_version &version, android::hardware::Parcel& parcel);
80 hidl_version* readFromParcel(const android::hardware::Parcel& parcel);
86 status_t readFromParcel(Status *status, const Parcel& parcel);
87 status_t writeToParcel(const Status &status, Parcel* parcel);
[all …]
/system/connectivity/wificond/tests/
Dscan_settings_unittest.cpp63 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/connectivity/wificond/scanning/offload/
Dscan_stats.cpp71 status_t NativeScanStats::writeToParcel(::android::Parcel* parcel) const { in writeToParcel()
72 RETURN_IF_FAILED(parcel->writeUint32(num_scans_requested_by_wifi_)); in writeToParcel()
73 RETURN_IF_FAILED(parcel->writeUint32(num_scans_serviced_by_wifi_)); in writeToParcel()
74 RETURN_IF_FAILED(parcel->writeUint32(subscription_duration_ms_)); in writeToParcel()
75 RETURN_IF_FAILED(parcel->writeUint32(scan_duration_ms_)); in writeToParcel()
76 RETURN_IF_FAILED(parcel->writeUint32(num_channels_scanned_)); in writeToParcel()
77 RETURN_IF_FAILED(parcel->writeByteVector(histogram_channels_)); in writeToParcel()
81 status_t NativeScanStats::readFromParcel(const ::android::Parcel* parcel) { in readFromParcel() argument
82 RETURN_IF_FAILED(parcel->readUint32(&num_scans_requested_by_wifi_)); in readFromParcel()
83 RETURN_IF_FAILED(parcel->readUint32(&num_scans_serviced_by_wifi_)); in readFromParcel()
[all …]
/system/security/keystore/
DKeyAttestationPackageInfo.cpp33 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/
DHidlBinderSupport.cpp57 const Parcel &parcel, size_t parentHandle, size_t parentOffset) { in readEmbeddedFromParcel() argument
59 status_t _hidl_err = parcel.readNullableEmbeddedNativeHandle( in readEmbeddedFromParcel()
68 Parcel *parcel, size_t parentHandle, size_t parentOffset) { in writeEmbeddedToParcel() argument
69 status_t _hidl_err = parcel->writeEmbeddedNativeHandle( in writeEmbeddedToParcel()
83 const Parcel &parcel, size_t parentHandle, size_t parentOffset) { in readEmbeddedFromParcel() argument
86 ::android::status_t _hidl_err = parcel.readNullableEmbeddedNativeHandle( in readEmbeddedFromParcel()
94 parcel, in readEmbeddedFromParcel()
112 Parcel *parcel, size_t parentHandle, size_t parentOffset) { in writeEmbeddedToParcel() argument
114 status_t _hidl_err = parcel->writeEmbeddedNativeHandle( in writeEmbeddedToParcel()
122 parcel, in writeEmbeddedToParcel()
[all …]

1234