Coding rule: fix coding rule violation 88/149188/1 accepted/tizen/4.0/unified/20170912.192741 submit/tizen_4.0/20170912.014631 tizen_4.0.IoT.p1_release
authorlokilee73 <changjoo.lee@samsung.com>
Tue, 12 Sep 2017 01:29:16 +0000 (10:29 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Tue, 12 Sep 2017 01:29:22 +0000 (10:29 +0900)
Change-Id: I6517862308811fefe2bf9f8fe633e947347a9b85
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
include/battery.h
include/callback.h [changed mode: 0644->0755]
include/device.h
include/display.h
include/led.h [changed mode: 0644->0755]
include/power.h
src/common.c [changed mode: 0644->0755]

index 07e961c..f6c1d2c 100755 (executable)
@@ -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;
 
 
old mode 100644 (file)
new mode 100755 (executable)
index ee06cc7..ba269c0
@@ -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;
 
 
index d2e31da..38d5326 100755 (executable)
@@ -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
index 6dc41c2..2b42674 100755 (executable)
@@ -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;
 
 
old mode 100644 (file)
new mode 100755 (executable)
index 2463f2d..c8e1bda
@@ -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;
 
 
index 28bfbe4..d0731fe 100755 (executable)
@@ -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;
 
 
old mode 100644 (file)
new mode 100755 (executable)
index 63481dc..c6fd0a1
@@ -160,4 +160,4 @@ tizen_profile_t _get_tizen_profile()
        free(profileName);
 
        return profile;
-}
\ No newline at end of file
+}