• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 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.common;
18 
19 /**
20  * Utilities for search implementations.
21  *
22  * @see android.app.SearchManager
23  */
24 public class Search {
25 
26     /**
27      * Key for the source identifier set by the application that launched a search intent.
28      * The identifier is search-source specific string. It can be used
29      * by the search provider to keep statistics of where searches are started from.
30      *
31      * The source identifier is stored in the {@link android.app.SearchManager#APP_DATA}
32      * Bundle in {@link android.content.Intent#ACTION_SEARCH} and
33      * {@link android.content.Intent#ACTION_WEB_SEARCH} intents.
34      */
35     public final static String SOURCE = "source";
36 
37     /**
38      * Column name for suggestions cursor. <i>Optional.</i> This column may be
39      * used to specify the time in {@link System#currentTimeMillis
40      * System.currentTimeMillis()} (wall time in UTC) when an item was last
41      * accessed within the results-providing application. If set, this may be
42      * used to show more-recently-used items first.
43      *
44      * See {@code SearchManager.SUGGEST_COLUMN_LAST_ACCESS_HINT} in ICS.
45      */
46     public final static String SUGGEST_COLUMN_LAST_ACCESS_HINT = "suggest_last_access_hint";
47 
Search()48     private Search() { }   // don't instantiate
49 }
50