summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/TetherSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix the message when Bluetooth is turning off while on the tethering menu.Ryan Baxter2013-03-091-1/+1
| | | | | | | | Currently says "Turning Wifi off..." This change will display "Turning Bluetooth off..." instead. Change-Id: I741e07f3b583e8e4cfb51073fe2556f58d8a89a1 Signed-off-by: Ryan Baxter <rbryanbaxter@gmail.com>
* Must initialize the new atomic..Robert Greenwalt2012-09-161-1/+1
| | | | | bug:7172859 Change-Id: Ibaf390683fa36771215b463fb6b088f7430c0462
* Protect self from async change of BluetoothPanRobert Greenwalt2012-09-141-26/+36
| | | | | bug:6945678 Change-Id: I627a55aea9170f889823a38c8e2bb08a06faa841
* Fixed the display count of connected panu device.zzy2012-09-101-6/+1
| | | | | | | | | Root cause: Bluez relies on the count of activated pan network interfaces to show how many panu devices are connected. But Bluedroid has only one shared pan network interface for any number of connected panu devices. Change-Id: I52e3d6d79e2f1b9f8afab1d70c9ff1eca3ef2349
* am f4cc034e: am d61c23b3: Merge "TetheringSetting: Keep Tethering checkbox ↵Jean-Baptiste Queru2012-08-171-1/+1
|\ | | | | | | | | | | | | unchecked until tethering up" * commit 'f4cc034e8c61a05b3e99ca4f698b3fe6de21bc98': TetheringSetting: Keep Tethering checkbox unchecked until tethering up
| * TetheringSetting: Keep Tethering checkbox unchecked until tethering upLi Wenji2012-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When click Tethering, the checkbox will be checked and then unchecked, and finally move to checked states. This causes confusing to end user, we need to keep Tethering checkbox unchecked before tethering is really up. Change-Id: If2314b7dd1369e619dead45af38fd53c7e89c34e Author: Li Wenji <wenji.li@intel.com> Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 18281
* | Clean up codes, fix long lines, improve readability, etcMatthew Xie2012-07-161-2/+1
| | | | | | | | | | | | Update copyright date, remove unused variable, import Change-Id: I731c48c8e5b16cbee5230f1d02109f249b8bab5d
* | Added null pointer checkzzy2012-07-161-4/+9
|/
* Move tether settings help to menu and remove local assets.Amith Yamasani2012-04-271-57/+7
| | | | | | | | Bug: 5270092 Using web help instead of local assets. Change-Id: Ib93e72443b30367521febc43279422ec130efbd5
* am 79ffc669: am aaff44c8: Don\'t allow wifi tethering when running monkeys.Amith Yamasani2012-01-091-1/+1
|\ | | | | | | | | * commit '79ffc669173325e62fdb9f5a1f96fe2a5c3c230b': Don't allow wifi tethering when running monkeys.
| * Don't allow wifi tethering when running monkeys.Amith Yamasani2012-01-091-1/+1
| | | | | | | | | | | | | | | | | | Bug: 5607825 Remove the wifi access point settings and wifi tethering checkbox when monkeys are running. Change-Id: I64b930ddb791013a08c178561fe29130f1f0e4b8
* | Add system prop to work around tether provisioningRobert Greenwalt2011-11-091-0/+4
|/ | | | | | | Set net.tethering.noprovisioning to something non-empty to avoid the provisioning check. bug:5445277 Change-Id: I048bffe2c11d80d79e8065f7fbe6cfb6db87da85
* Add provisioning checks for BT and USBIrfan Sheriff2011-11-041-30/+88
| | | | | Bug: 5568752 Change-Id: Ide4f3c0eb19f8e70e301a13d81b76dd6a0516c3a
* Use component details to send provisionig intentIrfan Sheriff2011-11-011-4/+5
| | | | | Bug: 5544654 Change-Id: I0bd33c2a0d4c657bd10ba966d67ff54c27e42ea1
* Add mobile hotspot provisioning supportIrfan Sheriff2011-10-061-6/+38
| | | | | Bug: 5346812 Change-Id: I3e117fb62039c1d8370440ab4109705894011928
* Fix a bug in disabling wifi tethering on a wifi-only device.Amith Yamasani2011-08-311-8/+11
| | | | | Bug: 5116955 Change-Id: I924915efbd46f918bd94c124f10389912fddf41a
* Restart soft Ap on a running config changeIrfan Sheriff2011-07-271-7/+4
| | | | | Bug: 5079339 Change-Id: I083548ef5ab3ce177e7fa3e7375a68b52bb576d7
* Fix USB tetheringMike Lockwood2011-07-191-39/+27
| | | | | | | | | | | | | The previous approach no longer works with the new USB drivers, since the usb0 interface is no longer enabled by default. This introduced a chicken & egg problem - usb0 will not be enabled until the user tries to start tethering, but Settings will not enable the checkbox unless usb0 is enabled. To fix this we add an explicit call to start USB tethering in the connectivity manager. This will enable RNDIS if necessary and then bring up tethering once usb0 is enabled. Change-Id: If3972c89e05377af00b7a71cc2588e44bd4cfaed Signed-off-by: Mike Lockwood <lockwood@android.com>
* Improve Bluetooth tethering UI usability.Jake Hamby2011-03-091-32/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | - Updated hint text for BT tethering checkbox to "[Sharing|not sharing] this [tablet|phone]'s mobile data connection". - Show correct hint text when user enters tethering screen. - Show correct status after user enables tethering when Bluetooth is off. When BluetoothPan.setBluetoothTethering(true) is called with BT off, BluetoothPanProfileHandler will add a broadcast receiver to enable tethering after BT turns on. This happens too late to show the correct status when TetherSettings gets the adapter state changed event, so set a flag (mBluetoothEnableForTether) instead, and call setBluetoothTethering ourselves after the state changes to ON. Also, clear the flag if the adapter state changes to OFF or ERROR. - Show correct status when user enables tethering, then disables Bluetooth, then returns to the tethering screen. Previously it would show Bluetooth tethering enabled, even though adapter state was OFF. - Show the number of connected devices in tethering preference screen. - Distinguish between PANU and NAP in device profiles screen, and show appropriate text to clarify the direction of tethering. - Remove profiles from device profiles list when the device removes the UUID (e.g. Mac OS X turning NAP on/off) and after a NAP disconnection when the remote device only supports PANU. Bug: 3414575 Change-Id: I2c0830876d5b9bddb293e57c4d3ca74f105911b8
* Move up wifi tethering settings one level.Amith Yamasani2011-03-021-1/+75
| | | | | | | | Bug: 3249998 Remove an extra level of menu by moving the Configure Wi-Fi hotspot preference to the Tethering settings page. Change-Id: I20b67ae1ddd7e9967c99ff6a8039799be792382f
* Refactor Bluetooth settings for readability and performance.Jake Hamby2011-03-011-22/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Major refactoring of Bluetooth settings classes. - Moved all functionality from LocalBluetoothManager into new LocalBluetoothAdapter and LocalBluetoothPreferences, and into existing classes. - Refactored functionality from BluetoothEventRedirector into new BluetoothEventManager class, deleting the original version. New version uses a HashMap from action Strings to implementers of the BluetoothEventManager.Handler interface. - Created new BluetoothDiscoveryReceiver to update shared preferences timestamp for Bluetooth discovery start/finish. This is the only event handling we need to do when the settings app is not visible, so it has its own receiver entry in AndroidManifest.xml. Edits are written using QueuedWork.singleThreadExecutor(), which BroadcastReceiver knows about and will wait for completion, eliminating the need for PendingResult. - Miscellaneous cleanups to code style and logic for readability. - Pulled some large switch statement code blocks into new methods. - Changed all Bluetooth state references to the new BluetoothProfile constants. - Changed use of deprecated Notification constructor in BluetoothPairingRequest to use Notification.Builder. - Moved Utf8ByteLengthFilter helper function from BluetoothNamePreference into its own class, and moved test cases into the same package. - Moved all LocalBluetoothProfileManager functionality related to specific profiles into new top-level classes (A2dpProfile, etc.), all implementing the LocalBluetoothProfile interface. - Moved all UI-related methods from CachedBluetoothDevice into the class that uses the method, or into the static Utils class for shared methods. Change-Id: I6d49b7f4ae0c7d7dcf62551ee40b51ecb5fe4f47
* Make BluetoothPan implement BluetoothProfile.Jaikumar Ganesh2011-02-231-2/+18
| | | | | | This makes it consistent across all other profiles. Change-Id: I4c0694d042d7ed1b78c92ca3be38c8d543886769
* Fix for crash in TetherSettings when monkey is running.Amith Yamasani2011-02-141-28/+6
| | | | | | | | | Bug: 3407666 onCreateView can get called on returning from another fragment. Moved the relevant code to onCreate(). Change-Id: Icf08c18a3981051cce4eca2d07334d0a9f3c0116
* NPE check in VpnSettings.Amith Yamasani2011-01-211-5/+15
| | | | | | | | | | | Bug: 3368545 Also fix a couple of bugs in TetherSettings: Bug: 3090156 - view was being reused without removing from old dialog Bug: 3368493 - preference being removed a second time Change-Id: I8fe513d41e1f3af6994783be5ead69b6bd205711
* Remove Bluetooth tethering settings screen.Jake Hamby2010-12-141-17/+0
| | | | | | | | | | Remove obsolete Bluetooth tethering settings screen. BT tethering can be turned on and off, but the connection must be initiated by the remote device. For reverse tethering, there will be a checkbox for that profile in the regular Bluetooth device settings screen. Bug: 3283928 Change-Id: Ic25139f8862b305feb0381e61c24b7783fad2366
* Keep the settings title as "Settings" even if launching a shortcut.Amith Yamasani2010-12-091-0/+2
| | | | | Handle clicks on Settings icon in top-left. Also fix a bug where Tethering settings was changing the title.
* Use PreferenceActivity and FragmentBreadCrumbs as they offer the same ↵Amith Yamasani2010-09-211-5/+4
| | | | | | | capabilities now. Also fix: 2997438 and a similar bug in Tether Settings Show + menu item for User Dictionary
* Fragmentize BluetoothSettings.Daisuke Miyakawa2010-09-131-2/+8
| | | | | | | | | Add UserLeaveHintListener.java, so that the settings won't use its implementation around Activity#onUserLeaveHint(). Also fragmentize bluetooth tethering screen. Change-Id: Id06ae3161fbdb5854ddb7a257f464fb16ea9b089
* Fragmentize TetherSettings and WifiApSettings.Daisuke Miyakawa2010-09-101-31/+34
| | | | | | | PreferenceScreen for BT tethering isn't fragmentized yet. We'll need to do so in the near future. Change-Id: I5a84fecaf84d55b59b6efa8151f2549ad37ca5db
* Decouple enabling of tethering with SDP record.Jaikumar Ganesh2010-09-021-5/+2
| | | | Change-Id: I50781bab52b28d7b3fe750fb055ffaeac5baf360
* bluetooth tetheringDanica Chang2010-08-171-14/+175
| | | | Change-Id: I8dfb1c85bb8b963d2937b8bc4a4c9f0cf641785d
* am 8d62eb4a: am 0008d219: Refactor to remove multiple in-loop ↵Ben Clark2010-08-171-13/+7
|\ | | | | | | | | | | | | | | | | Object[]->String[] castings Merge commit '8d62eb4a51141f4464ba0b4c510cf0ec4198a56a' * commit '8d62eb4a51141f4464ba0b4c510cf0ec4198a56a': Refactor to remove multiple in-loop Object[]->String[] castings
| * Refactor to remove multiple in-loop Object[]->String[] castingsBen Clark2010-07-291-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This replaces Iaa0f3b25eaadb094a4c3fb4cecbd09e0322aae33) This change removes the need to convert Object[]->String[] for each iteration of each of available,tethered,errored states in updateStatus() by converting these as soon as possible. This fix (and the code before) is strange because each of available,tethered, errored are defined as type ArrayList<String> but intent.getStringArrayListExtra() returns type Object[] dispite its name. Because other calls to updateState() use String[] it seems best to do the conversion outside this method in the Object[] case and thus avoid the per-iteration casting in the Object[] case and the downright wasteful per-iteration String[]->Object[]->String[] casting in the String[] input cases. I've also removed some unused imports and an unused variable. Change-Id: I805ef19aa9ceff7e4fc491623cdcb413ce170798
* | Don't enable USB Tethering UI for monkeys.Robert Greenwalt2010-06-161-1/+1
|/ | | | | | | | | If the monkeys turn on USB tethering they kill their usb connection and we lose the results of the run. Fix it by not showing that UI during monkey runs. bug:2679627 Change-Id: I7bb476a2d60c97dc9d3922d317fdcb586d0c7aec
* String change - wifi tether = hotspotRobert Greenwalt2010-05-081-0/+7
| | | | | bug:2664412 Change-Id: I6ca955e7fcc299ae1d69892c93c9250229610b19
* Fix the tethering help page.Robert Greenwalt2010-04-191-3/+24
| | | | | | | | It worked with language+country resources but for some resources it's just language. Added a check to see if we had lanugage+country before deciding which to use. bug:2605981 Change-Id: Icb667a51f0c376f5188e3a43f264e236cd265468
* Fix window leak on orientation changeIrfan Sheriff2010-04-071-20/+32
| | | | | | | | Use Activity managed dialogs Bug: 2571764 Bug: 2571820 Change-Id: Id506988abd4200155774e92b31dd132519e29172
* Add Title to the Tether help dialogRobert Greenwalt2010-03-301-0/+1
| | | | | bug:2546313 Change-Id: Ib70118b40289abd3cafdecf7fc814ca48bce2960
* Choose the Tether help file based on device configRobert Greenwalt2010-03-191-1/+13
| | | | | | | Don't show wifi Tethering help on devices that don't support it, etc. bug:2520021 Change-Id: I905d1b66fc239d5a5f5028715623d8781041f9ca
* Move status update to WifiApEnablerIrfan Sheriff2010-03-191-34/+0
| | | | | Bug: 2528202 Change-Id: I093699ac171279af9df5f3b3b4ae359aab79088b
* softAp UI changesIrfan Sheriff2010-03-161-0/+16
| | | | | | | | | Remove channel settings Add subtext error handling Remove WEP, keep WPA2 only for now Bug: 2413908 Change-Id: Ie867e84a0705f0d2185eeb3a4c86a8227446a338
* Add Tether Help UI.Robert Greenwalt2010-03-151-0/+18
| | | | | | Add a "Help" button to the tethering page that loads on-device html. Change-Id: I816ec552a4433296a6cb57345a37611eb2a92b37
* Fix Settings handling of UMS broadcasts.Robert Greenwalt2010-03-121-2/+6
| | | | | | | | Had to update the filter settings to accomodate the data scheme sent with the broadcast. bug:2504908 Change-Id: Idf07d3b6d408489735c55df5f3310551cf6192f5
* Update Tether Settings for new UMS behavior.Robert Greenwalt2010-03-101-13/+17
| | | | | | | | | Framework Tethering now will remove USB interfaces from the available iface list when UMS is started. Do note when UMS changes though so we can display the correct strings. bug:2469818 Change-Id: I5bf1eaea71994cbf9882e10301e88593533651a2
* Clean up the tethering settings screen a bit.Robert Greenwalt2010-03-091-42/+5
| | | | Change-Id: Iadd1cf9245a5ccd38537050a6b6c9d9390400b20
* Update Tethering UIRobert Greenwalt2010-03-041-12/+135
| | | | Finalizing some strings and changing the error handling.
* Add AP support for tetheringIrfan Sheriff2010-03-041-0/+19
| | | | | | | | First phase of the AP support in UI and framework Bug: 2421638 Change-Id: I0b6c31be5fe79bd4d33c292464d271b054754e8d
* Update Tether Settings UI.Robert Greenwalt2010-03-041-20/+0
| | | | Remove the USB notification option.
* Add support for tethering errors.Robert Greenwalt2010-03-031-2/+18
|
* Disable tethering checkbox when USB mass storage is active.Mike Lockwood2010-03-031-0/+8
| | | | | Change-Id: If60fab4c18bbac4da22af6c1799f28344e9870bd Signed-off-by: Mike Lockwood <lockwood@android.com>