Lines Matching refs:reply
127 Parcel data, reply; in setDeviceConnectionState() local
134 remote()->transact(SET_DEVICE_CONNECTION_STATE, data, &reply); in setDeviceConnectionState()
135 return static_cast <status_t> (reply.readInt32()); in setDeviceConnectionState()
142 Parcel data, reply; in getDeviceConnectionState() local
146 remote()->transact(GET_DEVICE_CONNECTION_STATE, data, &reply); in getDeviceConnectionState()
147 return static_cast <audio_policy_dev_state_t>(reply.readInt32()); in getDeviceConnectionState()
155 Parcel data, reply; in handleDeviceConfigChange() local
161 remote()->transact(HANDLE_DEVICE_CONFIG_CHANGE, data, &reply); in handleDeviceConfigChange()
162 return static_cast <status_t> (reply.readInt32()); in handleDeviceConfigChange()
167 Parcel data, reply; in setPhoneState() local
170 remote()->transact(SET_PHONE_STATE, data, &reply); in setPhoneState()
171 return static_cast <status_t> (reply.readInt32()); in setPhoneState()
176 Parcel data, reply; in setForceUse() local
180 remote()->transact(SET_FORCE_USE, data, &reply); in setForceUse()
181 return static_cast <status_t> (reply.readInt32()); in setForceUse()
186 Parcel data, reply; in getForceUse() local
189 remote()->transact(GET_FORCE_USE, data, &reply); in getForceUse()
190 return static_cast <audio_policy_forced_cfg_t> (reply.readInt32()); in getForceUse()
195 Parcel data, reply; in getOutput() local
198 remote()->transact(GET_OUTPUT, data, &reply); in getOutput()
199 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutput()
214 Parcel data, reply; in getOutputForAttr() local
250 status_t status = remote()->transact(GET_OUTPUT_FOR_ATTR, data, &reply); in getOutputForAttr()
254 status = (status_t)reply.readInt32(); in getOutputForAttr()
258 status = (status_t)reply.read(&attr, sizeof(audio_attributes_t)); in getOutputForAttr()
262 *output = (audio_io_handle_t)reply.readInt32(); in getOutputForAttr()
263 audio_stream_type_t lStream = (audio_stream_type_t)reply.readInt32(); in getOutputForAttr()
267 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
268 *portId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
269 secondaryOutputs->resize(reply.readInt32()); in getOutputForAttr()
270 return reply.read(secondaryOutputs->data(), in getOutputForAttr()
276 Parcel data, reply; in startOutput() local
279 remote()->transact(START_OUTPUT, data, &reply); in startOutput()
280 return static_cast <status_t> (reply.readInt32()); in startOutput()
285 Parcel data, reply; in stopOutput() local
288 remote()->transact(STOP_OUTPUT, data, &reply); in stopOutput()
289 return static_cast <status_t> (reply.readInt32()); in stopOutput()
294 Parcel data, reply; in releaseOutput() local
297 remote()->transact(RELEASE_OUTPUT, data, &reply); in releaseOutput()
312 Parcel data, reply; in getInputForAttr() local
341 status_t status = remote()->transact(GET_INPUT_FOR_ATTR, data, &reply); in getInputForAttr()
345 status = reply.readInt32(); in getInputForAttr()
349 *input = (audio_io_handle_t)reply.readInt32(); in getInputForAttr()
350 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
351 *portId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
357 Parcel data, reply; in startInput() local
360 remote()->transact(START_INPUT, data, &reply); in startInput()
361 status_t status = static_cast <status_t> (reply.readInt32()); in startInput()
367 Parcel data, reply; in stopInput() local
370 remote()->transact(STOP_INPUT, data, &reply); in stopInput()
371 return static_cast <status_t> (reply.readInt32()); in stopInput()
376 Parcel data, reply; in releaseInput() local
379 remote()->transact(RELEASE_INPUT, data, &reply); in releaseInput()
386 Parcel data, reply; in initStreamVolume() local
391 remote()->transact(INIT_STREAM_VOLUME, data, &reply); in initStreamVolume()
392 return static_cast <status_t> (reply.readInt32()); in initStreamVolume()
399 Parcel data, reply; in setStreamVolumeIndex() local
404 remote()->transact(SET_STREAM_VOLUME, data, &reply); in setStreamVolumeIndex()
405 return static_cast <status_t> (reply.readInt32()); in setStreamVolumeIndex()
412 Parcel data, reply; in getStreamVolumeIndex() local
417 remote()->transact(GET_STREAM_VOLUME, data, &reply); in getStreamVolumeIndex()
418 int lIndex = reply.readInt32(); in getStreamVolumeIndex()
420 return static_cast <status_t> (reply.readInt32()); in getStreamVolumeIndex()
426 Parcel data, reply; in setVolumeIndexForAttributes() local
431 status_t status = remote()->transact(SET_VOLUME_ATTRIBUTES, data, &reply); in setVolumeIndexForAttributes()
435 return static_cast <status_t> (reply.readInt32()); in setVolumeIndexForAttributes()
440 Parcel data, reply; in getVolumeIndexForAttributes() local
444 status_t status = remote()->transact(GET_VOLUME_ATTRIBUTES, data, &reply); in getVolumeIndexForAttributes()
448 status = static_cast <status_t> (reply.readInt32()); in getVolumeIndexForAttributes()
452 index = reply.readInt32(); in getVolumeIndexForAttributes()
457 Parcel data, reply; in getMinVolumeIndexForAttributes() local
460 status_t status = remote()->transact(GET_MIN_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMinVolumeIndexForAttributes()
464 status = static_cast <status_t> (reply.readInt32()); in getMinVolumeIndexForAttributes()
468 index = reply.readInt32(); in getMinVolumeIndexForAttributes()
473 Parcel data, reply; in getMaxVolumeIndexForAttributes() local
476 status_t status = remote()->transact(GET_MAX_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMaxVolumeIndexForAttributes()
480 status = static_cast <status_t> (reply.readInt32()); in getMaxVolumeIndexForAttributes()
484 index = reply.readInt32(); in getMaxVolumeIndexForAttributes()
489 Parcel data, reply; in getStrategyForStream() local
492 remote()->transact(GET_STRATEGY_FOR_STREAM, data, &reply); in getStrategyForStream()
493 return reply.readUint32(); in getStrategyForStream()
498 Parcel data, reply; in getDevicesForStream() local
501 remote()->transact(GET_DEVICES_FOR_STREAM, data, &reply); in getDevicesForStream()
502 return (audio_devices_t) reply.readInt32(); in getDevicesForStream()
507 Parcel data, reply; in getOutputForEffect() local
510 remote()->transact(GET_OUTPUT_FOR_EFFECT, data, &reply); in getOutputForEffect()
511 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutputForEffect()
520 Parcel data, reply; in registerEffect() local
527 remote()->transact(REGISTER_EFFECT, data, &reply); in registerEffect()
528 return static_cast <status_t> (reply.readInt32()); in registerEffect()
533 Parcel data, reply; in unregisterEffect() local
536 remote()->transact(UNREGISTER_EFFECT, data, &reply); in unregisterEffect()
537 return static_cast <status_t> (reply.readInt32()); in unregisterEffect()
542 Parcel data, reply; in setEffectEnabled() local
546 remote()->transact(SET_EFFECT_ENABLED, data, &reply); in setEffectEnabled()
547 return static_cast <status_t> (reply.readInt32()); in setEffectEnabled()
552 Parcel data, reply; in moveEffectsToIo() local
559 status_t status = remote()->transact(MOVE_EFFECTS_TO_IO, data, &reply); in moveEffectsToIo()
563 return static_cast <status_t> (reply.readInt32()); in moveEffectsToIo()
568 Parcel data, reply; in isStreamActive() local
572 remote()->transact(IS_STREAM_ACTIVE, data, &reply); in isStreamActive()
573 return reply.readInt32(); in isStreamActive()
578 Parcel data, reply; in isStreamActiveRemotely() local
582 remote()->transact(IS_STREAM_ACTIVE_REMOTELY, data, &reply); in isStreamActiveRemotely()
583 return reply.readInt32(); in isStreamActiveRemotely()
588 Parcel data, reply; in isSourceActive() local
591 remote()->transact(IS_SOURCE_ACTIVE, data, &reply); in isSourceActive()
592 return reply.readInt32(); in isSourceActive()
602 Parcel data, reply; in queryDefaultPreProcessing() local
606 status_t status = remote()->transact(QUERY_DEFAULT_PRE_PROCESSING, data, &reply); in queryDefaultPreProcessing()
610 status = static_cast <status_t> (reply.readInt32()); in queryDefaultPreProcessing()
611 uint32_t retCount = reply.readInt32(); in queryDefaultPreProcessing()
614 reply.read(descriptors, sizeof(effect_descriptor_t) * numDesc); in queryDefaultPreProcessing()
621 Parcel data, reply; in setAllowedCapturePolicy() local
625 remote()->transact(SET_ALLOWED_CAPTURE_POLICY, data, &reply); in setAllowedCapturePolicy()
626 return reply.readInt32(); in setAllowedCapturePolicy()
631 Parcel data, reply; in isOffloadSupported() local
634 remote()->transact(IS_OFFLOAD_SUPPORTED, data, &reply); in isOffloadSupported()
635 return reply.readInt32(); in isOffloadSupported()
640 Parcel data, reply; in isDirectOutputSupported() local
644 status_t status = remote()->transact(IS_DIRECT_OUTPUT_SUPPORTED, data, &reply); in isDirectOutputSupported()
645 return status == NO_ERROR ? static_cast<bool>(reply.readInt32()) : false; in isDirectOutputSupported()
658 Parcel data, reply; in listAudioPorts() local
664 status_t status = remote()->transact(LIST_AUDIO_PORTS, data, &reply); in listAudioPorts()
666 status = (status_t)reply.readInt32(); in listAudioPorts()
667 *num_ports = (unsigned int)reply.readInt32(); in listAudioPorts()
674 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
676 *generation = reply.readInt32(); in listAudioPorts()
686 Parcel data, reply; in getAudioPort() local
689 status_t status = remote()->transact(GET_AUDIO_PORT, data, &reply); in getAudioPort()
691 (status = (status_t)reply.readInt32()) != NO_ERROR) { in getAudioPort()
694 reply.read(port, sizeof(struct audio_port)); in getAudioPort()
704 Parcel data, reply; in createAudioPatch() local
708 status_t status = remote()->transact(CREATE_AUDIO_PATCH, data, &reply); in createAudioPatch()
710 (status = (status_t)reply.readInt32()) != NO_ERROR) { in createAudioPatch()
713 reply.read(handle, sizeof(audio_patch_handle_t)); in createAudioPatch()
719 Parcel data, reply; in releaseAudioPatch() local
722 status_t status = remote()->transact(RELEASE_AUDIO_PATCH, data, &reply); in releaseAudioPatch()
724 status = (status_t)reply.readInt32(); in releaseAudioPatch()
737 Parcel data, reply; in listAudioPatches() local
741 status_t status = remote()->transact(LIST_AUDIO_PATCHES, data, &reply); in listAudioPatches()
743 status = (status_t)reply.readInt32(); in listAudioPatches()
744 *num_patches = (unsigned int)reply.readInt32(); in listAudioPatches()
751 reply.read(patches, numPatchesReq * sizeof(struct audio_patch)); in listAudioPatches()
753 *generation = reply.readInt32(); in listAudioPatches()
763 Parcel data, reply; in setAudioPortConfig() local
766 status_t status = remote()->transact(SET_AUDIO_PORT_CONFIG, data, &reply); in setAudioPortConfig()
768 status = (status_t)reply.readInt32(); in setAudioPortConfig()
775 Parcel data, reply; in registerClient() local
778 remote()->transact(REGISTER_CLIENT, data, &reply); in registerClient()
783 Parcel data, reply; in setAudioPortCallbacksEnabled() local
786 remote()->transact(SET_AUDIO_PORT_CALLBACK_ENABLED, data, &reply); in setAudioPortCallbacksEnabled()
791 Parcel data, reply; in setAudioVolumeGroupCallbacksEnabled() local
794 remote()->transact(SET_AUDIO_VOLUME_GROUP_CALLBACK_ENABLED, data, &reply); in setAudioVolumeGroupCallbacksEnabled()
804 Parcel data, reply; in acquireSoundTriggerSession() local
806 status_t status = remote()->transact(ACQUIRE_SOUNDTRIGGER_SESSION, data, &reply); in acquireSoundTriggerSession()
810 status = (status_t)reply.readInt32(); in acquireSoundTriggerSession()
812 *session = (audio_session_t)reply.readInt32(); in acquireSoundTriggerSession()
813 *ioHandle = (audio_io_handle_t)reply.readInt32(); in acquireSoundTriggerSession()
814 *device = (audio_devices_t)reply.readInt32(); in acquireSoundTriggerSession()
821 Parcel data, reply; in releaseSoundTriggerSession() local
824 status_t status = remote()->transact(RELEASE_SOUNDTRIGGER_SESSION, data, &reply); in releaseSoundTriggerSession()
828 return (status_t)reply.readInt32(); in releaseSoundTriggerSession()
833 Parcel data, reply; in getPhoneState() local
835 status_t status = remote()->transact(GET_PHONE_STATE, data, &reply); in getPhoneState()
839 return (audio_mode_t)reply.readInt32(); in getPhoneState()
844 Parcel data, reply; in registerPolicyMixes() local
867 status_t status = remote()->transact(REGISTER_POLICY_MIXES, data, &reply); in registerPolicyMixes()
869 status = (status_t)reply.readInt32(); in registerPolicyMixes()
878 Parcel data, reply; in startAudioSource() local
885 status_t status = remote()->transact(START_AUDIO_SOURCE, data, &reply); in startAudioSource()
889 status = (status_t)reply.readInt32(); in startAudioSource()
893 *portId = (audio_port_handle_t)reply.readInt32(); in startAudioSource()
899 Parcel data, reply; in stopAudioSource() local
902 status_t status = remote()->transact(STOP_AUDIO_SOURCE, data, &reply); in stopAudioSource()
906 status = (status_t)reply.readInt32(); in stopAudioSource()
912 Parcel data, reply; in setMasterMono() local
915 status_t status = remote()->transact(SET_MASTER_MONO, data, &reply); in setMasterMono()
919 return static_cast<status_t>(reply.readInt32()); in setMasterMono()
927 Parcel data, reply; in getMasterMono() local
930 status_t status = remote()->transact(GET_MASTER_MONO, data, &reply); in getMasterMono()
934 status = static_cast<status_t>(reply.readInt32()); in getMasterMono()
936 *mono = static_cast<bool>(reply.readInt32()); in getMasterMono()
943 Parcel data, reply; in getStreamVolumeDB() local
948 status_t status = remote()->transact(GET_STREAM_VOLUME_DB, data, &reply); in getStreamVolumeDB()
952 return reply.readFloat(); in getStreamVolumeDB()
964 Parcel data, reply; in getSurroundFormats() local
969 status_t status = remote()->transact(GET_SURROUND_FORMATS, data, &reply); in getSurroundFormats()
970 if (status == NO_ERROR && (status = (status_t)reply.readInt32()) == NO_ERROR) { in getSurroundFormats()
971 *numSurroundFormats = reply.readUint32(); in getSurroundFormats()
978 status = reply.read(surroundFormats, in getSurroundFormats()
983 status = reply.read(surroundFormatsEnabled, in getSurroundFormats()
992 Parcel data, reply; in setSurroundFormatEnabled() local
996 status_t status = remote()->transact(SET_SURROUND_FORMAT_ENABLED, data, &reply); in setSurroundFormatEnabled()
1000 return reply.readInt32(); in setSurroundFormatEnabled()
1010 Parcel data, reply; in getHwOffloadEncodingFormatsSupportedForA2DP() local
1012 status_t status = remote()->transact(GET_OFFLOAD_FORMATS_A2DP, data, &reply); in getHwOffloadEncodingFormatsSupportedForA2DP()
1013 if (status != NO_ERROR || (status = (status_t)reply.readInt32()) != NO_ERROR) { in getHwOffloadEncodingFormatsSupportedForA2DP()
1017 size_t list_size = reply.readUint32(); in getHwOffloadEncodingFormatsSupportedForA2DP()
1020 formats->push_back(static_cast<audio_format_t>(reply.readInt32())); in getHwOffloadEncodingFormatsSupportedForA2DP()
1033 Parcel data, reply; in addStreamDefaultEffect() local
1040 status_t status = remote()->transact(ADD_STREAM_DEFAULT_EFFECT, data, &reply); in addStreamDefaultEffect()
1044 status = static_cast <status_t> (reply.readInt32()); in addStreamDefaultEffect()
1045 *id = reply.readInt32(); in addStreamDefaultEffect()
1051 Parcel data, reply; in removeStreamDefaultEffect() local
1054 status_t status = remote()->transact(REMOVE_STREAM_DEFAULT_EFFECT, data, &reply); in removeStreamDefaultEffect()
1058 return static_cast <status_t> (reply.readInt32()); in removeStreamDefaultEffect()
1068 Parcel data, reply; in addSourceDefaultEffect() local
1075 status_t status = remote()->transact(ADD_SOURCE_DEFAULT_EFFECT, data, &reply); in addSourceDefaultEffect()
1079 status = static_cast <status_t> (reply.readInt32()); in addSourceDefaultEffect()
1080 *id = reply.readInt32(); in addSourceDefaultEffect()
1086 Parcel data, reply; in removeSourceDefaultEffect() local
1089 status_t status = remote()->transact(REMOVE_SOURCE_DEFAULT_EFFECT, data, &reply); in removeSourceDefaultEffect()
1093 return static_cast <status_t> (reply.readInt32()); in removeSourceDefaultEffect()
1098 Parcel data, reply; in setAssistantUid() local
1101 status_t status = remote()->transact(SET_ASSISTANT_UID, data, &reply); in setAssistantUid()
1105 return static_cast <status_t> (reply.readInt32()); in setAssistantUid()
1110 Parcel data, reply; in setA11yServicesUids() local
1116 status_t status = remote()->transact(SET_A11Y_SERVICES_UIDS, data, &reply); in setA11yServicesUids()
1120 return static_cast <status_t> (reply.readInt32()); in setA11yServicesUids()
1125 Parcel data, reply; in isHapticPlaybackSupported() local
1127 status_t status = remote()->transact(IS_HAPTIC_PLAYBACK_SUPPORTED, data, &reply); in isHapticPlaybackSupported()
1131 return reply.readBool(); in isHapticPlaybackSupported()
1136 Parcel data, reply; in setUidDeviceAffinities() local
1158 status_t status = remote()->transact(SET_UID_DEVICE_AFFINITY, data, &reply); in setUidDeviceAffinities()
1160 status = (status_t)reply.readInt32(); in setUidDeviceAffinities()
1166 Parcel data, reply; in removeUidDeviceAffinities() local
1172 remote()->transact(REMOVE_UID_DEVICE_AFFINITY, data, &reply); in removeUidDeviceAffinities()
1174 status = (status_t) reply.readInt32(); in removeUidDeviceAffinities()
1181 Parcel data, reply; in listAudioProductStrategies() local
1184 status_t status = remote()->transact(LIST_AUDIO_PRODUCT_STRATEGIES, data, &reply); in listAudioProductStrategies()
1189 status = static_cast<status_t>(reply.readInt32()); in listAudioProductStrategies()
1193 uint32_t numStrategies = static_cast<uint32_t>(reply.readInt32()); in listAudioProductStrategies()
1196 status = strategy.readFromParcel(&reply); in listAudioProductStrategies()
1210 Parcel data, reply; in getProductStrategyFromAudioAttributes() local
1216 status = remote()->transact(GET_STRATEGY_FOR_ATTRIBUTES, data, &reply); in getProductStrategyFromAudioAttributes()
1220 status = static_cast<status_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1224 productStrategy = static_cast<product_strategy_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1230 Parcel data, reply; in listAudioVolumeGroups() local
1233 status_t status = remote()->transact(LIST_AUDIO_VOLUME_GROUPS, data, &reply); in listAudioVolumeGroups()
1237 status = static_cast<status_t>(reply.readInt32()); in listAudioVolumeGroups()
1241 uint32_t numGroups = static_cast<uint32_t>(reply.readInt32()); in listAudioVolumeGroups()
1244 status = group.readFromParcel(&reply); in listAudioVolumeGroups()
1258 Parcel data, reply; in getVolumeGroupFromAudioAttributes() local
1264 status = remote()->transact(GET_VOLUME_GROUP_FOR_ATTRIBUTES, data, &reply); in getVolumeGroupFromAudioAttributes()
1268 status = static_cast<status_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1272 volumeGroup = static_cast<volume_group_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1278 Parcel data, reply; in setRttEnabled() local
1281 status_t status = remote()->transact(SET_RTT_ENABLED, data, &reply); in setRttEnabled()
1285 return static_cast<status_t>(reply.readInt32()); in setRttEnabled()
1294 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
1321 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1354 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1367 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1377 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1379 reply->writeInt32(static_cast<uint32_t> (setDeviceConnectionState(device, in onTransact()
1389 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1395 reply->writeInt32(static_cast<int32_t> (AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE)); in onTransact()
1397 reply->writeInt32(static_cast<uint32_t> (getDeviceConnectionState(device, in onTransact()
1404 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1413 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1415 reply->writeInt32(static_cast<uint32_t> (handleDeviceConfigChange(device, in onTransact()
1424 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1425 reply->writeInt32(static_cast <uint32_t>(setPhoneState( in onTransact()
1431 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1436 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config))); in onTransact()
1441 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1444 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage))); in onTransact()
1449 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1453 reply->writeInt32(static_cast <int>(output)); in onTransact()
1458 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1486 reply->writeInt32(status); in onTransact()
1487 status = reply->write(&attr, sizeof(audio_attributes_t)); in onTransact()
1491 reply->writeInt32(output); in onTransact()
1492 reply->writeInt32(stream); in onTransact()
1493 reply->writeInt32(selectedDeviceId); in onTransact()
1494 reply->writeInt32(portId); in onTransact()
1495 reply->writeInt32(secondaryOutputs.size()); in onTransact()
1496 return reply->write(secondaryOutputs.data(), in onTransact()
1501 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1503 reply->writeInt32(static_cast <uint32_t>(startOutput(portId))); in onTransact()
1508 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1510 reply->writeInt32(static_cast <uint32_t>(stopOutput(portId))); in onTransact()
1515 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1522 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1541 reply->writeInt32(status); in onTransact()
1543 reply->writeInt32(input); in onTransact()
1544 reply->writeInt32(selectedDeviceId); in onTransact()
1545 reply->writeInt32(portId); in onTransact()
1551 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1554 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1559 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1561 reply->writeInt32(static_cast <uint32_t>(stopInput(portId))); in onTransact()
1566 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1573 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1578 reply->writeInt32(static_cast <uint32_t>(initStreamVolume(stream, indexMin,indexMax))); in onTransact()
1583 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1588 reply->writeInt32(static_cast <uint32_t>(setStreamVolumeIndex(stream, in onTransact()
1595 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1601 reply->writeInt32(index); in onTransact()
1602 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1607 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1610 reply->writeUint32(getStrategyForStream(stream)); in onTransact()
1615 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1624 reply->writeInt32(static_cast <uint32_t>(setVolumeIndexForAttributes(attributes, in onTransact()
1630 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1640 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1642 reply->writeInt32(index); in onTransact()
1648 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1657 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1659 reply->writeInt32(index); in onTransact()
1665 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1674 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1676 reply->writeInt32(index); in onTransact()
1682 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1685 reply->writeInt32(static_cast <int>(getDevicesForStream(stream))); in onTransact()
1690 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1697 reply->writeInt32(static_cast <int>(output)); in onTransact()
1702 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1712 reply->writeInt32(static_cast <int32_t>(registerEffect(&desc, in onTransact()
1721 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1723 reply->writeInt32(static_cast <int32_t>(unregisterEffect(id))); in onTransact()
1728 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1731 reply->writeInt32(static_cast <int32_t>(setEffectEnabled(id, enabled))); in onTransact()
1736 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1756 reply->writeInt32(static_cast <int32_t>(moveEffectsToIo(ids, io))); in onTransact()
1761 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1764 reply->writeInt32( isStreamActive(stream, inPastMs) ); in onTransact()
1769 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1772 reply->writeInt32( isStreamActiveRemotely(stream, inPastMs) ); in onTransact()
1777 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1779 reply->writeInt32( isSourceActive(source)); in onTransact()
1784 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1793 reply->writeInt32(status); in onTransact()
1797 reply->writeInt32(retCount); in onTransact()
1802 reply->write(descriptors, sizeof(effect_descriptor_t) * count); in onTransact()
1809 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1813 reply->writeInt32(isSupported); in onTransact()
1818 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1825 reply->writeInt32(isDirectOutputSupported(config, attributes)); in onTransact()
1830 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1841 reply->writeInt32(NO_MEMORY); in onTransact()
1842 reply->writeInt32(0); in onTransact()
1847 reply->writeInt32(status); in onTransact()
1848 reply->writeInt32(numPorts); in onTransact()
1854 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()
1855 reply->writeInt32(generation); in onTransact()
1862 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1868 reply->writeInt32(status); in onTransact()
1870 reply->write(&port, sizeof(struct audio_port)); in onTransact()
1876 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1884 reply->writeInt32(status); in onTransact()
1886 reply->write(&handle, sizeof(audio_patch_handle_t)); in onTransact()
1892 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1896 reply->writeInt32(status); in onTransact()
1901 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1911 reply->writeInt32(NO_MEMORY); in onTransact()
1912 reply->writeInt32(0); in onTransact()
1917 reply->writeInt32(status); in onTransact()
1918 reply->writeInt32(numPatches); in onTransact()
1923 reply->write(patches, numPatchesReq * sizeof(struct audio_patch)); in onTransact()
1924 reply->writeInt32(generation); in onTransact()
1931 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1936 reply->writeInt32(status); in onTransact()
1941 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1949 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1955 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1961 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1968 reply->writeInt32(status); in onTransact()
1970 reply->writeInt32(session); in onTransact()
1971 reply->writeInt32(ioHandle); in onTransact()
1972 reply->writeInt32(device); in onTransact()
1978 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1983 reply->writeInt32(status); in onTransact()
1988 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1989 reply->writeInt32((int32_t)getPhoneState()); in onTransact()
1994 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2008 reply->writeInt32(status); in onTransact()
2013 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2022 reply->writeInt32(status); in onTransact()
2023 reply->writeInt32(portId); in onTransact()
2028 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2031 reply->writeInt32(status); in onTransact()
2036 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2039 reply->writeInt32(status); in onTransact()
2044 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2047 reply->writeInt32(status); in onTransact()
2049 reply->writeInt32(static_cast<int32_t>(mono)); in onTransact()
2055 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2061 reply->writeFloat(getStreamVolumeDB(stream, index, device)); in onTransact()
2066 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2080 reply->writeInt32(NO_MEMORY); in onTransact()
2085 reply->writeInt32(status); in onTransact()
2088 reply->writeUint32(numSurroundFormats); in onTransact()
2092 reply->write(surroundFormats, numSurroundFormatsReq * sizeof(audio_format_t)); in onTransact()
2093 reply->write(surroundFormatsEnabled, numSurroundFormatsReq * sizeof(bool)); in onTransact()
2101 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2105 reply->writeInt32(status); in onTransact()
2110 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2113 reply->writeInt32(status); in onTransact()
2117 reply->writeUint32(static_cast<uint32_t>(encodingFormats.size())); in onTransact()
2119 reply->writeInt32(static_cast<int32_t>(encodingFormats[i])); in onTransact()
2125 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2144 reply->writeInt32(static_cast <int32_t>(addStreamDefaultEffect(&type, in onTransact()
2150 reply->writeInt32(id); in onTransact()
2155 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2157 reply->writeInt32(static_cast <int32_t>(removeStreamDefaultEffect(id))); in onTransact()
2162 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2181 reply->writeInt32(static_cast <int32_t>(addSourceDefaultEffect(&type, in onTransact()
2187 reply->writeInt32(id); in onTransact()
2192 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2194 reply->writeInt32(static_cast <int32_t>(removeSourceDefaultEffect(id))); in onTransact()
2199 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2206 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2211 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2230 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2235 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2237 reply->writeBool(isSupported); in onTransact()
2242 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2253 reply->writeInt32(status); in onTransact()
2258 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2261 reply->writeInt32(status); in onTransact()
2266 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2269 reply->writeInt32(status); in onTransact()
2274 size_t sizePosition = reply->dataPosition(); in onTransact()
2275 reply->writeInt32(size); in onTransact()
2278 size_t position = reply->dataPosition(); in onTransact()
2279 if (strategies[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2280 reply->setDataPosition(position); in onTransact()
2285 size_t position = reply->dataPosition(); in onTransact()
2286 reply->setDataPosition(sizePosition); in onTransact()
2287 reply->writeInt32(finalSize); in onTransact()
2288 reply->setDataPosition(position); in onTransact()
2294 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2302 reply->writeInt32(status); in onTransact()
2306 reply->writeUint32(static_cast<int>(strategy)); in onTransact()
2311 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2314 reply->writeInt32(status); in onTransact()
2319 size_t sizePosition = reply->dataPosition(); in onTransact()
2320 reply->writeInt32(size); in onTransact()
2323 size_t position = reply->dataPosition(); in onTransact()
2324 if (groups[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2325 reply->setDataPosition(position); in onTransact()
2330 size_t position = reply->dataPosition(); in onTransact()
2331 reply->setDataPosition(sizePosition); in onTransact()
2332 reply->writeInt32(finalSize); in onTransact()
2333 reply->setDataPosition(position); in onTransact()
2339 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2347 reply->writeInt32(status); in onTransact()
2351 reply->writeUint32(static_cast<int>(group)); in onTransact()
2356 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2360 reply->writeInt32(status); in onTransact()
2365 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2368 reply->writeInt32(status); in onTransact()
2373 return BBinder::onTransact(code, data, reply, flags); in onTransact()