1. 17 Oct, 2012 2 commits
    • Zhihai Xu's avatar
      am bd704c74: BT connection notification in not updated in status bar for... · b1f690e1
      Zhihai Xu authored
      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 '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 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
      b1f690e1
    • Zhihai Xu's avatar
      BT connection notification in not updated in status bar for second user · bd704c74
      Zhihai Xu authored
      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
      bd704c74
  2. 16 Oct, 2012 2 commits
  3. 12 Oct, 2012 2 commits
  4. 10 Oct, 2012 3 commits
  5. 09 Oct, 2012 2 commits
  6. 08 Oct, 2012 1 commit
  7. 05 Oct, 2012 1 commit
  8. 04 Oct, 2012 1 commit
  9. 02 Oct, 2012 1 commit
  10. 01 Oct, 2012 1 commit
  11. 26 Sep, 2012 1 commit
  12. 19 Sep, 2012 2 commits
  13. 18 Sep, 2012 1 commit
  14. 16 Sep, 2012 1 commit
  15. 15 Sep, 2012 2 commits
  16. 14 Sep, 2012 2 commits
    • Jake Hamby's avatar
      Enable Bluetooth sharing of downloaded files. · ee52ddf3
      Jake Hamby authored
      Change BT OPP to open the InputStreams of files to share in the
      BluetoothOppLauncherActivity (or BluetoothOppHandoverReceiver
      for NFC shares), while the process has grantUriPermission() on
      the URI's to share.
      
      InputStreams are saved inside the existing BluetoothOppSendFileInfo
      objects, which no longer include the mDestination field because
      this isn't known at the time the SendFileInfo object is now created
      (before the user has chosen the destination BT device). These
      objects are stored in a static ConcurrentHashMap in BluetoothOppUtility
      and are removed when the file is closed (on success or failure).
      
      If the user tries to share thousands of files in one batch, we may
      not be able to open InputStreams for all of the files in the batch.
      In this case, the open should fail gracefully.
      
      Bug: 6808783
      Change-Id: I3f3f86d2dc1a78a837aeb6a888f90b26434ba499
      ee52ddf3
    • Matthew Xie's avatar
      Donot include photo in vard in pbap · f46f032a
      Matthew Xie authored
      Certain carkit abort pbap transfer if vcard includes photo
      bug 7070862
      
      Change-Id: Iacd7e20901a7450599e844d1fb34923108e81bdc
      f46f032a
  17. 11 Sep, 2012 3 commits
    • zzy's avatar
      fixed bt on off stress test issue · 1c03c84f
      zzy authored
      root cause: cleanup stack process overlapped with bt turning
      on process sometime. The cleanup() call in adapterservice.java
      need to be call from onUnbind() to synchronize the
      BluetoothSererviceManager unbindandFinish() call.
      bug 7083069
      
      Change-Id: Ib4c64d7e5fc996277278471969f187bb5e915a76
      1c03c84f
    • Björn Lundén's avatar
      Bluetooth: Use proper holo alert drawable · 09f5dca9
      Björn Lundén authored
      Make it use the holo drawables instead of the GB
      compability drawable.
      
      Change-Id: Ib85d89f0f3a6248d357a612afa8c0158a0876b86
      09f5dca9
    • Kausik Sinnaswamy's avatar
      Terminate PBAP service cleanly during BT off · 37e1e995
      Kausik Sinnaswamy authored
      PBAP service runs in a loop of 10 trials to create the RFCOMM listener
      thread; this loop is not getting interrupted during BT off, due to which
      we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to
      check for BT state after RFCOMM listener failure and break out of the
      loop if BT is being turned off.
      bug 7134544
      
      Change-Id: I81d2a559857eef9138ebca662ea28f1d3e358bb8
      37e1e995
  18. 10 Sep, 2012 3 commits
  19. 29 Aug, 2012 1 commit
    • Ravi Nagarajan's avatar
      Adjust profile priorities when setting auto-connect · 9eb4a849
      Ravi Nagarajan authored
      At a given point only one device should be set to have
      PRIORITY_AUTO_CONNECT per profile. When setting a device priority
      adjust the other devices' priority to make sure auto-connect
      is attempted with only one device
      bug 7076087
      
      Change-Id: I1e03945a06e7acc901b53f34429194b3c3e76cd7
      9eb4a849
  20. 23 Aug, 2012 1 commit
    • Syed Ibrahim M's avatar
      Fix for BT crash during CPBR AT cmd processing · 976912e5
      Syed Ibrahim M authored
      Delete the local reference of jstring objects during every callback
      for unknown AT command and dial command after JNI calls the Java
      methods.
      Bug 7044655
      
      Change-Id: I21792b95fbad37c488ec5a1a30521a5413192751
      976912e5
  21. 20 Aug, 2012 1 commit
  22. 14 Aug, 2012 3 commits
    • Ravi Nagarajan's avatar
      Notify headset of signal strength change · a8e40f54
      Ravi Nagarajan authored
      Battery and service state changes were relayed to the stack, but not
      signal strength. This has been resolved.
      bug 6983415
      
      Change-Id: Ie6fbb108805348e39c9119d028afb834556ae6b0
      a8e40f54
    • Ganesh Ganapathi Batta's avatar
      Implement enableNoAutoconnect() for NFC handover · ca6110d5
      Ganesh Ganapathi Batta authored
      Implementation of  BT enable in Quiet mode without initiating auto connect and  not allowing
      Incoming HFP, A2DP and HID  connections.
      
      Change-Id: I857aea8d95677f8287df4641ec0aeae58a9f7a99
      ca6110d5
    • Ravi Nagarajan's avatar
      listenForPhoneState only after SLC · 44d87716
      Ravi Nagarajan authored
      Start phone state listener after SLC setup, instead of on
      Disconnected SM exit(). On BT OFF, quitNow() forces a SM exit()
      which incorrectly started the phone state listener. Additionally
      no indicator updates should be sent prior to SLC setup
      bug 6976119
      
      Change-Id: Icff2bc52602230b098651225bec92d532f3a3ff9
      44d87716
  23. 13 Aug, 2012 1 commit
    • Martijn Coenen's avatar
      Don't trust length specified by ContentProvider for file transfers. · fdc7bd89
      Martijn Coenen authored
      It seems that the length specified by content providers for images
      is often not correct. This happens because applications modify the
      images later on with meta-data, etc., but don't update the length
      field.
      
      This causes Bluetooth OPP transfers to fail, usually with an
      IndexOutOfBoundException. The root cause (wrong size in content
      provider) of course needs to be fixed, but we can also make
      Bluetooth more resilient to these situations.
      
      Since OBEX needs to know the transfer length
      up front, the only other way we have of determining the size
      of the content is by opening a file descriptor and getting
      its length.
      
      Bug: 6857704
      Change-Id: Iaf2304b44e9e81ef6e6ac7e0fe3be84ad31a312f
      fdc7bd89
  24. 10 Aug, 2012 1 commit
    • Ravi Nagarajan's avatar
      Add unbond reason to bond state change intent · ef39cada
      Ravi Nagarajan authored
      HAL sends the status to indicate the reason for bonding failure, if any.
      Add this to bond state change intent, so that the Settings app can
      display the error dialong, if necessary.
      bug 6936335
      
      Change-Id: Ide7c9e497bbfc6428b60c7a6de6e01ca538edfb8
      ef39cada
  25. 08 Aug, 2012 1 commit