OSDN Git Service

android-x86/packages-apps-Bluetooth.git
11 years agoresolved conflicts for merge of c508483d to jb-mr2-dev
Brian Carlstrom [Fri, 29 Mar 2013 17:15:42 +0000 (10:15 -0700)]
resolved conflicts for merge of c508483d to jb-mr2-dev

Change-Id: I15a1f2b2391a973645ef14c36bb3ddf71c815bc9

11 years agoMerge "Update RemoteControlDisplay interface for playback position" into jb-mr2-dev
Jean-Michel Trivi [Fri, 29 Mar 2013 16:51:34 +0000 (16:51 +0000)]
Merge "Update RemoteControlDisplay interface for playback position" into jb-mr2-dev

11 years agoDon't try using netd anymore.
Robert Greenwalt [Mon, 11 Mar 2013 22:46:39 +0000 (15:46 -0700)]
Don't try using netd anymore.

Instead, form a connection with the NetworkStateTracker so
ConnectivityService can treat this like the other networks.

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c

11 years agoif the element attribute string is more than the maximum length, try to send partial...
Zhihai Xu [Tue, 26 Mar 2013 00:45:56 +0000 (17:45 -0700)]
if the element attribute string is more than the maximum length, try to send partial attribute instead of empty attribute string .

issue 8470888

Change-Id: Ibfc3a25839bd07bd99dbb3328f56aad1d21720ea

11 years agoUpdate RemoteControlDisplay interface for playback position
Jean-Michel Trivi [Fri, 22 Mar 2013 17:51:54 +0000 (10:51 -0700)]
Update RemoteControlDisplay interface for playback position

Update Avrcp class to latest IRemoteControlDisplay interface
 that receives playback progress and playback speed.

bug 8120740

Change-Id: I7b30c5a312ab90ee8b1f45ad900efc7c941e133a

11 years agoMerge "framework support for new Bluetooth profiles AVRCP 1.3:Metadata and play statu...
Zhihai Xu [Thu, 21 Mar 2013 16:47:25 +0000 (16:47 +0000)]
Merge "framework support for new Bluetooth profiles AVRCP 1.3:Metadata and play status" into jb-mr2-dev

11 years agoframework support for new Bluetooth profiles AVRCP 1.3:Metadata and play status
Zhihai Xu [Thu, 14 Mar 2013 18:51:06 +0000 (11:51 -0700)]
framework support for new Bluetooth profiles AVRCP 1.3:Metadata and play status

send track changed response if the metadata is changed.

issue 8383522

Change-Id: Ie55ed368d355484a6b83f4aa24c70aa33b72f799

11 years agoenable xlsx, docx, pptx format to transfer/receive over bluetooth
Sungmin Choi [Fri, 30 Nov 2012 06:59:30 +0000 (15:59 +0900)]
enable xlsx, docx, pptx format to transfer/receive over bluetooth

Add proper MIME types for xlsx, docx, pptx.

Bug: 7479989
Change-Id: I77b065f7856fa399c5084ffa96deace0e3f15487

11 years agoFix logging in GATT JNI code
Mike Lockwood [Thu, 14 Mar 2013 22:58:50 +0000 (15:58 -0700)]
Fix logging in GATT JNI code

Change-Id: I80057b4e4b1572daf745f53c3c47de21ac824076

11 years agoresolved conflicts for merge of c508483d to jb-mr2-dev
Brian Carlstrom [Tue, 12 Mar 2013 06:47:55 +0000 (23:47 -0700)]
resolved conflicts for merge of c508483d to jb-mr2-dev

Change-Id: I7f32e6dd98c3cc61030cded700587aa852c0fc0a

11 years agoMerge "Cleanup Bluetooth AdapterService JNI"
Brian Carlstrom [Tue, 12 Mar 2013 04:51:25 +0000 (04:51 +0000)]
Merge "Cleanup Bluetooth AdapterService JNI"

11 years agoCleanup Bluetooth AdapterService JNI
Brian Carlstrom [Tue, 12 Mar 2013 01:12:08 +0000 (18:12 -0700)]
Cleanup Bluetooth AdapterService JNI

I was here to force the version to be initialized as required in the call to AttachCurrentThread.

Probably JNI_ABORT should be used in ReleaseByteArrayElements to avoid copy back, but 0 is semantically what was passed before.

Change-Id: I812b0785011385b033e67012faa08d113418f01e

11 years agoInitial version of BLE support for Bluedroid
Ganesh Ganapathi Batta [Tue, 5 Feb 2013 23:38:27 +0000 (15:38 -0800)]
Initial version of BLE support for Bluedroid

