1. 11 Jan, 2017 1 commit
  2. 10 Jan, 2017 7 commits
    • Marie Janssen's avatar
      cleanup unused resource strings · 9905d4a9
      Marie Janssen authored
      Test: mma -j46
      Change-Id: I8f534276d972e13d61ab84c7fdab9f6687c38f88
      9905d4a9
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
    • Hemant Gupta's avatar
      SAP: Close RFCOMM connection immediately if access is denied. · 95ba9eb7
      Hemant Gupta authored
      Usecase
      1) Pair with carkit and connect HF and A2DP/AVRCP.
      2) Carkit sends SAP connect request. Reject this request from DUT.
      3) Power off/on carkit.
      4) Carkit sends SAP connection request to DUT.
      
      Expectation:
      SAP connection is rejected, but carkit can reconnect HF and A2DP/AVRCP
      
      Observation:
      Unable to connect any profiles after power cycling carkit.
      
      Root Cause:
      Even thought DUT rejects incoming SAP RFCOMM connection request whose access
      was previously rejected by DUT, RFCOMM connection is not closed from DUT until
      time out of 30 seconds. This prevents carkit from sending new connect request
      for previously connected profiles like HFP, A2DP/AVRCP.
      
      Fix:
      Close RFCOMM connection in case request is from remote device whose access is
      already denied by DUT in previous attempt.
      
      Change-Id: I31bd2dfd862f7f69e46b8012924942e08e850c95
      95ba9eb7
    • Sravan Kumar V's avatar
      OPP: Check file size before send to prevent crash · a4e62605
      Sravan Kumar V authored
      Use case :
      1. Send large file to dut (Above 4 GB)
      Failure:
      Crash in com.android.bluetooth.
      Process: com.android.bluetooth
      java.lang.IllegalArgumentException: Length must be
         between 0 and 0xFFFFFFFF
      at javax.obex.HeaderSet.setHeader(HeaderSet.java:333)
      at com.android.bluetooth.opp.BluetoothOppObexClientSession$ClientThread
         .sendFile(BluetoothOppObexClientSession.java:411)
      at com.android.bluetooth.opp.BluetoothOppObexClientSession$ClientThread
          .doSend(BluetoothOppObexClientSession.java:337)
      
      Root cause :
      Largest length in OBEX message header is unsigned 4 bytes, so actual
      file length (4 GB) cannot be written into Obex header which leads
      to exception in OBEX code.
      
      Fix :
      Add length check before push file and skip sendfile if length is above
      4GB to prevent crash.
      
      Change-Id: I9066fb7456d85fdc197fe21fed26fb2bb89ff09e
      a4e62605
    • Jakub Pawlowski's avatar
    • Jakub Pawlowski's avatar
      Fix improper unregistration of scanner for app that died · 9d3c43d7
      Jakub Pawlowski authored
      When scanner died, it should be unregistered as scanner, not as GATT
      client. Otherwise app will not be able to start scan when it's
      restarted.
      
      This bug was introduced when separating GATT client from LE scan
      clients.
      
      Bug: 33556286
      Test: start scanning, kill app, restart the app
      Change-Id: If8da5512081e1986bbee7362984091f298500f4e
      9d3c43d7
  3. 05 Jan, 2017 6 commits
  4. 04 Jan, 2017 6 commits
  5. 03 Jan, 2017 2 commits
  6. 30 Dec, 2016 2 commits
    • Ivan Podogov's avatar
      Allow HID Device to connect to a specific device · b6aa2054
      Ivan Podogov authored
      Test: make
      Change-Id: I1322eb7fb5d253c0968a8bbe11a19cca8f1834f9
      b6aa2054
    • Ivan Podogov's avatar
      HID Device role API fixes · 2769ac31
      Ivan Podogov authored
      This change reflects the API update, and also fixes a couple
      issues with the code (non-initialized, wrongly compared and
      otherwise unused mHidDevice field).
      
      It keeps the current logic of using a single device at a time,
      yet introduces checks that the application is actually
      addressing the right device.
      
      Test: make
      Change-Id: I088417046907c8310692cf9205075d6da0cd81e6
      2769ac31
  7. 29 Dec, 2016 3 commits
  8. 23 Dec, 2016 2 commits
  9. 20 Dec, 2016 4 commits
  10. 19 Dec, 2016 4 commits
  11. 17 Dec, 2016 1 commit
  12. 16 Dec, 2016 1 commit
    • Jakub Pawlowski's avatar
      Refactor LE scanning HAL (3/3) · 00d69979
      Jakub Pawlowski authored
      This patch converts btgatt_scanner_interface_t struct into
      BleScannerInterface class. It also refactors three most important
      methods from this interface: RegisterAdvertiser, Scan, and Unregister.
      Rest of this interface will be updated in following patches.
      
      Bug: 30622771
      Test: sl4a BleScanApiTest
      Change-Id: I0f0ad31dab88efbcd74a11d1908b80fcb78a5c6c
      00d69979
  13. 15 Dec, 2016 1 commit