cast_sys_info_android.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2015 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. #ifndef CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
  5. #define CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
  6. #include <jni.h>
  7. #include <vector>
  8. #include "chromecast/public/cast_sys_info.h"
  9. namespace base {
  10. namespace android {
  11. class BuildInfo;
  12. }
  13. }
  14. namespace chromecast {
  15. class CastSysInfoAndroid : public CastSysInfo {
  16. public:
  17. CastSysInfoAndroid();
  18. CastSysInfoAndroid(const CastSysInfoAndroid&) = delete;
  19. CastSysInfoAndroid& operator=(const CastSysInfoAndroid&) = delete;
  20. ~CastSysInfoAndroid() override;
  21. // CastSysInfo implementation:
  22. BuildType GetBuildType() override;
  23. std::string GetSerialNumber() override;
  24. std::string GetProductName() override;
  25. std::string GetDeviceModel() override;
  26. std::string GetManufacturer() override;
  27. std::string GetSystemBuildNumber() override;
  28. std::string GetSystemReleaseChannel() override;
  29. std::string GetBoardName() override;
  30. std::string GetBoardRevision() override;
  31. std::string GetFactoryCountry() override;
  32. std::vector<std::string> GetFactoryLocaleList() override;
  33. std::string GetWifiInterface() override;
  34. std::string GetApInterface() override;
  35. std::string GetProductSsidSuffix() override;
  36. static std::string GetAndroidProperty(const std::string& key,
  37. const std::string& default_value);
  38. private:
  39. const base::android::BuildInfo* const build_info_;
  40. };
  41. } // namespace chromecast
  42. #endif // CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_