Change-Id: I9579b3074bc4bc59dd45f71c0937e8879196555e

11 years agoAdd OBEX object count support to Bluetooth.
Martijn Coenen [Thu, 21 Feb 2013 18:45:54 +0000 (10:45 -0800)]
Add OBEX object count support to Bluetooth.

To support Android Beam receiving information about
the number of files in a OPP transfer, add the Count
OBEX header. Also add a new intent to tell the handover
requested that a transfer has started, including the
count (if any).

Change-Id: Ib5e0e8dbc6c2e3259e0f732a507557c3688e168c

11 years agoTurn on some debug message in Adapter service
Matthew Xie [Thu, 14 Feb 2013 22:41:43 +0000 (14:41 -0800)]
Turn on some debug message in Adapter service

We had turned off too much debug messages. It is getting hard to
make out useful information from bugreports. Now, selectively turn
on some messages.

Change-Id: Ia62bc9d5967a10690709abaa0e20a15dd01c258d

11 years agoMerge "turn off getState debug message, not so useful now"
Matthew Xie [Thu, 14 Feb 2013 20:21:42 +0000 (20:21 +0000)]
Merge "turn off getState debug message, not so useful now"

11 years agoturn off getState debug message, not so useful now
Matthew Xie [Thu, 14 Feb 2013 20:19:35 +0000 (12:19 -0800)]
turn off getState debug message, not so useful now

Change-Id: I258cb35f3166ac8a6a4c4ee7965db527cf17c2e2

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 30 Jan 2013 16:19:05 +0000 (08:19 -0800)]
Import translations. DO NOT MERGE

Change-Id: I0f0cec686b588b4a7bd0890bdc81297c9e0506ff
Auto-generated-cl: translation import

11 years agoAdd protected log methods to StateMachine
Wink Saville [Mon, 28 Jan 2013 19:29:51 +0000 (11:29 -0800)]
Add protected log methods to StateMachine

This allow child classes to Override the logging and
have consistent behavior across StateMachines.

Change-Id: I7e23a44d08ca304ade2d7830fd0e307f63f1879e

11 years agoUse getRadioTechnology call instead of getRilVoiceRadioTechnology
Matthew Xie [Tue, 15 Jan 2013 01:10:38 +0000 (17:10 -0800)]
Use getRadioTechnology call instead of getRilVoiceRadioTechnology

getRilVoiceRadioTechnology had obsoleted getRadioTechnology
We are using the obsolete method to get bluetooth master compile
with aosp build for Broadcom branch.

Change-Id: Ica4258f99be82a2b0e04f74eac0bc5ee95f0a914

11 years agoam 43f8ccf6: am 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"
Adam Powell [Thu, 10 Jan 2013 23:39:13 +0000 (15:39 -0800)]
am 43f8ccf6: am 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"

* commit '43f8ccf63a02b28be395fd223461f1421ea2aa99':
  Upgrade the app to better follow holo guidelines

11 years agoam 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"
Adam Powell [Wed, 9 Jan 2013 20:03:36 +0000 (12:03 -0800)]
am 6eb3b8d3: Merge "Upgrade the app to better follow holo guidelines"

* commit '6eb3b8d3b7ffc1d80ae7734042e2c4d36a77a19f':
  Upgrade the app to better follow holo guidelines

11 years agoMerge "Upgrade the app to better follow holo guidelines"
Adam Powell [Wed, 9 Jan 2013 19:51:02 +0000 (11:51 -0800)]
Merge "Upgrade the app to better follow holo guidelines"

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 2 Jan 2013 18:36:57 +0000 (10:36 -0800)]
Import translations. DO NOT MERGE

Change-Id: I4ae6a84f16401f7b8f18414b1936cd6f1b2d8bb7
Auto-generated-cl: translation import

11 years agoMerge "Bluetooth OPP should sanitize Uri data and MIME types before calling startActi...
Zhihai Xu [Wed, 19 Dec 2012 23:22:18 +0000 (15:22 -0800)]
Merge "Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity"

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 6 Dec 2012 16:10:01 +0000 (08:10 -0800)]
Import translations. DO NOT MERGE

Change-Id: I840504c614699e56c7755b4d26d47e8362c640ed
Auto-generated-cl: translation import

11 years agoam 67b17615: am fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev
Matthew Xie [Mon, 3 Dec 2012 19:30:48 +0000 (11:30 -0800)]
am 67b17615: am fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev

