• Home
  • Raw
  • Download

Lines Matching refs:data

39 inline void readAudioConfigBaseFromParcel(const Parcel& data, audio_config_base_t *config) {  in readAudioConfigBaseFromParcel()  argument
40 config->sample_rate = data.readUint32(); in readAudioConfigBaseFromParcel()
41 config->channel_mask = (audio_channel_mask_t) data.readInt32(); in readAudioConfigBaseFromParcel()
42 config->format = (audio_format_t) data.readInt32(); in readAudioConfigBaseFromParcel()
45 inline void writeAudioConfigBaseToParcel(Parcel& data, const audio_config_base_t *config) in writeAudioConfigBaseToParcel() argument
47 data.writeUint32(config->sample_rate); in writeAudioConfigBaseToParcel()
48 data.writeInt32((int32_t) config->channel_mask); in writeAudioConfigBaseToParcel()
49 data.writeInt32((int32_t) config->format); in writeAudioConfigBaseToParcel()
52 inline void readRecordClientInfoFromParcel(const Parcel& data, record_client_info_t *clientInfo) { in readRecordClientInfoFromParcel() argument
53 clientInfo->riid = (audio_unique_id_t) data.readInt32(); in readRecordClientInfoFromParcel()
54 clientInfo->uid = (uid_t) data.readUint32(); in readRecordClientInfoFromParcel()
55 clientInfo->session = (audio_session_t) data.readInt32(); in readRecordClientInfoFromParcel()
56 clientInfo->source = (audio_source_t) data.readInt32(); in readRecordClientInfoFromParcel()
57 data.read(&clientInfo->port_id, sizeof(audio_port_handle_t)); in readRecordClientInfoFromParcel()
58 clientInfo->silenced = data.readBool(); in readRecordClientInfoFromParcel()
61 inline void writeRecordClientInfoToParcel(Parcel& data, const record_client_info_t *clientInfo) { in writeRecordClientInfoToParcel() argument
62 data.writeInt32((int32_t) clientInfo->riid); in writeRecordClientInfoToParcel()
63 data.writeUint32((uint32_t) clientInfo->uid); in writeRecordClientInfoToParcel()
64 data.writeInt32((int32_t) clientInfo->session); in writeRecordClientInfoToParcel()
65 data.writeInt32((int32_t) clientInfo->source); in writeRecordClientInfoToParcel()
66 data.write(&clientInfo->port_id, sizeof(audio_port_handle_t)); in writeRecordClientInfoToParcel()
67 data.writeBool(clientInfo->silenced); in writeRecordClientInfoToParcel()
70 inline void readEffectVectorFromParcel(const Parcel& data, in readEffectVectorFromParcel() argument
72 int32_t numEffects = data.readInt32(); in readEffectVectorFromParcel()
75 if (data.read(&effect, sizeof(effect_descriptor_t)) != NO_ERROR) { in readEffectVectorFromParcel()
82 inline void writeEffectVectorToParcel(Parcel& data, std::vector<effect_descriptor_t> effects) { in writeEffectVectorToParcel() argument
83 data.writeUint32((uint32_t) effects.size()); in writeEffectVectorToParcel()
85 if (data.write(&effect, sizeof(effect_descriptor_t)) != NO_ERROR) { in writeEffectVectorToParcel()
102 Parcel data, reply; in onAudioPortListUpdate() local
103 data.writeInterfaceToken(IAudioPolicyServiceClient::getInterfaceDescriptor()); in onAudioPortListUpdate()
104 remote()->transact(PORT_LIST_UPDATE, data, &reply, IBinder::FLAG_ONEWAY); in onAudioPortListUpdate()
109 Parcel data, reply; in onAudioPatchListUpdate() local
110 data.writeInterfaceToken(IAudioPolicyServiceClient::getInterfaceDescriptor()); in onAudioPatchListUpdate()
111 remote()->transact(PATCH_LIST_UPDATE, data, &reply, IBinder::FLAG_ONEWAY); in onAudioPatchListUpdate()
116 Parcel data, reply; in onAudioVolumeGroupChanged() local
117 data.writeInterfaceToken(IAudioPolicyServiceClient::getInterfaceDescriptor()); in onAudioVolumeGroupChanged()
118 data.writeUint32(group); in onAudioVolumeGroupChanged()
119 data.writeInt32(flags); in onAudioVolumeGroupChanged()
120 remote()->transact(VOLUME_GROUP_CHANGED, data, &reply, IBinder::FLAG_ONEWAY); in onAudioVolumeGroupChanged()
125 Parcel data, reply; in onDynamicPolicyMixStateUpdate() local
126 data.writeInterfaceToken(IAudioPolicyServiceClient::getInterfaceDescriptor()); in onDynamicPolicyMixStateUpdate()
127 data.writeString8(regId); in onDynamicPolicyMixStateUpdate()
128 data.writeInt32(state); in onDynamicPolicyMixStateUpdate()
129 remote()->transact(MIX_STATE_UPDATE, data, &reply, IBinder::FLAG_ONEWAY); in onDynamicPolicyMixStateUpdate()
140 Parcel data, reply; in onRecordingConfigurationUpdate() local
141 data.writeInterfaceToken(IAudioPolicyServiceClient::getInterfaceDescriptor()); in onRecordingConfigurationUpdate()
142 data.writeInt32(event); in onRecordingConfigurationUpdate()
143 writeRecordClientInfoToParcel(data, clientInfo); in onRecordingConfigurationUpdate()
144 writeAudioConfigBaseToParcel(data, clientConfig); in onRecordingConfigurationUpdate()
145 writeEffectVectorToParcel(data, clientEffects); in onRecordingConfigurationUpdate()
146 writeAudioConfigBaseToParcel(data, deviceConfig); in onRecordingConfigurationUpdate()
147 writeEffectVectorToParcel(data, effects); in onRecordingConfigurationUpdate()
148 data.writeInt32(patchHandle); in onRecordingConfigurationUpdate()
149 data.writeInt32((int32_t) source); in onRecordingConfigurationUpdate()
150 remote()->transact(RECORDING_CONFIGURATION_UPDATE, data, &reply, IBinder::FLAG_ONEWAY); in onRecordingConfigurationUpdate()
159 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
163 CHECK_INTERFACE(IAudioPolicyServiceClient, data, reply); in onTransact()
168 CHECK_INTERFACE(IAudioPolicyServiceClient, data, reply); in onTransact()
173 CHECK_INTERFACE(IAudioPolicyServiceClient, data, reply); in onTransact()
174 volume_group_t group = static_cast<volume_group_t>(data.readUint32()); in onTransact()
175 int flags = data.readInt32(); in onTransact()
180 CHECK_INTERFACE(IAudioPolicyServiceClient, data, reply); in onTransact()
181 String8 regId = data.readString8(); in onTransact()
182 int32_t state = data.readInt32(); in onTransact()
187 CHECK_INTERFACE(IAudioPolicyServiceClient, data, reply); in onTransact()
188 int event = (int) data.readInt32(); in onTransact()
192 readRecordClientInfoFromParcel(data, &clientInfo); in onTransact()
193 readAudioConfigBaseFromParcel(data, &clientConfig); in onTransact()
195 readEffectVectorFromParcel(data, &clientEffects); in onTransact()
196 readAudioConfigBaseFromParcel(data, &deviceConfig); in onTransact()
198 readEffectVectorFromParcel(data, &effects); in onTransact()
199 audio_patch_handle_t patchHandle = (audio_patch_handle_t) data.readInt32(); in onTransact()
200 audio_source_t source = (audio_source_t) data.readInt32(); in onTransact()
206 return BBinder::onTransact(code, data, reply, flags); in onTransact()