82108 Commits

Author SHA1 Message Date
Matthew Xie
6fde309807 Minor changes. Change some instance variables to be final.
Variable name changes, better code reability.

Change-Id: I9f0e9c8a57d4bacf0723be1f91d621c592860683
2012-07-16 21:30:10 -07:00
Fred
a8c6df0d3a Removed startService() call from BluetoothManagerService.
BT enable()/disable() are handled by using the binder interface

Change-Id: I0bb8d4984129706e424320241ca3ea7e12caf0d3

Conflicts:

	core/java/android/bluetooth/IBluetooth.aidl
2012-07-16 21:29:44 -07:00
Matthew Xie
9631314e3d Fix merge error, put in tmp workaround for input manager.
Fix merge error, missing enableNoAutoConnect api.
Remove bluetoothF from inputManageF.systemReady call as tmp workaround.
Recover shutdownRadios(MAX_RADIO_WAIT_TIME) call in ShutdownThread

Change-Id: Ice2b5c54267755bdbf56c742feabbb8709b92570
2012-07-16 21:29:12 -07:00
fredc
5a1195fd5f Fixed issue with ActivityChooserView not working if there is only 1 share option available
Change-Id: If21742f3ddc28f54bf8da6cbc7e81ee0df19d6f0
2012-07-16 21:28:28 -07:00
fredc
bf072a712f Moved BluetoothAdapter.ACTION_STATE_CHANGED broadcast from AdapterService to BluetoothManagerService
Change-Id: I88e5f3fe050cf11eae9c5cf1b7c393a178b8f9b1
2012-07-16 21:28:12 -07:00
zzy
c2f5cc50f7 disable the sync addr flag 2012-07-16 21:27:44 -07:00
Swaminatha Balaji
20738945d4 Auto connect hf/a2dp
Change-Id: I7c1fb4e2614f65e6810f195814dcf0cad88aee21
2012-07-16 21:26:46 -07:00
Andre Eisenbach
a732ffd8e0 Re-enable Bluetooth after a reboot, even if airplane mode is enabled.
This is to resolve Buganizer issue 6325950 and make the behaviour of
Blueooth and Wifi consistant.

Change-Id: Idd6cfa79136f7847e9e670d6d2aa0bf613b0381f
2012-07-16 21:26:26 -07:00
zzy
7329e70841 Added code to tear down dhcp thread when tethering is off 2012-07-16 21:25:57 -07:00
fredc
d6883533e4 Fixed socket not closing on BT off. Used RemoteCallbackList to monitor binder deaths in BluetoothManagerService.
Change-Id: I524964bd2836d8c5a4bae095b93ac9481337941d
2012-07-16 21:25:05 -07:00
fredc
903ac6f399 Fixed issue with Settings app crashing after during on/off and unpair.
Fixed issue with BluetoothAdapter.getRemoteDevice() returning null.

Change-Id: Ie86813532530a6b57bde1c430c7b4875ecc7354c
2012-07-16 21:24:32 -07:00
Ravi Nagarajan
7077272d8f Disable debug logs in BluetoothDevice, that was turned on accidentally Change-Id: I8a0a3f5775c2b9f5a928e4840851e687f25b57ab 2012-07-16 21:24:09 -07:00
fredc
116d1d4696 Fixed issue with getting Bluetooth adapter's name and airplane mode
Change-Id: I18b632223574aa41b09ba30de8e35417fad86cbe
2012-07-16 21:23:34 -07:00
fredc
649fe497ce Fixed BT on/off issues and added airplane mode handling
Change-Id: If39df19b99a3f45ebe82e89205d8bb0ff036e2a2
2012-07-16 21:22:56 -07:00
Sreenidhi T
4bedba49fe Change done in BluetoothAdapter to use the same API for interacting with the Bluetooth Service. setName was being done using mService while getName was using mManagerService. As a result, the device name was not being updated in Localadapter getname call. Modified to use mService in both cases.
Change-Id: I2e900a782df11fd511319fbb42d94324e50ae89b
2012-07-16 21:22:32 -07:00
fredc
f24588615e Fixed issue with Bluetooth not turning on if enabled called twice in a row or disabled called twice in a row
Change-Id: I26cac2fa347934e0740578b811aa5a6767cf4862
2012-07-16 21:21:50 -07:00
Kausik Sinnaswamy
a097f51e5f BT enable adapter API should return TRUE or FALSE.
Change-Id: Iaef14c51d3407b69505c55a0bbdaf902213402cf
2012-07-16 21:21:23 -07:00
fredc
0f42037eb7 Non persistent adapter service
Change-Id: Ib13d5c77416e58161df0e04d7a15ec0dddbde8b5