* commit '67b1761534d7e2518830cfb3d2c28271ffe56a26':
  Clean up debug messages

11 years agoam fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev
Matthew Xie [Mon, 3 Dec 2012 19:29:16 +0000 (11:29 -0800)]
am fa5a6aff: Merge "Clean up debug messages" into jb-mr1.1-dev

* commit 'fa5a6affffb0efe6c41ea44499b0e9b619bee161':
  Clean up debug messages

11 years agoMerge "Clean up debug messages" into jb-mr1.1-dev
Matthew Xie [Mon, 3 Dec 2012 19:24:49 +0000 (11:24 -0800)]
Merge "Clean up debug messages" into jb-mr1.1-dev

11 years agoam 3d34fdb1: am 28cc9881: need send status code back(OK) after broadcast the intent...
Zhihai Xu [Sat, 1 Dec 2012 00:35:23 +0000 (16:35 -0800)]
am 3d34fdb1: am 28cc9881: need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

* commit '3d34fdb17090e476a5ccd6d7bb57d61d9f528eff':
  need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

11 years agoam 28cc9881: need send status code back(OK) after broadcast the intent(VENDOR_SPECIFI...
Zhihai Xu [Sat, 1 Dec 2012 00:33:40 +0000 (16:33 -0800)]
am 28cc9881: need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

* commit '28cc9881bb7fb2e5e410006f4f303c494b97665e':
  need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

11 years agoneed send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)
Zhihai Xu [Sat, 1 Dec 2012 00:07:10 +0000 (16:07 -0800)]
need send status code back(OK) after broadcast the intent(VENDOR_SPECIFIC_HEADSET_EVENT)

bug 7564004

Change-Id: I5fc1eed1c0db194c3fdd63799b2340eea994988d

11 years agoClean up debug messages
Matthew Xie [Fri, 30 Nov 2012 04:25:02 +0000 (20:25 -0800)]
Clean up debug messages

bug 7626174

Change-Id: I0161d54dd325a7a1afcf8926ef54cd483e7503fb

11 years agoam 78622268: am e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT...
Zhihai Xu [Wed, 28 Nov 2012 01:34:29 +0000 (17:34 -0800)]
am 78622268: am e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev

* commit '786222689749046824ba206ab32f8ac9794c998b':
  Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing

11 years agoam e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into...
Zhihai Xu [Tue, 27 Nov 2012 20:09:19 +0000 (12:09 -0800)]
am e2039454: Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev

* commit 'e203945454e23b2fd31ad278f7d374e1e1ccf2db':
  Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing

11 years agoMerge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev
Zhihai Xu [Tue, 27 Nov 2012 20:05:16 +0000 (12:05 -0800)]
Merge "Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing" into jb-mr1.1-dev

11 years agoCode to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing
Zhihai Xu [Sun, 18 Nov 2012 10:05:46 +0000 (02:05 -0800)]
Code to broadcast VENDOR_SPECIFIC_HEADSET_EVENT missing

add +XEVENT vendor specific command handler in processUnknownAt

bug 7564004

Change-Id: I78847553700b2da28dbf9ca8f9d0509f5f3fa924

11 years agoRename get radio technology
Wink Saville [Fri, 16 Nov 2012 16:14:53 +0000 (08:14 -0800)]
Rename get radio technology

Change-Id: I83f2b0eda8c6ccdff1b7253164e2531ca1357e72

11 years agoMerge "Revert "Rename get radio technology""
Wink Saville [Thu, 15 Nov 2012 23:22:18 +0000 (15:22 -0800)]
Merge "Revert "Rename get radio technology""

11 years agoRevert "Rename get radio technology"
Wink Saville [Thu, 15 Nov 2012 23:16:40 +0000 (15:16 -0800)]
Revert "Rename get radio technology"

This reverts commit d38211fe71e9e738290c6b84ef70188b8ac55071

Change-Id: I8e8cda5ce923ccec6827e9b5609d82c765b15ae2

11 years agoMerge "Rename get radio technology"
Wink Saville [Thu, 15 Nov 2012 22:27:59 +0000 (14:27 -0800)]
Merge "Rename get radio technology"

11 years agoUpgrade the app to better follow holo guidelines
blunden [Tue, 18 Sep 2012 22:57:46 +0000 (00:57 +0200)]
Upgrade the app to better follow holo guidelines

- Fix the icon scaling in the transfer list
  The icon is centered and upscaled instead of just centered.

- Remove dialog info icon according to UI team recommendation

