Skip to content
Snippets Groups Projects
  1. Apr 30, 2021
  2. Apr 29, 2021
  3. Apr 28, 2021
  4. Apr 27, 2021
    • weichinweng's avatar
      GD: Add LogBluetoothHalCrashReason · 7ea279f5
      weichinweng authored
      Add LogBluetoothHalCrashReason function in GD to collect Bluetooth hal
      crash reason.
      
      Bug: 174284338
      Tag: #feature
      Test: atest BluetoothInstrumentationTests
      Change-Id: Ibdf4e1acd60f2f13f65c61c69421192ff246850b
      7ea279f5
    • Erwin Jansen's avatar
      Compilation fixes for MSVC · aeedd078
      Erwin Jansen authored
      This makes a few changes to compile the libary under clang-cl targeting
      windows 10.
      
      - We cannot cast a path to std::string in msvc
      - Incorrect function names for generated code, causing linker failures
        under windows.
      
      Bug: 186568522
      Test: Can successfully build packet gen as part of android emulator
      Change-Id: I0edebc3bf459669998295dfbee08df30d4381ff8
      aeedd078
    • Chris Manton's avatar
      shim: Add entry to query gd dumpsys module · 2c5e516f
      Chris Manton authored
      Bug: 182544206
      Test: gd/cert/run
      Tag: #refactor
      BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
      
      Change-Id: I7d31565442129ece0778a377a34961a18e2e3e0a
      2c5e516f
    • Chris Manton's avatar
    • Chris Manton's avatar
      Re-point main/test/ to use common test/mock · 47ee7b32
      Chris Manton authored
      Toward testable code
      
      Bug: 163134718
      Test: gd/cert/run
      Tag: #refactor
      
      Change-Id: I6f2d7a4a26858c416750bf35c47f70ec13f2f0f4
      47ee7b32
    • Mingguang Xu's avatar
      btaa: Add device-activity aggregation dumpsys data · 3e61658f
      Mingguang Xu authored
      1. Add create time into each aggregation entry; aggregation entry
      expires after one day.
      2. Add device-activity into dumpsys data; Trim down transient
      aggregation entries to avoid the unordered map overgrows.
      
      Tag: #feature
      
      Bug: 185819535
      Bug: 170315554
      
      Test: mmma -j system/bt
      Test: manually capture a bugreport and make sure btaa aggregation data
      show up
      
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: I02cc2057796661fa3625492eaf1a429e20da4951
      3e61658f
    • Mingguang Xu's avatar
      btaa: HCI ACL/SCO/ISO data packets process · 75e0a6e3
      Mingguang Xu authored
      Parse ACL/SCO/ISO packets to get connection handle, match to device address, and attribute them to device-based activities.
      
      Tag: #feature
      
      Bug: 185596854
      Bug: 170315554
      
      Test: mmma -j system/bt
      Test: manual
      
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: Icb879814ee34700afa35ace1cdca8ff1e8f55fe4
      75e0a6e3
    • Mingguang Xu's avatar
      btaa: gd: Add wakeup reason dumpsys data · 89e6ebaf
      Mingguang Xu authored
      Create a circular buffer for wakeup history and plumb wakeup history to
      dumpsys.
      
      Tag: #feature
      
      Bug: 185037337
      Bug: 170315554
      
      Test: mmma -j system/bt
      Test: manual
      
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: I468ac585ed0cd3415176b5d9a373e9332efe4d99
      89e6ebaf
    • Michael Sun's avatar
      btaa: attribute wakeup and wakelock duration over processed HCI buckets · 277d796e
      Michael Sun authored
      Attach recorded BT wakeup to the first post-wakeup parsed HCI packet.
      Distribute wakelock duration over bucketed HCI info based on
      transmitted byte counts.
      
      Tag: #feature
      Bug: 177232907
      BUG: 177228387
      Test: verified locally BTAA aggregator updated with BT activities
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: Idf93afcf13af9e76b4bc6f6ef30cf8424d8b4982
      277d796e
    • Michael Sun's avatar
      btaa: HCI LE and special event process · 6fb1e4fc
      Michael Sun authored
      Implementation the HCI process for LE and special (events that contains
      more than one device information) events.
      
      Tag: #feature
      Bug: 177230507
      Test: verified locally BTAA can process LE and special events.
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: If30069673bd6164b22af926ca17ea9830f891a8a
      6fb1e4fc
    • Michael Sun's avatar
      btaa: HCI classic event process · 4cc57fc4
      Michael Sun authored
      Introduce BTAA HCI event processing. This change only handles simple
      (event that contains only one device information and do not require
      additional processing )classic events. Command status and command
      complete events will be associated with previous parsed HCI command.
      
      The lookup table is a skelton implementation that does not contain 100%
      correct information.
      
      Tag: #feature
      Bug: 177230507
      Test: verified locally BTAA can partially process HCI events.
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: Idd26318200cfd1f94596dd69083452dba5dff478
      4cc57fc4
    • Michael Sun's avatar
      btaa: HCI command process · 4b537e91
      Michael Sun authored
      Introduce the first phase of BTAA HCI command process. Upon receives a
      HCI command packet, processing module will search the opcode against a
      lookup table, only simple (contains only device info) and identifiable
      command will be processed. Pair information of connection handle and
      device address are associated and recorded for future references.
      
      The lookup table is a skelton implementation that does not contain 100%
      correct information.
      
      Tag: #feature
      Bug: 177230507
      Test: verified locally BTAA can partially process HCI commands
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: I7c8640e60ffa06f45953403549d28dc530383bd9
      4b537e91
    • Michael Sun's avatar
      btaa: handle wakelock notification · a1b88d63
      Michael Sun authored
      Handle wakelock acquire and release notification from system suspend
      service and record the wakelock duration upon release.
      
      Tag: #feature
      Bug: 177232907
      Test: verified locally BTAA can capture and timestamp BT wakelocks
      BYPASS_LONG_LINES_REASON: consist with gd format
      
      Change-Id: I51dfdbec62b66d5a93f45d8ea2c52a16ce3beec1
      a1b88d63
    • Chris Manton's avatar
      Re-include bta/vc/devices · 9e45a01c
      Chris Manton authored
      Bug: 163134718
      Test: cert
      Tag: #refactor
      
      Change-Id: Iae4b30484c2e0a38d5ac61875c1a80c6b04bd97f
      9e45a01c
    • Chris Manton's avatar
      shim: Add method to query stack manager for gd dumpsys module start · 66ab724b
      Chris Manton authored
      Bug: 182544206
      Test: gd/cert/run
      Tag: #refactor
      BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
      
      Change-Id: Ib9bef0b07b5a2248ae4262537b4fa4a4f865e0e3
      66ab724b
Loading