Lines Matching refs:reply

131         Parcel data, reply;  in setDeviceConnectionState()  local
138 remote()->transact(SET_DEVICE_CONNECTION_STATE, data, &reply); in setDeviceConnectionState()
139 return static_cast <status_t> (reply.readInt32()); in setDeviceConnectionState()
146 Parcel data, reply; in getDeviceConnectionState() local
150 remote()->transact(GET_DEVICE_CONNECTION_STATE, data, &reply); in getDeviceConnectionState()
151 return static_cast <audio_policy_dev_state_t>(reply.readInt32()); in getDeviceConnectionState()
159 Parcel data, reply; in handleDeviceConfigChange() local
165 remote()->transact(HANDLE_DEVICE_CONFIG_CHANGE, data, &reply); in handleDeviceConfigChange()
166 return static_cast <status_t> (reply.readInt32()); in handleDeviceConfigChange()
171 Parcel data, reply; in setPhoneState() local
174 remote()->transact(SET_PHONE_STATE, data, &reply); in setPhoneState()
175 return static_cast <status_t> (reply.readInt32()); in setPhoneState()
180 Parcel data, reply; in setForceUse() local
184 remote()->transact(SET_FORCE_USE, data, &reply); in setForceUse()
185 return static_cast <status_t> (reply.readInt32()); in setForceUse()
190 Parcel data, reply; in getForceUse() local
193 remote()->transact(GET_FORCE_USE, data, &reply); in getForceUse()
194 return static_cast <audio_policy_forced_cfg_t> (reply.readInt32()); in getForceUse()
199 Parcel data, reply; in getOutput() local
202 remote()->transact(GET_OUTPUT, data, &reply); in getOutput()
203 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutput()
218 Parcel data, reply; in getOutputForAttr() local
254 status_t status = remote()->transact(GET_OUTPUT_FOR_ATTR, data, &reply); in getOutputForAttr()
258 status = (status_t)reply.readInt32(); in getOutputForAttr()
262 status = (status_t)reply.read(&attr, sizeof(audio_attributes_t)); in getOutputForAttr()
266 *output = (audio_io_handle_t)reply.readInt32(); in getOutputForAttr()
267 audio_stream_type_t lStream = (audio_stream_type_t)reply.readInt32(); in getOutputForAttr()
271 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
272 *portId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
273 secondaryOutputs->resize(reply.readInt32()); in getOutputForAttr()
274 return reply.read(secondaryOutputs->data(), in getOutputForAttr()
280 Parcel data, reply; in startOutput() local
283 remote()->transact(START_OUTPUT, data, &reply); in startOutput()
284 return static_cast <status_t> (reply.readInt32()); in startOutput()
289 Parcel data, reply; in stopOutput() local
292 remote()->transact(STOP_OUTPUT, data, &reply); in stopOutput()
293 return static_cast <status_t> (reply.readInt32()); in stopOutput()
298 Parcel data, reply; in releaseOutput() local
301 remote()->transact(RELEASE_OUTPUT, data, &reply); in releaseOutput()
316 Parcel data, reply; in getInputForAttr() local
345 status_t status = remote()->transact(GET_INPUT_FOR_ATTR, data, &reply); in getInputForAttr()
349 status = reply.readInt32(); in getInputForAttr()
353 *input = (audio_io_handle_t)reply.readInt32(); in getInputForAttr()
354 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
355 *portId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
361 Parcel data, reply; in startInput() local
364 remote()->transact(START_INPUT, data, &reply); in startInput()
365 status_t status = static_cast <status_t> (reply.readInt32()); in startInput()
371 Parcel data, reply; in stopInput() local
374 remote()->transact(STOP_INPUT, data, &reply); in stopInput()
375 return static_cast <status_t> (reply.readInt32()); in stopInput()
380 Parcel data, reply; in releaseInput() local
383 remote()->transact(RELEASE_INPUT, data, &reply); in releaseInput()
390 Parcel data, reply; in initStreamVolume() local
395 remote()->transact(INIT_STREAM_VOLUME, data, &reply); in initStreamVolume()
396 return static_cast <status_t> (reply.readInt32()); in initStreamVolume()
403 Parcel data, reply; in setStreamVolumeIndex() local
408 remote()->transact(SET_STREAM_VOLUME, data, &reply); in setStreamVolumeIndex()
409 return static_cast <status_t> (reply.readInt32()); in setStreamVolumeIndex()
416 Parcel data, reply; in getStreamVolumeIndex() local
421 remote()->transact(GET_STREAM_VOLUME, data, &reply); in getStreamVolumeIndex()
422 int lIndex = reply.readInt32(); in getStreamVolumeIndex()
424 return static_cast <status_t> (reply.readInt32()); in getStreamVolumeIndex()
430 Parcel data, reply; in setVolumeIndexForAttributes() local
435 status_t status = remote()->transact(SET_VOLUME_ATTRIBUTES, data, &reply); in setVolumeIndexForAttributes()
439 return static_cast <status_t> (reply.readInt32()); in setVolumeIndexForAttributes()
444 Parcel data, reply; in getVolumeIndexForAttributes() local
448 status_t status = remote()->transact(GET_VOLUME_ATTRIBUTES, data, &reply); in getVolumeIndexForAttributes()
452 status = static_cast <status_t> (reply.readInt32()); in getVolumeIndexForAttributes()
456 index = reply.readInt32(); in getVolumeIndexForAttributes()
461 Parcel data, reply; in getMinVolumeIndexForAttributes() local
464 status_t status = remote()->transact(GET_MIN_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMinVolumeIndexForAttributes()
468 status = static_cast <status_t> (reply.readInt32()); in getMinVolumeIndexForAttributes()
472 index = reply.readInt32(); in getMinVolumeIndexForAttributes()
477 Parcel data, reply; in getMaxVolumeIndexForAttributes() local
480 status_t status = remote()->transact(GET_MAX_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMaxVolumeIndexForAttributes()
484 status = static_cast <status_t> (reply.readInt32()); in getMaxVolumeIndexForAttributes()
488 index = reply.readInt32(); in getMaxVolumeIndexForAttributes()
493 Parcel data, reply; in getStrategyForStream() local
496 remote()->transact(GET_STRATEGY_FOR_STREAM, data, &reply); in getStrategyForStream()
497 return reply.readUint32(); in getStrategyForStream()
502 Parcel data, reply; in getDevicesForStream() local
505 remote()->transact(GET_DEVICES_FOR_STREAM, data, &reply); in getDevicesForStream()
506 return (audio_devices_t) reply.readInt32(); in getDevicesForStream()
511 Parcel data, reply; in getOutputForEffect() local
514 remote()->transact(GET_OUTPUT_FOR_EFFECT, data, &reply); in getOutputForEffect()
515 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutputForEffect()
524 Parcel data, reply; in registerEffect() local
531 remote()->transact(REGISTER_EFFECT, data, &reply); in registerEffect()
532 return static_cast <status_t> (reply.readInt32()); in registerEffect()
537 Parcel data, reply; in unregisterEffect() local
540 remote()->transact(UNREGISTER_EFFECT, data, &reply); in unregisterEffect()
541 return static_cast <status_t> (reply.readInt32()); in unregisterEffect()
546 Parcel data, reply; in setEffectEnabled() local
550 remote()->transact(SET_EFFECT_ENABLED, data, &reply); in setEffectEnabled()
551 return static_cast <status_t> (reply.readInt32()); in setEffectEnabled()
556 Parcel data, reply; in moveEffectsToIo() local
563 status_t status = remote()->transact(MOVE_EFFECTS_TO_IO, data, &reply); in moveEffectsToIo()
567 return static_cast <status_t> (reply.readInt32()); in moveEffectsToIo()
572 Parcel data, reply; in isStreamActive() local
576 remote()->transact(IS_STREAM_ACTIVE, data, &reply); in isStreamActive()
577 return reply.readInt32(); in isStreamActive()
582 Parcel data, reply; in isStreamActiveRemotely() local
586 remote()->transact(IS_STREAM_ACTIVE_REMOTELY, data, &reply); in isStreamActiveRemotely()
587 return reply.readInt32(); in isStreamActiveRemotely()
592 Parcel data, reply; in isSourceActive() local
595 remote()->transact(IS_SOURCE_ACTIVE, data, &reply); in isSourceActive()
596 return reply.readInt32(); in isSourceActive()
606 Parcel data, reply; in queryDefaultPreProcessing() local
610 status_t status = remote()->transact(QUERY_DEFAULT_PRE_PROCESSING, data, &reply); in queryDefaultPreProcessing()
614 status = static_cast <status_t> (reply.readInt32()); in queryDefaultPreProcessing()
615 uint32_t retCount = reply.readInt32(); in queryDefaultPreProcessing()
618 reply.read(descriptors, sizeof(effect_descriptor_t) * numDesc); in queryDefaultPreProcessing()
625 Parcel data, reply; in setAllowedCapturePolicy() local
629 remote()->transact(SET_ALLOWED_CAPTURE_POLICY, data, &reply); in setAllowedCapturePolicy()
630 return reply.readInt32(); in setAllowedCapturePolicy()
635 Parcel data, reply; in isOffloadSupported() local
638 remote()->transact(IS_OFFLOAD_SUPPORTED, data, &reply); in isOffloadSupported()
639 return reply.readInt32(); in isOffloadSupported()
644 Parcel data, reply; in isDirectOutputSupported() local
648 status_t status = remote()->transact(IS_DIRECT_OUTPUT_SUPPORTED, data, &reply); in isDirectOutputSupported()
649 return status == NO_ERROR ? static_cast<bool>(reply.readInt32()) : false; in isDirectOutputSupported()
662 Parcel data, reply; in listAudioPorts() local
668 status_t status = remote()->transact(LIST_AUDIO_PORTS, data, &reply); in listAudioPorts()
670 status = (status_t)reply.readInt32(); in listAudioPorts()
671 *num_ports = (unsigned int)reply.readInt32(); in listAudioPorts()
678 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
680 *generation = reply.readInt32(); in listAudioPorts()
690 Parcel data, reply; in getAudioPort() local
693 status_t status = remote()->transact(GET_AUDIO_PORT, data, &reply); in getAudioPort()
695 (status = (status_t)reply.readInt32()) != NO_ERROR) { in getAudioPort()
698 reply.read(port, sizeof(struct audio_port)); in getAudioPort()
708 Parcel data, reply; in createAudioPatch() local
712 status_t status = remote()->transact(CREATE_AUDIO_PATCH, data, &reply); in createAudioPatch()
714 (status = (status_t)reply.readInt32()) != NO_ERROR) { in createAudioPatch()
717 reply.read(handle, sizeof(audio_patch_handle_t)); in createAudioPatch()
723 Parcel data, reply; in releaseAudioPatch() local
726 status_t status = remote()->transact(RELEASE_AUDIO_PATCH, data, &reply); in releaseAudioPatch()
728 status = (status_t)reply.readInt32(); in releaseAudioPatch()
741 Parcel data, reply; in listAudioPatches() local
745 status_t status = remote()->transact(LIST_AUDIO_PATCHES, data, &reply); in listAudioPatches()
747 status = (status_t)reply.readInt32(); in listAudioPatches()
748 *num_patches = (unsigned int)reply.readInt32(); in listAudioPatches()
755 reply.read(patches, numPatchesReq * sizeof(struct audio_patch)); in listAudioPatches()
757 *generation = reply.readInt32(); in listAudioPatches()
767 Parcel data, reply; in setAudioPortConfig() local
770 status_t status = remote()->transact(SET_AUDIO_PORT_CONFIG, data, &reply); in setAudioPortConfig()
772 status = (status_t)reply.readInt32(); in setAudioPortConfig()
779 Parcel data, reply; in registerClient() local
782 remote()->transact(REGISTER_CLIENT, data, &reply); in registerClient()
787 Parcel data, reply; in setAudioPortCallbacksEnabled() local
790 remote()->transact(SET_AUDIO_PORT_CALLBACK_ENABLED, data, &reply); in setAudioPortCallbacksEnabled()
795 Parcel data, reply; in setAudioVolumeGroupCallbacksEnabled() local
798 remote()->transact(SET_AUDIO_VOLUME_GROUP_CALLBACK_ENABLED, data, &reply); in setAudioVolumeGroupCallbacksEnabled()
808 Parcel data, reply; in acquireSoundTriggerSession() local
810 status_t status = remote()->transact(ACQUIRE_SOUNDTRIGGER_SESSION, data, &reply); in acquireSoundTriggerSession()
814 status = (status_t)reply.readInt32(); in acquireSoundTriggerSession()
816 *session = (audio_session_t)reply.readInt32(); in acquireSoundTriggerSession()
817 *ioHandle = (audio_io_handle_t)reply.readInt32(); in acquireSoundTriggerSession()
818 *device = (audio_devices_t)reply.readInt32(); in acquireSoundTriggerSession()
825 Parcel data, reply; in releaseSoundTriggerSession() local
828 status_t status = remote()->transact(RELEASE_SOUNDTRIGGER_SESSION, data, &reply); in releaseSoundTriggerSession()
832 return (status_t)reply.readInt32(); in releaseSoundTriggerSession()
837 Parcel data, reply; in getPhoneState() local
839 status_t status = remote()->transact(GET_PHONE_STATE, data, &reply); in getPhoneState()
843 return (audio_mode_t)reply.readInt32(); in getPhoneState()
848 Parcel data, reply; in registerPolicyMixes() local
871 status_t status = remote()->transact(REGISTER_POLICY_MIXES, data, &reply); in registerPolicyMixes()
873 status = (status_t)reply.readInt32(); in registerPolicyMixes()
882 Parcel data, reply; in startAudioSource() local
889 status_t status = remote()->transact(START_AUDIO_SOURCE, data, &reply); in startAudioSource()
893 status = (status_t)reply.readInt32(); in startAudioSource()
897 *portId = (audio_port_handle_t)reply.readInt32(); in startAudioSource()
903 Parcel data, reply; in stopAudioSource() local
906 status_t status = remote()->transact(STOP_AUDIO_SOURCE, data, &reply); in stopAudioSource()
910 status = (status_t)reply.readInt32(); in stopAudioSource()
916 Parcel data, reply; in setMasterMono() local
919 status_t status = remote()->transact(SET_MASTER_MONO, data, &reply); in setMasterMono()
923 return static_cast<status_t>(reply.readInt32()); in setMasterMono()
931 Parcel data, reply; in getMasterMono() local
934 status_t status = remote()->transact(GET_MASTER_MONO, data, &reply); in getMasterMono()
938 status = static_cast<status_t>(reply.readInt32()); in getMasterMono()
940 *mono = static_cast<bool>(reply.readInt32()); in getMasterMono()
947 Parcel data, reply; in getStreamVolumeDB() local
952 status_t status = remote()->transact(GET_STREAM_VOLUME_DB, data, &reply); in getStreamVolumeDB()
956 return reply.readFloat(); in getStreamVolumeDB()
968 Parcel data, reply; in getSurroundFormats() local
973 status_t status = remote()->transact(GET_SURROUND_FORMATS, data, &reply); in getSurroundFormats()
974 if (status == NO_ERROR && (status = (status_t)reply.readInt32()) == NO_ERROR) { in getSurroundFormats()
975 *numSurroundFormats = reply.readUint32(); in getSurroundFormats()
982 status = reply.read(surroundFormats, in getSurroundFormats()
987 status = reply.read(surroundFormatsEnabled, in getSurroundFormats()
996 Parcel data, reply; in setSurroundFormatEnabled() local
1000 status_t status = remote()->transact(SET_SURROUND_FORMAT_ENABLED, data, &reply); in setSurroundFormatEnabled()
1004 return reply.readInt32(); in setSurroundFormatEnabled()
1014 Parcel data, reply; in getHwOffloadEncodingFormatsSupportedForA2DP() local
1016 status_t status = remote()->transact(GET_OFFLOAD_FORMATS_A2DP, data, &reply); in getHwOffloadEncodingFormatsSupportedForA2DP()
1017 if (status != NO_ERROR || (status = (status_t)reply.readInt32()) != NO_ERROR) { in getHwOffloadEncodingFormatsSupportedForA2DP()
1021 size_t list_size = reply.readUint32(); in getHwOffloadEncodingFormatsSupportedForA2DP()
1024 formats->push_back(static_cast<audio_format_t>(reply.readInt32())); in getHwOffloadEncodingFormatsSupportedForA2DP()
1037 Parcel data, reply; in addStreamDefaultEffect() local
1044 status_t status = remote()->transact(ADD_STREAM_DEFAULT_EFFECT, data, &reply); in addStreamDefaultEffect()
1048 status = static_cast <status_t> (reply.readInt32()); in addStreamDefaultEffect()
1049 *id = reply.readInt32(); in addStreamDefaultEffect()
1055 Parcel data, reply; in removeStreamDefaultEffect() local
1058 status_t status = remote()->transact(REMOVE_STREAM_DEFAULT_EFFECT, data, &reply); in removeStreamDefaultEffect()
1062 return static_cast <status_t> (reply.readInt32()); in removeStreamDefaultEffect()
1072 Parcel data, reply; in addSourceDefaultEffect() local
1079 status_t status = remote()->transact(ADD_SOURCE_DEFAULT_EFFECT, data, &reply); in addSourceDefaultEffect()
1083 status = static_cast <status_t> (reply.readInt32()); in addSourceDefaultEffect()
1084 *id = reply.readInt32(); in addSourceDefaultEffect()
1090 Parcel data, reply; in removeSourceDefaultEffect() local
1093 status_t status = remote()->transact(REMOVE_SOURCE_DEFAULT_EFFECT, data, &reply); in removeSourceDefaultEffect()
1097 return static_cast <status_t> (reply.readInt32()); in removeSourceDefaultEffect()
1102 Parcel data, reply; in setAssistantUid() local
1105 status_t status = remote()->transact(SET_ASSISTANT_UID, data, &reply); in setAssistantUid()
1109 return static_cast <status_t> (reply.readInt32()); in setAssistantUid()
1114 Parcel data, reply; in setA11yServicesUids() local
1120 status_t status = remote()->transact(SET_A11Y_SERVICES_UIDS, data, &reply); in setA11yServicesUids()
1124 return static_cast <status_t> (reply.readInt32()); in setA11yServicesUids()
1129 Parcel data, reply; in isHapticPlaybackSupported() local
1131 status_t status = remote()->transact(IS_HAPTIC_PLAYBACK_SUPPORTED, data, &reply); in isHapticPlaybackSupported()
1135 return reply.readBool(); in isHapticPlaybackSupported()
1140 Parcel data, reply; in setUidDeviceAffinities() local
1162 status_t status = remote()->transact(SET_UID_DEVICE_AFFINITY, data, &reply); in setUidDeviceAffinities()
1164 status = (status_t)reply.readInt32(); in setUidDeviceAffinities()
1170 Parcel data, reply; in removeUidDeviceAffinities() local
1176 remote()->transact(REMOVE_UID_DEVICE_AFFINITY, data, &reply); in removeUidDeviceAffinities()
1178 status = (status_t) reply.readInt32(); in removeUidDeviceAffinities()
1185 Parcel data, reply; in listAudioProductStrategies() local
1188 status_t status = remote()->transact(LIST_AUDIO_PRODUCT_STRATEGIES, data, &reply); in listAudioProductStrategies()
1193 status = static_cast<status_t>(reply.readInt32()); in listAudioProductStrategies()
1197 uint32_t numStrategies = static_cast<uint32_t>(reply.readInt32()); in listAudioProductStrategies()
1200 status = strategy.readFromParcel(&reply); in listAudioProductStrategies()
1214 Parcel data, reply; in getProductStrategyFromAudioAttributes() local
1220 status = remote()->transact(GET_STRATEGY_FOR_ATTRIBUTES, data, &reply); in getProductStrategyFromAudioAttributes()
1224 status = static_cast<status_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1228 productStrategy = static_cast<product_strategy_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1234 Parcel data, reply; in listAudioVolumeGroups() local
1237 status_t status = remote()->transact(LIST_AUDIO_VOLUME_GROUPS, data, &reply); in listAudioVolumeGroups()
1241 status = static_cast<status_t>(reply.readInt32()); in listAudioVolumeGroups()
1245 uint32_t numGroups = static_cast<uint32_t>(reply.readInt32()); in listAudioVolumeGroups()
1248 status = group.readFromParcel(&reply); in listAudioVolumeGroups()
1262 Parcel data, reply; in getVolumeGroupFromAudioAttributes() local
1268 status = remote()->transact(GET_VOLUME_GROUP_FOR_ATTRIBUTES, data, &reply); in getVolumeGroupFromAudioAttributes()
1272 status = static_cast<status_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1276 volumeGroup = static_cast<volume_group_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1282 Parcel data, reply; in setRttEnabled() local
1285 status_t status = remote()->transact(SET_RTT_ENABLED, data, &reply); in setRttEnabled()
1289 return static_cast<status_t>(reply.readInt32()); in setRttEnabled()
1295 Parcel data, reply; in setPreferredDeviceForStrategy() local
1303 data, &reply); in setPreferredDeviceForStrategy()
1307 return static_cast<status_t>(reply.readInt32()); in setPreferredDeviceForStrategy()
1312 Parcel data, reply; in removePreferredDeviceForStrategy() local
1316 data, &reply); in removePreferredDeviceForStrategy()
1320 return static_cast<status_t>(reply.readInt32()); in removePreferredDeviceForStrategy()
1326 Parcel data, reply; in getPreferredDeviceForStrategy() local
1330 data, &reply); in getPreferredDeviceForStrategy()
1334 status = device.readFromParcel(&reply); in getPreferredDeviceForStrategy()
1338 return static_cast<status_t>(reply.readInt32()); in getPreferredDeviceForStrategy()
1343 Parcel data, reply; in onNewAudioModulesAvailable() local
1345 remote()->transact(AUDIO_MODULES_UPDATED, data, &reply, IBinder::FLAG_ONEWAY); in onNewAudioModulesAvailable()
1354 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
1381 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1419 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1432 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1442 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1444 reply->writeInt32(static_cast<uint32_t> (setDeviceConnectionState(device, in onTransact()
1454 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1460 reply->writeInt32(static_cast<int32_t> (AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE)); in onTransact()
1462 reply->writeInt32(static_cast<uint32_t> (getDeviceConnectionState(device, in onTransact()
1469 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1478 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1480 reply->writeInt32(static_cast<uint32_t> (handleDeviceConfigChange(device, in onTransact()
1489 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1490 reply->writeInt32(static_cast <uint32_t>(setPhoneState( in onTransact()
1496 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1501 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config))); in onTransact()
1506 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1509 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage))); in onTransact()
1514 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1518 reply->writeInt32(static_cast <int>(output)); in onTransact()
1523 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1551 reply->writeInt32(status); in onTransact()
1552 status = reply->write(&attr, sizeof(audio_attributes_t)); in onTransact()
1556 reply->writeInt32(output); in onTransact()
1557 reply->writeInt32(stream); in onTransact()
1558 reply->writeInt32(selectedDeviceId); in onTransact()
1559 reply->writeInt32(portId); in onTransact()
1560 reply->writeInt32(secondaryOutputs.size()); in onTransact()
1561 return reply->write(secondaryOutputs.data(), in onTransact()
1566 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1568 reply->writeInt32(static_cast <uint32_t>(startOutput(portId))); in onTransact()
1573 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1575 reply->writeInt32(static_cast <uint32_t>(stopOutput(portId))); in onTransact()
1580 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1587 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1606 reply->writeInt32(status); in onTransact()
1608 reply->writeInt32(input); in onTransact()
1609 reply->writeInt32(selectedDeviceId); in onTransact()
1610 reply->writeInt32(portId); in onTransact()
1616 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1619 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1624 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1626 reply->writeInt32(static_cast <uint32_t>(stopInput(portId))); in onTransact()
1631 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1638 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1643 reply->writeInt32(static_cast <uint32_t>(initStreamVolume(stream, indexMin,indexMax))); in onTransact()
1648 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1653 reply->writeInt32(static_cast <uint32_t>(setStreamVolumeIndex(stream, in onTransact()
1660 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1666 reply->writeInt32(index); in onTransact()
1667 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1672 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1675 reply->writeUint32(getStrategyForStream(stream)); in onTransact()
1680 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1689 reply->writeInt32(static_cast <uint32_t>(setVolumeIndexForAttributes(attributes, in onTransact()
1695 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1705 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1707 reply->writeInt32(index); in onTransact()
1713 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1722 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1724 reply->writeInt32(index); in onTransact()
1730 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1739 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1741 reply->writeInt32(index); in onTransact()
1747 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1750 reply->writeInt32(static_cast <int>(getDevicesForStream(stream))); in onTransact()
1755 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1762 reply->writeInt32(static_cast <int>(output)); in onTransact()
1767 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1777 reply->writeInt32(static_cast <int32_t>(registerEffect(&desc, in onTransact()
1786 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1788 reply->writeInt32(static_cast <int32_t>(unregisterEffect(id))); in onTransact()
1793 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1796 reply->writeInt32(static_cast <int32_t>(setEffectEnabled(id, enabled))); in onTransact()
1801 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1821 reply->writeInt32(static_cast <int32_t>(moveEffectsToIo(ids, io))); in onTransact()
1826 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1829 reply->writeInt32( isStreamActive(stream, inPastMs) ); in onTransact()
1834 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1837 reply->writeInt32( isStreamActiveRemotely(stream, inPastMs) ); in onTransact()
1842 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1844 reply->writeInt32( isSourceActive(source)); in onTransact()
1849 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1858 reply->writeInt32(status); in onTransact()
1862 reply->writeInt32(retCount); in onTransact()
1867 reply->write(descriptors, sizeof(effect_descriptor_t) * count); in onTransact()
1874 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1878 reply->writeInt32(isSupported); in onTransact()
1883 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1890 reply->writeInt32(isDirectOutputSupported(config, attributes)); in onTransact()
1895 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1906 reply->writeInt32(NO_MEMORY); in onTransact()
1907 reply->writeInt32(0); in onTransact()
1912 reply->writeInt32(status); in onTransact()
1913 reply->writeInt32(numPorts); in onTransact()
1919 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()
1920 reply->writeInt32(generation); in onTransact()
1927 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1933 reply->writeInt32(status); in onTransact()
1935 reply->write(&port, sizeof(struct audio_port)); in onTransact()
1941 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1949 reply->writeInt32(status); in onTransact()
1951 reply->write(&handle, sizeof(audio_patch_handle_t)); in onTransact()
1957 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1961 reply->writeInt32(status); in onTransact()
1966 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1976 reply->writeInt32(NO_MEMORY); in onTransact()
1977 reply->writeInt32(0); in onTransact()
1982 reply->writeInt32(status); in onTransact()
1983 reply->writeInt32(numPatches); in onTransact()
1988 reply->write(patches, numPatchesReq * sizeof(struct audio_patch)); in onTransact()
1989 reply->writeInt32(generation); in onTransact()
1996 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2001 reply->writeInt32(status); in onTransact()
2006 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2014 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2020 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2026 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2033 reply->writeInt32(status); in onTransact()
2035 reply->writeInt32(session); in onTransact()
2036 reply->writeInt32(ioHandle); in onTransact()
2037 reply->writeInt32(device); in onTransact()
2043 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2048 reply->writeInt32(status); in onTransact()
2053 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2054 reply->writeInt32((int32_t)getPhoneState()); in onTransact()
2059 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2073 reply->writeInt32(status); in onTransact()
2078 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2087 reply->writeInt32(status); in onTransact()
2088 reply->writeInt32(portId); in onTransact()
2093 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2096 reply->writeInt32(status); in onTransact()
2101 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2104 reply->writeInt32(status); in onTransact()
2109 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2112 reply->writeInt32(status); in onTransact()
2114 reply->writeInt32(static_cast<int32_t>(mono)); in onTransact()
2120 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2126 reply->writeFloat(getStreamVolumeDB(stream, index, device)); in onTransact()
2131 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2145 reply->writeInt32(NO_MEMORY); in onTransact()
2150 reply->writeInt32(status); in onTransact()
2153 reply->writeUint32(numSurroundFormats); in onTransact()
2157 reply->write(surroundFormats, numSurroundFormatsReq * sizeof(audio_format_t)); in onTransact()
2158 reply->write(surroundFormatsEnabled, numSurroundFormatsReq * sizeof(bool)); in onTransact()
2166 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2170 reply->writeInt32(status); in onTransact()
2175 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2178 reply->writeInt32(status); in onTransact()
2182 reply->writeUint32(static_cast<uint32_t>(encodingFormats.size())); in onTransact()
2184 reply->writeInt32(static_cast<int32_t>(encodingFormats[i])); in onTransact()
2190 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2209 reply->writeInt32(static_cast <int32_t>(addStreamDefaultEffect(&type, in onTransact()
2215 reply->writeInt32(id); in onTransact()
2220 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2222 reply->writeInt32(static_cast <int32_t>(removeStreamDefaultEffect(id))); in onTransact()
2227 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2246 reply->writeInt32(static_cast <int32_t>(addSourceDefaultEffect(&type, in onTransact()
2252 reply->writeInt32(id); in onTransact()
2257 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2259 reply->writeInt32(static_cast <int32_t>(removeSourceDefaultEffect(id))); in onTransact()
2264 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2271 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2276 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2295 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2300 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2302 reply->writeBool(isSupported); in onTransact()
2307 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2318 reply->writeInt32(status); in onTransact()
2323 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2326 reply->writeInt32(status); in onTransact()
2331 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2334 reply->writeInt32(status); in onTransact()
2339 size_t sizePosition = reply->dataPosition(); in onTransact()
2340 reply->writeInt32(size); in onTransact()
2343 size_t position = reply->dataPosition(); in onTransact()
2344 if (strategies[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2345 reply->setDataPosition(position); in onTransact()
2350 size_t position = reply->dataPosition(); in onTransact()
2351 reply->setDataPosition(sizePosition); in onTransact()
2352 reply->writeInt32(finalSize); in onTransact()
2353 reply->setDataPosition(position); in onTransact()
2359 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2367 reply->writeInt32(status); in onTransact()
2371 reply->writeUint32(static_cast<int>(strategy)); in onTransact()
2376 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2379 reply->writeInt32(status); in onTransact()
2384 size_t sizePosition = reply->dataPosition(); in onTransact()
2385 reply->writeInt32(size); in onTransact()
2388 size_t position = reply->dataPosition(); in onTransact()
2389 if (groups[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2390 reply->setDataPosition(position); in onTransact()
2395 size_t position = reply->dataPosition(); in onTransact()
2396 reply->setDataPosition(sizePosition); in onTransact()
2397 reply->writeInt32(finalSize); in onTransact()
2398 reply->setDataPosition(position); in onTransact()
2404 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2412 reply->writeInt32(status); in onTransact()
2416 reply->writeUint32(static_cast<int>(group)); in onTransact()
2421 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2425 reply->writeInt32(status); in onTransact()
2430 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2433 reply->writeInt32(status); in onTransact()
2438 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2446 reply->writeInt32(status); in onTransact()
2451 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2454 reply->writeInt32(status); in onTransact()
2459 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2463 status_t marshall_status = device.writeToParcel(reply); in onTransact()
2467 reply->writeInt32(status); in onTransact()
2472 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2478 return BBinder::onTransact(code, data, reply, flags); in onTransact()