- Replace icons with holo versions and add xhdpi

Change-Id: Id3b06e8e06244ec8859d65404d779b66c1354e3d

11 years agoam a6853edb: am 4daa2db1: Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHAN...
Zhihai Xu [Tue, 13 Nov 2012 00:38:56 +0000 (16:38 -0800)]
am a6853edb: am 4daa2db1: Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev

* commit 'a6853edb4504e95dcd07e0ffc306ef07dc759b56':
  need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users

11 years agoam 641b4e22: am cb7b1a54: Fixed potention ANR issue with Bluetooth OPP share.
Fred [Tue, 13 Nov 2012 00:38:55 +0000 (16:38 -0800)]
am 641b4e22: am cb7b1a54: Fixed potention ANR issue with Bluetooth OPP share.

* commit '641b4e22af7aa0e3b426eaad395f7887c10a9546':
  Fixed potention ANR issue with Bluetooth OPP share.

11 years agoam e3e1e8d1: Fixed potention ANR issue with Bluetooth OPP share.
Fred [Tue, 13 Nov 2012 00:38:55 +0000 (16:38 -0800)]
am e3e1e8d1: Fixed potention ANR issue with Bluetooth OPP share.

* commit 'e3e1e8d1fe2a75b38ee1dfe5a102685877a22f84':
  Fixed potention ANR issue with Bluetooth OPP share.

11 years agoam 4daa2db1: Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent...
Zhihai Xu [Tue, 13 Nov 2012 00:36:47 +0000 (16:36 -0800)]
am 4daa2db1: Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev

* commit '4daa2db107f17fa8e8dfe35003924c69566bccb6':
  need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users

11 years agoam cb7b1a54: Fixed potention ANR issue with Bluetooth OPP share.
Fred [Tue, 13 Nov 2012 00:36:47 +0000 (16:36 -0800)]
am cb7b1a54: Fixed potention ANR issue with Bluetooth OPP share.

* commit 'cb7b1a54ae3ce309210824099253a916a04d350b':
  Fixed potention ANR issue with Bluetooth OPP share.

11 years agoMerge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users...
Zhihai Xu [Tue, 13 Nov 2012 00:32:11 +0000 (16:32 -0800)]
Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev

11 years agoneed to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
Zhihai Xu [Mon, 12 Nov 2012 23:28:58 +0000 (15:28 -0800)]
need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users

We need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
because bluetooth manager service use this intent to change name.
Bluetooth manager service is always running as User 0. but it is always binding
to bluetooth service running at foreground user, So the bluetooth service
need send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED broadcast intent
to all users to let bluetooth manager service to receive it at any cases.

bug 7476965

Change-Id: I816786d0828d4a7d414077b1ccbe12d2e273fc75

12 years agoFixed potention ANR issue with Bluetooth OPP share.
Fred [Fri, 28 Sep 2012 22:04:14 +0000 (15:04 -0700)]
Fixed potention ANR issue with Bluetooth OPP share.

Updated BluetoothOppLauncherActivity so the call to
BluetoothOppManager.saveSendingFileInfo() runs on a child thread.
saveSendingFileInfo() opens/constructs the content stream, which
can take a long time, depending on the type of content.
It should not run inside the main UI thread of the
BluetoothOppLauncherActivity.

Bug 6802063

Change-Id: Id34b33fe37eb029d6a7592a811bbc9bbcde14ba8

12 years agoFixed potention ANR issue with Bluetooth OPP share.
Fred [Fri, 28 Sep 2012 22:04:14 +0000 (15:04 -0700)]
Fixed potention ANR issue with Bluetooth OPP share.

Updated BluetoothOppLauncherActivity so the call to
BluetoothOppManager.saveSendingFileInfo() runs on a child thread.
saveSendingFileInfo() opens/constructs the content stream, which
can take a long time, depending on the type of content.
It should not run inside the main UI thread of the
BluetoothOppLauncherActivity.

Bug 6802063

Change-Id: Id34b33fe37eb029d6a7592a811bbc9bbcde14ba8

12 years agoRename get radio technology
Wink Saville [Fri, 2 Nov 2012 19:41:11 +0000 (12:41 -0700)]
Rename get radio technology

Change-Id: I267f54c5533f815d14c8f7a2f81545c8e08b773c

