From: Kichan Kwon Date: Wed, 10 May 2017 02:07:27 +0000 (+0900) Subject: Add comments mainly about exception type X-Git-Tag: submit/trunk/20170823.075128~106^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc4aa859cd77a5c9f7c72bff1f9656846fc70c53;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add comments mainly about exception type - Other comments including privilege are also added Change-Id: Iac04a83eb98176f582b8a93335d752cabc78c032 Signed-off-by: Kichan Kwon --- diff --git a/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs b/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs index 2b70515..34fba9f 100755 --- a/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs +++ b/src/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs @@ -241,6 +241,7 @@ namespace Tizen.System /// The generic type to validate. /// The runtime information key for which the status type is validated /// true if the data type matches. + /// Thrown when the is invalid. public static bool Is(RuntimeInformationKey key) { if (!s_keyDataTypeMapping.ContainsKey(key)) @@ -259,14 +260,18 @@ namespace Tizen.System /// The generic type to return. /// The runtime information key for which the current should be read /// The current status of the given key. + /// Thrown when the is invalid or I/O error is occurred while reading from system. + /// Thrown when the feature related is not supported. public static T GetStatus(RuntimeInformationKey key) { return (T)GetStatus(key); } /// - /// The System memory information + /// Gets system memory information /// + /// The system memory information structure. + /// Thrown when I/O error is occurred while reading from system. public static SystemMemoryInformation GetSystemMemoryInformation() { Interop.RuntimeInfo.MemoryInfo info = new Interop.RuntimeInfo.MemoryInfo(); @@ -285,6 +290,10 @@ namespace Tizen.System /// /// List of unique process ids /// List of memory information per processes + /// http://tizen.org/privilege/systemmonitor + /// Thrown when the is empty or I/O error is occurred while reading from system or requesting to resource management daemon. + /// Thrown when the memory is not enough to allocate. + /// Thrown when caller doesn't have a privilege to use this method. public static IDictionary GetProcessMemoryInformation(IEnumerable pid) { int[] processArray = pid.ToArray(); @@ -309,8 +318,10 @@ namespace Tizen.System } /// - /// The CPU runtime + /// Gets system CPU usage time /// + /// The system CPU usage time structure. + /// Thrown when I/O error is occurred while reading from system. public static CpuUsage GetCpuUsage() { Interop.RuntimeInfo.CpuUsage usage = new Interop.RuntimeInfo.CpuUsage(); @@ -324,10 +335,14 @@ namespace Tizen.System } /// - /// The CPU run time per process + /// Gets the CPU usage time per process /// /// List of unique process ids /// List of CPU usage information per processes + /// http://tizen.org/privilege/systemmonitor + /// Thrown when the is empty or I/O error is occurred while reading from system or requesting to resource management daemon. + /// Thrown when the memory is not enough to allocate. + /// Thrown when caller doesn't have a privilege to use this method. public static IDictionary GetProcessCpuUsage(IEnumerable pid) { int[] processArray = pid.ToArray(); @@ -352,8 +367,10 @@ namespace Tizen.System } /// - /// The number of processors + /// Gets the number of processors /// + /// The number of processors + /// Thrown when I/O error is occurred while reading from system. public static int ProcessorCount { get @@ -375,6 +392,8 @@ namespace Tizen.System /// /// The index (from 0) of CPU core that you want to know the frequency /// The current frequency(MHz) of processor + /// Thrown when the is invalid or I/O error is occurred while reading from system. + /// Thrown when this system doesn't store CPU current frequency. public static int GetProcessorCurrentFrequency(int coreId) { int frequency; @@ -392,6 +411,8 @@ namespace Tizen.System /// /// The index (from 0) of CPU core that you want to know the frequency /// The max frequency(MHz) of processor + /// Thrown when the is invalid or I/O error is occurred while reading from system. + /// Thrown when this system doesn't store CPU max frequency. public static int GetProcessorMaxFrequency(int coreId) { int frequency;