Lines Matching defs:String
63 private static final String USB_TETHER_SETTINGS = "usb_tether_settings";
64 private static final String ENABLE_WIFI_AP = "enable_wifi_ap";
65 private static final String ENABLE_BLUETOOTH_TETHERING = "enable_bluetooth_tethering";
66 private static final String TETHER_CHOICE = "TETHER_TYPE";
67 private static final String DATA_SAVER_FOOTER = "disabled_on_data_saver";
71 private static final String TAG = "TetheringSettings";
82 private String[] mUsbRegexs;
84 private String[] mWifiRegexs;
86 private String[] mBluetoothRegexs;
92 private static final String WIFI_AP_SSID_AND_SECURITY = "wifi_ap_ssid_and_security";
93 private static final int CONFIG_SUBTEXT = R.string.wifi_tether_configure_subtext;
95 private String[] mSecurityType;
111 private String[] mProvisionApp;
135 .setTitle(R.string.tethering_footer_info);
240 final String s = activity.getString(
241 com.android.internal.R.string.wifi_tether_configure_ssid_default);
242 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
246 mCreateNetwork.setSummary(String.format(activity.getString(CONFIG_SUBTEXT),
274 String action = intent.getAction();
277 ArrayList<String> available = intent.getStringArrayListExtra(
279 ArrayList<String> active = intent.getStringArrayListExtra(
281 ArrayList<String> errored = intent.getStringArrayListExtra(
283 updateState(available.toArray(new String[available.size()]),
284 active.toArray(new String[active.size()]),
285 errored.toArray(new String[errored.size()]));
338 getEmptyTextView().setText(R.string.tethering_settings_not_available);
394 String[] available = mCm.getTetherableIfaces();
395 String[] tethered = mCm.getTetheredIfaces();
396 String[] errored = mCm.getTetheringErroredIfaces();
400 private void updateState(String[] available, String[] tethered,
401 String[] errored) {
407 private void updateUsbState(String[] available, String[] tethered,
408 String[] errored) {
411 for (String s : available) {
412 for (String regex : mUsbRegexs) {
421 for (String s : tethered) {
422 for (String regex : mUsbRegexs) {
427 for (String s: errored) {
428 for (String regex : mUsbRegexs) {
434 mUsbTether.setSummary(R.string.usb_tethering_active_subtext);
439 mUsbTether.setSummary(R.string.usb_tethering_available_subtext);
441 mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
446 mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
450 mUsbTether.setSummary(R.string.usb_tethering_storage_active_subtext);
454 mUsbTether.setSummary(R.string.usb_tethering_unavailable_subtext);
460 private void updateBluetoothState(String[] available, String[] tethered,
461 String[] errored) {
463 for (String s: errored) {
464 for (String regex : mBluetoothRegexs) {
476 mBluetoothTether.setSummary(R.string.bluetooth_turning_off);
479 mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
488 String summary = getString(
489 R.string.bluetooth_tethering_devices_connected_subtext,
494 R.string.bluetooth_tethering_device_connected_subtext);
496 mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext);
498 mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext);
503 mBluetoothTether.setSummary(R.string.bluetooth_tethering_off_subtext);
526 String[] provisionApp = context.getResources().getStringArray(
546 mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
596 mCreateNetwork.setSummary(String.format(getActivity().getString(CONFIG_SUBTEXT),
605 return R.string.help_url_tether;