12 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 2 Nov 2012 05:37:15 +0000 (22:37 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0fb25c32cec8d8a26691c05946999890d8115a5d
Auto-generated-cl: translation import

12 years agoam 929aa0f5: am 19d8d544: Temporarily add GALLERY_PROVIDER permission to fix Beam.
Martijn Coenen [Wed, 31 Oct 2012 00:47:19 +0000 (17:47 -0700)]
am 929aa0f5: am 19d8d544: Temporarily add GALLERY_PROVIDER permission to fix Beam.

* commit '929aa0f501d196b5b5fecc2a05d0bc1096ada464':
  Temporarily add GALLERY_PROVIDER permission to fix Beam.

12 years agoam 19d8d544: Temporarily add GALLERY_PROVIDER permission to fix Beam.
Martijn Coenen [Wed, 31 Oct 2012 00:44:49 +0000 (17:44 -0700)]
am 19d8d544: Temporarily add GALLERY_PROVIDER permission to fix Beam.

* commit '19d8d5447897a7f8f4ee1ac2745639e4c8c1ff8b':
  Temporarily add GALLERY_PROVIDER permission to fix Beam.

12 years agoTemporarily add GALLERY_PROVIDER permission to fix Beam.
Martijn Coenen [Tue, 30 Oct 2012 22:15:05 +0000 (15:15 -0700)]
Temporarily add GALLERY_PROVIDER permission to fix Beam.

Photo transfers incoming through Android Beam switch processes
twice (Gallery->NFC, NFC->Bluetooth), and the permission to
access to the Gallery content provider is not transferred.
As a short term solution, grant Gallery provider
permissions to Bluetooth.

Bug: 7433498
Change-Id: Id5915f4a37bec5003a42646162249a0c2c69aa48

12 years agoam 8b709b4c: am ede67c26: License of files Bluetooth package is not updated to ASL2
Zhihai Xu [Wed, 24 Oct 2012 17:53:52 +0000 (10:53 -0700)]
am 8b709b4c: am ede67c26: License of files Bluetooth package is not updated to ASL2

* commit '8b709b4caac6e0cdb35a117fa3a523d0200a203f':
  License of files Bluetooth package is not updated to ASL2

12 years agoam ede67c26: License of files Bluetooth package is not updated to ASL2
Zhihai Xu [Wed, 24 Oct 2012 17:50:11 +0000 (10:50 -0700)]
am ede67c26: License of files Bluetooth package is not updated to ASL2

* commit 'ede67c26e7b2564ea35db6d9b3027a269c150e13':
  License of files Bluetooth package is not updated to ASL2

12 years agoLicense of files Bluetooth package is not updated to ASL2
Zhihai Xu [Wed, 24 Oct 2012 00:01:01 +0000 (17:01 -0700)]
License of files Bluetooth package is not updated to ASL2

bug 7385618

Change-Id: I338fd87083387706f3b5f410c9592219bb8a1acb

12 years agoam b1f690e1: am bd704c74: BT connection notification in not updated in status bar...
Zhihai Xu [Wed, 17 Oct 2012 20:20:58 +0000 (13:20 -0700)]
am b1f690e1: am bd704c74: BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can\'t receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from blue

* commit 'b1f690e19d77b67630004517c5342f89b578f204':
  BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can't receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from bluetooth service when We switch to second user. Also the system UI also is running as uid 10055, which will also call function isEnabled, getState, getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service. I allow these functions to be called by all the users. I forget remove check for getBondState in my first patch set

12 years agoam bd704c74: BT connection notification in not updated in status bar for second user...
Zhihai Xu [Wed, 17 Oct 2012 20:18:13 +0000 (13:18 -0700)]
am bd704c74: BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can\'t receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from bluetooth service

* commit 'bd704c741b8c523ad747214f6f0520ac3e2caf8f':
  BT connection notification in not updated in status bar for second user It is due to the system UI is always running as the first user. It can't receive broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED from bluetooth service when We switch to second user. Also the system UI also is running as uid 10055, which will also call function isEnabled, getState, getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service. I allow these functions to be called by all the users. I forget remove check for getBondState in my first patch set

12 years agoBT connection notification in not updated in status bar for second user
Zhihai Xu [Wed, 17 Oct 2012 17:01:03 +0000 (10:01 -0700)]
BT connection notification in not updated in status bar for second user
It is due to the system UI is always running as the first user. It can't receive
broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED
from bluetooth service when We switch to second user. Also the system UI also
is running as uid 10055, which will also call function isEnabled, getState,
getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service.
I allow these functions to be called by all the users.
I forget remove check for getBondState in my first patch set

bug 7333382

Change-Id: I57f39a722e78d6d2453ebfecaab043637fef4d9c

12 years agoam f128aa02: am a595fcc5: Fix crash in Bluetooth when sharing MMS video.
Jake Hamby [Tue, 16 Oct 2012 20:53:40 +0000 (13:53 -0700)]
am f128aa02: am a595fcc5: Fix crash in Bluetooth when sharing MMS video.

* commit 'f128aa0298dcaf07cf0bec0717943dd1f97b1eb6':
  Fix crash in Bluetooth when sharing MMS video.

12 years agoam a595fcc5: Fix crash in Bluetooth when sharing MMS video.
Jake Hamby [Tue, 16 Oct 2012 20:50:52 +0000 (13:50 -0700)]
am a595fcc5: Fix crash in Bluetooth when sharing MMS video.

* commit 'a595fcc57e7f0be9cf57913cd665dc99e4001b16':
  Fix crash in Bluetooth when sharing MMS video.

12 years agoFix crash in Bluetooth when sharing MMS video.
Jake Hamby [Tue, 16 Oct 2012 01:47:09 +0000 (18:47 -0700)]
Fix crash in Bluetooth when sharing MMS video.

Some content providers, such as MMS, don't support the DISPLAY_NAME
or SIZE columns for content URIs. Fall back to using the last segment
of the URI as the filename for Bluetooth file transfers if the query
for DISPLAY_NAME fails.

Bug: 7343310
Change-Id: Ie048c5eea3ba9994259c9e07beabd72622d6b669

12 years agoam 83f334c0: am d329befd: Merge "Bluetooth: Use proper holo alert drawable"
Adam Powell [Fri, 12 Oct 2012 19:10:02 +0000 (12:10 -0700)]
am 83f334c0: am d329befd: Merge "Bluetooth: Use proper holo alert drawable"

* commit '83f334c0f748a5ee8b68d85fd0133c73e5d6bf28':
  Bluetooth: Use proper holo alert drawable

12 years agoam d329befd: Merge "Bluetooth: Use proper holo alert drawable"
Adam Powell [Fri, 12 Oct 2012 19:08:14 +0000 (12:08 -0700)]
am d329befd: Merge "Bluetooth: Use proper holo alert drawable"

* commit 'd329befdd38a5c441e1a2b7e4595b7de86ac100b':
  Bluetooth: Use proper holo alert drawable

12 years agoMerge "Bluetooth: Use proper holo alert drawable"
Adam Powell [Fri, 12 Oct 2012 18:35:01 +0000 (11:35 -0700)]
Merge "Bluetooth: Use proper holo alert drawable"

12 years agoam fb8b2791: Fix NREC command format error
Matthew Xie [Wed, 10 Oct 2012 22:50:49 +0000 (15:50 -0700)]
am fb8b2791: Fix NREC command format error

* commit 'fb8b279141dac5255926d2dd4317f803cd1bbcf0':
  Fix NREC command format error

12 years agoBluetooth OPP should sanitize Uri data and MIME types before calling startActivity
Zhihai Xu [Wed, 10 Oct 2012 22:27:00 +0000 (15:27 -0700)]
Bluetooth OPP should sanitize Uri data and MIME types before calling startActivity

bug 5842045

Change-Id: I00a80fc7dc6c6031ab35113539ff6cdf4cf230a6

12 years agoFix NREC command format error
Matthew Xie [Wed, 10 Oct 2012 22:23:11 +0000 (15:23 -0700)]
Fix NREC command format error

Add = sign before off
bug 7326510

Change-Id: Ief269f608646acaa2872679a5c649da3cf22de37

12 years agoam df9d0fe5: Merge "Turn off dbg messages, be prepared for production build" into...
Matthew Xie [Wed, 10 Oct 2012 19:23:01 +0000 (12:23 -0700)]
am df9d0fe5: Merge "Turn off dbg messages, be prepared for production build" into jb-mr1-dev

* commit 'df9d0fe584874f8cafa6ecedb3c3c054c9e99cba':
  Turn off dbg messages, be prepared for production build

12 years agoMerge "Turn off dbg messages, be prepared for production build" into jb-mr1-dev
Matthew Xie [Wed, 10 Oct 2012 19:18:02 +0000 (12:18 -0700)]
Merge "Turn off dbg messages, be prepared for production build" into jb-mr1-dev

12 years agoam cd18678b: Merge "Bluetooth multi-user updates: change bluetooth service to reject...
Zhihai Xu [Wed, 10 Oct 2012 17:02:13 +0000 (10:02 -0700)]
am cd18678b: Merge "Bluetooth multi-user updates: change bluetooth service to reject background user access." into jb-mr1-dev

* commit 'cd18678b1e100052023706746d2578ebfd433958':
  Bluetooth multi-user updates: change bluetooth service to reject background user access.

12 years agoMerge "Bluetooth multi-user updates: change bluetooth service to reject background...
Zhihai Xu [Wed, 10 Oct 2012 16:56:33 +0000 (09:56 -0700)]
Merge "Bluetooth multi-user updates: change bluetooth service to reject background user access." into jb-mr1-dev

12 years agoBluetooth multi-user updates: change bluetooth service
Zhihai Xu [Tue, 9 Oct 2012 01:04:32 +0000 (18:04 -0700)]
Bluetooth multi-user updates: change bluetooth service
to reject background user access.

bug 6925422

Change-Id: I11d5ebf007c2843a72a9870055fc96672daf8409

12 years agoam da3d0ac5: Config pbap_include_photots_in_vcard false as default
Matthew Xie [Tue, 9 Oct 2012 02:08:12 +0000 (19:08 -0700)]
am da3d0ac5: Config pbap_include_photots_in_vcard false as default

* commit 'da3d0ac516109a213cfc281dfaadc9b1d9a2fa5c':
  Config pbap_include_photots_in_vcard false as default

12 years agoConfig pbap_include_photots_in_vcard false as default
Matthew Xie [Tue, 9 Oct 2012 01:38:52 +0000 (18:38 -0700)]
Config pbap_include_photots_in_vcard false as default

bug 7070862

Change-Id: I7de38269e3ea451b44d9a9afd0477dedc6978987

12 years agoTurn off dbg messages, be prepared for production build
Matthew Xie [Mon, 8 Oct 2012 06:46:41 +0000 (23:46 -0700)]
Turn off dbg messages, be prepared for production build

bug 7174712

Change-Id: I58747ec6507da8ea8ae27a182b601aaf626ede42

12 years agoam 344036be: Make Bluetooth Services support multi user
Matthew Xie [Fri, 5 Oct 2012 06:31:41 +0000 (23:31 -0700)]
am 344036be: Make Bluetooth Services support multi user

* commit '344036be03c7bb0ef5eb101416b122152b61ca0c':
  Make Bluetooth Services support multi user

12 years agoMake Bluetooth Services support multi user
Matthew Xie [Tue, 2 Oct 2012 04:49:48 +0000 (21:49 -0700)]
Make Bluetooth Services support multi user

Add bt_net_stack permission
bug 6925422

Change-Id: I5765a9cc770f7c48eb88bff4757b276f0cad4709

12 years agoam be38be94: remove the AT command separator from the CPBR range parameters
zzy [Thu, 4 Oct 2012 17:41:59 +0000 (10:41 -0700)]
am be38be94: remove the AT command separator from the CPBR range parameters

* commit 'be38be94c0a2faf3802b596be5b3ab568d6d85a4':
  remove the AT command separator from the CPBR range parameters

12 years agoremove the AT command separator from the CPBR range parameters
zzy [Thu, 4 Oct 2012 04:20:58 +0000 (21:20 -0700)]
remove the AT command separator from the CPBR range parameters

Root cause: Integer.parseInt(indices[0]) throw exception if char ';' at the end.

Bug 7274805

12 years agoam 6458cffa: Move socket initialization code out of pbap service\'s main thread
Matthew Xie [Tue, 2 Oct 2012 23:36:15 +0000 (16:36 -0700)]
am 6458cffa: Move socket initialization code out of pbap service\'s main thread

* commit '6458cffaca286611e898c75ad86e2d98c89008b6':
  Move socket initialization code out of pbap service's main thread

12 years agoMove socket initialization code out of pbap service's main thread
Matthew Xie [Tue, 2 Oct 2012 01:20:37 +0000 (18:20 -0700)]
Move socket initialization code out of pbap service's main thread

Socket initialization need the preparation from stack and a domain socket
connection. All this takes time and not proper to be run in the main thread.
bug 7258324

Change-Id: Ic46601602556c2949f18d446016188d874099874

12 years agoam c7ead6d5: Move bluetooth priorities from Secure to Global.
Jeff Sharkey [Mon, 1 Oct 2012 20:48:41 +0000 (13:48 -0700)]
am c7ead6d5: Move bluetooth priorities from Secure to Global.

* commit 'c7ead6d5827f3832b9210e92fab7597142059852':
  Move bluetooth priorities from Secure to Global.

12 years agoMove bluetooth priorities from Secure to Global.
Jeff Sharkey [Mon, 1 Oct 2012 19:49:31 +0000 (12:49 -0700)]
Move bluetooth priorities from Secure to Global.

Bug: 7231171
Change-Id: I39e3611dcec1104558704ed72855fef85f33c084

12 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 28 Sep 2012 04:16:54 +0000 (21:16 -0700)]
Import translations. DO NOT MERGE

