1 /* 2 * Copyright (C) 2018 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.app.prediction; 18 19 /** 20 * Constants to be used with {@link android.app.prediction.AppPredictor}. 21 */ 22 public class Constants { 23 24 /** 25 * UI surface for predictions displayed on the user's home screen 26 */ 27 public static final String UI_SURFACE_HOME = "home"; 28 29 /** 30 * UI surface for predictions displayed on the recents/task switcher view 31 */ 32 public static final String UI_SURFACE_RECENTS = "recents"; 33 34 /** 35 * UI surface for predictions displayed on the share sheet. 36 */ 37 public static final String UI_SURFACE_SHARE = "share"; 38 39 /** 40 * Location constant when an app target or shortcut is started from the apps list 41 */ 42 public static final String LAUNCH_LOCATION_APPS_LIST = "apps_list"; 43 44 /** 45 * Location constant when an app target or shortcut is started from the user's home screen 46 */ 47 public static final String LAUNCH_LOCATION_APPS_HOME = "home"; 48 49 /** 50 * Location constant when an app target or shortcut is started from task switcher 51 */ 52 public static final String LAUNCH_LOCATION_APPS_RECENTS = "recents"; 53 54 /** 55 * Location constant when an app target or shortcut is started in the share sheet while it is 56 * in collapsed state (showing a limited set of result). 57 */ 58 public static final String LAUNCH_LOCATION_APPS_SHARE_COLLAPSED = "share_collapsed"; 59 60 /** 61 * Location constant when an app target or shortcut is started in the share sheet while it is 62 * in expended state and showing all the results. 63 */ 64 public static final String LAUNCH_LOCATION_APPS_SHARE_EXPANDED = "shared_expanded"; 65 66 /** 67 * Location constant when an app target or shortcut is started in the share sheet when the 68 * target is displayed as a placeholder for an deprecated object. 69 */ 70 public static final String LAUNCH_LOCATION_APPS_SHARE_LEGACY = "share_legacy"; 71 } 72