Lines Matching refs:mGain
164 mGain = config->gain; in applyAudioPortConfig()
206 dstConfig->gain = mGain; in toAudioPortConfig()
238 mGain.index == other->mGain.index && in equals()
239 mGain.mode == other->mGain.mode && in equals()
240 mGain.channel_mask == other->mGain.channel_mask && in equals()
241 std::equal(std::begin(mGain.values), std::end(mGain.values), in equals()
242 std::begin(other->mGain.values)) && in equals()
243 mGain.ramp_duration_ms == other->mGain.ramp_duration_ms; in equals()
254 if ((status = parcel->writeInt32(mGain.index)) != NO_ERROR) return status; in writeToParcel()
255 if ((status = parcel->writeUint32(mGain.mode)) != NO_ERROR) return status; in writeToParcel()
256 if ((status = parcel->writeUint32(mGain.channel_mask)) != NO_ERROR) return status; in writeToParcel()
257 if ((status = parcel->writeUint32(mGain.ramp_duration_ms)) != NO_ERROR) return status; in writeToParcel()
258 std::vector<int> values(std::begin(mGain.values), std::end(mGain.values)); in writeToParcel()
274 if ((status = parcel->readInt32(&mGain.index)) != NO_ERROR) return status; in readFromParcel()
275 if ((status = parcel->readUint32(&mGain.mode)) != NO_ERROR) return status; in readFromParcel()
276 if ((status = parcel->readUint32(&mGain.channel_mask)) != NO_ERROR) return status; in readFromParcel()
277 if ((status = parcel->readUint32(&mGain.ramp_duration_ms)) != NO_ERROR) return status; in readFromParcel()
280 if (values.size() != std::size(mGain.values)) { in readFromParcel()
283 std::copy(values.begin(), values.end(), mGain.values); in readFromParcel()