Home
last modified time | relevance | path

Searched refs:ToyVpnClient (Results 1 – 2 of 2) sorted by relevance

/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java68 mConfigureIntent = PendingIntent.getActivity(this, 0, new Intent(this, ToyVpnClient.class), in onCreate()
104 final SharedPreferences prefs = getSharedPreferences(ToyVpnClient.Prefs.NAME, MODE_PRIVATE); in connect()
105 final String server = prefs.getString(ToyVpnClient.Prefs.SERVER_ADDRESS, ""); in connect()
106 final byte[] secret = prefs.getString(ToyVpnClient.Prefs.SHARED_SECRET, "").getBytes(); in connect()
107 final boolean allow = prefs.getBoolean(ToyVpnClient.Prefs.ALLOW, true); in connect()
109 prefs.getStringSet(ToyVpnClient.Prefs.PACKAGES, Collections.emptySet()); in connect()
110 final int port = prefs.getInt(ToyVpnClient.Prefs.SERVER_PORT, 0); in connect()
111 final String proxyHost = prefs.getString(ToyVpnClient.Prefs.PROXY_HOSTNAME, ""); in connect()
112 final int proxyPort = prefs.getInt(ToyVpnClient.Prefs.PROXY_PORT, 0); in connect()
DToyVpnClient.java33 public class ToyVpnClient extends Activity { class
108 Intent intent = VpnService.prepare(ToyVpnClient.this); in onCreate()