diff options
author | Bjorn Bringert <bringert@android.com> | 2010-02-10 14:04:21 +0000 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2010-02-10 14:04:21 +0000 |
commit | 9bc82c35316cceb746906b6f0e4a7bfbbe32cf62 (patch) | |
tree | 94f00448cfa8c1b33add5798e09267910c3b92ea /common | |
parent | ca35953c9064114cb09181e8bffddb2f7c2d8d53 (diff) | |
download | frameworks_base-9bc82c35316cceb746906b6f0e4a7bfbbe32cf62.zip frameworks_base-9bc82c35316cceb746906b6f0e4a7bfbbe32cf62.tar.gz frameworks_base-9bc82c35316cceb746906b6f0e4a7bfbbe32cf62.tar.bz2 |
Add Search.SOURCE to android-common
Part of http://b/issue?id=2429556
Change-Id: I1e37e092c8a1319d5f703b065dba8a6fbde31db5
Diffstat (limited to 'common')
-rw-r--r-- | common/java/com/android/common/Search.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/java/com/android/common/Search.java b/common/java/com/android/common/Search.java new file mode 100644 index 0000000..55fa6f5 --- /dev/null +++ b/common/java/com/android/common/Search.java @@ -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 +} |