Permalink
Browse files

auto import from //depot/cupcake/@135843

  • Loading branch information...
1 parent 8611831 commit 0c90888c75eed12f6e2e14a9044faf50bd4af8ed The Android Open Source Project committed Mar 4, 2009
Showing with 21,405 additions and 0 deletions.
  1. +16 −0 Android.mk
  2. +223 −0 AndroidManifest.xml
  3. 0 MODULE_LICENSE_APACHE2
  4. +190 −0 NOTICE
  5. +18 −0 assets/html/flashtest.html
  6. +1 −0 assets/plugins/gears-0.5.12.0/dummy
  7. BIN assets/plugins/gears.so
  8. +25 −0 res/anim/find_dialog_enter.xml
  9. +26 −0 res/anim/find_dialog_exit.xml
  10. BIN res/drawable/app_web_browser_sm.png
  11. +20 −0 res/drawable/browser_bookmark_tab.xml
  12. +20 −0 res/drawable/browser_history_tab.xml
  13. +20 −0 res/drawable/browser_visited_tab.xml
  14. BIN res/drawable/dialog_divider_horizontal_light.9.png
  15. BIN res/drawable/fav_icn_background.png
  16. BIN res/drawable/gears.png
  17. +29 −0 res/drawable/gears_button.xml
  18. BIN res/drawable/gears_button_default.9.png
  19. BIN res/drawable/gears_button_pressed.9.png
  20. BIN res/drawable/gears_button_selected.9.png
  21. BIN res/drawable/gears_icon_32x32.png
  22. BIN res/drawable/gears_icon_48x48.png
  23. BIN res/drawable/gears_local_data.png
  24. BIN res/drawable/gears_location_data.png
  25. BIN res/drawable/ic_btn_close_panel.png
  26. BIN res/drawable/ic_btn_find_next.png
  27. BIN res/drawable/ic_btn_find_prev.png
  28. BIN res/drawable/ic_dialog_bookmark.png
  29. BIN res/drawable/ic_dialog_browser_certificate_partially_secure.png
  30. BIN res/drawable/ic_dialog_browser_certificate_secure.png
  31. BIN res/drawable/ic_dialog_browser_security_bad.png
  32. BIN res/drawable/ic_dialog_browser_security_good.png
  33. BIN res/drawable/ic_dialog_menu_generic.png
  34. BIN res/drawable/ic_launcher_browser.png
  35. BIN res/drawable/ic_launcher_drm_file.png
  36. BIN res/drawable/ic_menu_bookmark.png
  37. BIN res/drawable/ic_menu_windows.png
  38. BIN res/drawable/ic_new_window.png
  39. BIN res/drawable/ic_search_category_bookmark.png
  40. BIN res/drawable/ic_search_category_browser.png
  41. BIN res/drawable/ic_search_category_history.png
  42. BIN res/drawable/ic_search_category_suggest.png
  43. BIN res/drawable/ic_tab_browser_bookmark_selected.png
  44. BIN res/drawable/ic_tab_browser_bookmark_unselected.png
  45. BIN res/drawable/ic_tab_browser_history_selected.png
  46. BIN res/drawable/ic_tab_browser_history_unselected.png
  47. BIN res/drawable/ic_tab_browser_visited_selected.png
  48. BIN res/drawable/ic_tab_browser_visited_unselected.png
  49. BIN res/drawable/page_indicator.png
  50. BIN res/drawable/page_indicator_unselected2.png
  51. BIN res/drawable/ssl_icon.png
  52. +73 −0 res/layout-land/http_authentication.xml
  53. +73 −0 res/layout-land/page_info.xml
  54. +266 −0 res/layout-land/ssl_certificate.xml
  55. +59 −0 res/layout/add_new_bookmark.xml
  56. +97 −0 res/layout/browser_add_bookmark.xml
  57. +27 −0 res/layout/browser_bookmarks_page.xml
  58. +89 −0 res/layout/browser_download_item.xml
  59. +25 −0 res/layout/browser_downloads_page.xml
  60. +86 −0 res/layout/browser_find.xml
  61. +50 −0 res/layout/browser_subwindow.xml
  62. +25 −0 res/layout/empty_history.xml
  63. +175 −0 res/layout/gears_dialog.xml
  64. +111 −0 res/layout/gears_dialog_permission.xml
  65. +58 −0 res/layout/gears_dialog_settings.xml
  66. +127 −0 res/layout/gears_dialog_settings_row.xml
  67. +48 −0 res/layout/gears_settings.xml
  68. +99 −0 res/layout/gears_settings_row.xml
  69. +24 −0 res/layout/history_header.xml
  70. +65 −0 res/layout/history_item.xml
  71. +69 −0 res/layout/http_authentication.xml
  72. +25 −0 res/layout/no_downloads.xml
  73. +74 −0 res/layout/page_info.xml
  74. +280 −0 res/layout/ssl_certificate.xml
  75. +44 −0 res/layout/ssl_success.xml
  76. +41 −0 res/layout/ssl_warning.xml
  77. +51 −0 res/layout/ssl_warnings.xml
  78. +53 −0 res/layout/tabitem.xml
  79. +41 −0 res/layout/tabs.xml
  80. +21 −0 res/menu/bookmarks.xml
  81. +38 −0 res/menu/bookmarkscontext.xml
  82. +113 −0 res/menu/browser.xml
  83. +59 −0 res/menu/browsercontext.xml
  84. +26 −0 res/menu/downloadhistory.xml
  85. +22 −0 res/menu/downloadhistorycontextfailed.xml
  86. +24 −0 res/menu/downloadhistorycontextfinished.xml
  87. +22 −0 res/menu/downloadhistorycontextrunning.xml
  88. +21 −0 res/menu/history.xml
  89. +30 −0 res/menu/historycontext.xml
  90. +26 −0 res/menu/tabscontext.xml
  91. +334 −0 res/values-cs/strings.xml
  92. +334 −0 res/values-de/strings.xml
  93. +334 −0 res/values-es/strings.xml
  94. +334 −0 res/values-fr/strings.xml
  95. +334 −0 res/values-it/strings.xml
  96. +334 −0 res/values-ja/strings.xml
  97. +334 −0 res/values-ko/strings.xml
  98. +326 −0 res/values-nb/strings.xml
  99. +334 −0 res/values-nl/strings.xml
  100. +334 −0 res/values-pl/strings.xml
  101. +334 −0 res/values-ru/strings.xml
  102. +334 −0 res/values-zh-rCN/strings.xml
  103. +334 −0 res/values-zh-rTW/strings.xml
  104. +42 −0 res/values/colors.xml
  105. +707 −0 res/values/strings.xml
  106. +49 −0 res/values/styles.xml
  107. +28 −0 res/values/themes.xml
  108. +174 −0 res/xml/browser_preferences.xml
  109. +67 −0 res/xml/debug_preferences.xml
  110. +33 −0 res/xml/searchable.xml
  111. +226 −0 src/com/android/browser/AddBookmarkPage.java
  112. +68 −0 src/com/android/browser/AddNewBookmark.java
  113. +113 −0 src/com/android/browser/BookmarkItem.java
  114. +59 −0 src/com/android/browser/Browser.java
  115. +4,567 −0 src/com/android/browser/BrowserActivity.java
  116. +535 −0 src/com/android/browser/BrowserBookmarksAdapter.java
  117. +385 −0 src/com/android/browser/BrowserBookmarksPage.java
  118. +222 −0 src/com/android/browser/BrowserDownloadAdapter.java
  119. +468 −0 src/com/android/browser/BrowserDownloadPage.java
  120. +468 −0 src/com/android/browser/BrowserHistoryPage.java
  121. +64 −0 src/com/android/browser/BrowserHomepagePreference.java
  122. +66 −0 src/com/android/browser/BrowserPluginList.java
  123. +149 −0 src/com/android/browser/BrowserPreferencesPage.java
  124. +654 −0 src/com/android/browser/BrowserProvider.java
  125. +68 −0 src/com/android/browser/BrowserSearchpagePreference.java
  126. +442 −0 src/com/android/browser/BrowserSettings.java
  127. +56 −0 src/com/android/browser/BrowserYesNoPreference.java
  128. +124 −0 src/com/android/browser/CombinedBookmarkHistoryActivity.java
  129. +83 −0 src/com/android/browser/Dots.java
  130. +111 −0 src/com/android/browser/FakeWebView.java
  131. +135 −0 src/com/android/browser/FetchUrlMimeType.java
  132. +226 −0 src/com/android/browser/FindDialog.java
  133. +474 −0 src/com/android/browser/GearsBaseDialog.java
  134. +280 −0 src/com/android/browser/GearsNativeDialog.java
  135. +196 −0 src/com/android/browser/GearsPermissions.java
  136. +133 −0 src/com/android/browser/GearsPermissionsDialog.java
  137. +460 −0 src/com/android/browser/GearsSettingsDialog.java
  138. +127 −0 src/com/android/browser/HistoryItem.java
  139. +291 −0 src/com/android/browser/ImageAdapter.java
  140. +233 −0 src/com/android/browser/ImageGrid.java
  141. +107 −0 src/com/android/browser/KeyTracker.java
  142. +199 −0 src/com/android/browser/MostVisitedActivity.java
  143. +937 −0 src/com/android/browser/TabControl.java
