1 /*
2  * Copyright (C) 2020 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.internal.pm.pkg.component;
18 
19 import android.annotation.NonNull;
20 import android.annotation.SuppressLint;
21 import android.content.pm.ApplicationInfo;
22 import android.util.ArrayMap;
23 
24 import java.util.Set;
25 
26 /** @hide */
27 //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)
28 public interface ParsedProcess {
29 
30     @NonNull
getDeniedPermissions()31     Set<String> getDeniedPermissions();
32 
33     @ApplicationInfo.GwpAsanMode
getGwpAsanMode()34     int getGwpAsanMode();
35 
36     @ApplicationInfo.MemtagMode
getMemtagMode()37     int getMemtagMode();
38 
39     @NonNull
getName()40     String getName();
41 
42     /**
43      * The app class names in this (potentially shared) process, from a package name to
44      * the application class name.
45      * It's a map, because in shared processes, different packages can have different application
46      * classes.
47      */
48     @SuppressLint("ConcreteCollection")
49     @NonNull
getAppClassNamesByPackage()50     ArrayMap<String, String> getAppClassNamesByPackage();
51 
52     @ApplicationInfo.NativeHeapZeroInitialized
getNativeHeapZeroInitialized()53     int getNativeHeapZeroInitialized();
54 
isUseEmbeddedDex()55     boolean isUseEmbeddedDex();
56 }
57