Debian Codegraph @

core/java/com/android/internal/inputmethod/DirectBootAwareness.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2021 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.inputmethod;
18
19
20 import static java.lang.annotation.RetentionPolicy.SOURCE;
21
22 import android.annotation.IntDef;
23
24 import java.lang.annotation.Retention;
25
26 /**
27 * Specifies the decided filtering mode regarding IMEs' DirectBoot awareness when querying IMEs.
28 */
29 @Retention(SOURCE)
30 @IntDef({DirectBootAwareness.AUTO, DirectBootAwareness.ANY})
31 public @interface DirectBootAwareness {
32 /**
33 * The same semantics as {@link android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AUTO}, that
34 * is, if the user to be queried is still locked, then only DirectBoot-aware IMEs will be
35 * matched. If the user to be queried is already unlocked, then IMEs will not be filtered out
36 * based on their DirectBoot awareness.
37 */
38 int AUTO = 0;
39 /**
40 * The same semantics as specifying <strong>both</strong>
41 * {@link android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE} and
42 * {@link android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE}, that is, IME will never
43 * be filtered out based on their DirectBoot awareness, no matter whether the user to be queried
44 * is still locked or already unlocked.
45 */
46 int ANY = 1;
47 }