avsettings_dummy.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "chromecast/media/avsettings/avsettings_dummy.h"
  5. namespace chromecast {
  6. AvSettingsDummy::AvSettingsDummy() : delegate_(nullptr) {}
  7. AvSettingsDummy::~AvSettingsDummy() = default;
  8. void AvSettingsDummy::Initialize(Delegate* delegate) {
  9. delegate_ = delegate;
  10. }
  11. void AvSettingsDummy::Finalize() {
  12. delegate_ = nullptr;
  13. }
  14. AvSettings::ActiveState AvSettingsDummy::GetActiveState() {
  15. return ActiveState::UNKNOWN;
  16. }
  17. bool AvSettingsDummy::TurnActive(bool switch_to_cast) {
  18. return false;
  19. }
  20. bool AvSettingsDummy::TurnStandby() {
  21. return false;
  22. }
  23. bool AvSettingsDummy::KeepSystemAwake(int time_millis) {
  24. return false;
  25. }
  26. AvSettings::AudioVolumeControlType
  27. AvSettingsDummy::GetAudioVolumeControlType() {
  28. return MASTER_VOLUME;
  29. }
  30. bool AvSettingsDummy::GetAudioVolumeStepInterval(float* step_interval) {
  31. return false; // Use default intervals per control type
  32. }
  33. int AvSettingsDummy::GetAudioCodecsSupported() {
  34. return 0;
  35. }
  36. int AvSettingsDummy::GetMaxAudioChannels(AudioCodec codec) {
  37. return 0;
  38. }
  39. bool AvSettingsDummy::GetScreenResolution(int* width, int* height) {
  40. return false;
  41. }
  42. int AvSettingsDummy::GetHDCPVersion() {
  43. return 0;
  44. }
  45. int AvSettingsDummy::GetSupportedEotfs() {
  46. return 0;
  47. }
  48. int AvSettingsDummy::GetDolbyVisionFlags() {
  49. return 0;
  50. }
  51. int AvSettingsDummy::GetScreenWidthMm() {
  52. return 0;
  53. }
  54. int AvSettingsDummy::GetScreenHeightMm() {
  55. return 0;
  56. }
  57. bool AvSettingsDummy::GetOutputRestrictions(OutputRestrictions* restrictions) {
  58. return false;
  59. }
  60. void AvSettingsDummy::ApplyOutputRestrictions(
  61. const OutputRestrictions& restrictions) {}
  62. AvSettings::WakeOnCastStatus AvSettingsDummy::GetWakeOnCastStatus() {
  63. return WAKE_ON_CAST_NOT_SUPPORTED;
  64. }
  65. bool AvSettingsDummy::EnableWakeOnCast(bool enabled) {
  66. return false;
  67. }
  68. AvSettings::HdrOutputType AvSettingsDummy::GetHdrOutputType() {
  69. return HDR_OUTPUT_SDR;
  70. }
  71. bool AvSettingsDummy::SetHdmiVideoMode(bool allow_4k,
  72. int optimize_for_fps,
  73. AvSettings::HdrOutputType output_type) {
  74. return false;
  75. }
  76. bool AvSettingsDummy::IsHdrOutputSupportedByCurrentHdmiVideoMode(
  77. HdrOutputType output_type) {
  78. return false;
  79. }
  80. } // namespace chromecast