1 /* 2 * Copyright (C) 2023 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.search; 18 19 import android.app.search.Query; 20 21 /** 22 * Utility class used to define implicit contract between aiai and launcher regarding 23 * what constant string key should be used to pass sub session information inside 24 * the {@link Query} object. 25 * 26 * This decorated query object is passed to aiai using two method calls: 27 * <ul> 28 * <ol>android.app.search.SearchSession.query()</ol> 29 * <ol>android.app.search.SearchSession.notifyEvent()</ol> 30 * </ul> 31 */ 32 public class QueryExtras { 33 34 // Can be either 1 (ALLAPPS) or 2 (QSB) 35 public static final String EXTRAS_KEY_ENTRY = "entry"; 36 37 // This value overrides the timeout that is defined inside {@link SearchContext#getTimeout} 38 public static final String EXTRAS_KEY_TIMEOUT_OVERRIDE = "timeout"; 39 40 // Used to know which target is deleted. 41 public static final String EXTRAS_BUNDLE_DELETED_TARGET_ID = "deleted_target_id"; 42 } 43