diff --git a/entry/src/main/java/rebus/permissionutils/sample/AttrValue.java b/entry/src/main/java/rebus/permissionutils/sample/AttrValue.java index 55c1095a8d059194e4208d5b48c600cf3aa89706..47d3afd79e407beb3a2992c91c660bb74692a726 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/AttrValue.java +++ b/entry/src/main/java/rebus/permissionutils/sample/AttrValue.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/FragmentAbility.java b/entry/src/main/java/rebus/permissionutils/sample/FragmentAbility.java index 6f62550fb4f5f02be3b5594eb3c8edc37e8bda14..ec342b5136e61b6bd0b6862ad243db3f0a98c740 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/FragmentAbility.java +++ b/entry/src/main/java/rebus/permissionutils/sample/FragmentAbility.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/InfoDialog.java b/entry/src/main/java/rebus/permissionutils/sample/InfoDialog.java index 24a38f016e8a2bd78d4c244bed1c7b70336bc6ec..44320f3105dc850ac51e1bf200eb7e91ab0b5f2e 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/InfoDialog.java +++ b/entry/src/main/java/rebus/permissionutils/sample/InfoDialog.java @@ -2,7 +2,7 @@ * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/ListDialog.java b/entry/src/main/java/rebus/permissionutils/sample/ListDialog.java index c7d1a4add058016f679887156355be84cedacc4e..7678693a63fe2d2124ed0653543f06e788c5e53b 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/ListDialog.java +++ b/entry/src/main/java/rebus/permissionutils/sample/ListDialog.java @@ -2,7 +2,7 @@ * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/ListProvider.java b/entry/src/main/java/rebus/permissionutils/sample/ListProvider.java index 304ed76c0e1f23fa38fa6173ec557508e9bd427d..de12ce67b70d9f9c7bdf8bdf6df144487e7e2e5a 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/ListProvider.java +++ b/entry/src/main/java/rebus/permissionutils/sample/ListProvider.java @@ -1,9 +1,8 @@ - /* * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/LogUtils.java b/entry/src/main/java/rebus/permissionutils/sample/LogUtils.java index f892082cceb875ac9f27fefd097bcf677f4a657a..f90dfe9e9db1599bf34baa425b0350282bc53df7 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/LogUtils.java +++ b/entry/src/main/java/rebus/permissionutils/sample/LogUtils.java @@ -2,7 +2,7 @@ * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/MainAbility.java b/entry/src/main/java/rebus/permissionutils/sample/MainAbility.java index 2e4def2b5681d86cc2251036c0ed8a31a7beeffe..344318bfd20aeb996872f1b1bea04f39dc6a5b9e 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/MainAbility.java +++ b/entry/src/main/java/rebus/permissionutils/sample/MainAbility.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/MainFraction.java b/entry/src/main/java/rebus/permissionutils/sample/MainFraction.java index ab7aaed9d68efa5e0cf09b2068ecff954d26d2b8..a71386dfbfc0b85c1c7781dda6a1b669c426eba9 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/MainFraction.java +++ b/entry/src/main/java/rebus/permissionutils/sample/MainFraction.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/MyApplication.java b/entry/src/main/java/rebus/permissionutils/sample/MyApplication.java index 0d0e469a6cd93b8650a8d36a98f30c4daabebf92..8af42a4c5091fd18013d8b9b3360cc27baff47e3 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/MyApplication.java +++ b/entry/src/main/java/rebus/permissionutils/sample/MyApplication.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/OnItemClicker.java b/entry/src/main/java/rebus/permissionutils/sample/OnItemClicker.java index 45a3ccf09652c9e0ef571c2cb34ba1d58d5ac9df..73fbdae6c880c6eaf957479ca4146df5cd84c6bd 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/OnItemClicker.java +++ b/entry/src/main/java/rebus/permissionutils/sample/OnItemClicker.java @@ -2,7 +2,7 @@ * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/RequestPermission.java b/entry/src/main/java/rebus/permissionutils/sample/RequestPermission.java index 4f59607e4cb7b876637826d973d172e9570c3d31..f6aca74042b4546b48560650fc319e9aa6f42073 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/RequestPermission.java +++ b/entry/src/main/java/rebus/permissionutils/sample/RequestPermission.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 diff --git a/entry/src/main/java/rebus/permissionutils/sample/SuperButton.java b/entry/src/main/java/rebus/permissionutils/sample/SuperButton.java index 3bbb3030d1b41e43aee5321424e2110cf7792e32..a93d5e2f3a7c6c1018f2e43c81b961faaf35f5fd 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/SuperButton.java +++ b/entry/src/main/java/rebus/permissionutils/sample/SuperButton.java @@ -2,7 +2,7 @@ * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/slice/FragmentAbilitySlice.java b/entry/src/main/java/rebus/permissionutils/sample/slice/FragmentAbilitySlice.java index 637be0ba02926c698cd1edaeb38f448f1ffae2da..9e0bcad44aa19d6ba165fd59606eff40225f51b6 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/slice/FragmentAbilitySlice.java +++ b/entry/src/main/java/rebus/permissionutils/sample/slice/FragmentAbilitySlice.java @@ -1,8 +1,8 @@ /* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. + * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/main/java/rebus/permissionutils/sample/slice/MainAbilitySlice.java b/entry/src/main/java/rebus/permissionutils/sample/slice/MainAbilitySlice.java index 43985ace375fab394362e604a605c79ad8cb6679..cc9b464037149f88b0b8a8076f9c78c6dce731c0 100644 --- a/entry/src/main/java/rebus/permissionutils/sample/slice/MainAbilitySlice.java +++ b/entry/src/main/java/rebus/permissionutils/sample/slice/MainAbilitySlice.java @@ -1,8 +1,8 @@ /* - * Copyright (C) 2021 The Chinese Software International Co., Ltd. + * 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 an copy of the License at + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * diff --git a/entry/src/ohosTest/java/rebus/permissionutils/sample/ExampleOhosTest.java b/entry/src/ohosTest/java/rebus/permissionutils/sample/ExampleOhosTest.java index cee1c320d225aebcdd792a00776ad1d626ab1255..c30f6fff7d991683e3197ab702f659e7b82c0606 100644 --- a/entry/src/ohosTest/java/rebus/permissionutils/sample/ExampleOhosTest.java +++ b/entry/src/ohosTest/java/rebus/permissionutils/sample/ExampleOhosTest.java @@ -2,8 +2,8 @@ * 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 an copy of the License at - + * 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 @@ -38,7 +38,7 @@ public class ExampleOhosTest { } @Test - public void isGranted(){ + public void isGranted(){ boolean granted = PermissionUtils.isGranted(AbilityDelegatorRegistry.getAbilityDelegator().getCurrentTopAbility(), PermissionEnum.WRITE_EXTERNAL_STORAGE); assertFalse(granted); }