Home | History | Annotate | Download | only in settings

Lines Matching defs:String

59     private static final String TAG = "TetherSettings";
61 private static final String USB_TETHER_SETTINGS = "usb_tether_settings";
62 private static final String ENABLE_WIFI_AP = "enable_wifi_ap";
63 private static final String ENABLE_BLUETOOTH_TETHERING = "enable_bluetooth_tethering";
77 private String[] mUsbRegexs;
79 private String[] mWifiRegexs;
81 private String[] mBluetoothRegexs;
84 private static final String WIFI_AP_SSID_AND_SECURITY = "wifi_ap_ssid_and_security";
85 private static final int CONFIG_SUBTEXT = R.string.wifi_tether_configure_subtext;
87 private String[] mSecurityType;
108 private String[] mProvisionApp;
178 final String s = activity.getString(
179 com.android.internal.R.string.wifi_tether_configure_ssid_default);
180 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
184 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
214 String action = intent.getAction();
217 ArrayList<String> available = intent.getStringArrayListExtra(
219 ArrayList<String> active = intent.getStringArrayListExtra(
221 ArrayList<String> errored = intent.getStringArrayListExtra(
223 updateState(available.toArray(new String[available.size()]),
224 active.toArray(new String[active.size()]),
225 errored.toArray(new String[errored.size()]));
310 String[] available = cm.getTetherableIfaces();
311 String[] tethered = cm.getTetheredIfaces();
312 String[] errored = cm.getTetheringErroredIfaces();
316 private void updateState(String[] available, String[] tethered,
317 String[] errored) {
323 private void updateUsbState(String[] available, String[] tethered,
324 String[] errored) {
329 for (String s : available) {
330 for (String regex : mUsbRegexs) {
339 for (String s : tethered) {
340 for (String regex : mUsbRegexs) {
345 for (String s: errored) {
346 for (String regex : mUsbRegexs) {
352 mUsbTether.setSummary(R.string.usb_tethering_active_subtext);
357 mUsbTether.setSummary(R.string.usb_tethering_available_subtext);
359 mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
364 mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
368 mUsbTether.setSummary(R.string.usb_tethering_storage_active_subtext);
372 mUsbTether.setSummary(R.string.usb_tethering_unavailable_subtext);
378 private void updateBluetoothState(String[] available, String[] tethered,
379 String[] errored) {
381 for (String s: errored) {
382 for (String regex : mBluetoothRegexs) {
391 mBluetoothTether.setSummary(R.string.bluetooth_turning_off);
394 mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
403 String summary = getString(
404 R.string.bluetooth_tethering_devices_connected_subtext,
409 string.bluetooth_tethering_device_connected_subtext);
411 mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext);
413 mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext);
418 mBluetoothTether.setSummary(R.string.bluetooth_tethering_off_subtext);
484 mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
489 mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext);
506 mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
533 String [] tethered = cm.getTetheredIfaces();
534 String bluetoothIface = findIface(tethered, mBluetoothRegexs);
543 mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext);
545 mBluetoothTether.setSummary(R.string.bluetooth_tethering_off_subtext);
555 private static String findIface(String[] ifaces, String[] regexes) {
556 for (String iface : ifaces) {
557 for (String regex : regexes) {
582 mCreateNetwork.setSummary(String.format(getActivity().getString(CONFIG_SUBTEXT),
591 return R.string.help_url_tether;