• Home
  • Raw
  • Download

Lines Matching refs:data

127         Parcel data, reply;  in setDeviceConnectionState()  local
128 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setDeviceConnectionState()
129 data.writeInt32(static_cast <uint32_t>(device)); in setDeviceConnectionState()
130 data.writeInt32(static_cast <uint32_t>(state)); in setDeviceConnectionState()
131 data.writeCString(device_address); in setDeviceConnectionState()
132 data.writeCString(device_name); in setDeviceConnectionState()
133 data.writeInt32(static_cast <uint32_t>(encodedFormat)); in setDeviceConnectionState()
134 remote()->transact(SET_DEVICE_CONNECTION_STATE, data, &reply); in setDeviceConnectionState()
142 Parcel data, reply; in getDeviceConnectionState() local
143 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getDeviceConnectionState()
144 data.writeInt32(static_cast <uint32_t>(device)); in getDeviceConnectionState()
145 data.writeCString(device_address); in getDeviceConnectionState()
146 remote()->transact(GET_DEVICE_CONNECTION_STATE, data, &reply); in getDeviceConnectionState()
155 Parcel data, reply; in handleDeviceConfigChange() local
156 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in handleDeviceConfigChange()
157 data.writeInt32(static_cast <uint32_t>(device)); in handleDeviceConfigChange()
158 data.writeCString(device_address); in handleDeviceConfigChange()
159 data.writeCString(device_name); in handleDeviceConfigChange()
160 data.writeInt32(static_cast <uint32_t>(encodedFormat)); in handleDeviceConfigChange()
161 remote()->transact(HANDLE_DEVICE_CONFIG_CHANGE, data, &reply); in handleDeviceConfigChange()
167 Parcel data, reply; in setPhoneState() local
168 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setPhoneState()
169 data.writeInt32(state); in setPhoneState()
170 remote()->transact(SET_PHONE_STATE, data, &reply); in setPhoneState()
176 Parcel data, reply; in setForceUse() local
177 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setForceUse()
178 data.writeInt32(static_cast <uint32_t>(usage)); in setForceUse()
179 data.writeInt32(static_cast <uint32_t>(config)); in setForceUse()
180 remote()->transact(SET_FORCE_USE, data, &reply); in setForceUse()
186 Parcel data, reply; in getForceUse() local
187 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getForceUse()
188 data.writeInt32(static_cast <uint32_t>(usage)); in getForceUse()
189 remote()->transact(GET_FORCE_USE, data, &reply); in getForceUse()
195 Parcel data, reply; in getOutput() local
196 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getOutput()
197 data.writeInt32(static_cast <uint32_t>(stream)); in getOutput()
198 remote()->transact(GET_OUTPUT, data, &reply); in getOutput()
214 Parcel data, reply; in getOutputForAttr() local
215 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getOutputForAttr()
236 data.write(attr, sizeof(audio_attributes_t)); in getOutputForAttr()
237 data.writeInt32(session); in getOutputForAttr()
239 data.writeInt32(0); in getOutputForAttr()
241 data.writeInt32(1); in getOutputForAttr()
242 data.writeInt32(*stream); in getOutputForAttr()
244 data.writeInt32(pid); in getOutputForAttr()
245 data.writeInt32(uid); in getOutputForAttr()
246 data.write(config, sizeof(audio_config_t)); in getOutputForAttr()
247 data.writeInt32(static_cast <uint32_t>(flags)); in getOutputForAttr()
248 data.writeInt32(*selectedDeviceId); in getOutputForAttr()
249 data.writeInt32(*portId); in getOutputForAttr()
250 status_t status = remote()->transact(GET_OUTPUT_FOR_ATTR, data, &reply); in getOutputForAttr()
270 return reply.read(secondaryOutputs->data(), in getOutputForAttr()
276 Parcel data, reply; in startOutput() local
277 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in startOutput()
278 data.writeInt32((int32_t)portId); in startOutput()
279 remote()->transact(START_OUTPUT, data, &reply); in startOutput()
285 Parcel data, reply; in stopOutput() local
286 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in stopOutput()
287 data.writeInt32((int32_t)portId); in stopOutput()
288 remote()->transact(STOP_OUTPUT, data, &reply); in stopOutput()
294 Parcel data, reply; in releaseOutput() local
295 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in releaseOutput()
296 data.writeInt32((int32_t)portId); in releaseOutput()
297 remote()->transact(RELEASE_OUTPUT, data, &reply); in releaseOutput()
312 Parcel data, reply; in getInputForAttr() local
313 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getInputForAttr()
330 data.write(attr, sizeof(audio_attributes_t)); in getInputForAttr()
331 data.writeInt32(*input); in getInputForAttr()
332 data.writeInt32(riid); in getInputForAttr()
333 data.writeInt32(session); in getInputForAttr()
334 data.writeInt32(pid); in getInputForAttr()
335 data.writeInt32(uid); in getInputForAttr()
336 data.writeString16(opPackageName); in getInputForAttr()
337 data.write(config, sizeof(audio_config_base_t)); in getInputForAttr()
338 data.writeInt32(flags); in getInputForAttr()
339 data.writeInt32(*selectedDeviceId); in getInputForAttr()
340 data.writeInt32(*portId); in getInputForAttr()
341 status_t status = remote()->transact(GET_INPUT_FOR_ATTR, data, &reply); in getInputForAttr()
357 Parcel data, reply; in startInput() local
358 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in startInput()
359 data.writeInt32(portId); in startInput()
360 remote()->transact(START_INPUT, data, &reply); in startInput()
367 Parcel data, reply; in stopInput() local
368 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in stopInput()
369 data.writeInt32(portId); in stopInput()
370 remote()->transact(STOP_INPUT, data, &reply); in stopInput()
376 Parcel data, reply; in releaseInput() local
377 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in releaseInput()
378 data.writeInt32(portId); in releaseInput()
379 remote()->transact(RELEASE_INPUT, data, &reply); in releaseInput()
386 Parcel data, reply; in initStreamVolume() local
387 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in initStreamVolume()
388 data.writeInt32(static_cast <uint32_t>(stream)); in initStreamVolume()
389 data.writeInt32(indexMin); in initStreamVolume()
390 data.writeInt32(indexMax); in initStreamVolume()
391 remote()->transact(INIT_STREAM_VOLUME, data, &reply); in initStreamVolume()
399 Parcel data, reply; in setStreamVolumeIndex() local
400 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setStreamVolumeIndex()
401 data.writeInt32(static_cast <uint32_t>(stream)); in setStreamVolumeIndex()
402 data.writeInt32(index); in setStreamVolumeIndex()
403 data.writeInt32(static_cast <uint32_t>(device)); in setStreamVolumeIndex()
404 remote()->transact(SET_STREAM_VOLUME, data, &reply); in setStreamVolumeIndex()
412 Parcel data, reply; in getStreamVolumeIndex() local
413 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getStreamVolumeIndex()
414 data.writeInt32(static_cast <uint32_t>(stream)); in getStreamVolumeIndex()
415 data.writeInt32(static_cast <uint32_t>(device)); in getStreamVolumeIndex()
417 remote()->transact(GET_STREAM_VOLUME, data, &reply); in getStreamVolumeIndex()
426 Parcel data, reply; in setVolumeIndexForAttributes() local
427 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setVolumeIndexForAttributes()
428 data.write(&attr, sizeof(audio_attributes_t)); in setVolumeIndexForAttributes()
429 data.writeInt32(index); in setVolumeIndexForAttributes()
430 data.writeInt32(static_cast <uint32_t>(device)); in setVolumeIndexForAttributes()
431 status_t status = remote()->transact(SET_VOLUME_ATTRIBUTES, data, &reply); in setVolumeIndexForAttributes()
440 Parcel data, reply; in getVolumeIndexForAttributes() local
441 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getVolumeIndexForAttributes()
442 data.write(&attr, sizeof(audio_attributes_t)); in getVolumeIndexForAttributes()
443 data.writeInt32(static_cast <uint32_t>(device)); in getVolumeIndexForAttributes()
444 status_t status = remote()->transact(GET_VOLUME_ATTRIBUTES, data, &reply); in getVolumeIndexForAttributes()
457 Parcel data, reply; in getMinVolumeIndexForAttributes() local
458 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getMinVolumeIndexForAttributes()
459 data.write(&attr, sizeof(audio_attributes_t)); in getMinVolumeIndexForAttributes()
460 status_t status = remote()->transact(GET_MIN_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMinVolumeIndexForAttributes()
473 Parcel data, reply; in getMaxVolumeIndexForAttributes() local
474 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getMaxVolumeIndexForAttributes()
475 data.write(&attr, sizeof(audio_attributes_t)); in getMaxVolumeIndexForAttributes()
476 status_t status = remote()->transact(GET_MAX_VOLUME_FOR_ATTRIBUTES, data, &reply); in getMaxVolumeIndexForAttributes()
489 Parcel data, reply; in getStrategyForStream() local
490 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getStrategyForStream()
491 data.writeInt32(static_cast <uint32_t>(stream)); in getStrategyForStream()
492 remote()->transact(GET_STRATEGY_FOR_STREAM, data, &reply); in getStrategyForStream()
498 Parcel data, reply; in getDevicesForStream() local
499 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getDevicesForStream()
500 data.writeInt32(static_cast <uint32_t>(stream)); in getDevicesForStream()
501 remote()->transact(GET_DEVICES_FOR_STREAM, data, &reply); in getDevicesForStream()
507 Parcel data, reply; in getOutputForEffect() local
508 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getOutputForEffect()
509 data.write(desc, sizeof(effect_descriptor_t)); in getOutputForEffect()
510 remote()->transact(GET_OUTPUT_FOR_EFFECT, data, &reply); in getOutputForEffect()
520 Parcel data, reply; in registerEffect() local
521 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in registerEffect()
522 data.write(desc, sizeof(effect_descriptor_t)); in registerEffect()
523 data.writeInt32(io); in registerEffect()
524 data.writeInt32(strategy); in registerEffect()
525 data.writeInt32(session); in registerEffect()
526 data.writeInt32(id); in registerEffect()
527 remote()->transact(REGISTER_EFFECT, data, &reply); in registerEffect()
533 Parcel data, reply; in unregisterEffect() local
534 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in unregisterEffect()
535 data.writeInt32(id); in unregisterEffect()
536 remote()->transact(UNREGISTER_EFFECT, data, &reply); in unregisterEffect()
542 Parcel data, reply; in setEffectEnabled() local
543 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setEffectEnabled()
544 data.writeInt32(id); in setEffectEnabled()
545 data.writeInt32(enabled); in setEffectEnabled()
546 remote()->transact(SET_EFFECT_ENABLED, data, &reply); in setEffectEnabled()
552 Parcel data, reply; in moveEffectsToIo() local
553 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in moveEffectsToIo()
554 data.writeInt32(ids.size()); in moveEffectsToIo()
556 data.writeInt32(id); in moveEffectsToIo()
558 data.writeInt32(io); in moveEffectsToIo()
559 status_t status = remote()->transact(MOVE_EFFECTS_TO_IO, data, &reply); in moveEffectsToIo()
568 Parcel data, reply; in isStreamActive() local
569 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isStreamActive()
570 data.writeInt32((int32_t) stream); in isStreamActive()
571 data.writeInt32(inPastMs); in isStreamActive()
572 remote()->transact(IS_STREAM_ACTIVE, data, &reply); in isStreamActive()
578 Parcel data, reply; in isStreamActiveRemotely() local
579 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isStreamActiveRemotely()
580 data.writeInt32((int32_t) stream); in isStreamActiveRemotely()
581 data.writeInt32(inPastMs); in isStreamActiveRemotely()
582 remote()->transact(IS_STREAM_ACTIVE_REMOTELY, data, &reply); in isStreamActiveRemotely()
588 Parcel data, reply; in isSourceActive() local
589 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isSourceActive()
590 data.writeInt32((int32_t) source); in isSourceActive()
591 remote()->transact(IS_SOURCE_ACTIVE, data, &reply); in isSourceActive()
602 Parcel data, reply; in queryDefaultPreProcessing() local
603 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in queryDefaultPreProcessing()
604 data.writeInt32(audioSession); in queryDefaultPreProcessing()
605 data.writeInt32(*count); in queryDefaultPreProcessing()
606 status_t status = remote()->transact(QUERY_DEFAULT_PRE_PROCESSING, data, &reply); in queryDefaultPreProcessing()
621 Parcel data, reply; in setAllowedCapturePolicy() local
622 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setAllowedCapturePolicy()
623 data.writeInt32(uid); in setAllowedCapturePolicy()
624 data.writeInt32(flags); in setAllowedCapturePolicy()
625 remote()->transact(SET_ALLOWED_CAPTURE_POLICY, data, &reply); in setAllowedCapturePolicy()
631 Parcel data, reply; in isOffloadSupported() local
632 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isOffloadSupported()
633 data.write(&info, sizeof(audio_offload_info_t)); in isOffloadSupported()
634 remote()->transact(IS_OFFLOAD_SUPPORTED, data, &reply); in isOffloadSupported()
640 Parcel data, reply; in isDirectOutputSupported() local
641 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isDirectOutputSupported()
642 data.write(&config, sizeof(audio_config_base_t)); in isDirectOutputSupported()
643 data.write(&attributes, sizeof(audio_attributes_t)); in isDirectOutputSupported()
644 status_t status = remote()->transact(IS_DIRECT_OUTPUT_SUPPORTED, data, &reply); in isDirectOutputSupported()
658 Parcel data, reply; in listAudioPorts() local
659 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in listAudioPorts()
661 data.writeInt32(role); in listAudioPorts()
662 data.writeInt32(type); in listAudioPorts()
663 data.writeInt32(numPortsReq); in listAudioPorts()
664 status_t status = remote()->transact(LIST_AUDIO_PORTS, data, &reply); in listAudioPorts()
686 Parcel data, reply; in getAudioPort() local
687 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getAudioPort()
688 data.write(port, sizeof(struct audio_port)); in getAudioPort()
689 status_t status = remote()->transact(GET_AUDIO_PORT, data, &reply); in getAudioPort()
704 Parcel data, reply; in createAudioPatch() local
705 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in createAudioPatch()
706 data.write(patch, sizeof(struct audio_patch)); in createAudioPatch()
707 data.write(handle, sizeof(audio_patch_handle_t)); in createAudioPatch()
708 status_t status = remote()->transact(CREATE_AUDIO_PATCH, data, &reply); in createAudioPatch()
719 Parcel data, reply; in releaseAudioPatch() local
720 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in releaseAudioPatch()
721 data.write(&handle, sizeof(audio_patch_handle_t)); in releaseAudioPatch()
722 status_t status = remote()->transact(RELEASE_AUDIO_PATCH, data, &reply); in releaseAudioPatch()
737 Parcel data, reply; in listAudioPatches() local
738 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in listAudioPatches()
740 data.writeInt32(numPatchesReq); in listAudioPatches()
741 status_t status = remote()->transact(LIST_AUDIO_PATCHES, data, &reply); in listAudioPatches()
763 Parcel data, reply; in setAudioPortConfig() local
764 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setAudioPortConfig()
765 data.write(config, sizeof(struct audio_port_config)); in setAudioPortConfig()
766 status_t status = remote()->transact(SET_AUDIO_PORT_CONFIG, data, &reply); in setAudioPortConfig()
775 Parcel data, reply; in registerClient() local
776 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in registerClient()
777 data.writeStrongBinder(IInterface::asBinder(client)); in registerClient()
778 remote()->transact(REGISTER_CLIENT, data, &reply); in registerClient()
783 Parcel data, reply; in setAudioPortCallbacksEnabled() local
784 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setAudioPortCallbacksEnabled()
785 data.writeInt32(enabled ? 1 : 0); in setAudioPortCallbacksEnabled()
786 remote()->transact(SET_AUDIO_PORT_CALLBACK_ENABLED, data, &reply); in setAudioPortCallbacksEnabled()
791 Parcel data, reply; in setAudioVolumeGroupCallbacksEnabled() local
792 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setAudioVolumeGroupCallbacksEnabled()
793 data.writeInt32(enabled ? 1 : 0); in setAudioVolumeGroupCallbacksEnabled()
794 remote()->transact(SET_AUDIO_VOLUME_GROUP_CALLBACK_ENABLED, data, &reply); in setAudioVolumeGroupCallbacksEnabled()
804 Parcel data, reply; in acquireSoundTriggerSession() local
805 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in acquireSoundTriggerSession()
806 status_t status = remote()->transact(ACQUIRE_SOUNDTRIGGER_SESSION, data, &reply); in acquireSoundTriggerSession()
821 Parcel data, reply; in releaseSoundTriggerSession() local
822 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in releaseSoundTriggerSession()
823 data.writeInt32(session); in releaseSoundTriggerSession()
824 status_t status = remote()->transact(RELEASE_SOUNDTRIGGER_SESSION, data, &reply); in releaseSoundTriggerSession()
833 Parcel data, reply; in getPhoneState() local
834 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getPhoneState()
835 status_t status = remote()->transact(GET_PHONE_STATE, data, &reply); in getPhoneState()
844 Parcel data, reply; in registerPolicyMixes() local
845 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in registerPolicyMixes()
846 data.writeInt32(registration ? 1 : 0); in registerPolicyMixes()
851 size_t sizePosition = data.dataPosition(); in registerPolicyMixes()
852 data.writeInt32(size); in registerPolicyMixes()
855 size_t position = data.dataPosition(); in registerPolicyMixes()
856 if (mixes[i].writeToParcel(&data) != NO_ERROR) { in registerPolicyMixes()
857 data.setDataPosition(position); in registerPolicyMixes()
862 size_t position = data.dataPosition(); in registerPolicyMixes()
863 data.setDataPosition(sizePosition); in registerPolicyMixes()
864 data.writeInt32(finalSize); in registerPolicyMixes()
865 data.setDataPosition(position); in registerPolicyMixes()
867 status_t status = remote()->transact(REGISTER_POLICY_MIXES, data, &reply); in registerPolicyMixes()
878 Parcel data, reply; in startAudioSource() local
879 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in startAudioSource()
883 data.write(source, sizeof(struct audio_port_config)); in startAudioSource()
884 data.write(attributes, sizeof(audio_attributes_t)); in startAudioSource()
885 status_t status = remote()->transact(START_AUDIO_SOURCE, data, &reply); in startAudioSource()
899 Parcel data, reply; in stopAudioSource() local
900 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in stopAudioSource()
901 data.writeInt32(portId); in stopAudioSource()
902 status_t status = remote()->transact(STOP_AUDIO_SOURCE, data, &reply); in stopAudioSource()
912 Parcel data, reply; in setMasterMono() local
913 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setMasterMono()
914 data.writeInt32(static_cast<int32_t>(mono)); in setMasterMono()
915 status_t status = remote()->transact(SET_MASTER_MONO, data, &reply); in setMasterMono()
927 Parcel data, reply; in getMasterMono() local
928 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getMasterMono()
930 status_t status = remote()->transact(GET_MASTER_MONO, data, &reply); in getMasterMono()
943 Parcel data, reply; in getStreamVolumeDB() local
944 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getStreamVolumeDB()
945 data.writeInt32(static_cast <int32_t>(stream)); in getStreamVolumeDB()
946 data.writeInt32(static_cast <int32_t>(index)); in getStreamVolumeDB()
947 data.writeUint32(static_cast <uint32_t>(device)); in getStreamVolumeDB()
948 status_t status = remote()->transact(GET_STREAM_VOLUME_DB, data, &reply); in getStreamVolumeDB()
964 Parcel data, reply; in getSurroundFormats() local
965 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getSurroundFormats()
967 data.writeUint32(numSurroundFormatsReq); in getSurroundFormats()
968 data.writeBool(reported); in getSurroundFormats()
969 status_t status = remote()->transact(GET_SURROUND_FORMATS, data, &reply); in getSurroundFormats()
992 Parcel data, reply; in setSurroundFormatEnabled() local
993 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setSurroundFormatEnabled()
994 data.writeInt32(audioFormat); in setSurroundFormatEnabled()
995 data.writeBool(enabled); in setSurroundFormatEnabled()
996 status_t status = remote()->transact(SET_SURROUND_FORMAT_ENABLED, data, &reply); in setSurroundFormatEnabled()
1010 Parcel data, reply; in getHwOffloadEncodingFormatsSupportedForA2DP() local
1011 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getHwOffloadEncodingFormatsSupportedForA2DP()
1012 status_t status = remote()->transact(GET_OFFLOAD_FORMATS_A2DP, data, &reply); in getHwOffloadEncodingFormatsSupportedForA2DP()
1033 Parcel data, reply; in addStreamDefaultEffect() local
1034 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in addStreamDefaultEffect()
1035 data.write(type, sizeof(effect_uuid_t)); in addStreamDefaultEffect()
1036 data.writeString16(opPackageName); in addStreamDefaultEffect()
1037 data.write(uuid, sizeof(effect_uuid_t)); in addStreamDefaultEffect()
1038 data.writeInt32(priority); in addStreamDefaultEffect()
1039 data.writeInt32((int32_t) usage); in addStreamDefaultEffect()
1040 status_t status = remote()->transact(ADD_STREAM_DEFAULT_EFFECT, data, &reply); in addStreamDefaultEffect()
1051 Parcel data, reply; in removeStreamDefaultEffect() local
1052 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in removeStreamDefaultEffect()
1053 data.writeInt32(id); in removeStreamDefaultEffect()
1054 status_t status = remote()->transact(REMOVE_STREAM_DEFAULT_EFFECT, data, &reply); in removeStreamDefaultEffect()
1068 Parcel data, reply; in addSourceDefaultEffect() local
1069 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in addSourceDefaultEffect()
1070 data.write(type, sizeof(effect_uuid_t)); in addSourceDefaultEffect()
1071 data.writeString16(opPackageName); in addSourceDefaultEffect()
1072 data.write(uuid, sizeof(effect_uuid_t)); in addSourceDefaultEffect()
1073 data.writeInt32(priority); in addSourceDefaultEffect()
1074 data.writeInt32((int32_t) source); in addSourceDefaultEffect()
1075 status_t status = remote()->transact(ADD_SOURCE_DEFAULT_EFFECT, data, &reply); in addSourceDefaultEffect()
1086 Parcel data, reply; in removeSourceDefaultEffect() local
1087 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in removeSourceDefaultEffect()
1088 data.writeInt32(id); in removeSourceDefaultEffect()
1089 status_t status = remote()->transact(REMOVE_SOURCE_DEFAULT_EFFECT, data, &reply); in removeSourceDefaultEffect()
1098 Parcel data, reply; in setAssistantUid() local
1099 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setAssistantUid()
1100 data.writeInt32(uid); in setAssistantUid()
1101 status_t status = remote()->transact(SET_ASSISTANT_UID, data, &reply); in setAssistantUid()
1110 Parcel data, reply; in setA11yServicesUids() local
1111 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setA11yServicesUids()
1112 data.writeInt32(uids.size()); in setA11yServicesUids()
1114 data.writeInt32(uid); in setA11yServicesUids()
1116 status_t status = remote()->transact(SET_A11Y_SERVICES_UIDS, data, &reply); in setA11yServicesUids()
1125 Parcel data, reply; in isHapticPlaybackSupported() local
1126 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in isHapticPlaybackSupported()
1127 status_t status = remote()->transact(IS_HAPTIC_PLAYBACK_SUPPORTED, data, &reply); in isHapticPlaybackSupported()
1136 Parcel data, reply; in setUidDeviceAffinities() local
1137 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setUidDeviceAffinities()
1139 data.writeInt32((int32_t) uid); in setUidDeviceAffinities()
1141 size_t sizePosition = data.dataPosition(); in setUidDeviceAffinities()
1142 data.writeInt32((int32_t) size); in setUidDeviceAffinities()
1145 size_t position = data.dataPosition(); in setUidDeviceAffinities()
1146 if (devices[i].writeToParcel(&data) != NO_ERROR) { in setUidDeviceAffinities()
1147 data.setDataPosition(position); in setUidDeviceAffinities()
1152 size_t position = data.dataPosition(); in setUidDeviceAffinities()
1153 data.setDataPosition(sizePosition); in setUidDeviceAffinities()
1154 data.writeInt32(finalSize); in setUidDeviceAffinities()
1155 data.setDataPosition(position); in setUidDeviceAffinities()
1158 status_t status = remote()->transact(SET_UID_DEVICE_AFFINITY, data, &reply); in setUidDeviceAffinities()
1166 Parcel data, reply; in removeUidDeviceAffinities() local
1167 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in removeUidDeviceAffinities()
1169 data.writeInt32((int32_t) uid); in removeUidDeviceAffinities()
1172 remote()->transact(REMOVE_UID_DEVICE_AFFINITY, data, &reply); in removeUidDeviceAffinities()
1181 Parcel data, reply; in listAudioProductStrategies() local
1182 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in listAudioProductStrategies()
1184 status_t status = remote()->transact(LIST_AUDIO_PRODUCT_STRATEGIES, data, &reply); in listAudioProductStrategies()
1210 Parcel data, reply; in getProductStrategyFromAudioAttributes() local
1211 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getProductStrategyFromAudioAttributes()
1212 status_t status = aa.writeToParcel(&data); in getProductStrategyFromAudioAttributes()
1216 status = remote()->transact(GET_STRATEGY_FOR_ATTRIBUTES, data, &reply); in getProductStrategyFromAudioAttributes()
1230 Parcel data, reply; in listAudioVolumeGroups() local
1231 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in listAudioVolumeGroups()
1233 status_t status = remote()->transact(LIST_AUDIO_VOLUME_GROUPS, data, &reply); in listAudioVolumeGroups()
1258 Parcel data, reply; in getVolumeGroupFromAudioAttributes() local
1259 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in getVolumeGroupFromAudioAttributes()
1260 status_t status = aa.writeToParcel(&data); in getVolumeGroupFromAudioAttributes()
1264 status = remote()->transact(GET_VOLUME_GROUP_FOR_ATTRIBUTES, data, &reply); in getVolumeGroupFromAudioAttributes()
1278 Parcel data, reply; in setRttEnabled() local
1279 data.writeInterfaceToken(IAudioPolicyService::getInterfaceDescriptor()); in setRttEnabled()
1280 data.writeInt32(static_cast<int32_t>(enabled)); in setRttEnabled()
1281 status_t status = remote()->transact(SET_RTT_ENABLED, data, &reply); in setRttEnabled()
1294 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
1367 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1369 static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1371 static_cast <audio_policy_dev_state_t>(data.readInt32()); in onTransact()
1372 const char *device_address = data.readCString(); in onTransact()
1373 const char *device_name = data.readCString(); in onTransact()
1374 audio_format_t codecFormat = static_cast <audio_format_t>(data.readInt32()); in onTransact()
1389 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1391 static_cast<audio_devices_t> (data.readInt32()); in onTransact()
1392 const char *device_address = data.readCString(); in onTransact()
1404 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1406 static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1407 const char *device_address = data.readCString(); in onTransact()
1408 const char *device_name = data.readCString(); in onTransact()
1410 static_cast <audio_format_t>(data.readInt32()); in onTransact()
1424 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1426 (audio_mode_t) data.readInt32()))); in onTransact()
1431 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1433 data.readInt32()); in onTransact()
1435 static_cast <audio_policy_forced_cfg_t>(data.readInt32()); in onTransact()
1441 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1443 data.readInt32()); in onTransact()
1449 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1451 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1458 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1460 status_t status = data.read(&attr, sizeof(audio_attributes_t)); in onTransact()
1465 audio_session_t session = (audio_session_t)data.readInt32(); in onTransact()
1467 bool hasStream = data.readInt32() != 0; in onTransact()
1469 stream = (audio_stream_type_t)data.readInt32(); in onTransact()
1471 pid_t pid = (pid_t)data.readInt32(); in onTransact()
1472 uid_t uid = (uid_t)data.readInt32(); in onTransact()
1475 data.read(&config, sizeof(audio_config_t)); in onTransact()
1477 static_cast <audio_output_flags_t>(data.readInt32()); in onTransact()
1478 audio_port_handle_t selectedDeviceId = data.readInt32(); in onTransact()
1479 audio_port_handle_t portId = (audio_port_handle_t)data.readInt32(); in onTransact()
1496 return reply->write(secondaryOutputs.data(), in onTransact()
1501 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1502 const audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1508 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1509 const audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1515 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1516 const audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1522 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1524 data.read(&attr, sizeof(audio_attributes_t)); in onTransact()
1526 audio_io_handle_t input = (audio_io_handle_t)data.readInt32(); in onTransact()
1527 audio_unique_id_t riid = (audio_unique_id_t)data.readInt32(); in onTransact()
1528 audio_session_t session = (audio_session_t)data.readInt32(); in onTransact()
1529 pid_t pid = (pid_t)data.readInt32(); in onTransact()
1530 uid_t uid = (uid_t)data.readInt32(); in onTransact()
1531 const String16 opPackageName = data.readString16(); in onTransact()
1534 data.read(&config, sizeof(audio_config_base_t)); in onTransact()
1535 audio_input_flags_t flags = (audio_input_flags_t) data.readInt32(); in onTransact()
1536 audio_port_handle_t selectedDeviceId = (audio_port_handle_t) data.readInt32(); in onTransact()
1537 audio_port_handle_t portId = (audio_port_handle_t)data.readInt32(); in onTransact()
1551 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1552 audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1559 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1560 audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1566 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1567 audio_port_handle_t portId = static_cast <audio_port_handle_t>(data.readInt32()); in onTransact()
1573 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1575 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1576 int indexMin = data.readInt32(); in onTransact()
1577 int indexMax = data.readInt32(); in onTransact()
1583 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1585 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1586 int index = data.readInt32(); in onTransact()
1587 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1595 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1597 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1598 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1607 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1609 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1615 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1617 status_t status = data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
1621 int index = data.readInt32(); in onTransact()
1622 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1630 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1632 status_t status = data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
1636 audio_devices_t device = static_cast <audio_devices_t>(data.readInt32()); in onTransact()
1648 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1650 status_t status = data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
1665 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1667 status_t status = data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
1682 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1684 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
1690 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1692 if (data.read(&desc, sizeof(desc)) != NO_ERROR) { in onTransact()
1702 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1704 if (data.read(&desc, sizeof(desc)) != NO_ERROR) { in onTransact()
1708 audio_io_handle_t io = data.readInt32(); in onTransact()
1709 uint32_t strategy = data.readInt32(); in onTransact()
1710 audio_session_t session = (audio_session_t) data.readInt32(); in onTransact()
1711 int id = data.readInt32(); in onTransact()
1721 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1722 int id = data.readInt32(); in onTransact()
1728 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1729 int id = data.readInt32(); in onTransact()
1730 bool enabled = static_cast <bool>(data.readInt32()); in onTransact()
1736 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1739 status_t status = data.readInt32(&size); in onTransact()
1748 status = data.readInt32(&id); in onTransact()
1755 audio_io_handle_t io = data.readInt32(); in onTransact()
1761 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1762 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); in onTransact()
1763 uint32_t inPastMs = (uint32_t)data.readInt32(); in onTransact()
1769 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1770 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); in onTransact()
1771 uint32_t inPastMs = (uint32_t)data.readInt32(); in onTransact()
1777 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1778 audio_source_t source = (audio_source_t) data.readInt32(); in onTransact()
1784 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1785 audio_session_t audioSession = (audio_session_t) data.readInt32(); in onTransact()
1786 uint32_t count = data.readInt32(); in onTransact()
1809 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1811 data.read(&info, sizeof(audio_offload_info_t)); in onTransact()
1818 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1821 status_t status = data.read(&config, sizeof(audio_config_base_t)); in onTransact()
1823 status = data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
1830 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1831 audio_port_role_t role = (audio_port_role_t)data.readInt32(); in onTransact()
1832 audio_port_type_t type = (audio_port_type_t)data.readInt32(); in onTransact()
1833 unsigned int numPortsReq = data.readInt32(); in onTransact()
1862 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1864 if (data.read(&port, sizeof(struct audio_port)) != NO_ERROR) { in onTransact()
1876 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1878 data.read(&patch, sizeof(struct audio_patch)); in onTransact()
1880 if (data.read(&handle, sizeof(audio_patch_handle_t)) != NO_ERROR) { in onTransact()
1892 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1894 data.read(&handle, sizeof(audio_patch_handle_t)); in onTransact()
1901 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1902 unsigned int numPatchesReq = data.readInt32(); in onTransact()
1931 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1933 data.read(&config, sizeof(struct audio_port_config)); in onTransact()
1941 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1943 data.readStrongBinder()); in onTransact()
1949 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1950 setAudioPortCallbacksEnabled(data.readInt32() == 1); in onTransact()
1955 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1956 setAudioVolumeGroupCallbacksEnabled(data.readInt32() == 1); in onTransact()
1961 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1963 data.readStrongBinder()); in onTransact()
1978 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1980 data.readStrongBinder()); in onTransact()
1981 audio_session_t session = (audio_session_t)data.readInt32(); in onTransact()
1988 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1994 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
1995 bool registration = data.readInt32() == 1; in onTransact()
1997 size_t size = (size_t)data.readInt32(); in onTransact()
2003 if (mix.readFromParcel((Parcel*)&data) == NO_ERROR) { in onTransact()
2013 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2015 data.read(&source, sizeof(struct audio_port_config)); in onTransact()
2018 data.read(&attributes, sizeof(audio_attributes_t)); in onTransact()
2028 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2029 audio_port_handle_t portId = (audio_port_handle_t) data.readInt32(); in onTransact()
2036 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2037 bool mono = static_cast<bool>(data.readInt32()); in onTransact()
2044 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2055 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2057 static_cast <audio_stream_type_t>(data.readInt32()); in onTransact()
2058 int index = static_cast <int>(data.readInt32()); in onTransact()
2060 static_cast <audio_devices_t>(data.readUint32()); in onTransact()
2066 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2067 unsigned int numSurroundFormatsReq = data.readUint32(); in onTransact()
2071 bool reported = data.readBool(); in onTransact()
2101 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2102 audio_format_t audioFormat = (audio_format_t) data.readInt32(); in onTransact()
2103 bool enabled = data.readBool(); in onTransact()
2110 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2125 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2127 status_t status = data.read(&type, sizeof(effect_uuid_t)); in onTransact()
2132 status = data.readString16(&opPackageName); in onTransact()
2137 status = data.read(&uuid, sizeof(effect_uuid_t)); in onTransact()
2141 int32_t priority = data.readInt32(); in onTransact()
2142 audio_usage_t usage = (audio_usage_t) data.readInt32(); in onTransact()
2155 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2156 audio_unique_id_t id = static_cast<audio_unique_id_t>(data.readInt32()); in onTransact()
2162 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2164 status_t status = data.read(&type, sizeof(effect_uuid_t)); in onTransact()
2169 status = data.readString16(&opPackageName); in onTransact()
2174 status = data.read(&uuid, sizeof(effect_uuid_t)); in onTransact()
2178 int32_t priority = data.readInt32(); in onTransact()
2179 audio_source_t source = (audio_source_t) data.readInt32(); in onTransact()
2192 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2193 audio_unique_id_t id = static_cast<audio_unique_id_t>(data.readInt32()); in onTransact()
2199 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2201 status_t status = data.readInt32(&uid); in onTransact()
2211 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2214 status_t status = data.readInt32(&size); in onTransact()
2223 status = data.readInt32(&uid); in onTransact()
2235 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2242 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2243 const uid_t uid = (uid_t) data.readInt32(); in onTransact()
2245 size_t size = (size_t)data.readInt32(); in onTransact()
2248 if (device.readFromParcel((Parcel*)&data) == NO_ERROR) { in onTransact()
2258 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2259 const uid_t uid = (uid_t) data.readInt32(); in onTransact()
2266 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2294 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2296 status_t status = attributes.readFromParcel(&data); in onTransact()
2311 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2339 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2341 status_t status = attributes.readFromParcel(&data); in onTransact()
2356 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2357 uid_t uid = data.readInt32(); in onTransact()
2358 audio_flags_mask_t flags = data.readInt32(); in onTransact()
2365 CHECK_INTERFACE(IAudioPolicyService, data, reply); in onTransact()
2366 bool enabled = static_cast<bool>(data.readInt32()); in onTransact()
2373 return BBinder::onTransact(code, data, reply, flags); in onTransact()