summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-02-10 07:27:25 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-10 07:27:27 -0800
commit92691e075b884cb026c0e9ba6ac1ae5f80a4d861 (patch)
treebb11de5134ff4847c90099528f9d68b606d7520c
parentd2391faa5d21a7513f321c03da0945277e291ad7 (diff)
parent9bc82c35316cceb746906b6f0e4a7bfbbe32cf62 (diff)
downloadframeworks_base-92691e075b884cb026c0e9ba6ac1ae5f80a4d861.zip
frameworks_base-92691e075b884cb026c0e9ba6ac1ae5f80a4d861.tar.gz
frameworks_base-92691e075b884cb026c0e9ba6ac1ae5f80a4d861.tar.bz2
Merge "Add Search.SOURCE to android-common"
-rw-r--r--common/java/com/android/common/Search.java38
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
+}