Implement NdnPing client
Update jNDN to 0.14 and fix a small problem Crypto++ fixed in upstream.
Change-Id: I4697489dcc7f74f1d7c40e196f5f983e4bd3b1ef
Refs: #3459
diff --git a/app/src/main/res/layout/fragment_ping_client.xml b/app/src/main/res/layout/fragment_ping_client.xml
new file mode 100644
index 0000000..82760b3
--- /dev/null
+++ b/app/src/main/res/layout/fragment_ping_client.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/default_linear_layout_padding"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="10dp"
+ android:paddingBottom="10dp"
+ android:orientation="horizontal">
+
+ <EditText
+ android:id="@+id/pingName"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="10"
+ android:hint="@string/ping_client_prefix_hint"/>
+
+ <Button
+ android:id="@+id/pingStart"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@string/start" />
+
+ </LinearLayout>
+
+ <ListView
+ android:id="@+id/pingResult"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ </ListView>
+
+</LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/list_item_ping_result.xml b/app/src/main/res/layout/list_item_ping_result.xml
new file mode 100644
index 0000000..e487ff5
--- /dev/null
+++ b/app/src/main/res/layout/list_item_ping_result.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/default_linear_layout_padding"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/ping_result"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+
+</LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5691bdd..d25909a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,4 +1,6 @@
<resources>
+ <string name="start">Start</string>
+ <string name="stop">Stop</string>
<string name="app_name">NFD</string>
<string name="service_name">NFD Service</string>
<string name="action_settings">Settings</string>
@@ -15,6 +17,7 @@
<string name="drawer_item_general">General</string>
<string name="drawer_item_faces">Faces</string>
<string name="drawer_item_routes">Routes</string>
+ <string name="drawer_item_ping">Ping</string>
<string name="drawer_item_strategies">Strategies</string>
<string name="drawer_item_logcat">Logcat</string>
<string name="menu_item_delete_setting_item">Delete</string>
@@ -72,4 +75,5 @@
<string name="fragment_route_details_title">Route Details</string>
<string name="fragment_route_details_next_hops">List of next hops</string>
<string name="fragment_route_route_name_title">Route Name</string>
+ <string name="ping_client_prefix_hint">Prefix (e.g., /ndn/edu/arizona)</string>
</resources>