| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
- comply to the SEARCH_INDEX_DATA_PROVIDER
- add to the Index the name of previously paired BT devices
(this will work for now only and only if BT has been on during
the indexing)
Change-Id: I00065db0f4e9657cca3578a2fafa0ec39cfaa432
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit eb56b9ccb8fa70a6c567d0bcd02f821e4de4bf7b.
Conflicts:
src/com/android/settings/bluetooth/BluetoothDiscoverableEnabler.java
src/com/android/settings/bluetooth/BluetoothSettings.java
src/com/android/settings/bluetooth/LocalDeviceProfilesSettings.java
Change-Id: I2ce6b9eb0e335ba1b9aa4e1cb61a041f00d9aa87
|
|
|
|
|
|
|
|
|
| |
BluetoothEnabler
The saved context could be invalid if not updated
bug 12991455
Change-Id: I93abb8420d0fa53add1f0e843a5069d59743891c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
renamed tablet
There was a fundamental flow in the BT code. Basically BluetoothSettings is using
a singleton BluetoothDiscoverableEnabler.
BluetoothDiscoverableEnabler is keeping (thru its constructor) a reference on a Context
for registering/unregistering some broadcast receiver. BUMMER! When you change orientation
(or more generally the device Configuration), your Context is no more the same!
Hence the crash as we were trying to unregister a Receiver on a Context that is no more valid.
Fix that issue by passing an updated Context to the BluetoothDiscoverableEnabler.resume() API.
Bug #12991455
Change-Id: I77db15d2b59b6dd973907e26f9e6bb022202a8b5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent
Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).
Also, verified that:
- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer
Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
|
|
|
|
| |
Change-Id: I5721f136267fe25e55f764bb4a6c53acd45b318b
|
|
|
|
|
|
|
|
| |
When these screens are locked down with user restrictions,
it should prompt the user for the restrictions pin before allowing
access to the settings screen.
Change-Id: Iadbb087da2d9470b855ea0bea89f2da1ffb9e854
|
|
|
|
|
|
|
|
|
|
| |
When a user has the user restriction DISALLOW_CONFIG_BLUETOOTH
- Remove all the menu items for searching and other config
- Hide "available" but non-paired devices
- Remove settings button from paired devices
- Remove ability to make the device visible to others
Change-Id: Icaebf29d3cce55d924fdd65449447b5b7a438bbe
|
|
|
|
|
|
| |
- use setPaddingRelative() instead of setPadding()
Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
|
|
|
|
|
| |
Bug: 7207090
Change-Id: Ie14a1d36a61b571766d2025ed7d8079712727690
|
|
|
|
|
|
|
|
| |
All of the functionality is in place but the UI is
not fully polished yet.
Bug: 7178216
Change-Id: Id76843bff05cc71e5c02a31bc97c7070d58fff10
|
|
|
|
|
|
| |
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)
Change-Id: I696c0f66a16640af767da3c05b5d300fd2284ecb
|
|
|
|
|
| |
Bug: 5144896
Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
|
|
|
|
|
| |
Bug: 6079494
Change-Id: I12f729134407eaa719dc6a25e89a3b48476985e2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- When there are no available Bluetooth devices, we show
"No Bluetooth devices were found nearby" as a preference item after
the scan completes. Update the layout for this Preference item so
that the text is centered and doesn't highlight when touched.
- Fix slow responsiveness on scanning caused by repeated removal of
"No Bluetooth devices were found" preference item on every call to
onBindView().
- If no devices are paired, don't restart the scan on every rotation.
Bug: 5173935
Bug: 5055460
Change-Id: I52fb2d52f315c5e793f08499146842d54c5c3ead
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Pair one devie, then turn off BT then reboot the phone
and enter Bluetooth settings screen and turn on BT.
The last paired device will not be displayed in paired list.
- After onResume() is called, the list is shown.
- The reason is that mDevicePreferenceMap is not empty. The paired
devices are cached when BT is off and then skipped when BT is
turned on and updateContent() is called again.
- Make the mDevicePreferenceMap clear when updateContent() is called
and adapter state is BluetoothAdapter.STATE_ON.
Change-Id: Ia745e02bcb4e21a54ccc8477a4dfbad1fa5aed17
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
|
|
|
|
|
|
|
|
|
|
|
| |
- When trying to pair with any device, if bond state changes
device scan will be started automatically.
- add some flag to check proper scan time and to prevent unnecessary device scanning.
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
Change-Id: I4977ec122105f33cdd25a4f5c9fed59dda916379
|
|
|
|
| |
Change-Id: Ia83237290da035e5ee7a2e92ef56fc02838aac56
|
|
|
|
|
|
|
|
| |
- Add some codes preventing setting crash when rotating the screen
when the Rename device or Visibility timeout dialogs are visible.
Change-Id: I5e142a5d869a0d5c91c6ace80093d09178d79558
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Change Bluetooth profiles screen to match ICS wireframes
- Remove BluetoothProfilePreference.java (no longer used)
- Remove "Pair with this device" summary below every unpaired device
- Remove "Paired but not connected" summary below unconnected paired devices
- Fix auto connection after pairing (reuse existing CachedBluetoothDevice)
- Add "Connected (no phone/media)" summaries based on ICS wireframes
- Fix visibility timeout strings.
- Fix crash when starting Bluetooth from Settings shortcut widget.
Bug: 5064139
Bug: 5064324
Bug: 5080404
Bug: 5093513
Bug: 5104485
Change-Id: Ie87103e183ce414c86cb1831a38ef0178b1b1292
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove BluetoothFindNearby.java (no longer used)
- Show message when Bluetooth is turning off
- Fix case where device name sometimes didn't show when turning BT on
- Disable "Rename device" and "Visibility timeout" menus when BT is off
- Remove "Got onDeviceAdded, but cachedDevice already exists" log message
- Never show "Rename device" in action menu (bug 5064378)
- Show discovery time remaining as "m:ss", not "mm:ss" (bug 5064104)
Bug: 5064378
Bug: 5064104
Change-Id: I79609dfdad61993a28cff64c9e082870ff74d180
|
|
|
|
|
|
|
|
|
|
| |
* Change Bluetooth pairing dialogs to match ICS wireframes.
* Default to numeric soft keyboard for PIN entry, and add checkbox
to allow user to switch to alphanumeric keyboard if necessary.
* Move all Bluetooth advanced settings into action bar menu.
* Toggle visibility by touching "My device" entry in devices list.
Change-Id: Ic2377eb4364f41d215181cb1e3933997c9db9106
|
|
|
|
|
|
|
|
|
|
| |
Two lists: paired devices and available devices.
New item at top for the device itself (not connected to discoverable, this is a larger
refactoring).
New settings icon.
Change-Id: I788a6c0afdb07309d449a4d41a02cf8480c95a37
|
|
|
|
|
|
| |
A TextView is used as an empty view, centered on screen with the message.
Change-Id: I33825775d6b2ed212e5839cfac84d055b9336667
|
|
|
|
|
|
| |
Tap to pair in place of searching. Message when no device is found.
Change-Id: I0a4b1fa140e8a30b154ae2686e9c75d3768fc44e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Paired devices are listed first (from cache), followed by unpaired ones.
A scan is only started on user request or when there is no paired device
(should it be when there is no paired *connected* device?).
Wrench icon only displayed for paired devices.
Wrench click listener no longer uses mDeviceSettings which is unreliable
with ListView view recycling.
Fixed blinking ProgressCategory when the category was first in the list.
Change-Id: Ie749883426c12bd354da64733bd04b00304bc1f5
|
|
|
|
|
|
|
|
|
| |
Made menu item visible to force action bar, changed style.
Also change parent_fragment for items that have been moved to top level (wifi,
bluetooth, development, battery).
Change-Id: I62932ba55356abdfbf94942f5b4efaa0f15dbd6a
|
|
|
|
|
|
| |
Wifi and bluetooth pane refactored, main toggles moved to left pane.
Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
|
|
|
|
|
|
|
|
|
| |
Fix NPE when entering Settings app in the SDK (and for devices without
Bluetooth). Also remove the "Bluetooth settings" item in addition to
the Bluetooth toggle item from Wireless settings when BT is missing.
Bug: 4149307
Change-Id: Iecc5960a193cf88664d3217b4d7bdbc2276dabc0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
be two minues, five minutes, an hour, or forever discoverable.
This addresses the internal bug 2413429:
http://b/issue?id=2413429
and external issue 6348:
http://code.google.com/p/android/issues/detail?id=6348
Original Author: Chris Wren <crwen@google.com>
Modifications done by: Jaikumar Ganesh<jaikumar@google.com>
Change-Id: Ie12e56ac41aa01a161d263c7525b6e021d4eeb1f
|
|
|
|
|
|
|
|
| |
Add handler to send an intent to the Bluetooth OPP app to show the
list of received files to the user.
Bug: 3167219
Change-Id: I59e18559a0c35add7f1be56a5f040dae4dccc7f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Close the scan screen after successful pairing, and remove a
device from the list of paired devices after unpairing.
As part of the fix, BluetoothSettings was refactored into a parent
class, DeviceListPreferenceFragment, and three subclasses for each
variant type: BluetoothSettings, BluetoothFindNearby, and
DevicePickerFragment, replacing the checks against mScreenType with
custom logic in the child classes.
Bug: 3325848
Change-Id: If64fddc3ba5b4f1136451491c7d5a1139b696e47
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for reported bug where settings app crashes while trying to share
a picture. Bug report showed IllegalStateException thrown with message
"Got onDeviceAdded, but cachedDevice already exists." Changed code to
print an error message to the log and ignore the unexpected event,
rather than throwing an uncaught exception that crashes the app.
Bug: 2192884
Change-Id: I016be6a1616b317b2289768d18ae9f069a49445e
|
|
|
|
|
|
|
|
|
|
| |
- Enable support for reverse tethering in BT settings.
- Add string resource for "Auto connect" preference.
- Remove unused imports and other minor cleanups.
- Add isConnectable() and isAutoConnectable() methods to Profile
enum type and remove isConnectableProfile() method.
Change-Id: Ie606db04028a8278e98231f0671a388671f2f067
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Fix some SDP records issues.
Change-Id: I42816527b1ae0749b4b59b7947f1acb9d2e6f001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed context menu logic for long press (no longer used).
- Converted device picker to run in its own Activity, using a dialog
theme on large screen devices and full-screen on phones.
- Removed unused resources.
- Add device to "Paired devices" list when pairing is initiated by the
remote device.
- Return to Bluetooth settings pane after successfully pairing a new
device from the "Find nearby device" pane.
- Add support for renaming devices (TODO: persist the custom name and
update the "bread crumb" in the action bar to the new device name).
- Add support for incoming file transfer and auto connect checkboxes
in DeviceProfilesSettings.
- Show available and connected device profiles as icons instead of
summary text. Available but disconnected profiles are drawn in gray.
- Fixed bluetooth_notif_message to include the device name as a parameter
instead of appending the name to the end of the localized string.
- Changed some fields from private to package scope for more efficient
access from inner classes.
Bug: 3137982
Change-Id: Ic2d6ee5be60c9c5b3f3a8a58846d58efedfa5c93
|
|
|
|
|
|
|
|
| |
Allow individual Bluetooth profiles to be connected/disconnected from
the device's settings pane.
Bug: 3137982
Change-Id: I21512c5bf965fc523f3dc1e83d029b16b5e22440
|
|
|
|
|
|
|
|
| |
Added a separate scanning screen.
UI changes to not require long-press options.
Needs TODOs to be filled by BT team.
Bug: 3038327
|
|
|
|
| |
Bug: 3089335
|
|
|
|
|
|
|
|
|
| |
Add UserLeaveHintListener.java, so that the settings won't use
its implementation around Activity#onUserLeaveHint().
Also fragmentize bluetooth tethering screen.
Change-Id: Id06ae3161fbdb5854ddb7a257f464fb16ea9b089
|
|
|
|
| |
Change-Id: I711de3c8d6f6b1dafeec4fb5dde4fa33d997bcca
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
leak."
Merge commit '2876ad62082207e0e02cbc38b65ce9993cb121bf'
* commit '2876ad62082207e0e02cbc38b65ce9993cb121bf':
Fix Bluetooth Settings activity memory leak.
|
| |
| |
| |
| |
| | |
There were two leaks in Bluetooth Settings: one when rotating the
phone and other when scanning for bluetooth devices.
|
|/
|
|
| |
Change-Id: I8dfb1c85bb8b963d2937b8bc4a4c9f0cf641785d
|
|
|
|
|
|
| |
This improves OPP transfer time by a couple of seconds.
Change-Id: I40e8f092ca3950a2d180b78f07f1cc717f2daaf6
|
|
|
|
| |
Change-Id: I206794245a6afeb97366dd32e609f4e7f9374c20
|
|\
| |
| |
| |
| |
| |
| | |
Merge commit 'a87f2fd7d82e5055e0f9ea2c93704ed0b58f27ef' into eclair-mr2
* commit 'a87f2fd7d82e5055e0f9ea2c93704ed0b58f27ef':
b/2320107 Fixed NPE for class bits. Docks do not have class bits.
|
| |
| |
| |
| | |
Change-Id: Ibe4f697a906010f8f3ee270b891db286a4976f8a
|