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.
5 #ifndef CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
6 #define CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
10 #include "base/macros.h"
11 #include "chromecast/public/cast_sys_info.h"
19 namespace chromecast
{
21 class CastSysInfoAndroid
: public CastSysInfo
{
23 static bool RegisterJni(JNIEnv
* env
);
26 ~CastSysInfoAndroid() override
;
28 // CastSysInfo implementation:
29 BuildType
GetBuildType() override
;
30 std::string
GetSerialNumber() override
;
31 std::string
GetProductName() override
;
32 std::string
GetDeviceModel() override
;
33 std::string
GetManufacturer() override
;
34 std::string
GetSystemBuildNumber() override
;
35 std::string
GetSystemReleaseChannel() override
;
36 std::string
GetBoardName() override
;
37 std::string
GetBoardRevision() override
;
38 std::string
GetFactoryCountry() override
;
39 std::string
GetFactoryLocale(std::string
* second_locale
) override
;
40 std::string
GetWifiInterface() override
;
41 std::string
GetApInterface() override
;
42 std::string
GetGlVendor() override
;
43 std::string
GetGlRenderer() override
;
44 std::string
GetGlVersion() override
;
46 // Native implementation of Java methods.
47 void DeviceNameChanged(JNIEnv
* env
, jobject obj
, jstring device_name
);
50 const base::android::BuildInfo
* const build_info_
;
52 DISALLOW_COPY_AND_ASSIGN(CastSysInfoAndroid
);
55 } // namespace chromecast
57 #endif // CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_