Skip to content
Snippets Groups Projects
  1. Nov 08, 2022
    • Jakub Pawlowski's avatar
      JNI: check if callback object is null before invoking it · d904b453
      Jakub Pawlowski authored
      Bug: 247492602
      Bug: 257929630
      Test: stress test on/off
      Change-Id: Ibbb382404875e61bf24d86e00294c6b470152126
      d904b453
    • William Escande's avatar
      Fix profile disable flakiness · 8877998d
      William Escande authored
      The following
      ```
      verify(adapterService).onProfileServiceStateChanged(profile)
      assertThat(profile).isNull();
      ```
      can fail because the profile is set to null after the call to
      onProfileServiceStateChanged
      
      By adding a verify on `removeProfile` I ensure the `profile.stop()` has
      been called
      
      Bug: 257183155
      Test: atest BluetoothInstrumentationTests
      Change-Id: I5b80b0f08435c911a41e63e9a40516ba8469c9eb
      8877998d
    • William Escande's avatar
      [MAP] Temporarily catch failure in test · 87367338
      William Escande authored
      Bug: 257375445
      Test: atest BluetoothInstrumentationTests
      Change-Id: I8232879b8e0a383b1767e74ec727a35be21bf90d
      87367338
  2. Nov 07, 2022
  3. Nov 05, 2022
    • Jayden Kim's avatar
      Fix Bluetooth LE advertising logger for enableAdvertisingSet · 7fc66d2c
      Jayden Kim authored
      - records enable/disable AdvertisingSet Correctly
      - handles advertising disabled events by duration timeout (status is 60)
      
      Bug: 213610155
      Tag: #stability
      Test: manual test with test app and adb shell dumpsys bluetooth_manager
      Change-Id: I1ac5b56fe85cc06201c1346f4266ad0ff9d4e7bc
      7fc66d2c
  4. Nov 04, 2022
  5. Nov 03, 2022
  6. Nov 02, 2022
    • Ömer Faruk Yılmaz's avatar
      Add additional BatteryStateMachineTest · b8561add
      Ömer Faruk Yılmaz authored
      Bug: 237467631
      Test: atest BatteryStateMachineTest
      Change-Id: I1b72f5f439851e156de516f688b3884affd90bb9
      b8561add
    • Sungsoo Lim's avatar
      Fix flaky test on ActiveDeviceManager · dba9f0b6
      Sungsoo Lim authored
      - Fix answers on some mock instances.
      - Updeate test internal values  before sending broadcast intents.
      
      Bug: 256684931
      Tag: #refactor
      Test: atest BluetoothInstrumentationTests:ActiveDeviceManagerTest (1000 times)
      Change-Id: I8285dd829934fddf58af399301c2322634dba2f9
      dba9f0b6
    • Hyundo Moon's avatar
      Add SapServerTest · 4c790a00
      Hyundo Moon authored
      Bug: 237467631
      Test: atest SapServerTest
      Change-Id: Ib97d626be9cf00da54223bb3b731271e9b2e8a59
      4c790a00
  7. Nov 01, 2022
    • Myles Watson's avatar
      Pandora: Implement RFCOMM/ · 7d3ab27a
      Myles Watson authored
      RFCOMM/DEVA/
      RFCOMM/DEVB/
      RFCOMM/DEVA-DEVB/
      
      There are two tests that are still skipped.
      
      I couldn't find the IXIT value referenced in the test spec,
      which would allow the tests to pass:
      
      The role of DevA/DevB taken on by the IUT does not
      matter to achieve a pass verdict for some test cases
      for this Protocol as indicated in the test purpose and is
      specified in the test case identifier for role agnostic
      tests as detailed in Table 4.1. The role of the IUT/Lower
      Tester for these tests is specified in the IXIT [7] in
      order to enable the correct test environment conditions
      to provoke the Lower Tester.
      
      Since we don't support hooking up a physical serial_port,
      TSPC_SPP_2_1 is set to false, which disables
      RFCOMM/DEVA-DEVB/RFC/BV-14-C
      
      Bug: 240483035
      Test: atest pts-bot:RFCOMM/ -v
      Change-Id: I7df1d38f1a5501a42030d6dfeff5560eb1124fe2
      7d3ab27a
    • Sungsoo Lim's avatar
      Activate A2DP and HFP together if available · 12eb86d7
      Sungsoo Lim authored
      Bug: 255278328
      Tag: #refactor
      Test: atest BluetoothInstrumentationTests:ActiveDeviceManagerTest
      Change-Id: I642420fb5f6ae941404484ffd9298e22dc897c1e
      12eb86d7
    • Kihong Seong's avatar
      Add tests for classes in package avrcpcontroller · 0f6974b5
      Kihong Seong authored
      This CL adds tests for:
      - RequestGetImage
      - RequestGetImageProperties
      - StackEvent
      
      Bug: 237467631
      Test: Ran each test with atest
      Change-Id: I4d121e488167f1af97fa0bc73cdb6cb2b50d4899
      0f6974b5
    • William Escande's avatar
      Fix mockito that fail to stub a second time · 3e46d803
      William Escande authored
      doReturn().when(foo).bar() should replace all when(foo.bar()).thenReturn()
      
      Bug: 256752741
      Test: atest BluetoothInstrumentationTests
      Change-Id: I89d444cdffaee80d45eb1ad58daa7ded2500c9e3
      3e46d803
  8. Oct 31, 2022
    • Jakub Pawlowski's avatar
      JNI: Fix crash in btgattc_scan_result_cb · 7637001a
      Jakub Pawlowski authored
      This crash happens when we receive scan result while shutting down BT
      stack.
      
      We should be obtaining mutex before calling any callbacks to prevent
      such crashes.
      
      Test: scan in noisy environment, stop BT stack multiple times
      Bug: 246518104
      Change-Id: I7fe7e0f7b9e69b24cf8b41a99dabfb00119080f3
      7637001a
    • Jakub Tyszkowski's avatar
      LeAudio: Fix test flakyness · 278f80e4
      Jakub Tyszkowski authored
      Bug: 256395307
      Test: atest BluetoothInstrumentationTests --rerun-until-failure
      Change-Id: I32712b3dd9dd59286c768d9f4de222f465b8c57d
      278f80e4
    • Kihong Seong's avatar
      Add BrowseNodeTest · 512a292b
      Kihong Seong authored
      Bug: 237467631
      Test: atest BrowseNodeTest
      Change-Id: I97917556ddd532d83870ca62accbe004fa277e05
      512a292b
    • Kihong Seong's avatar
      Add PlayerApplicationSettingsTest · e7532bf5
      Kihong Seong authored
      Bug: 237467631
      Test: atest PlayerApplicationSettingsTest
      Change-Id: Ibaa8362c4762a1f38f5c5f0fa14d19f603dd2460
      e7532bf5
    • Sungsoo Lim's avatar
      Lazy activation of A2DP or HFP · f1fb822c
      Sungsoo Lim authored
      If a BT classic that supports both A2DP and HFP is connected
      when LE audio is active and music is playing, we should be
      careful on deactivating of LE audio otherwise audio could come
      from phone speaker.
      
      This CL fixes following audio leak from phone speaker by pending
      the activation of HFP and deactivation of LE audio till A2DP is
      available.
      
      Before the CL:
      1. HFP is activated
      2. LE audio is deactivated
      3. Music comes from DUT (Audio leak)
      4. A2DP is activated
      5. Music comes from A2DP
      
      After the CL:
      1. HFP is connected, but not activated if HFP is not in use
      2. A2DP is connected, activated if A2DP is in use
      3. HFP is activated if its activation was pending
      4. LE audio is deactivated.
      
      Bug: 247453067
      Tag: #refactor
      Test: atest BluetoothInstrumentationTests:ActiveDeviceManager
      Change-Id: Iee2442b3cc6aeecce4a0ec1e87f1b477c894199b
      f1fb822c
  9. Oct 29, 2022
    • William Escande's avatar
      Fix Stub override when argument is already defined · 89f1bb1e
      William Escande authored
      Mockito does not always support stub override.
      It fail when a a method has 2 stub with different argument matcher
      Ex:
        doReturn(x).when(y).method(any(Foo.class));
        Foo foo = Foo();
        doReturn(x).when(y).method(eq(foo)); <-- sub-match of above
      
      But the following "should" be ok
        Foo foo = Foo();
        doReturn(x).when(y).method(eq(foo));
        Bar bar = Bar();
        doReturn(x).when(y).method(eq(bar)); <-- same scope match as above
      
      Test: atest BluetoothInstrumentationTests
      Bug: 256291144
      Change-Id: Ie84e4bbe1ed3c479adc2a194972ba67e34839f50
      89f1bb1e
    • William Escande's avatar
      PTS-BOT sdp supported profile · 42fcd788
      William Escande authored
      By disabling leaudio in cuttlefish we are changing the capabilities and
      need to update the associated test as it was expecting it
      
      Bug: 250669918
      Test: atest pts-bot
      Change-Id: I857745b760978c0f2ccf87897904e89241c842a1
      42fcd788
  10. Oct 28, 2022
  11. Oct 27, 2022
  12. Oct 26, 2022
    • Etienne Ruffieux's avatar
      Restore AsyncTask Executor after AdapterServiceTests · 8e8738a1
      Etienne Ruffieux authored
      Bug: 255598188
      Test: atest BluetoothInstrumentationTests
      Tag: #feature
      Change-Id: Ifab113acfdfa487981c894882f901e537cfd03c9
      8e8738a1
    • Sungsoo Lim's avatar
      Fix failing tests · 0cd24626
      Sungsoo Lim authored
      Bug: 255682218
      Bug: 255682560
      Tag: #refactor
      Test: atest BluetoothInstrumentationTests
      Change-Id: I8d7cc2883cec80702e3d7446d9490be723b50cfd
      0cd24626
    • Sal Savage's avatar
      Make pause/stop cancel playback reestablishment during transient loss · a0fe0932
      Sal Savage authored
      Our goal in a transient loss is to pause the remote player as a courtesy
      and then attempt to reestablish playback once we gain focus back.
      However, in rare cases, an application (like assistant) can request and
      send a pause while we're in a transient loss and already paused. This
      should cause playback to stop, however we don't currently react to the
      pause and cancel our note to reestablish playback.
      
      This change moves the play/pause decision logic to AVRCP Controller, and
      allows local requests to transport controls to cancel our future attempt
      to establish playback out of a transient loss if a user sents a pause or
      stop.
      
      Tag: #stability
      Bug: 254536123
      Test: atest BluetoothInstrumentationTests
      Change-Id: I277e35f7b432fc7d287cbd4ab19c2ef5f3b870bb
      a0fe0932
    • hieudz's avatar
      Fix NullPointerException in BluetoothOppPereference · a09b1995
      hieudz authored
      Bug: 255682982
      Bug: 255694106
      Tag: #refactor
      Test: atest BluetoothOppUtilityTest
      Change-Id: Ibdfbde86f6b58b5ba3cc2981b7c07735a99e1d24
      a09b1995
    • William Escande's avatar
      Fix BluetoothInstrumentationTests · 8ce512be
      William Escande authored
      Sqlite update is now crashing whent getCacheDir is returning null (issue
      on mocked context)
      Use uiautomation permission for passing tests involving MANAGE_USER
      (despite the fact we shouldn't need it)
      
      Test: atest BluetoothInstrumentationTests
      Fix: 254325296
      Change-Id: I973315eebc347049d8cfe6b62582a1bcb8805b4d
      8ce512be
    • Sungsoo Lim's avatar
      Handle missing variables when ActiveDeviceManager.clear() · 10b45563
      Sungsoo Lim authored
      Bug: 243053736
      Tag: #refactor
      Test: atest BluetoothInstrumentationTests:ActiveDeviceManagerTest
      Change-Id: I235e39b23b950e007e8fdb1b9f6c4ea0eb0fda3c
      10b45563
  13. Oct 25, 2022
    • Charlie Boutier's avatar
      [Pandora] - Add back two AVDTP/SRC tests · b6982759
      Charlie Boutier authored
      Test: atest pts-bot:AVDTP/SRC
      Bug: 239920692
      
      Change-Id: I41039994214e69308ad1801931855a3e0ab155ab
      b6982759
    • Charlie Boutier's avatar
      [Pandora] - Enable skipped HFP tests · c3c07e6a
      Charlie Boutier authored
      Bug: 237447510
      Test: atest pts-bot:HFP
      Change-Id: Ibe6d9844c2c15d2f0bec586e633b1cb01c773ca8
      c3c07e6a
    • Rahul Arya's avatar
      [Pandora] Fix HFP tests (part 1) · da4ddf49
      Rahul Arya authored
      Bug: 237447510
      Test: none
      Change-Id: If25bcd201e8a39f96ef981f5ffb0fd57cb4a6b3f
      da4ddf49
    • Michael Groover's avatar
      Add exported flag to exposed test runtime receivers · bccf41ef
      Michael Groover authored
      Android T allows apps to declare a runtime receiver as not exported
      by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag;
      receivers registered with this flag will only receive broadcasts from
      the platform and the app itself. However to ensure developers can
      properly protect their receivers, all apps targeting a future
      platform release and registering a receiver for non-system
      broadcasts must specify either the exported or not exported flag
      when invoking #registerReceiver; if one of these flags is not
      provided, the platform will throw a SecurityException. This commit
      updates all the exposed receivers with the RECEIVER_EXPORTED flag
      to maintain the existing behavior for these tests.
      
      Bug: 234659204
      Tag: #compatibility
      Test: atest BassClientServiceTest
      Test: atest HapClientTest
      Change-Id: Ib832007a0c80755e9a50d029eca45a69b4011ea6
      bccf41ef
    • Kihong Seong's avatar
      Add BrowseTreeTest · 37bd2872
      Kihong Seong authored
      Bug: 237467631
      Test: atest BrowseTreeTest
      Change-Id: If8538a743fceaf5458f0f7a693482dcf14cfe48a
      37bd2872
    • Jakub Tyszkowski's avatar
      LeAudio: Improve service cleanup · 43dabc4d
      Jakub Tyszkowski authored
      Some fields were not cleaned up on service shut down.
      This was visible in the unit tests.
      
      Bug: 254925603
      Tag: #feature
      Test: atest BluetoothInstrumentationTests
      Change-Id: Ia322147e1d92ddd76f81d95558b3cd4a8e613dbc
      43dabc4d
Loading