Change-Id: I820cacfe1910aa6a2f34e0e9c61756c07480b4c3
Auto-generated-cl: translation import

12 years agoam 0e463621: Add MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app
Matthew Xie [Wed, 26 Sep 2012 18:40:45 +0000 (11:40 -0700)]
am 0e463621: Add MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app

* commit '0e46362107a23fcfe829b270f3ff987d911cd102':
  Add MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app

12 years agoAdd MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app
Matthew Xie [Wed, 26 Sep 2012 07:12:26 +0000 (00:12 -0700)]
Add MODIFY_PHONE_STATE permission to access Bluetooth service in Phone app

Enforce MODIFY_PHONE_STATE permission for some HeadsetService APIs that
only provided for Phone app for phone stat change notifications
bug 7115021

Change-Id: I62e3f429f4205feb50e123ee94b4c468999804a6

12 years agoam ebdb4d92: When pbap cleanup, stopSelfResult called twice with same service id
zzy [Thu, 20 Sep 2012 16:29:45 +0000 (09:29 -0700)]
am ebdb4d92: When pbap cleanup,  stopSelfResult called twice with same service id

* commit 'ebdb4d92c0ea0b5e40afe0feec71105695d27a4c':
  When pbap cleanup,  stopSelfResult called twice with same service id

