summaryrefslogtreecommitdiffstats
path: root/packages/VpnDialogs/res
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2014-08-22 13:05:43 -0700
committerJeff Davidson <jpd@google.com>2014-08-22 17:06:37 -0700
commit90b1b9f985a91fb54254705515f822b09c68ac26 (patch)
tree60a8c7c53481fa84aa26663d6a76221fdf444379 /packages/VpnDialogs/res
parent8288c5b821532281d87f9ef881018074d2b3a327 (diff)
downloadframeworks_base-90b1b9f985a91fb54254705515f822b09c68ac26.zip
frameworks_base-90b1b9f985a91fb54254705515f822b09c68ac26.tar.gz
frameworks_base-90b1b9f985a91fb54254705515f822b09c68ac26.tar.bz2
Restore legacy VPN stats dialog.
Was originally removed in ag/522961, but restoring to keep legacy VPN behavior the same from within VpnSettings. This dialog is only accesible from VpnSettings and so should only ever be shown for legacy VPNs. Bug: 17164793 Change-Id: I06c4e136e1023b8f84edfd15a15264d2e41d325b
Diffstat (limited to 'packages/VpnDialogs/res')
-rw-r--r--packages/VpnDialogs/res/layout/manage.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/VpnDialogs/res/layout/manage.xml b/packages/VpnDialogs/res/layout/manage.xml
new file mode 100644
index 0000000..6b504e4
--- /dev/null
+++ b/packages/VpnDialogs/res/layout/manage.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="3mm"
+ android:stretchColumns="0,1"
+ android:shrinkColumns="1">
+
+ <TableRow>
+ <TextView android:text="@string/session" style="@style/label"/>
+ <TextView android:id="@+id/session" style="@style/value"/>
+ </TableRow>
+
+ <TableRow>
+ <TextView android:text="@string/duration" style="@style/label"/>
+ <TextView android:id="@+id/duration" style="@style/value"/>
+ </TableRow>
+
+ <TableRow android:id="@+id/data_transmitted_row" android:visibility="gone">
+ <TextView android:text="@string/data_transmitted" style="@style/label"/>
+ <TextView android:id="@+id/data_transmitted" style="@style/value"/>
+ </TableRow>
+
+ <TableRow android:id="@+id/data_received_row" android:visibility="gone">
+ <TextView android:text="@string/data_received" style="@style/label"/>
+ <TextView android:id="@+id/data_received" style="@style/value"/>
+ </TableRow>
+
+</TableLayout>
+