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 android.os.incremental;
18 
19 /**
20  * Max value is ~1hr = 3600s = 3600000ms = 3600000000us
21  * @hide
22  */
23 parcelable PerUidReadTimeouts {
24     /** UID to apply these timeouts to */
25     int uid;
26 
27     /**
28     * Min time to read any block. Note that this doesn't apply to reads
29     * which are satisfied from the page cache.
30     */
31     long minTimeUs;
32 
33     /**
34     * Min time to satisfy a pending read. Must be >= min_time_us. Any
35     * pending read which is filled before this time will be delayed so
36     * that the total read time >= this value.
37     */
38     long minPendingTimeUs;
39 
40     /**
41     * Max time to satisfy a pending read before the read times out.
42     * Must be >= min_pending_time_us
43     */
44     long maxPendingTimeUs;
45 }
46