Loading media/libmedia/IAudioFlinger.cpp +20 −10 Original line number Diff line number Diff line Loading @@ -1090,8 +1090,10 @@ status_t BnAudioFlinger::onTransact( case OPEN_OUTPUT: { CHECK_INTERFACE(IAudioFlinger, data, reply); audio_module_handle_t module = (audio_module_handle_t)data.readInt32(); audio_config_t config; data.read(&config, sizeof(audio_config_t)); audio_config_t config = {}; if (data.read(&config, sizeof(audio_config_t)) != NO_ERROR) { ALOGE("b/23905951"); } audio_devices_t devices = (audio_devices_t)data.readInt32(); String8 address(data.readString8()); audio_output_flags_t flags = (audio_output_flags_t) data.readInt32(); Loading Loading @@ -1135,8 +1137,10 @@ status_t BnAudioFlinger::onTransact( CHECK_INTERFACE(IAudioFlinger, data, reply); audio_module_handle_t module = (audio_module_handle_t)data.readInt32(); audio_io_handle_t input = (audio_io_handle_t)data.readInt32(); audio_config_t config; data.read(&config, sizeof(audio_config_t)); audio_config_t config = {}; if (data.read(&config, sizeof(audio_config_t)) != NO_ERROR) { ALOGE("b/23905951"); } audio_devices_t device = (audio_devices_t)data.readInt32(); String8 address(data.readString8()); audio_source_t source = (audio_source_t)data.readInt32(); Loading Loading @@ -1241,8 +1245,10 @@ status_t BnAudioFlinger::onTransact( } case CREATE_EFFECT: { CHECK_INTERFACE(IAudioFlinger, data, reply); effect_descriptor_t desc; data.read(&desc, sizeof(effect_descriptor_t)); effect_descriptor_t desc = {}; if (data.read(&desc, sizeof(effect_descriptor_t)) != NO_ERROR) { ALOGE("b/23905951"); } sp<IEffectClient> client = interface_cast<IEffectClient>(data.readStrongBinder()); int32_t priority = data.readInt32(); audio_io_handle_t output = (audio_io_handle_t) data.readInt32(); Loading Loading @@ -1318,8 +1324,10 @@ status_t BnAudioFlinger::onTransact( } break; case GET_AUDIO_PORT: { CHECK_INTERFACE(IAudioFlinger, data, reply); struct audio_port port; data.read(&port, sizeof(struct audio_port)); struct audio_port port = {}; if (data.read(&port, sizeof(struct audio_port)) != NO_ERROR) { ALOGE("b/23905951"); } status_t status = getAudioPort(&port); reply->writeInt32(status); if (status == NO_ERROR) { Loading @@ -1331,8 +1339,10 @@ status_t BnAudioFlinger::onTransact( CHECK_INTERFACE(IAudioFlinger, data, reply); struct audio_patch patch; data.read(&patch, sizeof(struct audio_patch)); audio_patch_handle_t handle; data.read(&handle, sizeof(audio_patch_handle_t)); audio_patch_handle_t handle = {}; if (data.read(&handle, sizeof(audio_patch_handle_t)) != NO_ERROR) { ALOGE("b/23905951"); } status_t status = createAudioPatch(&patch, &handle); reply->writeInt32(status); if (status == NO_ERROR) { Loading media/libmedia/IAudioPolicyService.cpp +8 −4 Original line number Diff line number Diff line Loading @@ -1085,8 +1085,10 @@ status_t BnAudioPolicyService::onTransact( case GET_AUDIO_PORT: { CHECK_INTERFACE(IAudioPolicyService, data, reply); struct audio_port port; data.read(&port, sizeof(struct audio_port)); struct audio_port port = {}; if (data.read(&port, sizeof(struct audio_port)) != NO_ERROR) { ALOGE("b/23912202"); } status_t status = getAudioPort(&port); reply->writeInt32(status); if (status == NO_ERROR) { Loading @@ -1099,8 +1101,10 @@ status_t BnAudioPolicyService::onTransact( CHECK_INTERFACE(IAudioPolicyService, data, reply); struct audio_patch patch; data.read(&patch, sizeof(struct audio_patch)); audio_patch_handle_t handle; data.read(&handle, sizeof(audio_patch_handle_t)); audio_patch_handle_t handle = {}; if (data.read(&handle, sizeof(audio_patch_handle_t)) != NO_ERROR) { ALOGE("b/23912202"); } status_t status = createAudioPatch(&patch, &handle); reply->writeInt32(status); if (status == NO_ERROR) { Loading Loading
media/libmedia/IAudioFlinger.cpp +20 −10 Original line number Diff line number Diff line Loading @@ -1090,8 +1090,10 @@ status_t BnAudioFlinger::onTransact( case OPEN_OUTPUT: { CHECK_INTERFACE(IAudioFlinger, data, reply); audio_module_handle_t module = (audio_module_handle_t)data.readInt32(); audio_config_t config; data.read(&config, sizeof(audio_config_t)); audio_config_t config = {}; if (data.read(&config, sizeof(audio_config_t)) != NO_ERROR) { ALOGE("b/23905951"); } audio_devices_t devices = (audio_devices_t)data.readInt32(); String8 address(data.readString8()); audio_output_flags_t flags = (audio_output_flags_t) data.readInt32(); Loading Loading @@ -1135,8 +1137,10 @@ status_t BnAudioFlinger::onTransact( CHECK_INTERFACE(IAudioFlinger, data, reply); audio_module_handle_t module = (audio_module_handle_t)data.readInt32(); audio_io_handle_t input = (audio_io_handle_t)data.readInt32(); audio_config_t config; data.read(&config, sizeof(audio_config_t)); audio_config_t config = {}; if (data.read(&config, sizeof(audio_config_t)) != NO_ERROR) { ALOGE("b/23905951"); } audio_devices_t device = (audio_devices_t)data.readInt32(); String8 address(data.readString8()); audio_source_t source = (audio_source_t)data.readInt32(); Loading Loading @@ -1241,8 +1245,10 @@ status_t BnAudioFlinger::onTransact( } case CREATE_EFFECT: { CHECK_INTERFACE(IAudioFlinger, data, reply); effect_descriptor_t desc; data.read(&desc, sizeof(effect_descriptor_t)); effect_descriptor_t desc = {}; if (data.read(&desc, sizeof(effect_descriptor_t)) != NO_ERROR) { ALOGE("b/23905951"); } sp<IEffectClient> client = interface_cast<IEffectClient>(data.readStrongBinder()); int32_t priority = data.readInt32(); audio_io_handle_t output = (audio_io_handle_t) data.readInt32(); Loading Loading @@ -1318,8 +1324,10 @@ status_t BnAudioFlinger::onTransact( } break; case GET_AUDIO_PORT: { CHECK_INTERFACE(IAudioFlinger, data, reply); struct audio_port port; data.read(&port, sizeof(struct audio_port)); struct audio_port port = {}; if (data.read(&port, sizeof(struct audio_port)) != NO_ERROR) { ALOGE("b/23905951"); } status_t status = getAudioPort(&port); reply->writeInt32(status); if (status == NO_ERROR) { Loading @@ -1331,8 +1339,10 @@ status_t BnAudioFlinger::onTransact( CHECK_INTERFACE(IAudioFlinger, data, reply); struct audio_patch patch; data.read(&patch, sizeof(struct audio_patch)); audio_patch_handle_t handle; data.read(&handle, sizeof(audio_patch_handle_t)); audio_patch_handle_t handle = {}; if (data.read(&handle, sizeof(audio_patch_handle_t)) != NO_ERROR) { ALOGE("b/23905951"); } status_t status = createAudioPatch(&patch, &handle); reply->writeInt32(status); if (status == NO_ERROR) { Loading
media/libmedia/IAudioPolicyService.cpp +8 −4 Original line number Diff line number Diff line Loading @@ -1085,8 +1085,10 @@ status_t BnAudioPolicyService::onTransact( case GET_AUDIO_PORT: { CHECK_INTERFACE(IAudioPolicyService, data, reply); struct audio_port port; data.read(&port, sizeof(struct audio_port)); struct audio_port port = {}; if (data.read(&port, sizeof(struct audio_port)) != NO_ERROR) { ALOGE("b/23912202"); } status_t status = getAudioPort(&port); reply->writeInt32(status); if (status == NO_ERROR) { Loading @@ -1099,8 +1101,10 @@ status_t BnAudioPolicyService::onTransact( CHECK_INTERFACE(IAudioPolicyService, data, reply); struct audio_patch patch; data.read(&patch, sizeof(struct audio_patch)); audio_patch_handle_t handle; data.read(&handle, sizeof(audio_patch_handle_t)); audio_patch_handle_t handle = {}; if (data.read(&handle, sizeof(audio_patch_handle_t)) != NO_ERROR) { ALOGE("b/23912202"); } status_t status = createAudioPatch(&patch, &handle); reply->writeInt32(status); if (status == NO_ERROR) { Loading