From 75ffdc5d28c5cba066fb4801543dc09be97f90ac Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Wed, 26 Apr 2017 11:55:35 +0900 Subject: [PATCH] Add EditorBrowsable attribute for internal components Change-Id: Ib008915ac3f2e4991c384690ec3ea4da5413cc5d Signed-off-by: Kichan Kwon --- src/Tizen.System.Information/RuntimeInfo/CpuUsage.cs | 3 +++ src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs | 3 +++ .../RuntimeInfo/RuntimeInfoErrorFactory.cs | 3 +++ src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs | 7 ++----- src/Tizen.System.Information/SystemInfo/SystemInfo.cs | 2 ++ 5 files changed, 13 insertions(+), 5 deletions(-) mode change 100644 => 100755 src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs mode change 100644 => 100755 src/Tizen.System.Information/SystemInfo/SystemInfo.cs diff --git a/src/Tizen.System.Information/RuntimeInfo/CpuUsage.cs b/src/Tizen.System.Information/RuntimeInfo/CpuUsage.cs index 58f6e50..813036c 100755 --- a/src/Tizen.System.Information/RuntimeInfo/CpuUsage.cs +++ b/src/Tizen.System.Information/RuntimeInfo/CpuUsage.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.ComponentModel; namespace Tizen.System { @@ -27,6 +28,7 @@ namespace Tizen.System /// public class CpuUsage { + [EditorBrowsable(EditorBrowsableState.Never)] internal CpuUsage(Interop.RuntimeInfo.CpuUsage usage) { IoWait = usage.IoWait; @@ -57,6 +59,7 @@ namespace Tizen.System /// public class ProcessCpuUsage { + [EditorBrowsable(EditorBrowsableState.Never)] internal ProcessCpuUsage(Interop.RuntimeInfo.ProcessCpuUsage usage) { UTime = usage.UTime; diff --git a/src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs b/src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs old mode 100644 new mode 100755 index 1490f0d..64d6713 --- a/src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs +++ b/src/Tizen.System.Information/RuntimeInfo/MemoryInformation.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.ComponentModel; namespace Tizen.System { @@ -27,6 +28,7 @@ namespace Tizen.System /// public class SystemMemoryInformation { + [EditorBrowsable(EditorBrowsableState.Never)] internal SystemMemoryInformation(Interop.RuntimeInfo.MemoryInfo info) { Total = info.Total; @@ -62,6 +64,7 @@ namespace Tizen.System /// public class ProcessMemoryInformation { + [EditorBrowsable(EditorBrowsableState.Never)] internal ProcessMemoryInformation(Interop.RuntimeInfo.ProcessMemoryInfo info) { PrivateClean = info.PrivateClean; diff --git a/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoErrorFactory.cs b/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoErrorFactory.cs index 1c5c8ff..308e211 100755 --- a/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoErrorFactory.cs +++ b/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoErrorFactory.cs @@ -15,10 +15,12 @@ */ using System; +using System.ComponentModel; using Tizen.Internals.Errors; namespace Tizen.System { + [EditorBrowsable(EditorBrowsableState.Never)] internal enum RuntimeInfoError { None = ErrorCode.None, @@ -31,6 +33,7 @@ namespace Tizen.System NoData = ErrorCode.NoData } + [EditorBrowsable(EditorBrowsableState.Never)] internal static class RuntimeInfoErrorFactory { internal const string LogTag = "Tizen.System.RuntimeInformation"; diff --git a/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs b/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs index 0d27ab4..3431120 100755 --- a/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs +++ b/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.ComponentModel; namespace Tizen.System { @@ -143,11 +144,7 @@ namespace Tizen.System [RuntimeInformationKey.AudioJackConnector] = typeof(int) }; - /// - /// This function gets current state of the given key which represents specific runtime information - /// - /// The runtime information key for which the current should be read - /// The current status of the given key + [EditorBrowsable(EditorBrowsableState.Never)] internal static object GetStatus(RuntimeInformationKey key) { Type value; diff --git a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs old mode 100644 new mode 100755 index 4d06261..83fcbe8 --- a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs +++ b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs @@ -15,6 +15,7 @@ */ using System; +using System.ComponentModel; namespace Tizen.System { @@ -25,6 +26,7 @@ namespace Tizen.System { private const string LogTag = "Tizen.System"; + [EditorBrowsable(EditorBrowsableState.Never)] private static Interop.SystemInfo.SystemInfoType GetValueType(string key, out Interop.SystemInfo.SystemInfoValueType valueType) { Interop.SystemInfo.ErrorCode err = Interop.SystemInfo.SystemInfoGetPlatformType(key, out valueType); -- 2.7.4