Lines Matching refs:reply

141         Parcel data, reply;  in setDeviceConnectionState()  local
148 remote()->transact(SET_DEVICE_CONNECTION_STATE, data, &reply); in setDeviceConnectionState()
149 return static_cast <status_t> (reply.readInt32()); in setDeviceConnectionState()
156 Parcel data, reply; in getDeviceConnectionState() local
160 remote()->transact(GET_DEVICE_CONNECTION_STATE, data, &reply); in getDeviceConnectionState()
161 return static_cast <audio_policy_dev_state_t>(reply.readInt32()); in getDeviceConnectionState()
169 Parcel data, reply; in handleDeviceConfigChange() local
175 remote()->transact(HANDLE_DEVICE_CONFIG_CHANGE, data, &reply); in handleDeviceConfigChange()
176 return static_cast <status_t> (reply.readInt32()); in handleDeviceConfigChange()
181 Parcel data, reply; in setPhoneState() local
185 remote()->transact(SET_PHONE_STATE, data, &reply); in setPhoneState()
186 return static_cast <status_t> (reply.readInt32()); in setPhoneState()
191 Parcel data, reply; in setForceUse() local
195 remote()->transact(SET_FORCE_USE, data, &reply); in setForceUse()
196 return static_cast <status_t> (reply.readInt32()); in setForceUse()
201 Parcel data, reply; in getForceUse() local
204 remote()->transact(GET_FORCE_USE, data, &reply); in getForceUse()
205 return static_cast <audio_policy_forced_cfg_t> (reply.readInt32()); in getForceUse()
210 Parcel data, reply; in getOutput() local
213 remote()->transact(GET_OUTPUT, data, &reply); in getOutput()
214 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutput()
229 Parcel data, reply; in getOutputForAttr() local
265 status_t status = remote()->transact(GET_OUTPUT_FOR_ATTR, data, &reply); in getOutputForAttr()
269 status = (status_t)reply.readInt32(); in getOutputForAttr()
273 status = (status_t)reply.read(&attr, sizeof(audio_attributes_t)); in getOutputForAttr()
277 *output = (audio_io_handle_t)reply.readInt32(); in getOutputForAttr()
278 audio_stream_type_t lStream = (audio_stream_type_t)reply.readInt32(); in getOutputForAttr()
282 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
283 *portId = (audio_port_handle_t)reply.readInt32(); in getOutputForAttr()
284 secondaryOutputs->resize(reply.readInt32()); in getOutputForAttr()
285 return reply.read(secondaryOutputs->data(), in getOutputForAttr()
291 Parcel data, reply; in startOutput() local
294 remote()->transact(START_OUTPUT, data, &reply); in startOutput()
295 return static_cast <status_t> (reply.readInt32()); in startOutput()
300 Parcel data, reply; in stopOutput() local
303 remote()->transact(STOP_OUTPUT, data, &reply); in stopOutput()
304 return static_cast <status_t> (reply.readInt32()); in stopOutput()
309 Parcel data, reply; in releaseOutput() local
312 remote()->transact(RELEASE_OUTPUT, data, &reply); in releaseOutput()
327 Parcel data, reply; in getInputForAttr() local
357 status_t status = remote()->transact(GET_INPUT_FOR_ATTR, data, &reply); in getInputForAttr()
361 status = reply.readInt32(); in getInputForAttr()
365 *input = (audio_io_handle_t)reply.readInt32(); in getInputForAttr()
366 *selectedDeviceId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
367 *portId = (audio_port_handle_t)reply.readInt32(); in getInputForAttr()
373 Parcel data, reply; in startInput() local
376 remote()->transact(START_INPUT, data, &reply); in startInput()
377 status_t status = static_cast <status_t> (reply.readInt32()); in startInput()
383 Parcel data, reply; in stopInput() local
386 remote()->transact(STOP_INPUT, data, &reply); in stopInput()
387 return static_cast <status_t> (reply.readInt32()); in stopInput()
392 Parcel data, reply; in releaseInput() local
395 remote()->transact(RELEASE_INPUT, data, &reply); in releaseInput()
402 Parcel data, reply; in initStreamVolume() local
407 remote()->transact(INIT_STREAM_VOLUME, data, &reply); in initStreamVolume()
408 return static_cast <status_t> (reply.readInt32()); in initStreamVolume()
415 Parcel data, reply; in setStreamVolumeIndex() local
420 remote()->transact(SET_STREAM_VOLUME, data, &reply); in setStreamVolumeIndex()
421 return static_cast <status_t> (reply.readInt32()); in setStreamVolumeIndex()
428 Parcel data, reply; in getStreamVolumeIndex() local
433 remote()->transact(GET_STREAM_VOLUME, data, &reply); in getStreamVolumeIndex()
434 int lIndex = reply.readInt32(); in getStreamVolumeIndex()
436 return static_cast <status_t> (reply.readInt32()); in getStreamVolumeIndex()
442 Parcel data, reply; in setVolumeIndexForAttributes() local
447 status_t status = remote()->transact(SET_VOLUME_ATTRIBUTES, data, &reply); in setVolumeIndexForAttributes()
451 return static_cast <status_t> (reply.readInt32()); in setVolumeIndexForAttributes()
456 Parcel data, reply; in getVolumeIndexForAttributes() local
460 status_t status = remote()->transact(GET_VOLUME_ATTRIBUTES, data, &reply); in getVolumeIndexForAttributes()
464 status = static_cast <status_t> (reply.readInt32()); in getVolumeIndexForAttributes()
468 index = reply.readInt32(); in getVolumeIndexForAttributes()
473 Parcel data, reply; in getMinVolumeIndexForAttributes() local
476 status_t status = remote()->transact(GET_MIN_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMinVolumeIndexForAttributes()
480 status = static_cast <status_t> (reply.readInt32()); in getMinVolumeIndexForAttributes()
484 index = reply.readInt32(); in getMinVolumeIndexForAttributes()
489 Parcel data, reply; in getMaxVolumeIndexForAttributes() local
492 status_t status = remote()->transact(GET_MAX_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMaxVolumeIndexForAttributes()
496 status = static_cast <status_t> (reply.readInt32()); in getMaxVolumeIndexForAttributes()
500 index = reply.readInt32(); in getMaxVolumeIndexForAttributes()
505 Parcel data, reply; in getStrategyForStream() local
508 remote()->transact(GET_STRATEGY_FOR_STREAM, data, &reply); in getStrategyForStream()
509 return reply.readUint32(); in getStrategyForStream()
514 Parcel data, reply; in getDevicesForStream() local
517 remote()->transact(GET_DEVICES_FOR_STREAM, data, &reply); in getDevicesForStream()
518 return (audio_devices_t) reply.readInt32(); in getDevicesForStream()
523 Parcel data, reply; in getOutputForEffect() local
526 remote()->transact(GET_OUTPUT_FOR_EFFECT, data, &reply); in getOutputForEffect()
527 return static_cast <audio_io_handle_t> (reply.readInt32()); in getOutputForEffect()
536 Parcel data, reply; in registerEffect() local
543 remote()->transact(REGISTER_EFFECT, data, &reply); in registerEffect()
544 return static_cast <status_t> (reply.readInt32()); in registerEffect()
549 Parcel data, reply; in unregisterEffect() local
552 remote()->transact(UNREGISTER_EFFECT, data, &reply); in unregisterEffect()
553 return static_cast <status_t> (reply.readInt32()); in unregisterEffect()
558 Parcel data, reply; in setEffectEnabled() local
562 remote()->transact(SET_EFFECT_ENABLED, data, &reply); in setEffectEnabled()
563 return static_cast <status_t> (reply.readInt32()); in setEffectEnabled()
568 Parcel data, reply; in moveEffectsToIo() local
575 status_t status = remote()->transact(MOVE_EFFECTS_TO_IO, data, &reply); in moveEffectsToIo()
579 return static_cast <status_t> (reply.readInt32()); in moveEffectsToIo()
584 Parcel data, reply; in isStreamActive() local
588 remote()->transact(IS_STREAM_ACTIVE, data, &reply); in isStreamActive()
589 return reply.readInt32(); in isStreamActive()
594 Parcel data, reply; in isStreamActiveRemotely() local
598 remote()->transact(IS_STREAM_ACTIVE_REMOTELY, data, &reply); in isStreamActiveRemotely()
599 return reply.readInt32(); in isStreamActiveRemotely()
604 Parcel data, reply; in isSourceActive() local
607 remote()->transact(IS_SOURCE_ACTIVE, data, &reply); in isSourceActive()
608 return reply.readInt32(); in isSourceActive()
618 Parcel data, reply; in queryDefaultPreProcessing() local
622 status_t status = remote()->transact(QUERY_DEFAULT_PRE_PROCESSING, data, &reply); in queryDefaultPreProcessing()
626 status = static_cast <status_t> (reply.readInt32()); in queryDefaultPreProcessing()
627 uint32_t retCount = reply.readInt32(); in queryDefaultPreProcessing()
630 reply.read(descriptors, sizeof(effect_descriptor_t) * numDesc); in queryDefaultPreProcessing()
637 Parcel data, reply; in setSupportedSystemUsages() local
643 status_t status = remote()->transact(SET_SUPPORTED_SYSTEM_USAGES, data, &reply); in setSupportedSystemUsages()
647 return static_cast <status_t> (reply.readInt32()); in setSupportedSystemUsages()
651 Parcel data, reply; in setAllowedCapturePolicy() local
655 remote()->transact(SET_ALLOWED_CAPTURE_POLICY, data, &reply); in setAllowedCapturePolicy()
656 return reply.readInt32(); in setAllowedCapturePolicy()
661 Parcel data, reply; in isOffloadSupported() local
664 remote()->transact(IS_OFFLOAD_SUPPORTED, data, &reply); in isOffloadSupported()
665 return reply.readInt32(); in isOffloadSupported()
670 Parcel data, reply; in isDirectOutputSupported() local
674 status_t status = remote()->transact(IS_DIRECT_OUTPUT_SUPPORTED, data, &reply); in isDirectOutputSupported()
675 return status == NO_ERROR ? static_cast<bool>(reply.readInt32()) : false; in isDirectOutputSupported()
688 Parcel data, reply; in listAudioPorts() local
694 status_t status = remote()->transact(LIST_AUDIO_PORTS, data, &reply); in listAudioPorts()
696 status = (status_t)reply.readInt32(); in listAudioPorts()
697 *num_ports = (unsigned int)reply.readInt32(); in listAudioPorts()
704 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
706 *generation = reply.readInt32(); in listAudioPorts()
716 Parcel data, reply; in getAudioPort() local
719 status_t status = remote()->transact(GET_AUDIO_PORT, data, &reply); in getAudioPort()
721 (status = (status_t)reply.readInt32()) != NO_ERROR) { in getAudioPort()
724 reply.read(port, sizeof(struct audio_port)); in getAudioPort()
734 Parcel data, reply; in createAudioPatch() local
738 status_t status = remote()->transact(CREATE_AUDIO_PATCH, data, &reply); in createAudioPatch()
740 (status = (status_t)reply.readInt32()) != NO_ERROR) { in createAudioPatch()
743 reply.read(handle, sizeof(audio_patch_handle_t)); in createAudioPatch()
749 Parcel data, reply; in releaseAudioPatch() local
752 status_t status = remote()->transact(RELEASE_AUDIO_PATCH, data, &reply); in releaseAudioPatch()
754 status = (status_t)reply.readInt32(); in releaseAudioPatch()
767 Parcel data, reply; in listAudioPatches() local
771 status_t status = remote()->transact(LIST_AUDIO_PATCHES, data, &reply); in listAudioPatches()
773 status = (status_t)reply.readInt32(); in listAudioPatches()
774 *num_patches = (unsigned int)reply.readInt32(); in listAudioPatches()
781 reply.read(patches, numPatchesReq * sizeof(struct audio_patch)); in listAudioPatches()
783 *generation = reply.readInt32(); in listAudioPatches()
793 Parcel data, reply; in setAudioPortConfig() local
796 status_t status = remote()->transact(SET_AUDIO_PORT_CONFIG, data, &reply); in setAudioPortConfig()
798 status = (status_t)reply.readInt32(); in setAudioPortConfig()
805 Parcel data, reply; in registerClient() local
808 remote()->transact(REGISTER_CLIENT, data, &reply); in registerClient()
813 Parcel data, reply; in setAudioPortCallbacksEnabled() local
816 remote()->transact(SET_AUDIO_PORT_CALLBACK_ENABLED, data, &reply); in setAudioPortCallbacksEnabled()
821 Parcel data, reply; in setAudioVolumeGroupCallbacksEnabled() local
824 remote()->transact(SET_AUDIO_VOLUME_GROUP_CALLBACK_ENABLED, data, &reply); in setAudioVolumeGroupCallbacksEnabled()
834 Parcel data, reply; in acquireSoundTriggerSession() local
836 status_t status = remote()->transact(ACQUIRE_SOUNDTRIGGER_SESSION, data, &reply); in acquireSoundTriggerSession()
840 status = (status_t)reply.readInt32(); in acquireSoundTriggerSession()
842 *session = (audio_session_t)reply.readInt32(); in acquireSoundTriggerSession()
843 *ioHandle = (audio_io_handle_t)reply.readInt32(); in acquireSoundTriggerSession()
844 *device = (audio_devices_t)reply.readInt32(); in acquireSoundTriggerSession()
851 Parcel data, reply; in releaseSoundTriggerSession() local
854 status_t status = remote()->transact(RELEASE_SOUNDTRIGGER_SESSION, data, &reply); in releaseSoundTriggerSession()
858 return (status_t)reply.readInt32(); in releaseSoundTriggerSession()
863 Parcel data, reply; in getPhoneState() local
865 status_t status = remote()->transact(GET_PHONE_STATE, data, &reply); in getPhoneState()
869 return (audio_mode_t)reply.readInt32(); in getPhoneState()
874 Parcel data, reply; in registerPolicyMixes() local
897 status_t status = remote()->transact(REGISTER_POLICY_MIXES, data, &reply); in registerPolicyMixes()
899 status = (status_t)reply.readInt32(); in registerPolicyMixes()
908 Parcel data, reply; in startAudioSource() local
915 status_t status = remote()->transact(START_AUDIO_SOURCE, data, &reply); in startAudioSource()
919 status = (status_t)reply.readInt32(); in startAudioSource()
923 *portId = (audio_port_handle_t)reply.readInt32(); in startAudioSource()
929 Parcel data, reply; in stopAudioSource() local
932 status_t status = remote()->transact(STOP_AUDIO_SOURCE, data, &reply); in stopAudioSource()
936 status = (status_t)reply.readInt32(); in stopAudioSource()
942 Parcel data, reply; in setMasterMono() local
945 status_t status = remote()->transact(SET_MASTER_MONO, data, &reply); in setMasterMono()
949 return static_cast<status_t>(reply.readInt32()); in setMasterMono()
957 Parcel data, reply; in getMasterMono() local
960 status_t status = remote()->transact(GET_MASTER_MONO, data, &reply); in getMasterMono()
964 status = static_cast<status_t>(reply.readInt32()); in getMasterMono()
966 *mono = static_cast<bool>(reply.readInt32()); in getMasterMono()
973 Parcel data, reply; in getStreamVolumeDB() local
978 status_t status = remote()->transact(GET_STREAM_VOLUME_DB, data, &reply); in getStreamVolumeDB()
982 return reply.readFloat(); in getStreamVolumeDB()
994 Parcel data, reply; in getSurroundFormats() local
999 status_t status = remote()->transact(GET_SURROUND_FORMATS, data, &reply); in getSurroundFormats()
1000 if (status == NO_ERROR && (status = (status_t)reply.readInt32()) == NO_ERROR) { in getSurroundFormats()
1001 *numSurroundFormats = reply.readUint32(); in getSurroundFormats()
1008 status = reply.read(surroundFormats, in getSurroundFormats()
1013 status = reply.read(surroundFormatsEnabled, in getSurroundFormats()
1022 Parcel data, reply; in setSurroundFormatEnabled() local
1026 status_t status = remote()->transact(SET_SURROUND_FORMAT_ENABLED, data, &reply); in setSurroundFormatEnabled()
1030 return reply.readInt32(); in setSurroundFormatEnabled()
1040 Parcel data, reply; in getHwOffloadEncodingFormatsSupportedForA2DP() local
1042 status_t status = remote()->transact(GET_OFFLOAD_FORMATS_A2DP, data, &reply); in getHwOffloadEncodingFormatsSupportedForA2DP()
1043 if (status != NO_ERROR || (status = (status_t)reply.readInt32()) != NO_ERROR) { in getHwOffloadEncodingFormatsSupportedForA2DP()
1047 size_t list_size = reply.readUint32(); in getHwOffloadEncodingFormatsSupportedForA2DP()
1050 formats->push_back(static_cast<audio_format_t>(reply.readInt32())); in getHwOffloadEncodingFormatsSupportedForA2DP()
1063 Parcel data, reply; in addStreamDefaultEffect() local
1070 status_t status = remote()->transact(ADD_STREAM_DEFAULT_EFFECT, data, &reply); in addStreamDefaultEffect()
1074 status = static_cast <status_t> (reply.readInt32()); in addStreamDefaultEffect()
1075 *id = reply.readInt32(); in addStreamDefaultEffect()
1081 Parcel data, reply; in removeStreamDefaultEffect() local
1084 status_t status = remote()->transact(REMOVE_STREAM_DEFAULT_EFFECT, data, &reply); in removeStreamDefaultEffect()
1088 return static_cast <status_t> (reply.readInt32()); in removeStreamDefaultEffect()
1098 Parcel data, reply; in addSourceDefaultEffect() local
1105 status_t status = remote()->transact(ADD_SOURCE_DEFAULT_EFFECT, data, &reply); in addSourceDefaultEffect()
1109 status = static_cast <status_t> (reply.readInt32()); in addSourceDefaultEffect()
1110 *id = reply.readInt32(); in addSourceDefaultEffect()
1116 Parcel data, reply; in removeSourceDefaultEffect() local
1119 status_t status = remote()->transact(REMOVE_SOURCE_DEFAULT_EFFECT, data, &reply); in removeSourceDefaultEffect()
1123 return static_cast <status_t> (reply.readInt32()); in removeSourceDefaultEffect()
1128 Parcel data, reply; in setAssistantUid() local
1131 status_t status = remote()->transact(SET_ASSISTANT_UID, data, &reply); in setAssistantUid()
1135 return static_cast <status_t> (reply.readInt32()); in setAssistantUid()
1140 Parcel data, reply; in setA11yServicesUids() local
1146 status_t status = remote()->transact(SET_A11Y_SERVICES_UIDS, data, &reply); in setA11yServicesUids()
1150 return static_cast <status_t> (reply.readInt32()); in setA11yServicesUids()
1155 Parcel data, reply; in setCurrentImeUid() local
1158 status_t status = remote()->transact(SET_CURRENT_IME_UID, data, &reply); in setCurrentImeUid()
1162 return static_cast <status_t> (reply.readInt32()); in setCurrentImeUid()
1167 Parcel data, reply; in isHapticPlaybackSupported() local
1169 status_t status = remote()->transact(IS_HAPTIC_PLAYBACK_SUPPORTED, data, &reply); in isHapticPlaybackSupported()
1173 return reply.readBool(); in isHapticPlaybackSupported()
1178 Parcel data, reply; in setUidDeviceAffinities() local
1200 status_t status = remote()->transact(SET_UID_DEVICE_AFFINITY, data, &reply); in setUidDeviceAffinities()
1202 status = (status_t)reply.readInt32(); in setUidDeviceAffinities()
1208 Parcel data, reply; in removeUidDeviceAffinities() local
1214 remote()->transact(REMOVE_UID_DEVICE_AFFINITY, data, &reply); in removeUidDeviceAffinities()
1216 status = (status_t) reply.readInt32(); in removeUidDeviceAffinities()
1224 Parcel data, reply; in setUserIdDeviceAffinities() local
1246 status_t status = remote()->transact(SET_USERID_DEVICE_AFFINITY, data, &reply); in setUserIdDeviceAffinities()
1248 status = (status_t)reply.readInt32(); in setUserIdDeviceAffinities()
1254 Parcel data, reply; in removeUserIdDeviceAffinities() local
1260 remote()->transact(REMOVE_USERID_DEVICE_AFFINITY, data, &reply); in removeUserIdDeviceAffinities()
1262 status = (status_t) reply.readInt32(); in removeUserIdDeviceAffinities()
1269 Parcel data, reply; in listAudioProductStrategies() local
1272 status_t status = remote()->transact(LIST_AUDIO_PRODUCT_STRATEGIES, data, &reply); in listAudioProductStrategies()
1277 status = static_cast<status_t>(reply.readInt32()); in listAudioProductStrategies()
1281 uint32_t numStrategies = static_cast<uint32_t>(reply.readInt32()); in listAudioProductStrategies()
1284 status = strategy.readFromParcel(&reply); in listAudioProductStrategies()
1298 Parcel data, reply; in getProductStrategyFromAudioAttributes() local
1304 status = remote()->transact(GET_STRATEGY_FOR_ATTRIBUTES, data, &reply); in getProductStrategyFromAudioAttributes()
1308 status = static_cast<status_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1312 productStrategy = static_cast<product_strategy_t>(reply.readInt32()); in getProductStrategyFromAudioAttributes()
1318 Parcel data, reply; in listAudioVolumeGroups() local
1321 status_t status = remote()->transact(LIST_AUDIO_VOLUME_GROUPS, data, &reply); in listAudioVolumeGroups()
1325 status = static_cast<status_t>(reply.readInt32()); in listAudioVolumeGroups()
1329 uint32_t numGroups = static_cast<uint32_t>(reply.readInt32()); in listAudioVolumeGroups()
1332 status = group.readFromParcel(&reply); in listAudioVolumeGroups()
1346 Parcel data, reply; in getVolumeGroupFromAudioAttributes() local
1352 status = remote()->transact(GET_VOLUME_GROUP_FOR_ATTRIBUTES, data, &reply); in getVolumeGroupFromAudioAttributes()
1356 status = static_cast<status_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1360 volumeGroup = static_cast<volume_group_t>(reply.readInt32()); in getVolumeGroupFromAudioAttributes()
1366 Parcel data, reply; in setRttEnabled() local
1369 status_t status = remote()->transact(SET_RTT_ENABLED, data, &reply); in setRttEnabled()
1373 return static_cast<status_t>(reply.readInt32()); in setRttEnabled()
1378 Parcel data, reply; in isCallScreenModeSupported() local
1380 status_t status = remote()->transact(IS_CALL_SCREEN_MODE_SUPPORTED, data, &reply); in isCallScreenModeSupported()
1384 return reply.readBool(); in isCallScreenModeSupported()
1390 Parcel data, reply; in setPreferredDeviceForStrategy() local
1398 data, &reply); in setPreferredDeviceForStrategy()
1402 return static_cast<status_t>(reply.readInt32()); in setPreferredDeviceForStrategy()
1407 Parcel data, reply; in removePreferredDeviceForStrategy() local
1411 data, &reply); in removePreferredDeviceForStrategy()
1415 return static_cast<status_t>(reply.readInt32()); in removePreferredDeviceForStrategy()
1421 Parcel data, reply; in getPreferredDeviceForStrategy() local
1425 data, &reply); in getPreferredDeviceForStrategy()
1429 status = device.readFromParcel(&reply); in getPreferredDeviceForStrategy()
1433 return static_cast<status_t>(reply.readInt32()); in getPreferredDeviceForStrategy()
1442 Parcel data, reply; in getDevicesForAttributes() local
1448 status = remote()->transact(GET_DEVICES_FOR_ATTRIBUTES, data, &reply); in getDevicesForAttributes()
1453 status = static_cast<status_t>(reply.readInt32()); in getDevicesForAttributes()
1459 const size_t numberOfDevices = (size_t)reply.readInt32(); in getDevicesForAttributes()
1462 if (device.readFromParcel((Parcel*)&reply) == NO_ERROR) { in getDevicesForAttributes()
1473 Parcel data, reply; in onNewAudioModulesAvailable() local
1475 remote()->transact(AUDIO_MODULES_UPDATED, data, &reply, IBinder::FLAG_ONEWAY); in onNewAudioModulesAvailable()
1481 Parcel data, reply; in registerSoundTriggerCaptureStateListener() local
1491 &reply, in registerSoundTriggerCaptureStateListener()
1494 status = reply.readBool(result); in registerSoundTriggerCaptureStateListener()
1505 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
1530 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1577 reply->writeInt32(static_cast<int32_t> (INVALID_OPERATION)); in onTransact()
1590 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1600 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1602 reply->writeInt32(static_cast<uint32_t> (setDeviceConnectionState(device, in onTransact()
1612 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1618 reply->writeInt32(static_cast<int32_t> (AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE)); in onTransact()
1620 reply->writeInt32(static_cast<uint32_t> (getDeviceConnectionState(device, in onTransact()
1627 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1636 reply->writeInt32(static_cast<int32_t> (BAD_VALUE)); in onTransact()
1638 reply->writeInt32(static_cast<uint32_t> (handleDeviceConfigChange(device, in onTransact()
1647 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1648 reply->writeInt32(static_cast <uint32_t>(setPhoneState( in onTransact()
1655 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1660 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config))); in onTransact()
1665 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1668 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage))); in onTransact()
1673 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1677 reply->writeInt32(static_cast <int>(output)); in onTransact()
1682 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1710 reply->writeInt32(status); in onTransact()
1711 status = reply->write(&attr, sizeof(audio_attributes_t)); in onTransact()
1715 reply->writeInt32(output); in onTransact()
1716 reply->writeInt32(stream); in onTransact()
1717 reply->writeInt32(selectedDeviceId); in onTransact()
1718 reply->writeInt32(portId); in onTransact()
1719 reply->writeInt32(secondaryOutputs.size()); in onTransact()
1720 return reply->write(secondaryOutputs.data(), in onTransact()
1725 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1727 reply->writeInt32(static_cast <uint32_t>(startOutput(portId))); in onTransact()
1732 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1734 reply->writeInt32(static_cast <uint32_t>(stopOutput(portId))); in onTransact()
1739 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1746 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1765 reply->writeInt32(status); in onTransact()
1767 reply->writeInt32(input); in onTransact()
1768 reply->writeInt32(selectedDeviceId); in onTransact()
1769 reply->writeInt32(portId); in onTransact()
1775 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1778 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1783 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1785 reply->writeInt32(static_cast <uint32_t>(stopInput(portId))); in onTransact()
1790 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1797 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1802 reply->writeInt32(static_cast <uint32_t>(initStreamVolume(stream, indexMin,indexMax))); in onTransact()
1807 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1812 reply->writeInt32(static_cast <uint32_t>(setStreamVolumeIndex(stream, in onTransact()
1819 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1825 reply->writeInt32(index); in onTransact()
1826 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1831 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1834 reply->writeUint32(getStrategyForStream(stream)); in onTransact()
1839 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1848 reply->writeInt32(static_cast <uint32_t>(setVolumeIndexForAttributes(attributes, in onTransact()
1854 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1864 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1866 reply->writeInt32(index); in onTransact()
1872 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1881 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1883 reply->writeInt32(index); in onTransact()
1889 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1898 reply->writeInt32(static_cast <uint32_t>(status)); in onTransact()
1900 reply->writeInt32(index); in onTransact()
1906 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1909 reply->writeInt32(static_cast <int>(getDevicesForStream(stream))); in onTransact()
1914 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1921 reply->writeInt32(static_cast <int>(output)); in onTransact()
1926 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1936 reply->writeInt32(static_cast <int32_t>(registerEffect(&desc, in onTransact()
1945 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1947 reply->writeInt32(static_cast <int32_t>(unregisterEffect(id))); in onTransact()
1952 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1955 reply->writeInt32(static_cast <int32_t>(setEffectEnabled(id, enabled))); in onTransact()
1960 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1980 reply->writeInt32(static_cast <int32_t>(moveEffectsToIo(ids, io))); in onTransact()
1985 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1988 reply->writeInt32( isStreamActive(stream, inPastMs) ); in onTransact()
1993 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1996 reply->writeInt32( isStreamActiveRemotely(stream, inPastMs) ); in onTransact()
2001 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2003 reply->writeInt32( isSourceActive(source)); in onTransact()
2008 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2017 reply->writeInt32(status); in onTransact()
2021 reply->writeInt32(retCount); in onTransact()
2026 reply->write(descriptors, sizeof(effect_descriptor_t) * count); in onTransact()
2033 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2037 reply->writeInt32(isSupported); in onTransact()
2042 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2049 reply->writeInt32(isDirectOutputSupported(config, attributes)); in onTransact()
2054 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2065 reply->writeInt32(NO_MEMORY); in onTransact()
2066 reply->writeInt32(0); in onTransact()
2071 reply->writeInt32(status); in onTransact()
2072 reply->writeInt32(numPorts); in onTransact()
2078 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()
2079 reply->writeInt32(generation); in onTransact()
2086 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2092 reply->writeInt32(status); in onTransact()
2094 reply->write(&port, sizeof(struct audio_port)); in onTransact()
2100 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2108 reply->writeInt32(status); in onTransact()
2110 reply->write(&handle, sizeof(audio_patch_handle_t)); in onTransact()
2116 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2120 reply->writeInt32(status); in onTransact()
2125 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2135 reply->writeInt32(NO_MEMORY); in onTransact()
2136 reply->writeInt32(0); in onTransact()
2141 reply->writeInt32(status); in onTransact()
2142 reply->writeInt32(numPatches); in onTransact()
2147 reply->write(patches, numPatchesReq * sizeof(struct audio_patch)); in onTransact()
2148 reply->writeInt32(generation); in onTransact()
2155 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2160 reply->writeInt32(status); in onTransact()
2165 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2173 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2179 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2185 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2190 reply->writeInt32(status); in onTransact()
2192 reply->writeInt32(session); in onTransact()
2193 reply->writeInt32(ioHandle); in onTransact()
2194 reply->writeInt32(device); in onTransact()
2200 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2203 reply->writeInt32(status); in onTransact()
2208 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2209 reply->writeInt32((int32_t)getPhoneState()); in onTransact()
2214 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2228 reply->writeInt32(status); in onTransact()
2233 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2242 reply->writeInt32(status); in onTransact()
2243 reply->writeInt32(portId); in onTransact()
2248 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2251 reply->writeInt32(status); in onTransact()
2256 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2259 reply->writeInt32(status); in onTransact()
2264 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2267 reply->writeInt32(status); in onTransact()
2269 reply->writeInt32(static_cast<int32_t>(mono)); in onTransact()
2275 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2281 reply->writeFloat(getStreamVolumeDB(stream, index, device)); in onTransact()
2286 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2300 reply->writeInt32(NO_MEMORY); in onTransact()
2305 reply->writeInt32(status); in onTransact()
2308 reply->writeUint32(numSurroundFormats); in onTransact()
2312 reply->write(surroundFormats, numSurroundFormatsReq * sizeof(audio_format_t)); in onTransact()
2313 reply->write(surroundFormatsEnabled, numSurroundFormatsReq * sizeof(bool)); in onTransact()
2321 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2325 reply->writeInt32(status); in onTransact()
2330 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2333 reply->writeInt32(status); in onTransact()
2337 reply->writeUint32(static_cast<uint32_t>(encodingFormats.size())); in onTransact()
2339 reply->writeInt32(static_cast<int32_t>(encodingFormats[i])); in onTransact()
2345 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2364 reply->writeInt32(static_cast <int32_t>(addStreamDefaultEffect(&type, in onTransact()
2370 reply->writeInt32(id); in onTransact()
2375 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2377 reply->writeInt32(static_cast <int32_t>(removeStreamDefaultEffect(id))); in onTransact()
2382 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2401 reply->writeInt32(static_cast <int32_t>(addSourceDefaultEffect(&type, in onTransact()
2407 reply->writeInt32(id); in onTransact()
2412 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2414 reply->writeInt32(static_cast <int32_t>(removeSourceDefaultEffect(id))); in onTransact()
2419 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2426 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2431 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2450 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2455 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2457 reply->writeBool(isSupported); in onTransact()
2461 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2472 reply->writeInt32(status); in onTransact()
2477 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2480 reply->writeInt32(status); in onTransact()
2485 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2496 reply->writeInt32(status); in onTransact()
2501 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2504 reply->writeInt32(status); in onTransact()
2509 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2512 reply->writeInt32(status); in onTransact()
2517 size_t sizePosition = reply->dataPosition(); in onTransact()
2518 reply->writeInt32(size); in onTransact()
2521 size_t position = reply->dataPosition(); in onTransact()
2522 if (strategies[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2523 reply->setDataPosition(position); in onTransact()
2528 size_t position = reply->dataPosition(); in onTransact()
2529 reply->setDataPosition(sizePosition); in onTransact()
2530 reply->writeInt32(finalSize); in onTransact()
2531 reply->setDataPosition(position); in onTransact()
2537 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2545 reply->writeInt32(status); in onTransact()
2549 reply->writeUint32(static_cast<int>(strategy)); in onTransact()
2554 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2557 reply->writeInt32(status); in onTransact()
2562 size_t sizePosition = reply->dataPosition(); in onTransact()
2563 reply->writeInt32(size); in onTransact()
2566 size_t position = reply->dataPosition(); in onTransact()
2567 if (groups[i].writeToParcel(reply) != NO_ERROR) { in onTransact()
2568 reply->setDataPosition(position); in onTransact()
2573 size_t position = reply->dataPosition(); in onTransact()
2574 reply->setDataPosition(sizePosition); in onTransact()
2575 reply->writeInt32(finalSize); in onTransact()
2576 reply->setDataPosition(position); in onTransact()
2582 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2595 reply->writeInt32(status); in onTransact()
2596 reply->writeUint32(static_cast<int>(group)); in onTransact()
2601 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2624 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2629 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2633 reply->writeInt32(status); in onTransact()
2638 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2641 reply->writeInt32(status); in onTransact()
2646 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2648 reply->writeBool(isAvailable); in onTransact()
2653 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2661 reply->writeInt32(status); in onTransact()
2666 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2669 reply->writeInt32(status); in onTransact()
2674 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2678 status_t marshall_status = device.writeToParcel(reply); in onTransact()
2682 reply->writeInt32(status); in onTransact()
2687 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2699 reply->writeInt32(status); in onTransact()
2703 status = reply->writeInt32(devices.size()); in onTransact()
2708 status = device.writeToParcel(reply); in onTransact()
2718 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2724 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2731 reply->writeInt32(static_cast <int32_t>(status)); in onTransact()
2736 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2753 status = reply->writeBool(ret); in onTransact()
2761 return BBinder::onTransact(code, data, reply, flags); in onTransact()