Conflicts:

	core/java/android/bluetooth/BluetoothInputDevice.java

Conflicts:

	core/java/com/android/internal/app/ShutdownThread.java
	services/java/com/android/server/SystemServer.java

Conflicts:

	services/java/com/android/server/SystemServer.java
	services/java/com/android/server/pm/ShutdownThread.java
2012-07-16 21:20:54 -07:00
Ravi Nagarajan
919a4c6264 Handle cancel bond for both legacy and ssp pairing
Change-Id: I7a6db3cd7b5b8e72dca988e753dcba9a8df614c8
2012-07-16 21:20:29 -07:00
Priti Aghera
349e62f329 HID-PTS: Included apis' for pts tests
Change-Id: I7dc0a893ee86a2560c351a565bd170517f6c6079
2012-07-16 21:20:07 -07:00
fredc
4c9cacadcc Added support to get a remote device's service UUIDs
Change-Id: I9aa47ac2bb7377aca268e95fec31c518358b3065
2012-07-16 21:19:51 -07:00
Srikanth Uppala
827de2d73e Fix discoverability timeout issues. (a) implement timeout logic (b) persist 'never timeout' after reboot (c) code cleanup
Change-Id: Iacaec4a48a45935a49576c140ea11ea3d0da6361
2012-07-16 21:19:35 -07:00
zzy
3b147b7702 Added new rfcomm multi accept code 2012-07-16 21:19:18 -07:00
Matthew Xie
13450df2b9 Initial Health Profile implementation
Change-Id: I22f35073ceb131d84df6b233d1b63d20fa1b4451
2012-07-16 21:18:56 -07:00
Matthew Xie
bf246ef0ab Initial implementation of HID, add IBluetoothInputDevice idl
Change-Id: Iadc79a425b4b6e12329d86dd2ac0782adcb0174d
2012-07-16 21:18:36 -07:00
Priti Aghera
db44b20fe6 Added support to cancel pairing from UI while doing SSP.
The new code sends SSPReply with one of the arguments as false.
Signed-off-by: Priti Aghera <paghera@broadcom.com>
2012-07-16 21:18:08 -07:00
Matthew Xie
14b330d3a6 add queryPhoneState in IBluetoothHeadsetPhone
Change-Id: I10a9237518f04c1453d09f9a10b6ce0e6107056a
2012-07-16 21:17:41 -07:00
Matthew Xie
3e8c82edb1 Framework changes for HFP and A2DP profile implementation of the new stack.
Add IBluetoothHeadsetPhone.aidl for a small service in Phone to get
phone state changes

Change-Id: I1015e4a69720c4e9cd18ae4236ccd0dbff2e1b2c
2012-07-16 21:17:05 -07:00
Jaikumar Ganesh
e21a4ac09d Add a new version of the disable API.
This allows for the setting to be persisted or not.
Also turn on Bluetooth in System Server if needed.
It won't work currently because the service wouldn't have
started.

Change-Id: I15fa2bff93aa32134c1b565fcbe90ba68614b6a1
2012-07-16 21:14:15 -07:00
Matthew Xie
75780aa431 Merge "Changes for new Bluetooth APIs." 2012-07-16 21:13:38 -07:00
Matthew Xie
3a6794cad7 Merge "Changes to Bluetooth Service structure." 2012-07-16 21:13:26 -07:00
Matthew Xie
a0a69897df Merge "Remove BT references from System Server." 2012-07-16 21:13:06 -07:00
Matthew Xie
a8ae2ee371 Merge "Dock: Temporary removal of function to get BT address" 2012-07-16 21:12:48 -07:00
Matthew Xie
d4d4e715c5 Merge "Delete various Bluetooth files for stack integration." 2012-07-16 21:09:13 -07:00
Elliott Hughes
9e4a6baee3 am 7d5c5111: am 3c04cc44: Merge "Don\'t talk about Froyo as if it\'s still in the future."
* commit '7d5c51117dae79665660df28a0f3b24e6fe75fbd':
  Don't talk about Froyo as if it's still in the future.