12 years agoWhen pbap cleanup, stopSelfResult called twice with same service id
zzy [Tue, 11 Sep 2012 22:55:25 +0000 (15:55 -0700)]
When pbap cleanup,  stopSelfResult called twice with same service id

This seemed like to be the root casue of bug 7136940.  The thread 3564 stuck after following log:
09-10 11:24:08.882  3564  V BluetoothPbapService: Pbap Service closeService

bug 7136940

12 years agoam 826318bb: Merge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev
John Huang [Wed, 19 Sep 2012 22:20:16 +0000 (15:20 -0700)]
am 826318bb: Merge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev

* commit '826318bb9de042f10df8639da2965bf4d9d38e85':
  Enable Bluetooth sharing of downloaded files.

12 years agoMerge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev
John Huang [Wed, 19 Sep 2012 18:07:36 +0000 (11:07 -0700)]
Merge "Enable Bluetooth sharing of downloaded files." into jb-mr1-dev

12 years agoam faebb8f4: Revert "Reference headers in their new location"
Jean-Baptiste Queru [Tue, 18 Sep 2012 22:33:30 +0000 (15:33 -0700)]
am faebb8f4: Revert "Reference headers in their new location"

* commit 'faebb8f49fb0f4c0810c08f76246f65fd95bfdfc':
  Revert "Reference headers in their new location"

