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.SearchAction; 20 21 /** 22 * Helper class that defines key string value for {@link SearchAction#getExtras()} 23 */ 24 public class SearchActionExtras { 25 public static final String BUNDLE_EXTRA_HIDE_SUBTITLE = "hide_subtitle"; 26 public static final String BUNDLE_EXTRA_HIDE_ICON = "hide_icon"; 27 public static final String BUNDLE_EXTRA_ALLOW_PINNING = "allow_pinning"; 28 public static final String BUNDLE_EXTRA_BADGE_WITH_PACKAGE = "badge_with_package"; 29 public static final String BUNDLE_EXTRA_PRIMARY_ICON_FROM_TITLE = "primary_icon_from_title"; 30 public static final String BUNDLE_EXTRA_IS_SEARCH_IN_APP = "is_search_in_app"; 31 public static final String BUNDLE_EXTRA_BADGE_WITH_COMPONENT_NAME = "badge_with_component_name"; 32 public static final String BUNDLE_EXTRA_ICON_CACHE_KEY = "icon_cache_key"; 33 public static final String BUNDLE_EXTRA_ICON_TOKEN_INTEGER = "icon_integer"; 34 public static final String BUNDLE_EXTRA_SHOULD_START = "should_start"; 35 public static final String BUNDLE_EXTRA_SHOULD_START_FOR_RESULT = "should_start_for_result"; 36 public static final String BUNDLE_EXTRA_SUGGESTION_ACTION_TEXT = "suggestion_action_text"; 37 public static final String BUNDLE_EXTRA_SUGGESTION_ACTION_RPC = "suggestion_action_rpc"; 38 public static final String BUNDLE_EXTRA_SKIP_LOGGING_IN_TARGET_HANDLER = 39 "skip_logging_in_target_handler"; 40 } 41