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.systemui.shared.system; 18 19 /** 20 * These strings are part of the {@link com.android.systemui.people.PeopleProvider} API 21 * contract. The API returns a People Tile preview that can be displayed by calling packages. 22 * The provider is part of the SystemUI service, and the strings live here for shared access with 23 * Launcher (caller). 24 */ 25 public class PeopleProviderUtils { 26 /** 27 * ContentProvider URI scheme. 28 * @hide 29 */ 30 public static final String PEOPLE_PROVIDER_SCHEME = "content://"; 31 32 /** 33 * ContentProvider URI authority. 34 * @hide 35 */ 36 public static final String PEOPLE_PROVIDER_AUTHORITY = 37 "com.android.systemui.people.PeopleProvider"; 38 39 /** 40 * Method name for getting People Tile preview. 41 * @hide 42 */ 43 public static final String GET_PEOPLE_TILE_PREVIEW_METHOD = "get_people_tile_preview"; 44 45 /** 46 * Extras bundle key specifying shortcut Id of the People Tile preview requested. 47 * @hide 48 */ 49 public static final String EXTRAS_KEY_SHORTCUT_ID = "shortcut_id"; 50 51 /** 52 * Extras bundle key specifying package name of the People Tile preview requested. 53 * @hide 54 */ 55 public static final String EXTRAS_KEY_PACKAGE_NAME = "package_name"; 56 57 /** 58 * Extras bundle key specifying {@code UserHandle} of the People Tile preview requested. 59 * @hide 60 */ 61 public static final String EXTRAS_KEY_USER_HANDLE = "user_handle"; 62 63 /** 64 * Response bundle key to access the returned People Tile preview. 65 * @hide 66 */ 67 public static final String RESPONSE_KEY_REMOTE_VIEWS = "remote_views"; 68 69 /** 70 * Name of the permission needed to get a People Tile preview for a given conversation shortcut. 71 * @hide 72 */ 73 public static final String GET_PEOPLE_TILE_PREVIEW_PERMISSION = 74 "android.permission.GET_PEOPLE_TILE_PREVIEW"; 75 76 } 77