Add Search.SOURCE to android-common
Part of http://b/issue?id=2429556 Change-Id: I1e37e092c8a1319d5f703b065dba8a6fbde31db5
This commit is contained in:
38
common/java/com/android/common/Search.java
Normal file
38
common/java/com/android/common/Search.java
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C) 2010 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.common;
|
||||
|
||||
/**
|
||||
* Utilities for search implementations.
|
||||
*
|
||||
* @see android.app.SearchManager
|
||||
*/
|
||||
public class Search {
|
||||
|
||||
/**
|
||||
* Key for the source identifier set by the application that launched a search intent.
|
||||
* The identifier is search-source specific string. It can be used
|
||||
* by the search provider to keep statistics of where searches are started from.
|
||||
*
|
||||
* The source identifier is stored in the {@link android.app.SearchManager#APP_DATA}
|
||||
* Bundle in {@link android.content.Intent#ACTION_SEARCH} and
|
||||
* {@link android.content.Intent#ACTION_WEB_SEARCH} intents.
|
||||
*/
|
||||
public final static String SOURCE = "source";
|
||||
|
||||
private Search() { } // don't instantiate
|
||||
}
|
||||
Reference in New Issue
Block a user