1. 02 Sep, 2015 1 commit
    • Andre Eisenbach's avatar
      Fix column ID for PBAP name lookup · 04040246
      Andre Eisenbach authored
      When a phonebook lookup is performed to resolve a phone number into a
      name, the wrong column ID is used to retrieve the value from the cursor,
      causing an un-caught exception and a failed lookup.
      
      Bug: 22953958
      Change-Id: I1f826412916012382903fdf30d43d5cb3516432c
      04040246
  2. 28 Aug, 2015 1 commit
    • Ajay Panicker's avatar
      HFP/A2DP: Remove pending auto-connect messages when connected · f4e5f7b8
      Ajay Panicker authored
      Fixes a bug in which being paired with multiple headsets causes
      previously connected headsets to disconnect. This fix removes
      pending connect attemps once one device is successfully connected.
      
      Bug: 23111466
      Change-Id: Id471189d92643b9626e63197c00e76defd0a72bf
      f4e5f7b8
  3. 19 Aug, 2015 1 commit
    • Sharvil Nanavati's avatar
      Make location enabled check configurable when returning scan results. · 72ecb4ca
      Sharvil Nanavati authored
      Some device classes (e.g. Wear) don't allow location to be enabled but
      would still like to allow LE scanning to take place. This patch allows
      the location enabled check to be bypassed if the platform is so configured.
      Even if the location check is disabled, the calling app must still have
      one of the location permissions.
      
      Bug: 21852542
      Change-Id: I206366ce262776d4668c0c42e066f0e20f5fdfeb
      72ecb4ca
  4. 12 Aug, 2015 1 commit
  5. 08 Aug, 2015 1 commit
  6. 06 Aug, 2015 2 commits
  7. 05 Aug, 2015 1 commit
  8. 29 Jul, 2015 2 commits
  9. 24 Jul, 2015 2 commits
    • Miao Chou's avatar
      Fix security vulnerabilities in permission of deleting MMS/SMS · edb6da17
      Miao Chou authored
      This CL adds permission and PID checks to avoid unauthorized deletion of any
      MMS/SMS messages in BluetoothMapContentObserver.actionMessageSentDisconnected
      function.
      
      Bug: 22343270
      Change-Id: I30254036309733be4d54db17a8ef17a571cd1c5a
      edb6da17
    • beryl hou's avatar
      Return no track selected if no track is currently selected. · e8e870c2
      beryl hou authored
      Fix to satisfy AVRCP 1.4 spec.
      In EVENT_TRACK_CHANGED response request,
      if a track is selected , then return 0x0 in the response.
      if no track currently selected,then return 0xFFFFFFFFFFFFFFFF in the INTERIN response.
      
      Bug: 22519285
      
      Change-Id: Iaaae1d4acf918049d99c27d9ad98bde15242ade1
      e8e870c2
  10. 22 Jul, 2015 2 commits
    • Hemant Gupta's avatar
      PBAP: Fixes for proper working of filter functionality. · 976a53f0
      Hemant Gupta authored
      The change consists of fixes required for the filter to work properly.
      
      Without this change the API isFilteredOut() was basically removing those
      attributes which are set in the filter while the expected behaviour is other
      way round, so renamed the API to isFilteredIn().
      This patch also adds provision for filtering call log date and time when
      it is not been asked as per the filter since it is not a mandatory attribute
      as per the PBAP specification.
      This patch also renames "NOTES" to "NOTE" which was incorrect property for
      vcards.
      
      Bug: 20077258
      Change-Id: Ifbe57706b86031cbb9656556843da1bab700ef5d
      976a53f0
    • Fyodor Kupolov's avatar
      Enforce location permission for apps targeting M · 586ba822
      Fyodor Kupolov authored
      Enforce location permission for apps targeting M, for legacy apps, log an
      error.
      
      Bug: 21852542
      Change-Id: Ic406df1727eb0939531a22b76c2df9b13f03ec81
      586ba822
  11. 15 Jul, 2015 2 commits
  12. 10 Jul, 2015 1 commit
    • kschulz's avatar
      PBAP: New Missed calls parameter not set correctly · ff33061e
      kschulz authored
      When a PCE pull the missed-calls-phonebook (mch.vcf) from the PSE, a parameter
      stating the number of _new_ missed calls must be included in the reply.
      Currently the parameter is included but it is always set to zero, which is
      incorrect.
      This fix corrects the variable used for new missed calls
      
      Bug: 13022843
      Change-Id: I6094c50a76711cfff9347596d70ac2300cfbb543
      ff33061e
  13. 09 Jul, 2015 2 commits
  14. 07 Jul, 2015 2 commits
    • Anubhav Gupta's avatar
      Update UI properly in Connection race Conditions. · 391be75c
      Anubhav Gupta authored
      Broadcast connection state of incoming device in pending
      state and update UI for disconnection of outgoing connection.
      This change in conjunction with bluedroid change handles
      race condition scenarios when incoming and outgoing A2dp
      connections collides.
      
      Bug: 22028876
      Change-Id: Ibd80fc7010613887df74fb1903b16de73c77939a
      391be75c
    • Fyodor Kupolov's avatar
      Do not return devices when caller has no location permission · d2fc8cbd
      Fyodor Kupolov authored
      In onScanResult, skip a device if calling process has no location
      permission/appop
      
      Bug: 21852542
      Change-Id: I4e3511b33d69d94c1df6e1bf2f9a351303a90685
      d2fc8cbd
  15. 24 Jun, 2015 2 commits
  16. 23 Jun, 2015 8 commits
    • Hemant Gupta's avatar
      PBAP: Add support for PBAP 1.1.1 specification · b99a8af5
      Hemant Gupta authored
      This patch adds support for erratas to make the specification version
      compatible to PBAP 1.1.1 specification.
      
      Following errata needs to be supported to make the specification version
      compatible to PBAP 1.1.1
      
         https://www.bluetooth.org/errata/errata_view.cfm?errata_id=1824
      
         Proposed modification to the text of the spec:
         5.3.3 Name
           This is the name of the folder to be retrieved. The value shall not include
           any path information, since the PullvCardListing function uses relative paths.
           An empty name header may be sent to retrieve the vCard Listing object of the
           current folder. However, it is illegal to issue a PullvCardListing request with
           an emtpy name header from the telecom/ folder.
           Any such request shall be responded to with a "Not Found" error message.
      
      Bug: 21896912
      Change-Id: I0fb2c7d96b6e34d0bf83bb62901a8fd47c470fe6
      b99a8af5
    • Andre Eisenbach's avatar
      Fix compile errors due to OPP merge · db94389c
      Andre Eisenbach authored
      Change-Id: Ia07d99d58785c7e974b1fb32afaeb157ad337932
      db94389c
    • Pradeep Panigrahi's avatar
      Display proper file name while cancelling transfer · 0f2f4d93
      Pradeep Panigrahi authored
      Use Case:
      1) Send files in batch from remote to DUT
      2) Cancel the transfer in between from either side.
      3) Check name of the files in failed tranfer message.
      
      Failure:
      Name shown in the failure message is different than actual file
      name in batch
      
      Fix:
      Save names of all the selected files to be transferred even
      before starting of client thread so that names remain intact
      in the outbound information even when the batch is cancelled
      from initiator.
      
      Bug: 21896912
      Change-Id: I42c98721365c4c8acb746d49ba9ceff5b0737b71
      0f2f4d93
    • Pradeep Panigrahi's avatar
      Acquire the full wakelock only during user confirmation request · 00400c15
      Pradeep Panigrahi authored
      Use Case:
      1. Create obex connection from remote to DUT.
      2. Dont transfer any file and wait for the screentimeout.
      3. Check if device goes to suspend.
      
      Failure:
      Device does not go to suspend mode if OPP connection is present.
      
      Root Cause:
      Acquire the full wakelock when user confirmation is required and
      not during opp connection request.
      
      Fix:
      Obex server session will acquire the full wakelock only when user
      confirmation is required. Otherwise, if session acquires the full
      wakelock during connect request and did not receives the PUT
      request from remote full wakelock will not be released. In this
      scenario DUT will not go to suspend and cause battery drain.
      
      Bug: 21896912
      Change-Id: I17b90b206016c2a34d724393ac3b17a41983722c
      00400c15
    • Pradeep Panigrahi's avatar
      Use long as file size instead of int while using OPP. · 3aecf543
      Pradeep Panigrahi authored
      Use Case:
      1. Pair and connect to Dongle
      2. Send a 2GB file from Dongle to DUT.
      
      Failure:
      File transfer failed in between.
      
      Fix:
      This patch fixes issue of problems in sending/receiving files
      which cannot be accomodated in int type of Java. Instead of using
      int, long data type is used, which can hold 64 bits data size in JAVA
      which is suitable for storing file sizes in GB. Changes are done
      in how updates are sent to progress bar which supports only int
      by using the percentage of data transferred to update the progress.
      
      Bug: 21896912
      Change-Id: I49f9bf8a4a0e3668e32058d582a2700b0e6057e8
      3aecf543
    • Pradeep Panigrahi's avatar
      Mark proper file transfer status upon OBEX response timeout · ae8997b8
      Pradeep Panigrahi authored
      Use Case:
      1) Pair with remote dongle and send a file over OPP.
      2) Reset dongle such that there is obex response timeout.
      
      Failure:
      File transfer status is not marked a failed and hence cannot be retried
      
      Fix:
      This patch will handle the scenario of obex timeout which occurs due
      to cancelling the transfer in between and trying sending again.
      
      Bug: 21896912
      Change-Id: Ide1a64e5874bda2c5cf71531f5971bc8bebf5e9f
      ae8997b8
    • Pradeep Panigrahi's avatar
      Avoid sending TRANSFER_COMPLETED_ACTION intent multiple times. · fbe00893
      Pradeep Panigrahi authored
      Use Case:
      1. Share a picture through Bluetooth, select partner devices.
      2. The partner devices do not confirm to receive the file.
      3. Check the transfer status on the DUT.
      
      Failure:
      Failure Notification pops up twice when the shared files not
      received by the partner phone
      
      Fix:
      This change ensure that TRANSFER_COMPLETED_ACTION intent will not
      sent to receiver if there is any exception occurred during OPP
      operation because this intent is already sent to receiver from message
      handler.
      
      Bug: 22028876
      Change-Id: I3ad2f24be185c37355dff43009a5236bede0106a
      fbe00893
    • Anubhav Gupta's avatar
      Check for AVRCP handler validity before cleanup · 77b75f59
      Anubhav Gupta authored
      In stress testing of BT on-off usecase, crash was observed
      due to triggering double clean-up. This fix introduces
      additional Check for handler validity while clean-up to
      avoid the crash.
      
      Bug: 21896912
      Change-Id: I14b1c35d1fa0345c59d61682d92795aa617436b5
      77b75f59
  17. 19 Jun, 2015 1 commit
  18. 16 Jun, 2015 1 commit
  19. 15 Jun, 2015 1 commit
  20. 12 Jun, 2015 1 commit
  21. 09 Jun, 2015 2 commits
  22. 05 Jun, 2015 3 commits
    • Mallikarjuna GB's avatar
      Handle SLC in MultiHFPending state · acc99899
      Mallikarjuna GB authored
      Use case:
      Connect 2 headsets one after another in quick
      succession.
      
      Failure:
      SLC for first headset is not happening.
      
      Root cause:
      SLC for first headset is not handled when second
      headset is connecting.
      
      Fix:
      Add handling for SLC event for HS1 in MultiHFPending state.
      
      Change-Id: If0c2553c28e233bea4622fca10c94fddd913afa7
      acc99899
    • Mallikarjuna GB's avatar
      Add null checks · 6455f278
      Mallikarjuna GB authored
      Added null checks identified by static analysis tool.
      
      Change-Id: I5ff04775313b06d549c5ae97e497dd44e9231b04
      6455f278
    • Mallikarjuna GB's avatar
      Handle SCO volume change in multihfpending state. · c924fea5
      Mallikarjuna GB authored
      Use case:
      1. Connect one headset.
      2. Make MO/MT call.
      3. While connecting second headset, change
         call volume on the phone.
      
      Failure:
      SCO volume changed is not updated to first headset.
      
      Root cause:
      Volume change is not handled in MultHFPending state.
      
      Fix:
      Added handling volume change in MultiHFPending state.
      
      Change-Id: I6ac3cb2968b99de194fa7c0114d45f9d81dcb663
      c924fea5