1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.server.pm.pkg.parsing; 18 19 import android.annotation.Nullable; 20 import android.content.pm.PackageInfo; 21 22 import com.android.internal.R; 23 24 /** 25 * Methods which would've been a part of {@link PkgWithoutStatePackageInfo} or {@link 26 * PkgWithoutStateAppInfo}, but are removed/deprecated. 27 * <p> 28 * This is different from {@link ParsingPackageHidden}. The methods in that interface cannot be 29 * accessed by anyone except the parsing utilities, whereas the methods in this interface are valid 30 * and can be accessed by any internal caller that needs it. 31 * 32 * @hide 33 */ 34 interface ParsingPackageInternal { 35 36 /** 37 * @see PackageInfo#overlayCategory 38 * @see R.styleable#AndroidManifestResourceOverlay_category 39 */ 40 @Nullable getOverlayCategory()41 String getOverlayCategory(); 42 43 /** 44 * @see PackageInfo#overlayPriority 45 * @see R.styleable#AndroidManifestResourceOverlay_priority 46 */ getOverlayPriority()47 int getOverlayPriority(); 48 49 /** 50 * @see PackageInfo#overlayTarget 51 * @see R.styleable#AndroidManifestResourceOverlay_targetPackage 52 */ 53 @Nullable getOverlayTarget()54 String getOverlayTarget(); 55 56 /** 57 * @see PackageInfo#targetOverlayableName 58 * @see R.styleable#AndroidManifestResourceOverlay_targetName 59 */ 60 @Nullable getOverlayTargetOverlayableName()61 String getOverlayTargetOverlayableName(); 62 63 /** 64 * @see PackageInfo#mOverlayIsStatic 65 */ isOverlayIsStatic()66 boolean isOverlayIsStatic(); 67 } 68