From 88e6dd6a348bfa528b2e63b8401944dc3e526eec Mon Sep 17 00:00:00 2001 From: Kiran Ramachandra Date: Tue, 6 Feb 2024 19:21:30 +0000 Subject: Renamed PermissionState to reuse in SystemAPI The class `PermissionState` is being used in ag/26066306 as SystemAPI. Hence renaming this to an unused class, which will be cleaned up in a follow up CL. Effort to rename as well as recuse in single CL has failed in pre-submit with the error `FAILED: out/soong/hiddenapi/hiddenapi-stub-flags.txt` and `Class duplication: Landroid/permission/PermissionState`. Hence, created this CL separately to rename first. Bug: 322876542 Test: manual Change-Id: I44dcf2c8a2b0ba1fd9f9e9e4492f1bc4d7566b21 --- .../java/android/permission/PermissionState.java | 22 ---------------------- .../android/permission/PermissionStateUnused.java | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 framework/java/android/permission/PermissionState.java create mode 100644 framework/java/android/permission/PermissionStateUnused.java (limited to 'framework/java') diff --git a/framework/java/android/permission/PermissionState.java b/framework/java/android/permission/PermissionState.java deleted file mode 100644 index e810db8ec..000000000 --- a/framework/java/android/permission/PermissionState.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2020 The Android Open Source Project - * - * 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 android.permission; - -/** - * @hide - */ -public class PermissionState {} diff --git a/framework/java/android/permission/PermissionStateUnused.java b/framework/java/android/permission/PermissionStateUnused.java new file mode 100644 index 000000000..21b21cc27 --- /dev/null +++ b/framework/java/android/permission/PermissionStateUnused.java @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2020 The Android Open Source Project + * + * 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 android.permission; + +/** + * @hide + */ +public class PermissionStateUnused {} -- cgit v1.2.3-59-g8ed1b