View
@@ -0,0 +1,16 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := user development
+
+# TODO: Remove dependency of application on the test runner (android.test.runner)
+# library.
+LOCAL_JAVA_LIBRARIES := android.test.runner
+
+LOCAL_STATIC_JAVA_LIBRARIES := googlelogin-client
+
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+
+LOCAL_PACKAGE_NAME := Browser
+
+include $(BUILD_PACKAGE)
View
@@ -0,0 +1,223 @@
+<!--
+/* //device/apps/Browser/AndroidManifest.xml
+**
+** Copyright 2006, 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.
+*/
+-->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser">
+
+ <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
+ <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.WAKE_LOCK"/>
+ <!-- Needed by the ZoomRingController to set the bit saying we've already shown the
+ tutorial toast. -->
+ <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
+ <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
+ <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
+
+ <!-- Allows an application to read the user Browser's history and bookmarks. -->
+ <permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
+ android:permissionGroup="android.permission-group.PERSONAL_INFO"
+ android:label="@string/permlab_readHistoryBookmarks"
+ android:description="@string/permdesc_readHistoryBookmarks"
+ android:protectionLevel="dangerous" />
+
+ <!-- Allows an application to write (but not read) the user Browser's history and bookmarks. -->
+ <permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"
+ android:permissionGroup="android.permission-group.PERSONAL_INFO"
+ android:label="@string/permlab_writeHistoryBookmarks"
+ android:description="@string/permdesc_writeHistoryBookmarks"
+ android:protectionLevel="dangerous" />
+
+ <application android:name="Browser"
+ android:label="@string/application_name"
+ android:icon="@drawable/ic_launcher_browser"
+ android:taskAffinity="android.task.browser" >
+ <!-- TODO: Remove dependency of application on the test runner
+ (android.test) library. -->
+ <uses-library android:name="android.test.runner" />
+
+ <provider android:name="BrowserProvider"
+ android:authorities="browser"
+ android:multiprocess="true"
+ android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS"
+ android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
+ <activity android:name="BrowserActivity"
+ android:label="@string/application_name"
+ android:launchMode="singleTask"
+ android:alwaysRetainTaskState="true"
+ android:configChanges="orientation|keyboardHidden"
+ android:theme="@style/BrowserTheme" >
+ <!-- For these schemes were not particular MIME type has been
+ supplied, we are a good candidate. -->
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="http" />
+ <data android:scheme="https" />
+ <data android:scheme="about" />
+ </intent-filter>
+ <!-- For these schemes where any of these particular MIME types
+ have been supplied, we are a good candidate. -->
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="http" />
+ <data android:scheme="https" />
+ <data android:mimeType="text/html"/>
+ <data android:mimeType="text/plain"/>
+ <data android:mimeType="application/xhtml+xml"/>
+ <data android:mimeType="application/vnd.wap.xhtml+xml"/>
+ </intent-filter>
+ <!-- We are also the main entry point of the browser. -->
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ </intent-filter>
+ <!-- The maps app is a much better experience, so it's not
+ worth having this at all... especially for a demo!
+ <intent-filter android:label="Map In Browser">
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="vnd.android.cursor.item/postal-address" />
+ </intent-filter>
+ -->
+ <intent-filter>
+ <action android:name="android.intent.action.WEB_SEARCH" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="" />
+ <data android:scheme="http" />
+ <data android:scheme="https" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.WEB_SEARCH" />
+ <action android:name="android.intent.action.MEDIA_SEARCH" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.SEARCH" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data android:name="android.app.searchable"
+ android:resource="@xml/searchable" />
+ <intent-filter>
+ <action android:name="android.net.http.NETWORK_STATE" />
+ <action android:name="android.intent.action.PROXY_CHANGE" />
+ </intent-filter>
+ </activity>
+
+ <activity android:name="CombinedBookmarkHistoryActivity" android:label=""
+ android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks"
+ android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="MostVisitedActivity" android:label=""
+ android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/>
+
+ <activity-alias android:name="ShortcutBookmarksPage"
+ android:targetActivity="BrowserBookmarksPage"
+ android:label="@string/shortcut_bookmark">
+
+ <intent-filter>
+ <action android:name="android.intent.action.CREATE_SHORTCUT" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+
+ </activity-alias>
+
+ <activity android:name="BrowserDownloadPage" android:label=""
+ android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences"
+ android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="BrowserHistoryPage" android:label=""
+ android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="BrowserPluginList" android:label=""
+ android:configChanges="orientation|keyboardHidden">
+ </activity>
+
+ <activity android:name="GearsDialog" android:process=":dialog"
+ android:configChanges="orientation|keyboardHidden"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <activity android:name="GearsNativeDialog"
+ android:configChanges="orientation|keyboardHidden"
+ android:theme="@android:style/Theme.Dialog">
+ </activity>
+
+ <service android:name="GearsDialogService"
+ android:process=":dialog"
+ android:exported="false">
+ <intent-filter>
+ <action android:name="com.android.browser.IGearsDialogService" />
+ </intent-filter>
+ </service>
+
+ <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog"
+ android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden">
+ <intent-filter>
+ <action android:name="android.intent.action.INSERT" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:mimeType="vnd.android.cursor.dir/bookmark"/>
+ </intent-filter>
+ </activity>
+
+ <!-- Makes .BrowserActivity the search target for any activity in Browser -->
+ <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
+
+
+ </application>
+
+ <!-- Browser tests. Invoke with: -->
+ <!-- adb shell am instrument -w com.android.browser/.BrowserTestRunner -->
+ <instrumentation android:name="BrowserTestRunner"
+ android:targetPackage="com.android.browser"
+ android:label="@string/activity_instrumentation_test_runner"
+ />
+ <!-- Browser tests. Invoke with: -->
+ <!-- adb shell am instrument -w com.android.browser/.BrowserFunctionalTestRunner -->
+ <instrumentation android:name="BrowserFunctionalTestRunner"
+ android:targetPackage="com.android.browser"
+ android:label="@string/activity_instrumentation_functional_test_runner"
+ />
+
+ <instrumentation android:name="BrowserLaunchPerformance"
+ android:targetPackage="com.android.browser"
+ android:label="Browser Launch Performance"
+ />
+
+</manifest>
+
View
No changes.
Oops, something went wrong.

0 comments on commit 0c90888

Please sign in to comment.