| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 case kStatsValueNameSecondaryDecodedRate: | 585 case kStatsValueNameSecondaryDecodedRate: |
| 586 return "googSecondaryDecodedRate"; | 586 return "googSecondaryDecodedRate"; |
| 587 case kStatsValueNameSendPacketsDiscarded: | 587 case kStatsValueNameSendPacketsDiscarded: |
| 588 return "packetsDiscardedOnSend"; | 588 return "packetsDiscardedOnSend"; |
| 589 case kStatsValueNameSpeechExpandRate: | 589 case kStatsValueNameSpeechExpandRate: |
| 590 return "googSpeechExpandRate"; | 590 return "googSpeechExpandRate"; |
| 591 case kStatsValueNameSrtpCipher: | 591 case kStatsValueNameSrtpCipher: |
| 592 return "srtpCipher"; | 592 return "srtpCipher"; |
| 593 case kStatsValueNameTargetEncBitrate: | 593 case kStatsValueNameTargetEncBitrate: |
| 594 return "googTargetEncBitrate"; | 594 return "googTargetEncBitrate"; |
| 595 case kStatsValueNameTotalAudioEnergy: |
| 596 return "totalAudioEnergy"; |
| 597 case kStatsValueNameTotalSamplesDuration: |
| 598 return "totalSamplesDuration"; |
| 595 case kStatsValueNameTransmitBitrate: | 599 case kStatsValueNameTransmitBitrate: |
| 596 return "googTransmitBitrate"; | 600 return "googTransmitBitrate"; |
| 597 case kStatsValueNameTransportType: | 601 case kStatsValueNameTransportType: |
| 598 return "googTransportType"; | 602 return "googTransportType"; |
| 599 case kStatsValueNameTrackId: | 603 case kStatsValueNameTrackId: |
| 600 return "googTrackId"; | 604 return "googTrackId"; |
| 601 case kStatsValueNameTypingNoiseState: | 605 case kStatsValueNameTypingNoiseState: |
| 602 return "googTypingNoiseState"; | 606 return "googTypingNoiseState"; |
| 603 case kStatsValueNameWritable: | 607 case kStatsValueNameWritable: |
| 604 return "googWritable"; | 608 return "googWritable"; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 // Looks for a report with the given |id|. If one is not found, null | 786 // Looks for a report with the given |id|. If one is not found, null |
| 783 // will be returned. | 787 // will be returned. |
| 784 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { | 788 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { |
| 785 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 789 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 786 Container::iterator it = std::find_if(list_.begin(), list_.end(), | 790 Container::iterator it = std::find_if(list_.begin(), list_.end(), |
| 787 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); | 791 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); |
| 788 return it == list_.end() ? nullptr : *it; | 792 return it == list_.end() ? nullptr : *it; |
| 789 } | 793 } |
| 790 | 794 |
| 791 } // namespace webrtc | 795 } // namespace webrtc |
| OLD | NEW |