Skip to content
Snippets Groups Projects
  1. Feb 21, 2017
  2. Feb 18, 2017
  3. Feb 17, 2017
    • Jakub Pawlowski's avatar
      Thread switching simplification · 631d25b4
      Jakub Pawlowski authored
      * add jni_thread_wrapper
      * add FROM_HERE parameter to do_in_jni_thread, this will be used in
      later patches to make thread switching logs nice.
      
      Bug: 30622771
      Test: manual
      Change-Id: I4c8f9e0f32c501a6126fe04f2476ab6453fe637e
      631d25b4
    • Myles Watson's avatar
      Check the return value of the HAL init function · 24c78c35
      Myles Watson authored
      If the HAL can be opened, but initialization fails, Bluetooth
      can not start.
      
      Test: Force an initialization failure, BT dies
      Change-Id: I7dd5ed49c9e7873a666dc001e68bdc13660648ba
      24c78c35
    • Myles Watson's avatar
      Clean up some more #defines · 583e1e8b
      Myles Watson authored
      true -> TRUE
      false -> FALSE
      
      Test: builds
      Change-Id: I2573b6ab81aa384cc6d20bb8beb84303aba06a66
      583e1e8b
    • Andre Eisenbach's avatar
      Fix HDP select thread id type · 5ea66fa0
      Andre Eisenbach authored
      Recent changes in libbionic cause pthread_join to SIGABRT if called with
      an invalid thread id. The select_thread_id variable in the HDP
      sub-system was truncated from long->int causing pthread_join to not find
      the correct thread and triggering the error.
      
      Using the correct type for select_thread_id fixes this problem.
      
      Change-Id: Id332fa86cf7f30abd211588d32899d41e157b462
      Fixes: 35432169
      Test: manual; boot device, turn BT off; ensure it stays off
      5ea66fa0
  4. Feb 16, 2017
  5. Feb 15, 2017
    • Hemant Gupta's avatar
      HID: Fix scroll issue with Apple Magic Mouse · 6fbe4548
      Hemant Gupta authored
      Usecase
      1) Pair and connect with Apple Magic Mouse
      2) Scroll over HID mouse and see if pointer moves up or down
         on DUT.
      
      Observation:
      Scroll functionality does not work on DUT and mouse pointer
      stays still.
      
      Root Cause:
      From kernel 3.18 onwards, UHID flags are updated and following new
      flags are added. Support for handling same is missing in user
      space hid driver (bta_hh_co.cc)
      UHID_GET_REPORT
      UHID_GET_REPORT_REPLY
      UHID_SET_REPORT
      UHID_SET_REPORT_REPLY
      
      Fix:
      Add support for set report and get report in HID user
      space because of changes in uhid kernel driver with kernel changes
      for kernel 3.18. Apple Magic Mouse scroll functionality does not
      work without this fix, as Apple Mouse requires set report from
      HID host for it to start working properly wrt Scroll functionality.
      
      Bug: 35306202
      Change-Id: I90230b76d68e9275dcacd9f46f03e312ddf2fa30
      6fbe4548
    • Pavlin Radoslavov's avatar
      Add a missing NULL pointer check inside bta_av_rcfg_str_ok() · dd001c64
      Pavlin Radoslavov authored
      Apparently, the p_data argument could be NULL if the reconfig
      was triggered by the local device.
      
      Test: Tested with Bluetooth headsets
      Bug: 35351216
      Change-Id: Ic51d849232944b5978772d222c41f66824e14dd4
      dd001c64
    • Treehugger Robot's avatar
  6. Feb 14, 2017
  7. Feb 13, 2017
    • Jakub Pawlowski's avatar
      Change LE advertisement data length type (uint8_t -> uint16_t) · bca43eb2
      Jakub Pawlowski authored
      Chained advertisement data can be up to 1650 bytes.
      
      Test: manual
      Bug: 30622771
      Change-Id: I67af5a8130ac2d3f0dbd8f5e3f28b72b152256c2
      bca43eb2
    • Marie Janssen's avatar
      btif: remove logspam at higher debug levels · ee80cc8b
      Marie Janssen authored
      Some CHECK macros had logs that printed the function name, which
      duplicated the logs in the functions outside the checks, producing too
      many logs.
      
      Remove some unused macros.
      
      Changes:
      02-01 09:34:11.757  1259  1755 D bt_btif : get_folder_items_list_rsp
      02-01 09:34:11.757  1259  1755 D bt_btif : get_folder_items_list_rsp: item_cnt: 0 len: 0
      to
      02-01 09:34:11.757  1259  1755 D bt_btif : get_folder_items_list_rsp: item_cnt: 0 len: 0
      
      and similar.
      
      Test: run logcat, check that we have less duplicated logs
      Change-Id: Id6e57f38b34d176ed8be0c3baedfbcf55e61a9a4
      ee80cc8b
  8. Feb 11, 2017
  9. Feb 10, 2017
  10. Feb 09, 2017
    • Jack He's avatar
      Use same timestamp for on-disk BT Snoop Log and in-memory BT Snooz Log · 8bc88b19
      Jack He authored
      * Logcat uses gettimeofday for its timestamp, the same as on-disk BT
        Snoop log
      * Although in-memory BT Snooz Log uses the same method to get time, it
        is calling it separately, resulting in mismatch between timestamps of
        two snoop logs
      * This CL let them uses the same timestamp_us value and put the function
        definition to libosi
      * Note that preserved on-disk BT Snoop logs timestamp postfix at
            btsnoop_hci_<timestamp>.log
        will be changed to microsecond since epoch at current device timezone
        instead of the shifted BT Snoop timestamp value
      * New unit tests for gettimeofday
      
      Bug: 35113514
      Test: Make, unit tests, run BT activities and check both snoop logs
      Change-Id: I5b3f87bc523b272ced2c69a4595d0e0cbe29bcb3
      8bc88b19
Loading