2012-07-16 18:20:02 -07:00
Elliott Hughes
7d5c51117d am 3c04cc44: Merge "Don\'t talk about Froyo as if it\'s still in the future."
* commit '3c04cc44c400d0ed2155428fa50d5facc91cd893':
  Don't talk about Froyo as if it's still in the future.
2012-07-16 18:15:45 -07:00
Adam Powell
41a48e4a99 am c36b8acd: am 38895394: Merge "Properly switch MediaRouter to wired audio over a2dp." into jb-dev
* commit 'c36b8acd1e850619de0bbf678b9573d4d761d836':
  Properly switch MediaRouter to wired audio over a2dp.
2012-07-16 17:36:49 -07:00
Adam Powell
c36b8acd1e am 38895394: Merge "Properly switch MediaRouter to wired audio over a2dp." into jb-dev
* commit '388953942b536b5eebd942ef78ae5b7499bc2078':
  Properly switch MediaRouter to wired audio over a2dp.
2012-07-16 17:33:40 -07:00
Adam Powell
388953942b Merge "Properly switch MediaRouter to wired audio over a2dp." into jb-dev 2012-07-16 17:30:42 -07:00
Romain Guy
3d53103921 Merge "Add shader-based text gamma correction" 2012-07-16 17:08:42 -07:00
Romain Guy
4121063313 Add shader-based text gamma correction
To enable it, the system property ro.hwui.text_gamma_shader must be
set to true. For testing, DEBUG_FONT_RENDERER_FORCE_SHADER_GAMMA
can be set to 1 in libhwui/Debug.h.

Change-Id: If345c6b71b67ecf1ef2e8847b71f30f3ef251a27
2012-07-16 17:04:24 -07:00
Glenn Kasten
5e457b70ce Merge "Increase SchedulingPolicyService.PRIORITY_MAX to 3" 2012-07-16 16:27:44 -07:00
Erik Gilling
f8dcee5151 Merge "remove code to resize status bar when on HDMI" 2012-07-16 16:24:30 -07:00
Jeff Brown
c69238ebc8 Merge "Remove dithering support." 2012-07-16 16:18:13 -07:00
Jeff Brown
3cc321ecf5 Remove dithering support.
The dithering flag is no longer implemented in Surface Flinger
so this is all dead code.

Change-Id: I74c0e452923207e5b7cfe0eeca9457e5cb990947
2012-07-16 16:17:25 -07:00
Erik Gilling
81d13e8e73 remove code to resize status bar when on HDMI
Change-Id: I413eff8fe664033e5187ac54247ec0140175b7ba
2012-07-16 16:00:58 -07:00
Scott Main
11b0395aca am 4fbbea09: am 1878bef2: Merge "docs: adjustments to correct text alignment" into jb-dev
* commit '4fbbea09ffbb0c294cfe608d0eb5e830809c95be':
  docs: adjustments to correct text alignment
2012-07-16 15:53:41 -07:00
Jeff Brown
abae83d155 Merge "Remove freeze(), unfreeze() and setFreezeTint()." 2012-07-16 15:53:00 -07:00
Jeff Brown
f422a56694 Merge "Remove freezeDisplay(), which is no-op." 2012-07-16 15:52:54 -07:00
Dirk Dougherty
8ec65d5ba7 am 9a5456a0: am 63c3117e: Merge "Doc change: API diffs for 16." into jb-dev
* commit '9a5456a0e5ac83f1541b3df3444a57364ed1ad6d':
  Doc change: API diffs for 16.
2012-07-16 15:50:18 -07:00