From 6c5b214b20d3031b43f330aaef1fe79587c49be4 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Tue, 12 Sep 2017 10:29:16 +0900 Subject: [PATCH] Coding rule: fix coding rule violation Change-Id: I6517862308811fefe2bf9f8fe633e947347a9b85 Signed-off-by: lokilee73 --- include/battery.h | 10 +++++----- include/callback.h | 12 ++++++------ include/device.h | 8 ++++---- include/display.h | 9 ++++----- include/led.h | 4 ++-- include/power.h | 6 +++--- src/common.c | 2 +- 7 files changed, 25 insertions(+), 26 deletions(-) mode change 100644 => 100755 include/callback.h mode change 100644 => 100755 include/led.h mode change 100644 => 100755 src/common.c diff --git a/include/battery.h b/include/battery.h index 07e961c..f6c1d2c 100755 --- a/include/battery.h +++ b/include/battery.h @@ -39,11 +39,11 @@ extern "C" { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */ - DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */ - DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */ - DEVICE_BATTERY_LEVEL_HIGH, /**< The battery status is not to be careful. */ - DEVICE_BATTERY_LEVEL_FULL, /**< The battery status is fully charged. It means no more charge. */ + DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */ + DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */ + DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */ + DEVICE_BATTERY_LEVEL_HIGH, /**< The battery status is not to be careful. */ + DEVICE_BATTERY_LEVEL_FULL, /**< The battery status is fully charged. It means no more charge. */ } device_battery_level_e; diff --git a/include/callback.h b/include/callback.h old mode 100644 new mode 100755 index ee06cc7..ba269c0 --- a/include/callback.h +++ b/include/callback.h @@ -39,12 +39,12 @@ extern "C" { * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */ - DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */ - DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */ - DEVICE_CALLBACK_DISPLAY_STATE, /**< Called when a display state is changed */ - DEVICE_CALLBACK_FLASH_BRIGHTNESS, /**< Called when a flash brightness is changed (Since Tizen @if Mobile 2.4 @elseif WEARABLE 3.0 @endif) */ - DEVICE_CALLBACK_MAX + DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */ + DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */ + DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */ + DEVICE_CALLBACK_DISPLAY_STATE, /**< Called when a display state is changed */ + DEVICE_CALLBACK_FLASH_BRIGHTNESS, /**< Called when a flash brightness is changed (Since Tizen @if Mobile 2.4 @elseif WEARABLE 3.0 @endif) */ + DEVICE_CALLBACK_MAX } device_callback_e; diff --git a/include/device.h b/include/device.h index d2e31da..38d5326 100755 --- a/include/device.h +++ b/include/device.h @@ -11,7 +11,7 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. */ @@ -70,14 +70,14 @@ int device_get_display_numbers(int* device_number); int device_get_brightness(int display_index, int *brightness); /** - * @brief Sets the display brightness value. + * @brief Sets the display brightness value. * * @param[in] display_index The index of the display, it be greater than or equal to 0 and less than \n * the number of displays returned by device_get_display_numbers().\n * The index zero is always assigned to the main display. * @param[in] brightness The new brightness value to set \n * The maximum value can be represented by device_get_max_brightness() - * + * * @return 0 on success, otherwise a negative error value. * @retval #DEVICE_ERROR_NONE Successful * @retval #DEVICE_ERROR_INVALID_PARAMETER Invalid parameter @@ -92,7 +92,7 @@ int device_get_brightness(int display_index, int *brightness); int device_set_brightness(int display_index, int brightness); /** - * @brief Gets the maximum brightness value that can be set. + * @brief Gets the maximum brightness value that can be set. * * @param[in] display_index The index of the display, it be greater than or equal to 0 and less than \n * the number of displays returned by device_get_display_numbers().\n diff --git a/include/display.h b/include/display.h index 6dc41c2..2b42674 100755 --- a/include/display.h +++ b/include/display.h @@ -123,11 +123,10 @@ int device_display_set_brightness(int display_index, int brightness); * @brief Enumeration for the available display states. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ - DISPLAY_STATE_NORMAL, /**< Normal state */ - DISPLAY_STATE_SCREEN_DIM, /**< @if TV @internal @endif Screen dim state */ - DISPLAY_STATE_SCREEN_OFF, /**< Screen off state */ +typedef enum { + DISPLAY_STATE_NORMAL, /**< Normal state */ + DISPLAY_STATE_SCREEN_DIM, /**< @if TV @internal @endif Screen dim state */ + DISPLAY_STATE_SCREEN_OFF, /**< Screen off state */ } display_state_e; diff --git a/include/led.h b/include/led.h old mode 100644 new mode 100755 index 2463f2d..c8e1bda --- a/include/led.h +++ b/include/led.h @@ -94,8 +94,8 @@ int device_flash_set_brightness(int brightness); * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef enum { - LED_CUSTOM_DUTY_ON = 1 << 0, /**< blink LED */ - LED_CUSTOM_DEFAULT = (LED_CUSTOM_DUTY_ON), /**< Default flag */ + LED_CUSTOM_DUTY_ON = 1 << 0, /**< blink LED */ + LED_CUSTOM_DEFAULT = (LED_CUSTOM_DUTY_ON), /**< Default flag */ } led_custom_flags; diff --git a/include/power.h b/include/power.h index 28bfbe4..d0731fe 100755 --- a/include/power.h +++ b/include/power.h @@ -53,9 +53,9 @@ extern "C" { * @remarks You cannot combine with an enum below. */ typedef enum { - POWER_LOCK_CPU, /**< CPU lock */ - POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ - POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ + POWER_LOCK_CPU, /**< CPU lock */ + POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ + POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */ } power_lock_e; diff --git a/src/common.c b/src/common.c old mode 100644 new mode 100755 index 63481dc..c6fd0a1 --- a/src/common.c +++ b/src/common.c @@ -160,4 +160,4 @@ tizen_profile_t _get_tizen_profile() free(profileName); return profile; -} \ No newline at end of file +} -- 2.7.4