summaryrefslogtreecommitdiff
path: root/packages/AppPredictionLib/src/com/android/app/prediction/Constants.java
blob: 0993c9a13f990bf0867d3915252f8d94d4bb941f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.app.prediction;

/**
 * Constants to be used with {@link android.app.prediction.AppPredictor}.
 */
public class Constants {

    /**
     * UI surface for predictions displayed on the user's home screen
     */
    public static final String UI_SURFACE_HOME = "home";

    /**
     * UI surface for predictions displayed on the recents/task switcher view
     */
    public static final String UI_SURFACE_RECENTS = "recents";

    /**
     * UI surface for predictions displayed on the share sheet.
     */
    public static final String UI_SURFACE_SHARE = "share";

    /**
     * Location constant when an app target or shortcut is started from the apps list
     */
    public static final String LAUNCH_LOCATION_APPS_LIST = "apps_list";

    /**
     * Location constant when an app target or shortcut is started from the user's home screen
     */
    public static final String LAUNCH_LOCATION_APPS_HOME = "home";

    /**
     * Location constant when an app target or shortcut is started from task switcher
     */
    public static final String LAUNCH_LOCATION_APPS_RECENTS = "recents";

    /**
     * Location constant when an app target or shortcut is started in the share sheet while it is
     * in collapsed state (showing a limited set of result).
     */
    public static final String LAUNCH_LOCATION_APPS_SHARE_COLLAPSED = "share_collapsed";

    /**
     * Location constant when an app target or shortcut is started in the share sheet while it is
     * in expended state and showing all the results.
     */
    public static final String LAUNCH_LOCATION_APPS_SHARE_EXPANDED = "shared_expanded";

    /**
     * Location constant when an app target or shortcut is started in the share sheet when the
     * target is displayed as a placeholder for an deprecated object.
     */
    public static final String LAUNCH_LOCATION_APPS_SHARE_LEGACY = "share_legacy";
}