1 /*
2  * Copyright (C) 2019 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.os;
18 
19 /**
20  * Flag names for configuring the zygote.
21  *
22  * @hide
23  */
24 public class ZygoteConfig {
25 
26     /** If {@code true}, enables the unspecialized app process (USAP) pool feature */
27     public static final String USAP_POOL_ENABLED = "usap_pool_enabled";
28 
29     /** The threshold used to determine if the pool should be refilled */
30     public static final String USAP_POOL_REFILL_THRESHOLD = "usap_refill_threshold";
31 
32     /** The maximum number of processes to keep in the USAP pool */
33     public static final String USAP_POOL_SIZE_MAX = "usap_pool_size_max";
34 
35     /** The minimum number of processes to keep in the USAP pool */
36     public static final String USAP_POOL_SIZE_MIN = "usap_pool_size_min";
37 
38     /** The number of milliseconds to delay before refilling the USAP pool */
39     public static final String USAP_POOL_REFILL_DELAY_MS = "usap_pool_refill_delay_ms";
40 }
41