12 years agoRevert "Reference headers in their new location"
Jean-Baptiste Queru [Tue, 18 Sep 2012 19:54:12 +0000 (12:54 -0700)]
Revert "Reference headers in their new location"

This reverts commit 7e2c121e720d9c4f7914df218c30b240662fe0b2.

12 years agoMerge
Jean-Baptiste Queru [Mon, 17 Sep 2012 17:52:58 +0000 (10:52 -0700)]
Merge

Change-Id: Ic9b2ccc47431764df8248f64d3e72b0f32ac5488

12 years agoMerge "Add StateMachine make methods." into jb-mr1-dev
Wink Saville [Sun, 16 Sep 2012 16:36:30 +0000 (09:36 -0700)]
Merge "Add StateMachine make methods." into jb-mr1-dev

12 years agoReference headers in their new location
Jean-Baptiste Queru [Sat, 15 Sep 2012 16:23:28 +0000 (09:23 -0700)]
Reference headers in their new location

Change-Id: I45608fe5089492b20d09abeda624b8d32c5343e7

12 years agoAdd StateMachine make methods.
Wink Saville [Sat, 15 Sep 2012 14:59:10 +0000 (07:59 -0700)]
Add StateMachine make methods.

StateMachines must be started before any messages are sent to them
otherwise an exception is thrown.

Bug: 7091976
Change-Id: I05315d45d4d6db42843442b7feb37c665cfabcab