From 4697dbf41c5a44e5a7d592f7f1cd4905e5b2a897 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Tue, 22 Apr 2014 06:27:13 +0200 Subject: [PATCH 01/16] + pluginhost test project --- src/PluginHostTest/Activity1.cs | 173 ++++++ src/PluginHostTest/Assets/AboutAssets.txt | 19 + src/PluginHostTest/Assets/DejaVuSansMono.ttf | Bin 0 -> 335068 bytes .../Assets/fontawesome-webfont.ttf | Bin 0 -> 79076 bytes src/PluginHostTest/ClickView.cs | 44 ++ src/PluginHostTest/EntryActivity.cs | 367 +++++++++++ src/PluginHostTest/EntryContentsView.cs | 64 ++ src/PluginHostTest/EntrySection.cs | 75 +++ src/PluginHostTest/Kp2aShortHelpView.cs | 88 +++ src/PluginHostTest/PluginArrayAdapter.cs | 113 ++++ src/PluginHostTest/PluginDatabase.cs | 174 ++++++ src/PluginHostTest/PluginDetailsActivity.cs | 108 ++++ src/PluginHostTest/PluginHost.cs | 143 +++++ src/PluginHostTest/PluginHostTest.csproj | 578 +++++++++++++++++ src/PluginHostTest/PluginListActivity.cs | 52 ++ .../Properties/AndroidManifest.xml | 5 + src/PluginHostTest/Properties/AssemblyInfo.cs | 34 + .../Resources/AboutResources.txt | 50 ++ .../Resources/Drawable/2_action_about.png | Bin 0 -> 1764 bytes .../Resources/Drawable/BlueButton.xml | 38 ++ .../Drawable/EntryFieldHeaderBackground.xml | 12 + .../Resources/Drawable/GreenButton.xml | 38 ++ .../Drawable/HeaderButtonBackground.xml | 6 + .../Resources/Drawable/Icon.png | Bin 0 -> 2574 bytes .../Resources/Drawable/RedButton.xml | 37 ++ .../Resources/Drawable/YellowButton.xml | 38 ++ .../Resources/Drawable/btn_new_group.png | Bin 0 -> 877 bytes .../Resources/Drawable/btn_new_group_dark.png | Bin 0 -> 713 bytes .../Drawable/btn_new_group_holodark.png | Bin 0 -> 758 bytes .../Drawable/collections_collection.png | Bin 0 -> 1604 bytes .../collections_collection_holodark.png | Bin 0 -> 1617 bytes .../Drawable/collections_new_label.png | Bin 0 -> 1667 bytes .../collections_new_label_holodark.png | Bin 0 -> 2062 bytes .../Drawable/device_access_new_account.png | Bin 0 -> 1161 bytes .../device_access_new_account_dark.png | Bin 0 -> 924 bytes .../device_access_new_account_holodark.png | Bin 0 -> 1926 bytes .../Drawable/device_access_not_secure.png | Bin 0 -> 785 bytes .../Resources/Drawable/donate_cake.png | Bin 0 -> 137139 bytes .../Drawable/extra_string_header.xml | 8 + .../Resources/Drawable/ic00.png | Bin 0 -> 2085 bytes .../Resources/Drawable/ic01.png | Bin 0 -> 3141 bytes .../Resources/Drawable/ic02.png | Bin 0 -> 2125 bytes .../Resources/Drawable/ic03.png | Bin 0 -> 1948 bytes .../Resources/Drawable/ic04.png | Bin 0 -> 1947 bytes .../Resources/Drawable/ic05.png | Bin 0 -> 2741 bytes .../Resources/Drawable/ic06.png | Bin 0 -> 2065 bytes .../Resources/Drawable/ic07.png | Bin 0 -> 2805 bytes .../Resources/Drawable/ic08.png | Bin 0 -> 3000 bytes .../Resources/Drawable/ic09.png | Bin 0 -> 1820 bytes .../Resources/Drawable/ic10.png | Bin 0 -> 2642 bytes .../Resources/Drawable/ic11.png | Bin 0 -> 1974 bytes .../Resources/Drawable/ic12.png | Bin 0 -> 2927 bytes .../Resources/Drawable/ic13.png | Bin 0 -> 2746 bytes .../Resources/Drawable/ic14.png | Bin 0 -> 2342 bytes .../Resources/Drawable/ic15.png | Bin 0 -> 2600 bytes .../Resources/Drawable/ic16.png | Bin 0 -> 3243 bytes .../Resources/Drawable/ic17.png | Bin 0 -> 2445 bytes .../Resources/Drawable/ic18.png | Bin 0 -> 1965 bytes .../Resources/Drawable/ic19.png | Bin 0 -> 2665 bytes .../Resources/Drawable/ic20.png | Bin 0 -> 2853 bytes .../Resources/Drawable/ic21.png | Bin 0 -> 3173 bytes .../Resources/Drawable/ic22.png | Bin 0 -> 1006 bytes .../Resources/Drawable/ic23.png | Bin 0 -> 2408 bytes .../Resources/Drawable/ic24.png | Bin 0 -> 2683 bytes .../Resources/Drawable/ic25.png | Bin 0 -> 3018 bytes .../Resources/Drawable/ic26.png | Bin 0 -> 1596 bytes .../Resources/Drawable/ic27.png | Bin 0 -> 2083 bytes .../Resources/Drawable/ic28.png | Bin 0 -> 2001 bytes .../Resources/Drawable/ic29.png | Bin 0 -> 2295 bytes .../Resources/Drawable/ic30.png | Bin 0 -> 2095 bytes .../Resources/Drawable/ic31.png | Bin 0 -> 2504 bytes .../Resources/Drawable/ic32.png | Bin 0 -> 1788 bytes .../Resources/Drawable/ic33.png | Bin 0 -> 2057 bytes .../Resources/Drawable/ic34.png | Bin 0 -> 1907 bytes .../Resources/Drawable/ic35.png | Bin 0 -> 3332 bytes .../Resources/Drawable/ic36.png | Bin 0 -> 2508 bytes .../Resources/Drawable/ic37.png | Bin 0 -> 3496 bytes .../Resources/Drawable/ic38.png | Bin 0 -> 2938 bytes .../Resources/Drawable/ic39.png | Bin 0 -> 3316 bytes .../Resources/Drawable/ic40.png | Bin 0 -> 2707 bytes .../Resources/Drawable/ic41.png | Bin 0 -> 1777 bytes .../Resources/Drawable/ic42.png | Bin 0 -> 2276 bytes .../Resources/Drawable/ic43.png | Bin 0 -> 1866 bytes .../Resources/Drawable/ic44.png | Bin 0 -> 2089 bytes .../Resources/Drawable/ic45.png | Bin 0 -> 2478 bytes .../Resources/Drawable/ic46.png | Bin 0 -> 2328 bytes .../Resources/Drawable/ic47.png | Bin 0 -> 2166 bytes .../Resources/Drawable/ic48.png | Bin 0 -> 2972 bytes .../Resources/Drawable/ic49.png | Bin 0 -> 2300 bytes .../Resources/Drawable/ic50.png | Bin 0 -> 3154 bytes .../Resources/Drawable/ic51.png | Bin 0 -> 2025 bytes .../Resources/Drawable/ic52.png | Bin 0 -> 1795 bytes .../Resources/Drawable/ic53.png | Bin 0 -> 1732 bytes .../Resources/Drawable/ic54.png | Bin 0 -> 1443 bytes .../Resources/Drawable/ic55.png | Bin 0 -> 1865 bytes .../Resources/Drawable/ic56.png | Bin 0 -> 2251 bytes .../Resources/Drawable/ic57.png | Bin 0 -> 1759 bytes .../Resources/Drawable/ic58.png | Bin 0 -> 3240 bytes .../Resources/Drawable/ic59.png | Bin 0 -> 2186 bytes .../Resources/Drawable/ic60.png | Bin 0 -> 2676 bytes .../Resources/Drawable/ic61.png | Bin 0 -> 2139 bytes .../Resources/Drawable/ic62.png | Bin 0 -> 1428 bytes .../Resources/Drawable/ic63.png | Bin 0 -> 1663 bytes .../Resources/Drawable/ic64.png | Bin 0 -> 191 bytes .../Resources/Drawable/ic65.png | Bin 0 -> 1827 bytes .../Resources/Drawable/ic66.png | Bin 0 -> 930 bytes .../Resources/Drawable/ic67.png | Bin 0 -> 410 bytes .../Resources/Drawable/ic68.png | Bin 0 -> 631 bytes .../Resources/Drawable/ic99_blank.png | Bin 0 -> 191 bytes .../Resources/Drawable/ic_action_eye_open.png | Bin 0 -> 1373 bytes .../Resources/Drawable/ic_action_search.png | Bin 0 -> 1429 bytes .../Drawable/ic_action_search_holodark.png | Bin 0 -> 672 bytes .../Resources/Drawable/ic_keepass2android.png | Bin 0 -> 7430 bytes .../Drawable/ic_keepass2android_nonet.png | Bin 0 -> 7323 bytes .../Resources/Drawable/ic_launcher.png | Bin 0 -> 1961 bytes .../Drawable/ic_launcher_folder_small.png | Bin 0 -> 1522 bytes .../Resources/Drawable/ic_launcher_gray.png | Bin 0 -> 849 bytes .../Drawable/ic_launcher_gray_bday.png | Bin 0 -> 698 bytes .../Drawable/ic_launcher_offline.png | Bin 0 -> 1940 bytes .../Resources/Drawable/ic_launcher_red.png | Bin 0 -> 1603 bytes .../Drawable/ic_menu_add_field_holo_light.png | Bin 0 -> 1354 bytes .../Drawable/ic_menu_add_field_holodark.png | Bin 0 -> 1512 bytes .../ic_menu_remove_field_holo_light.png | Bin 0 -> 703 bytes .../ic_menu_remove_field_holodark.png | Bin 0 -> 1285 bytes .../Resources/Drawable/ic_menu_view.png | Bin 0 -> 1508 bytes .../Drawable/ic_storage_androidget.png | Bin 0 -> 1185 bytes .../Drawable/ic_storage_androidsend.png | Bin 0 -> 1185 bytes .../Resources/Drawable/ic_storage_dropbox.png | Bin 0 -> 4711 bytes .../Drawable/ic_storage_dropboxKP2A.png | Bin 0 -> 4711 bytes .../Resources/Drawable/ic_storage_file.png | Bin 0 -> 1273 bytes .../Resources/Drawable/ic_storage_ftp.png | Bin 0 -> 3141 bytes .../Resources/Drawable/ic_storage_gdrive.png | Bin 0 -> 2254 bytes .../Resources/Drawable/ic_storage_http.png | Bin 0 -> 3141 bytes .../Resources/Drawable/ic_storage_https.png | Bin 0 -> 3141 bytes .../Resources/Drawable/ic_storage_sftp.png | Bin 0 -> 837 bytes .../Drawable/ic_storage_skydrive.png | Bin 0 -> 1211 bytes .../Resources/Drawable/ic_unlocked_gray.png | Bin 0 -> 1585 bytes .../Resources/Drawable/launcher.png | Bin 0 -> 4936 bytes .../Resources/Drawable/location_web_site.png | Bin 0 -> 3291 bytes .../Drawable/location_web_site_holodark.png | Bin 0 -> 3307 bytes .../Resources/Drawable/navigation_accept.png | Bin 0 -> 1320 bytes .../Drawable/navigation_accept_dark.png | Bin 0 -> 1335 bytes .../Resources/Drawable/navigation_cancel.png | Bin 0 -> 1202 bytes .../Drawable/navigation_cancel_holodark.png | Bin 0 -> 1138 bytes .../Drawable/navigation_previous_item.png | Bin 0 -> 1275 bytes .../navigation_previous_item_dark.png | Bin 0 -> 1482 bytes .../Resources/Drawable/notify.png | Bin 0 -> 3934 bytes .../Resources/Drawable/notify_keyboard.png | Bin 0 -> 896 bytes .../Resources/Drawable/oktoberfest.png | Bin 0 -> 156176 bytes .../Resources/Drawable/section_header.xml | 8 + .../Resources/Drawable/transparent.png | Bin 0 -> 128 bytes .../Resources/Layout/ListViewPluginRow.xml | 40 ++ src/PluginHostTest/Resources/Layout/Main.axml | 26 + .../Resources/Layout/entry_edit.xml | 208 +++++++ .../Resources/Layout/entry_edit_section.xml | 42 ++ .../Layout/entry_extrastring_title.xml | 7 + .../Layout/entry_extrastring_value.xml | 8 + .../Resources/Layout/entry_list_entry.xml | 36 ++ .../Resources/Layout/entry_section.xml | 21 + .../Resources/Layout/entry_view.xml | 59 ++ .../Resources/Layout/entry_view_contents.xml | 166 +++++ .../Resources/Layout/entry_view_test.xml | 12 + .../Resources/Layout/plugin_details.xml | 82 +++ .../Resources/Layout/plugin_list.xml | 23 + .../Resources/Layout/text_with_help.xml | 30 + .../Resources/Values-v14/colors.xml | 33 + .../Resources/Values-v14/styles.xml | 188 ++++++ .../Resources/Values-v14/styles_dark.xml | 45 ++ .../Resources/Values-v14/styles_light.xml | 47 ++ .../Resources/Values/Strings2.xml | 13 + src/PluginHostTest/Resources/Values/attrs.xml | 22 + .../Resources/Values/colors.xml | 34 + .../Resources/Values/config.xml | 148 +++++ .../Resources/Values/config2.xml | 12 + .../Resources/Values/dimens.xml | 7 + .../Resources/Values/strings.xml | 586 ++++++++++++++++++ .../Resources/Values/styles.xml | 136 ++++ src/PluginHostTest/TextViewSelect.cs | 84 +++ src/PluginHostTest/TextWithHelp.cs | 70 +++ .../Additions/AboutAdditions.txt | 48 ++ src/PluginSdkBinding/Jars/AboutJars.txt | 24 + src/PluginSdkBinding/PluginSdkBinding.csproj | 64 ++ .../Properties/AssemblyInfo.cs | 34 + .../Transforms/EnumFields.xml | 14 + .../Transforms/EnumMethods.xml | 13 + src/PluginSdkBinding/Transforms/Metadata.xml | 9 + src/java/Keepass2AndroidPluginSDK/.classpath | 9 + src/java/Keepass2AndroidPluginSDK/.project | 33 + .../.settings/org.eclipse.jdt.core.prefs | 4 + .../org.eclipse.ltk.core.refactoring.prefs | 2 + .../AndroidManifest.xml | 17 + src/java/Keepass2AndroidPluginSDK/lint.xml | 3 + .../proguard-project.txt | 20 + .../project.properties | 15 + .../res/drawable-hdpi/ic_launcher.png | Bin 0 -> 9397 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 0 -> 5237 bytes .../res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 14383 bytes .../res/values-v11/styles.xml | 11 + .../res/values-v14/styles.xml | 12 + .../res/values/strings.xml | 5 + .../res/values/styles.xml | 20 + .../pluginsdk/AccessManager.java | 109 ++++ .../PluginAccessBroadcastReceiver.java | 95 +++ .../keepass2android/pluginsdk/Strings.java | 19 + 204 files changed, 5037 insertions(+) create mode 100644 src/PluginHostTest/Activity1.cs create mode 100644 src/PluginHostTest/Assets/AboutAssets.txt create mode 100644 src/PluginHostTest/Assets/DejaVuSansMono.ttf create mode 100644 src/PluginHostTest/Assets/fontawesome-webfont.ttf create mode 100644 src/PluginHostTest/ClickView.cs create mode 100644 src/PluginHostTest/EntryActivity.cs create mode 100644 src/PluginHostTest/EntryContentsView.cs create mode 100644 src/PluginHostTest/EntrySection.cs create mode 100644 src/PluginHostTest/Kp2aShortHelpView.cs create mode 100644 src/PluginHostTest/PluginArrayAdapter.cs create mode 100644 src/PluginHostTest/PluginDatabase.cs create mode 100644 src/PluginHostTest/PluginDetailsActivity.cs create mode 100644 src/PluginHostTest/PluginHost.cs create mode 100644 src/PluginHostTest/PluginHostTest.csproj create mode 100644 src/PluginHostTest/PluginListActivity.cs create mode 100644 src/PluginHostTest/Properties/AndroidManifest.xml create mode 100644 src/PluginHostTest/Properties/AssemblyInfo.cs create mode 100644 src/PluginHostTest/Resources/AboutResources.txt create mode 100644 src/PluginHostTest/Resources/Drawable/2_action_about.png create mode 100644 src/PluginHostTest/Resources/Drawable/BlueButton.xml create mode 100644 src/PluginHostTest/Resources/Drawable/EntryFieldHeaderBackground.xml create mode 100644 src/PluginHostTest/Resources/Drawable/GreenButton.xml create mode 100644 src/PluginHostTest/Resources/Drawable/HeaderButtonBackground.xml create mode 100644 src/PluginHostTest/Resources/Drawable/Icon.png create mode 100644 src/PluginHostTest/Resources/Drawable/RedButton.xml create mode 100644 src/PluginHostTest/Resources/Drawable/YellowButton.xml create mode 100644 src/PluginHostTest/Resources/Drawable/btn_new_group.png create mode 100644 src/PluginHostTest/Resources/Drawable/btn_new_group_dark.png create mode 100644 src/PluginHostTest/Resources/Drawable/btn_new_group_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/collections_collection.png create mode 100644 src/PluginHostTest/Resources/Drawable/collections_collection_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/collections_new_label.png create mode 100644 src/PluginHostTest/Resources/Drawable/collections_new_label_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/device_access_new_account.png create mode 100644 src/PluginHostTest/Resources/Drawable/device_access_new_account_dark.png create mode 100644 src/PluginHostTest/Resources/Drawable/device_access_new_account_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/device_access_not_secure.png create mode 100644 src/PluginHostTest/Resources/Drawable/donate_cake.png create mode 100644 src/PluginHostTest/Resources/Drawable/extra_string_header.xml create mode 100644 src/PluginHostTest/Resources/Drawable/ic00.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic01.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic02.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic03.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic04.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic05.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic06.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic07.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic08.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic09.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic10.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic11.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic12.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic13.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic14.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic15.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic16.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic17.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic18.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic19.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic20.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic21.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic22.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic23.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic24.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic25.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic26.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic27.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic28.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic29.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic30.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic31.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic32.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic33.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic34.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic35.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic36.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic37.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic38.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic39.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic40.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic41.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic42.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic43.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic44.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic45.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic46.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic47.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic48.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic49.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic50.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic51.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic52.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic53.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic54.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic55.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic56.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic57.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic58.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic59.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic60.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic61.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic62.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic63.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic64.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic65.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic66.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic67.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic68.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic99_blank.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_action_eye_open.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_action_search.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_action_search_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_keepass2android.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_keepass2android_nonet.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher_folder_small.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher_gray.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher_gray_bday.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher_offline.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_launcher_red.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_menu_add_field_holo_light.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_menu_add_field_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_menu_remove_field_holo_light.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_menu_remove_field_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_menu_view.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_androidget.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_androidsend.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_dropbox.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_dropboxKP2A.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_file.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_ftp.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_gdrive.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_http.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_https.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_sftp.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_storage_skydrive.png create mode 100644 src/PluginHostTest/Resources/Drawable/ic_unlocked_gray.png create mode 100644 src/PluginHostTest/Resources/Drawable/launcher.png create mode 100644 src/PluginHostTest/Resources/Drawable/location_web_site.png create mode 100644 src/PluginHostTest/Resources/Drawable/location_web_site_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_accept.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_accept_dark.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_cancel.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_cancel_holodark.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_previous_item.png create mode 100644 src/PluginHostTest/Resources/Drawable/navigation_previous_item_dark.png create mode 100644 src/PluginHostTest/Resources/Drawable/notify.png create mode 100644 src/PluginHostTest/Resources/Drawable/notify_keyboard.png create mode 100644 src/PluginHostTest/Resources/Drawable/oktoberfest.png create mode 100644 src/PluginHostTest/Resources/Drawable/section_header.xml create mode 100644 src/PluginHostTest/Resources/Drawable/transparent.png create mode 100644 src/PluginHostTest/Resources/Layout/ListViewPluginRow.xml create mode 100644 src/PluginHostTest/Resources/Layout/Main.axml create mode 100644 src/PluginHostTest/Resources/Layout/entry_edit.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_edit_section.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_extrastring_title.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_extrastring_value.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_list_entry.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_section.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_view.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_view_contents.xml create mode 100644 src/PluginHostTest/Resources/Layout/entry_view_test.xml create mode 100644 src/PluginHostTest/Resources/Layout/plugin_details.xml create mode 100644 src/PluginHostTest/Resources/Layout/plugin_list.xml create mode 100644 src/PluginHostTest/Resources/Layout/text_with_help.xml create mode 100644 src/PluginHostTest/Resources/Values-v14/colors.xml create mode 100644 src/PluginHostTest/Resources/Values-v14/styles.xml create mode 100644 src/PluginHostTest/Resources/Values-v14/styles_dark.xml create mode 100644 src/PluginHostTest/Resources/Values-v14/styles_light.xml create mode 100644 src/PluginHostTest/Resources/Values/Strings2.xml create mode 100644 src/PluginHostTest/Resources/Values/attrs.xml create mode 100644 src/PluginHostTest/Resources/Values/colors.xml create mode 100644 src/PluginHostTest/Resources/Values/config.xml create mode 100644 src/PluginHostTest/Resources/Values/config2.xml create mode 100644 src/PluginHostTest/Resources/Values/dimens.xml create mode 100644 src/PluginHostTest/Resources/Values/strings.xml create mode 100644 src/PluginHostTest/Resources/Values/styles.xml create mode 100644 src/PluginHostTest/TextViewSelect.cs create mode 100644 src/PluginHostTest/TextWithHelp.cs create mode 100644 src/PluginSdkBinding/Additions/AboutAdditions.txt create mode 100644 src/PluginSdkBinding/Jars/AboutJars.txt create mode 100644 src/PluginSdkBinding/PluginSdkBinding.csproj create mode 100644 src/PluginSdkBinding/Properties/AssemblyInfo.cs create mode 100644 src/PluginSdkBinding/Transforms/EnumFields.xml create mode 100644 src/PluginSdkBinding/Transforms/EnumMethods.xml create mode 100644 src/PluginSdkBinding/Transforms/Metadata.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/.classpath create mode 100644 src/java/Keepass2AndroidPluginSDK/.project create mode 100644 src/java/Keepass2AndroidPluginSDK/.settings/org.eclipse.jdt.core.prefs create mode 100644 src/java/Keepass2AndroidPluginSDK/.settings/org.eclipse.ltk.core.refactoring.prefs create mode 100644 src/java/Keepass2AndroidPluginSDK/AndroidManifest.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/lint.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/proguard-project.txt create mode 100644 src/java/Keepass2AndroidPluginSDK/project.properties create mode 100644 src/java/Keepass2AndroidPluginSDK/res/drawable-hdpi/ic_launcher.png create mode 100644 src/java/Keepass2AndroidPluginSDK/res/drawable-mdpi/ic_launcher.png create mode 100644 src/java/Keepass2AndroidPluginSDK/res/drawable-xhdpi/ic_launcher.png create mode 100644 src/java/Keepass2AndroidPluginSDK/res/values-v11/styles.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/res/values-v14/styles.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/res/values/strings.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/res/values/styles.xml create mode 100644 src/java/Keepass2AndroidPluginSDK/src/keepass2android/pluginsdk/AccessManager.java create mode 100644 src/java/Keepass2AndroidPluginSDK/src/keepass2android/pluginsdk/PluginAccessBroadcastReceiver.java create mode 100644 src/java/Keepass2AndroidPluginSDK/src/keepass2android/pluginsdk/Strings.java diff --git a/src/PluginHostTest/Activity1.cs b/src/PluginHostTest/Activity1.cs new file mode 100644 index 00000000..b22ea02a --- /dev/null +++ b/src/PluginHostTest/Activity1.cs @@ -0,0 +1,173 @@ +using System; +using System.Diagnostics; +using System.Linq; +using Android.App; +using Android.Content; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; +using Keepass2android.Pluginsdk; +using keepass2android; + +namespace PluginHostTest +{ + [Activity(Label = "PluginHostTest", MainLauncher = true, Icon = "@drawable/icon")] + public class Activity1 : Activity + { + int count = 1; + + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + + // Set our view from the "main" layout resource + SetContentView(Resource.Layout.Main); + + // Get our button from the layout resource, + // and attach an event to it + Button button = FindViewById