From b83ae7833f646447f4791e4957c71fec930b5bd5 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Wed, 6 Sep 2017 19:14:25 +0900 Subject: [PATCH] [Context] Add related feature & Add Context dll to wearable Change-Id: I9c9cfc57ed4ff414c35a31a9c68e992cdbdaf6ed Signed-off-by: Somin Kim --- pkg/PlatformFileList.txt | 2 +- .../Tizen.Context.AppHistory/BatteryStatistics.cs | 13 +++++++++++-- .../Tizen.Context.AppHistory/UsageStatistics.cs | 8 ++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/pkg/PlatformFileList.txt b/pkg/PlatformFileList.txt index 5026b09..0b4ab6c 100644 --- a/pkg/PlatformFileList.txt +++ b/pkg/PlatformFileList.txt @@ -28,7 +28,7 @@ Tizen.Applications.WidgetControl.dll #mobile #mobile-emul #tv #ivi Tizen.Content.Download.dll #common #mobile #mobile-emul #tv #ivi #wearable Tizen.Content.MediaContent.dll #common #mobile #mobile-emul #tv #ivi #wearable Tizen.Content.MimeType.dll #common #mobile #mobile-emul #tv #ivi #wearable -Tizen.Context.dll #mobile #mobile-emul +Tizen.Context.dll #mobile #mobile-emul #wearable Tizen.Convergence.dll #common #mobile #mobile-emul #ivi #wearable Tizen.dll #common #mobile #mobile-emul #tv #ivi #wearable Tizen.Location.dll #mobile #mobile-emul #tv #ivi #wearable diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs index f820525..7f62590 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/BatteryStatistics.cs @@ -29,9 +29,10 @@ namespace Tizen.Context.AppHistory /// /// The default constructor of BatteryStatistics class. /// + /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery /// Thrown when method fail due to internal error. - /// Thrown when the statistics is not supported. + /// Thrown when the features are not supported. public BatteryStatistics() { SortOrder = SortOrderType.ConsumptionMost; @@ -54,10 +55,11 @@ namespace Tizen.Context.AppHistory /// The constructor of BatteryStatistics class. /// /// The criteria of the battery statistics sorted by. + /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery /// Thrown when an invalid argument is used. /// Thrown when method fail due to internal error. - /// Thrown when the statistics is not supported. + /// Thrown when the features are not supported. public BatteryStatistics(SortOrderType order) { SortOrder = order; @@ -88,8 +90,11 @@ namespace Tizen.Context.AppHistory /// The end time of the data to be aggregated. /// Battery statistics data retrieved. /// http://tizen.org/privilege/apphistory.read + /// http://tizen.org/feature/app_history + /// http://tizen.org/feature/battery /// Thrown when an invalid argument is used. /// Thrown when invalid operation occurs. + /// Thrown when the features are not supported. /// Thrown when the app has no privilege to retrieve app history. public IReadOnlyList Query(DateTime startTime, DateTime endTime) { @@ -106,8 +111,11 @@ namespace Tizen.Context.AppHistory /// The number of data records to be retrieved. /// Battery statistics data retrieved. /// http://tizen.org/privilege/apphistory.read + /// http://tizen.org/feature/app_history + /// http://tizen.org/feature/battery /// Thrown when an invalid argument is used. /// Thrown when invalid operation occurs. + /// Thrown when the features are not supported. /// Thrown when the app has no privilege to retrieve app history. public IReadOnlyList Query(DateTime startTime, DateTime endTime, uint resultSize) { @@ -146,6 +154,7 @@ namespace Tizen.Context.AppHistory /// Gets the last time when the device was fully charged. /// /// The last time when the device was fully charged. + /// http://tizen.org/feature/app_history /// http://tizen.org/feature/battery /// Thrown when the statistics is not supported. public static DateTime GetLastFullyChargedTime() diff --git a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs index a23d820..9a96f29 100644 --- a/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs +++ b/src/Tizen.Context/Tizen.Context.AppHistory/UsageStatistics.cs @@ -31,7 +31,9 @@ namespace Tizen.Context.AppHistory /// /// The default constructor of UsageStatistics class. /// + /// http://tizen.org/feature/app_history /// Thrown when method fail due to internal error. + /// Thrown when the feature is not supported. public UsageStatistics() { SortOrder = SortOrderType.LastLaunchTimeNewest; @@ -54,8 +56,10 @@ namespace Tizen.Context.AppHistory /// The constructor of UsageStatistics class. /// /// The criteria of the usage statistics sorted by. + /// http://tizen.org/feature/app_history /// Thrown when an invalid argument is used. /// Thrown when method fail due to internal error. + /// Thrown when the feature is not supported. public UsageStatistics(SortOrderType order) { SortOrder = order; @@ -86,8 +90,10 @@ namespace Tizen.Context.AppHistory /// The end time of the data to be aggregated. /// Usage statistics data retrieved. /// http://tizen.org/privilege/apphistory.read + /// http://tizen.org/feature/app_history /// Thrown when an invalid argument is used. /// Thrown when invalid operation occurs. + /// Thrown when the feature is not supported. /// Thrown when the app has no privilege to retrieve app history. public IReadOnlyList Query(DateTime startTime, DateTime endTime) { @@ -104,8 +110,10 @@ namespace Tizen.Context.AppHistory /// The number of data records to be retrieved. /// Usage statistics data retrieved. /// http://tizen.org/privilege/apphistory.read + /// http://tizen.org/feature/app_history /// Thrown when an invalid argument is used. /// Thrown when invalid operation occurs. + /// Thrown when the feature is not supported. /// Thrown when the app has no privilege to retrieve app history. public IReadOnlyList Query(DateTime startTime, DateTime endTime, uint resultSize) { -- 2.7.4