blob: bce0ec83671fd9e4003c18462123679cc7a8f2e8 [file] [log] [blame]
Siarhei Vishniakou70622952020-07-30 11:17:23 -05001/**
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
17package android.os;
18
19
20/** @hide */
21interface IInputConstants
22{
23 const int DEFAULT_DISPATCHING_TIMEOUT_MILLIS = 5000; // 5 seconds
Siarhei Vishniakou2508b872020-12-03 16:33:53 -100024
25 // Compatibility changes.
26 /**
27 * TODO(b/157929241): remove this before closing the bug. This is needed temporarily
28 * to identify apps that are using this flag.
29 */
30 const long BLOCK_FLAG_SLIPPERY = 157929241;
Siarhei Vishniakoufc434ac2021-01-13 10:28:00 -100031
32 // Indicate invalid battery capacity
33 const int INVALID_BATTERY_CAPACITY = -1;
34
35 /**
36 * Every input event has an id. This constant value is used when a valid input event id is not
37 * available.
38 */
39 const int INVALID_INPUT_EVENT_ID = 0;
Siarhei Vishniakou70622952020-07-30 11:17:23 -050040}