From: Kichan Kwon Date: Fri, 25 Aug 2017 06:12:12 +0000 (+0900) Subject: Replace the class name SystemInfo with Information X-Git-Tag: preview1-00199^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F146139%2F5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Replace the class name SystemInfo with Information Change-Id: Iafa00404d2f369117f3a7acb70572fd9529cbd70 Signed-off-by: Kichan Kwon --- diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Features.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Features.cs old mode 100644 new mode 100755 index 245a94a..e0c2d23 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Features.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Features.cs @@ -22,7 +22,7 @@ static internal class Features internal static bool IsSupported(string key) { - if (SystemInfo.TryGetValue(key, out bool value)) + if (Information.TryGetValue(key, out bool value)) { return value; } diff --git a/src/Tizen.Multimedia.Radio/Radio/Radio.cs b/src/Tizen.Multimedia.Radio/Radio/Radio.cs old mode 100644 new mode 100755 index 14a8fd3..20d70fd --- a/src/Tizen.Multimedia.Radio/Radio/Radio.cs +++ b/src/Tizen.Multimedia.Radio/Radio/Radio.cs @@ -319,7 +319,7 @@ namespace Tizen.Multimedia private void ValidateFeatureSupported(string featurePath) { bool supported = false; - SystemInfo.TryGetValue(featurePath, out supported); + Information.TryGetValue(featurePath, out supported); if (supported == false) { diff --git a/src/Tizen.Multimedia.Vision/MediaVision/EngineConfiguration.cs b/src/Tizen.Multimedia.Vision/MediaVision/EngineConfiguration.cs index 972c0fa..aa20741 100755 --- a/src/Tizen.Multimedia.Vision/MediaVision/EngineConfiguration.cs +++ b/src/Tizen.Multimedia.Vision/MediaVision/EngineConfiguration.cs @@ -38,7 +38,7 @@ namespace Tizen.Multimedia.Vision string featureType = _featurePath + type; - bool ret = SystemInfo.TryGetValue(featureType, out isSupported); + bool ret = Information.TryGetValue(featureType, out isSupported); return (isSupported && ret) ? true : false; } diff --git a/src/Tizen.Multimedia/Common.Internal/Features.cs b/src/Tizen.Multimedia/Common.Internal/Features.cs old mode 100644 new mode 100755 index 50c8508..58b1ec6 --- a/src/Tizen.Multimedia/Common.Internal/Features.cs +++ b/src/Tizen.Multimedia/Common.Internal/Features.cs @@ -26,7 +26,7 @@ namespace Tizen.Multimedia internal static bool IsSupported(string featureKey) { bool supported = false; - SystemInfo.TryGetValue(featureKey, out supported); + Information.TryGetValue(featureKey, out supported); return supported; } diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs index 43f88e7..41fe3cf 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs @@ -38,7 +38,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -66,7 +66,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -95,8 +95,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isTagSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); if (!isNfcSupported || !isTagSupported) { @@ -117,8 +117,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isTagSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); if (!isNfcSupported || !isTagSupported) { @@ -148,8 +148,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isCeSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); if (!isNfcSupported || !isCeSupported) { @@ -170,8 +170,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isCeSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); if (!isNfcSupported || !isCeSupported) { @@ -200,7 +200,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -220,7 +220,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -248,7 +248,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -275,8 +275,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isTagSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported); if (!isNfcSupported || !isTagSupported) { @@ -302,8 +302,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isP2pSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported); if (!isNfcSupported || !isP2pSupported) { @@ -329,8 +329,8 @@ namespace Tizen.Network.Nfc bool isNfcSupported = false; bool isCeSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported); if (!isNfcSupported || !isCeSupported) { @@ -357,7 +357,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -384,7 +384,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -404,7 +404,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -432,7 +432,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { @@ -452,7 +452,7 @@ namespace Tizen.Network.Nfc { bool isNfcSupported = false; - SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); + Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); if (!isNfcSupported) { diff --git a/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs b/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs index 9b48dee..2210fd3 100755 --- a/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs +++ b/src/Tizen.Sensor/Tizen.Sensor/Sensor.cs @@ -287,7 +287,7 @@ namespace Tizen.Sensor internal static bool CheckIfSupported(SensorType type, String key) { bool isSupported = false; - bool error = SystemInfo.TryGetValue(key, out isSupported); + bool error = Information.TryGetValue(key, out isSupported); if (!error || !isSupported) { diff --git a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs index ba7afd5..5c352f0 100755 --- a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs +++ b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs @@ -20,7 +20,7 @@ using System.ComponentModel; namespace Tizen.System { [EditorBrowsable(EditorBrowsableState.Never)] - public static class SystemInfo + internal static class SystemInfo { [EditorBrowsable(EditorBrowsableState.Never)] private static Interop.SystemInfo.SystemInfoType GetValueType(string key, out Interop.SystemInfo.SystemInfoValueType valueType) @@ -129,7 +129,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - public static bool TryGetValue(string key, out bool value) + internal static bool TryGetValue(string key, out bool value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); @@ -162,7 +162,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - public static bool TryGetValue(string key, out int value) + internal static bool TryGetValue(string key, out int value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); @@ -230,7 +230,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - public static bool TryGetValue(string key, out string value) + internal static bool TryGetValue(string key, out string value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType);