upload android base code part8
This commit is contained in:
parent
841ae54672
commit
5425409085
57075 changed files with 9846578 additions and 0 deletions
22
android/packages/apps/QuickSearchBox/res/values/colors.xml
Normal file
22
android/packages/apps/QuickSearchBox/res/values/colors.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<color name="search_hint">#808080</color>
|
||||
<color name="pane_background">#C0222233</color>
|
||||
|
||||
</resources>
|
115
android/packages/apps/QuickSearchBox/res/values/config.xml
Normal file
115
android/packages/apps/QuickSearchBox/res/values/config.xml
Normal file
|
@ -0,0 +1,115 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Names of corpora that are enabled by default in QSB.
|
||||
For external single-source corpora, the corpus name is the component name of the
|
||||
searchable activity. -->
|
||||
<string-array name="default_corpora" translatable="false">
|
||||
<item>web</item>
|
||||
<item>apps</item>
|
||||
<item>com.android.providers.applications/.ApplicationLauncher</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Suggestion URIs for which the corresponding content provider will be used as a default
|
||||
corpus. Using a URI instead of hard-coding the activity class (in default_corpora above)
|
||||
allows it to work on devices where the content provider has been replaced with a non-standard
|
||||
one. -->
|
||||
<string-array name="default_corpora_suggest_uris" translatable="false">
|
||||
<item>content://com.android.contacts/search_suggest_query</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Names of corpora that are not shown in the corpus selector, even if they are
|
||||
enabled in Searchable Items. -->
|
||||
<string-array name="hidden_corpora" translatable="false">
|
||||
</string-array>
|
||||
|
||||
<!-- The component name of the installed apps source used in QSB -->
|
||||
<string name="installed_apps_component" translatable="false">com.android.providers.applications/.ApplicationLauncher</string>
|
||||
|
||||
<!-- The component name of the browser bookmarks and history source used in QSB -->
|
||||
<string name="browser_search_component" translatable="false">com.android.browser/.BookmarkSearch</string>
|
||||
|
||||
<!-- The component name of the activity that search intents in the Apps corpus are sent to.
|
||||
If not set, Apps search intents are sent to the Apps suggestion source. -->
|
||||
<string name="apps_search_activity" translatable="false"></string>
|
||||
|
||||
<!-- Number of suggestions slots that are visible above
|
||||
the onscreen keyboard. These slots will be shared among
|
||||
the default sources. -->
|
||||
<integer name="num_suggestions_above_keyboard">4</integer>
|
||||
|
||||
<!-- The maximum promoted suggestions -->
|
||||
<integer name="max_promoted_suggestions">8</integer>
|
||||
|
||||
<!-- Maximum number of results to promote -->
|
||||
<integer name="max_promoted_results">4</integer>
|
||||
|
||||
<!-- Maximum number of shortcuts to promote from the web. -->
|
||||
<integer name="max_shortcuts_per_web_source">8</integer>
|
||||
|
||||
<!-- Maximum number of shortcuts to promote from each non-web source. -->
|
||||
<integer name="max_shortcuts_per_non_web_source">2</integer>
|
||||
|
||||
<!-- The number of columns in the corpus selection dialog -->
|
||||
<integer name="corpus_selection_dialog_columns">4</integer>
|
||||
|
||||
<!-- Whether or not to show zero-query suggestions -->
|
||||
<bool name="show_zero_query_suggestions">true</bool>
|
||||
|
||||
<!-- Whether or not to show zero-query shortcuts -->
|
||||
<bool name="show_zero_query_shortcuts">true</bool>
|
||||
|
||||
<!-- Whether or not to show scrolling suggestions. If this returns false, the number of
|
||||
suggestions displayed will be limited by the height of the suggestions view, so that it
|
||||
does not scroll. -->
|
||||
<bool name="show_scrolling_suggestions">false</bool>
|
||||
|
||||
<!-- As show_scrolling_suggestions but for the results shown in two pane mode. This value is not
|
||||
used when the application is running in single pane mode. -->
|
||||
<bool name="show_scrolling_results">true</bool>
|
||||
|
||||
<!-- Whether the Searchable Items list should show corpora that are not included
|
||||
in All mode. -->
|
||||
<bool name="show_non_all_corpora_in_settings">true</bool>
|
||||
|
||||
<!-- Note that this is the standard search url. It uses the current locale for language -->
|
||||
<!-- (%1$s) and shouldn't need to be replaced by locale or mcc selected resources. -->
|
||||
<!-- Any changes to this (especially in terms of adding/removing the MCC-specific flavors) -->
|
||||
<!-- should be mirrored by changes in GoogleSearch. -->
|
||||
<!-- Do not translate. This string is an internal URI, not seen in the UI. -->
|
||||
<string name="google_search_base" translatable="false">
|
||||
http://www.google.com/m?hl=%1$s</string>
|
||||
|
||||
<!-- Same as the above, except that the URL suffix is returned by a -->
|
||||
<!-- request to google.com/searchdomaincheck and is of the form -->
|
||||
<!-- .google.co.xx -->
|
||||
<string name="google_search_base_pattern" translatable="false">
|
||||
http://%1$s/m?hl=%2$s</string>
|
||||
<!-- The default search domain for search result pages -->
|
||||
<string name="default_search_domain" translatable="false">
|
||||
.google.com</string>
|
||||
|
||||
<!-- Note that this is the standard suggest url. It uses the current locale for language -->
|
||||
<!-- (t%1$s) and should not need to be replaced by locale or mcc selected resources. -->
|
||||
<!-- Any changes to this (especially in terms of adding/removing the MCC-specific flavors) -->
|
||||
<!-- should be mirrored by changes in GoogleSuggestClient -->
|
||||
<!-- Do not translate. This string is an internal URI, not seen in the UI. -->
|
||||
<string name="google_suggest_base" translatable="false">
|
||||
http://www.google.com/complete/search?hl=%1$s&client=android&q=</string>
|
||||
|
||||
</resources>
|
31
android/packages/apps/QuickSearchBox/res/values/dimens.xml
Normal file
31
android/packages/apps/QuickSearchBox/res/values/dimens.xml
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<dimen name="suggestion_group_spacing">28dip</dimen>
|
||||
|
||||
<!-- The height of suggestions views. -->
|
||||
<dimen name="suggestion_view_height">56dip</dimen>
|
||||
|
||||
<dimen name="suggestion_icon_size">48dip</dimen>
|
||||
|
||||
<dimen name="suggestion_text1_size">16sp</dimen>
|
||||
<dimen name="suggestion_text2_size">13sp</dimen>
|
||||
|
||||
<dimen name="suggestion_text2_height">28dip</dimen>
|
||||
|
||||
</resources>
|
55
android/packages/apps/QuickSearchBox/res/values/strings.xml
Normal file
55
android/packages/apps/QuickSearchBox/res/values/strings.xml
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 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.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="app_name">Search</string>
|
||||
|
||||
<!-- Toast text shown when the app fails to remove an item from
|
||||
the search history. [CHAR_LIMIT=60] -->
|
||||
<string name="remove_from_history_failed">Couldn\'t remove item from history.</string>
|
||||
|
||||
<!-- Source selector -->
|
||||
<string name="corpus_selection_heading">Search</string>
|
||||
|
||||
<!-- Search settings menu item -->
|
||||
<string name="menu_settings">Search settings</string>
|
||||
|
||||
<!-- Title for 'system search' category of search settings -->
|
||||
<string name="system_search_category_title">Phone</string>
|
||||
|
||||
<!-- Title and summary used for the option to clear search shortcuts from the system
|
||||
search history -->
|
||||
<string name="clear_shortcuts_summary">Clear shortcuts to recently chosen search suggestions</string>
|
||||
|
||||
<!-- Help menu item. Opens a web page with information about how to use Quick Search Box.
|
||||
[CHAR LIMIT=20] -->
|
||||
<string name="menu_help">Help</string>
|
||||
|
||||
<!-- Search source label for the Google search source. -->
|
||||
<string name="google_search_label">Google</string>
|
||||
|
||||
<!-- This is the hint text shown in the search widget, before text is entered. -->
|
||||
<!-- This translation MUST MATCH the string "search_hint" which is found in
|
||||
Home/res/values/strings.xml -->
|
||||
<string name="google_search_hint">Google Search</string>
|
||||
|
||||
<!-- Search settings description for the Google search source. [CHAR LIMIT=50] -->
|
||||
<string name="google_search_description">Google Search suggestions</string>
|
||||
|
||||
<!-- Title for Voice Search hints bubble -->
|
||||
<string name="voice_search_hint_title">Try saying:</string>
|
||||
|
||||
</resources>
|
84
android/packages/apps/QuickSearchBox/res/values/styles.xml
Normal file
84
android/packages/apps/QuickSearchBox/res/values/styles.xml
Normal file
|
@ -0,0 +1,84 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="Suggestion">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:background">@drawable/suggestion_background</item>
|
||||
<item name="android:layout_height">@dimen/suggestion_view_height</item>
|
||||
</style>
|
||||
|
||||
<style name="FocusingSuggestion" parent="Suggestion">
|
||||
<item name="android:background">@drawable/highlighting_suggestion_background</item>
|
||||
<item name="android:focusable">true</item>
|
||||
</style>
|
||||
|
||||
<style name="SuggestionText1">
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textSize">@dimen/suggestion_text1_size</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:layout_centerVertical">true</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:paddingLeft">8dip</item>
|
||||
<item name="android:paddingRight">2dip</item>
|
||||
<item name="android:gravity">left|center_vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="SuggestionText2">
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||
<item name="android:textSize">@dimen/suggestion_text2_size</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:layout_height">@dimen/suggestion_text2_height</item>
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:paddingLeft">8dip</item>
|
||||
<item name="android:paddingBottom">4dip</item>
|
||||
<item name="android:paddingRight">2dip</item>
|
||||
<item name="android:gravity">left|top</item>
|
||||
</style>
|
||||
|
||||
<style name="SuggestionIcon1">
|
||||
<item name="android:layout_height">@dimen/suggestion_icon_size</item>
|
||||
<item name="android:layout_width">@dimen/suggestion_icon_size</item>
|
||||
<item name="android:paddingLeft">2dip</item>
|
||||
<item name="android:paddingTop">2dip</item>
|
||||
<item name="android:paddingBottom">2dip</item>
|
||||
</style>
|
||||
|
||||
<style name="WebSuggestionIcon1" parent="@style/SuggestionIcon1">
|
||||
</style>
|
||||
|
||||
<style name="SuggestionIcon2">
|
||||
<item name="android:layout_height">@dimen/suggestion_icon_size</item>
|
||||
<item name="android:layout_width">@dimen/suggestion_icon_size</item>
|
||||
</style>
|
||||
|
||||
<style name="SuggestionText1.Query" parent="@style/SuggestionText1">
|
||||
</style>
|
||||
|
||||
<style name="SuggestionText1.Suggested" parent="@style/SuggestionText1">
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style name="Animation.SelectSearchSource" parent="@android:style/Animation">
|
||||
<item name="android:windowEnterAnimation">@anim/corpus_selector_open</item>
|
||||
<item name="android:windowExitAnimation">@anim/corpus_selector_close</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
48
android/packages/apps/QuickSearchBox/res/values/themes.xml
Normal file
48
android/packages/apps/QuickSearchBox/res/values/themes.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="Theme.QuickSearchBox" parent="@android:style/Theme.Light">
|
||||
</style>
|
||||
|
||||
<style name="Theme.QuickSearchBox.Search" parent="@style/Theme.QuickSearchBox">
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<!-- Get rid of status bar shadow. -->
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowSoftInputMode">stateUnchanged|adjustResize</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.QuickSearchBox.SearchWidgetConfig" parent="@android:style/Theme.Dialog">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.SelectSearchSource" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowSoftInputMode">stateUnchanged|adjustResize</item>
|
||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||
<item name="android:windowFrame">@null</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:backgroundDimEnabled">false</item>
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowAnimationStyle">@style/Animation.SelectSearchSource</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue