diff --git a/entry/src/main/java/com/dalimao/floateutil/MainAbility.java b/entry/src/main/java/com/dalimao/floateutil/MainAbility.java index f6a548bbb6bccb454f63bc9118d167ee502c8fe5..79645360c8b7334f06211643a4dff55cefda1706 100644 --- a/entry/src/main/java/com/dalimao/floateutil/MainAbility.java +++ b/entry/src/main/java/com/dalimao/floateutil/MainAbility.java @@ -37,11 +37,19 @@ public class MainAbility extends Ability { super.setMainRoute(MainAbilitySlice.class.getName()); } + /** + * onSaveAbilityState + * + * @param outState + */ @Override public void onSaveAbilityState(PacMap outState) { super.onSaveAbilityState(outState); } + /** + * onActive + */ @Override protected void onActive() { super.onActive(); diff --git a/entry/src/main/java/com/dalimao/floateutil/slice/MainAbilitySlice.java b/entry/src/main/java/com/dalimao/floateutil/slice/MainAbilitySlice.java index d214884d135700bd1e5b25e3eead4c3b06d6429f..ad41d99b7ac447a88685d3fc836526835264c282 100644 --- a/entry/src/main/java/com/dalimao/floateutil/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/dalimao/floateutil/slice/MainAbilitySlice.java @@ -56,7 +56,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL /** * onStart * - * @param intent + * @param intent intent */ @Override public void onStart(Intent intent) { @@ -89,7 +89,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL /** * onForeground * - * @param intent + * @param intent intent */ @Override public void onForeground(Intent intent) { @@ -99,7 +99,7 @@ public class MainAbilitySlice extends AbilitySlice implements Component.ClickedL /** * onClick * - * @param component + * @param component component */ @Override public void onClick(Component component) { diff --git a/library/src/main/java/com/dalimao/library/FloatUtil.java b/library/src/main/java/com/dalimao/library/FloatUtil.java index c00675104229e628d7b6dcf5f4a792b52c268f68..0a2442cf18ca1477e9a8cced0a395d6e2207ecca 100644 --- a/library/src/main/java/com/dalimao/library/FloatUtil.java +++ b/library/src/main/java/com/dalimao/library/FloatUtil.java @@ -116,7 +116,7 @@ public class FloatUtil { /** * 窗口高度 * - * @param height + * @param height 高度 */ public void setHeight(int height) { this.height = height; @@ -134,7 +134,7 @@ public class FloatUtil { /** * 窗口宽度 * - * @param width + * @param width 宽度 */ public void setWidth(int width) { this.width = width; diff --git a/library/src/main/java/com/dalimao/library/util/BignessUtil.java b/library/src/main/java/com/dalimao/library/util/BignessUtil.java index 02eea6d2e93fb0d37e089d8d3b53a5b7a21eba3b..9c15d5448b885d7e7114ba46ad85495d119591a2 100644 --- a/library/src/main/java/com/dalimao/library/util/BignessUtil.java +++ b/library/src/main/java/com/dalimao/library/util/BignessUtil.java @@ -46,7 +46,7 @@ public class BignessUtil { /** * setComponentList * - * @param component + * @param component component * @return List */ public static List setComponentList(WindowInfo component) { @@ -57,7 +57,7 @@ public class BignessUtil { /** * 获取屏幕密度 * - * @param context + * @param context context * @return DisplayAttributes */ public static DisplayAttributes getScreenPiex(Context context) { @@ -85,7 +85,7 @@ public class BignessUtil { /** * getStatusBar * - * @param context + * @param context 上下文 * @return float */ public static float getStatusBar(Context context) { @@ -96,7 +96,7 @@ public class BignessUtil { /** * 获取状态栏高度 * - * @param context + * @param context 上下文 * @return int */ public static int getStatusBarHeight(Context context) { @@ -113,7 +113,7 @@ public class BignessUtil { /** * 保存所有窗口view的实例 同一个 View 类,同时只能显示一个实例 * - * @param componentName + * @param componentName 类名称 * @return List */ public static List setInstanceComponent(WindowInfo componentName) { @@ -123,7 +123,7 @@ public class BignessUtil { /** * 当前实例 是否存在 * - * @param componentName + * @param componentName 类名 * @return boolean */ public static WindowInfo isExistComponent(WindowInfo componentName) { @@ -141,7 +141,7 @@ public class BignessUtil { /** * 删除实例 * - * @param componentName + * @param componentName 类名 */ public static void deleteExistComponent(WindowInfo componentName) { for (int index = 0; index < getComponentList().size(); index++) { diff --git a/library/src/main/java/com/dalimao/library/util/LogUtil.java b/library/src/main/java/com/dalimao/library/util/LogUtil.java index a03fe6bbca1a4a845e0061933080e872e7bb8ac6..3af656da2d4fce3513c530271543a7889b951b40 100644 --- a/library/src/main/java/com/dalimao/library/util/LogUtil.java +++ b/library/src/main/java/com/dalimao/library/util/LogUtil.java @@ -30,55 +30,60 @@ public final class LogUtil { private LogUtil() { } - /** info日志打印 + /** + * info日志打印 * - * @param tag - * @param format - * @param objects + * @param tag tag + * @param format format + * @param objects objects */ public static void info(String tag, String format, Object... objects) { HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP, DOMAIN, tag); HiLog.info(logLabel, format, objects); } - /** debug日志打印 + /** + * debug日志打印 * - * @param tag - * @param format - * @param objects + * @param tag tag + * @param format format + * @param objects objects */ public static void debug(String tag, String format, Object... objects) { HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP, DOMAIN, tag); HiLog.debug(logLabel, format, objects); } - /** error日志打印 + /** + * error日志打印 * - * @param tag - * @param format - * @param objects + * @param tag tag + * @param format format + * @param objects objects */ public static void error(String tag, String format, Object... objects) { HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP, DOMAIN, tag); HiLog.error(logLabel, format, objects); } - /** warn日志打印 + /** + * warn日志打印 * - * @param tag - * @param format - * @param objects + * @param tag tag + * @param format format + * @param objects objects */ public static void warn(String tag, String format, Object... objects) { HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP, DOMAIN, tag); HiLog.warn(logLabel, format, objects); } - /** fatal日志打印 + /** + * fatal日志打印 * - * @param tag - * @param format - * @param objects + * @param tag tag + * @param format format + * @param objects objects */ public static void fatal(String tag, String format, Object... objects) { HiLogLabel logLabel = new HiLogLabel(HiLog.LOG_APP, DOMAIN, tag); diff --git a/library/src/test/java/com/dalimao/floateutil/ExampleTest.java b/library/src/test/java/com/dalimao/floateutil/ExampleTest.java index fb673fb1228dd38cac0041d59c8ef60776a57a54..7b67b494295e50e462abd9c07e3c81f05b012df6 100644 --- a/library/src/test/java/com/dalimao/floateutil/ExampleTest.java +++ b/library/src/test/java/com/dalimao/floateutil/ExampleTest.java @@ -1,8 +1,30 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * 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. + */ + package com.dalimao.floateutil; import org.junit.Test; - +/** + * ExampleTest + * + * @since 2021-06-25 + */ public class ExampleTest { + /** + * onStart + */ @Test public void onStart() { }