summaryrefslogtreecommitdiff
path: root/framework/tests/src
AgeCommit message (Collapse)Author
2022-04-19Merge "Tests to verify matching of Eddystone E2EE-EID beacons." am: ↵Jeff Sharkey
0e8f01bff8 am: 6e684f08cc am: 642cdba2fe Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2062915 Change-Id: I0daf7c3da3cee402b863122f98ccadc88758122b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13Tests to verify matching of Eddystone E2EE-EID beacons.Jeff Sharkey
Bug: 229127809 Test: atest packages/modules/Bluetooth/framework/tests/src/android/bluetooth/le/ScanRecordTest.java Change-Id: Ib403b780655171c5214e2e6baf079f34a56f3926
2022-02-25Merge "Removed getMaxCodecType and made getcodecName static" am: 1b685804ab ↵Etienne Ruffieux
am: 370cfcff40 am: 16329a19ef Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1976746 Change-Id: Ib7ead8b05e5bdc6cd01d185212970b9d20d95882
2022-02-08Removed getMaxCodecType and made getcodecName staticEtienne Ruffieux
Bug: 218311980 Test: manual Tag: #feature Change-Id: Ic587d1838bed51bb6d758b14faf0a334ec24e444
2022-01-21Merge "Add new callback to notify Tethering when PAN is ready" am: ↵Mark Chien
3d5958e940 am: 9a930eb9a4 am: e182bdecc5 am: 9b1779a53f Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1882486 Change-Id: Icd96058dc0e33fa1c51df4c373024d649c58a246
2022-01-21Merge "Add new callback to notify Tethering when PAN is ready"Mark Chien
2022-01-20Merge changes from topic "a2dp_lc3_framework" am: 6bf2e5078b am: 94cbf0e2f4 ↵Treehugger Robot
am: 6ed762bc2c am: a5ada062c6 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1952560 Change-Id: I5a2df8e2fc7dfa68e1700ab729d76ae078915ae3
2022-01-19Add new callback to notify Tethering when PAN is readyEtienne Ruffieux
In order to remove hidden networking APIs we need to add a new way to communicate between Tethering and Bluetooth. Tag: #feature Bug: 190438212 Test: Manual Change-Id: I939c46ef341573f4fc351ae886cf2c8251655e43
2022-01-19Add framework support of LC3 codecTed Wang
Bug: 203621600 Test: atest BluetoothCodecConfigTest Change-Id: Ibacc8b39c4d916f69befca139604ed94c627c103
2021-12-08Merge changes from topic "parse_audio_config_for_le_device" am: df3619505d ↵Treehugger Robot
am: f33d67841b am: 1f48d53428 am: 037d51272b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909755 Change-Id: Ie0c7f41c48ca4fcfa522142d99fbab003bbdad04
2021-12-08Merge changes from topic "parse_audio_config_for_le_device"Treehugger Robot
* changes: Remove unnecessary test case Parse audio config codec capability for LE devices
2021-12-06Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: ↵Etienne Ruffieux
1d98292cc5 am: 6e9d0c82da am: a83546d22f am: 4e35bc0826 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460 Change-Id: I3f9eea60be66e06893ddf963e5e8dcf6310ba0e9
2021-12-06Remove unnecessary test casePatty
Tag: #refactor Bug: 203535499 Bug: 150670922 Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests Change-Id: I5f3301c96990becca0f8baa0a5e61502c411e83c
2021-12-03Make BluetoothCodecConfig and BluetoothCodecStatus public.Etienne Ruffieux
Made BluetoothCodecConfig and BluetoothCodecStatus public, added Builder to BluetoothCodecConfig, added accessor for SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List. Tag: #feature Bug: 200202780 Bug: 170678351 Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest NoNonSdkCheck: Only user actually requested the changes Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-02Parse audio config codec capability for LE devicesPatty
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP to getHwOffloadFormatsSupportedForBluetoothMedia 2. Add audio format for LC3 3. Add public class BluetoothLeAudioCodecConfig to store the codec for LE audio 4. Add test case for BluetoothLeAudioCodecConfig Tag: #feature Bug: 203535499 Bug: 150670922 Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313 Merged-In: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-12-02Merge "Parse audio config codec capability for LE devices"TreeHugger Robot
2021-12-02Parse audio config codec capability for LE devicesPatty
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP to getHwOffloadFormatsSupportedForBluetoothMedia 2. Add audio format for LC3 3. Add public class BluetoothLeAudioCodecConfig to store the codec for LE audio 4. Add test case for BluetoothLeAudioCodecConfig Tag: #feature Bug: 203535499 CTS-Coverage-Bug: 208786017 Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-11-16Refactor Bluetooth scan mode APIsEtienne Ruffieux
Removed setScanMode(int, long), setScanMode(int mode) is now a SystemApi. Made getDiscoverableTimeout a public API. setDiscoverableTimeout is now SystemApi and takes java.time.Duration as parameter. Tag: #feature Bug: 195150096 Test: Manual Change-Id: I824b24464987e1db87efc193d30452a6d9d0411e
2021-10-11Remove bytes matcher from baseWilliam Escande
Bytes matcher has been moved to frameworks/libs/modules-utils in this CL: aosp/1821533 Bug: 200202780 Tag: #refactor Test: atest cts/tests/tests/bluetooth/src/android/bluetooth/cts/ScanRecordTest.java frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ScanRecordTest.java Change-Id: I4d374217100635a49918f8e88f2cb5327e758e9f
2021-03-18Implement per-field matching of ScanRecord.Jeff Sharkey
As part of building out support for robustly matching Bluetooth LE devices in the wild, this change checks all "fields" contained in a ScanRecord against a given BytesMatcher. To support matching variable-length Eddystone beacons, this change also expands BytesMatcher to support both exact length and prefix based rules, which are then used with rules that verify that example Eddystone and iBeacon values can be detected with these rules: Eddystone: ⊆0016AAFE/00FFFFFF iBeacon: ⊆00FF4C0002/00FFFFFFFF Expands testing to confirm all newly added capabilities are working. Bug: 181812624 Test: atest BluetoothTests:android.bluetooth.le Test: atest FrameworksCoreTests:android.os.BytesMatcherTest Change-Id: I1cff8e08604436f4bba6f55aad64c3ce5969bf56
2020-06-26Bluetooth: MCE: Add new API to set message read status or deleted statusFei Zheng
Bug: 146314855 Test: 1. Pair with a remote device which address is like 00:01:02:03:04:05 2. On remote device allow MAP connection 3. Make sure there is at least 1 unread message in last week on remote device 4. adb shell am instrument -w -e mce_set_message_status_iterations 1 -e device_address 00:01:02:03:04:05 -e class android.bluetooth.BluetoothStressTest#testMceSetMessageStatus com.android.bluetooth.tests/android.bluetooth.BluetoothTestRunner Change-Id: I7a3e337142bc39a55c1bfd425e0966e1fb1b9a68
2019-12-11Resolve BluetoothDevice hidden API usages by SettingsRahul Sabnis
Bug: 143245666 Test: Manual Change-Id: Id34eb275f604e61330aeb91401dc31aeca666b8f
2018-07-12Remove not-required assertion in BluetoothTestUtils.disable/enablebaisheng
Those assertions will cause LE builds failed as BluetoothAdapter behaves a bit different on LE. And this removal should not have impacts on exiting tests because Semaphore will guarantee BT is disabled/enabled within timeout. Bug: 111329335 Test: Do Bluetooth Enable Stress test on LE and RoW builds. Change-Id: Ieedec90d21f4fd1aa3cdb4a6cb5849a9fa4fd864
2018-04-19Fix the implementation of BluetoothCodecStatus.equals()Pavlin Radoslavov
Previously, the BluetoothCodecStatus.equals() implementation was incorrect when comparing arrays of capabilities. In the new implementation, the arrays are compared correctly, and also the ordering of the capabilities in each array is ignored. Also, added unit tests for class BluetoothCodecConfig and class BluetoothCodecStatus. Bug: 73404858 Bug: 73379307 Test: Unit tests (in frameworks/base) runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecConfigTest.java runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecStatusTest.java Change-Id: If22087465397b7c4175c33f7d1909a15d957fb24
2017-10-23Change Bluetooth HID Profile Name (1/6)Hansong Zhang
Make the Bluetooth HID profile name consistent with the Bluetooth HID service name. BluetoothInputHost → BluetoothHidDevice BluetoothInputDevice → BluetoothHidHost IBluetoothInputHost → IBluetoothHidDevice IBluetoothInputDevice → IBluetoothHidHost BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST (Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71) Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f Bug: 68055651 Test: make Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
2017-04-30Limit btsnoop file size (3/8)Ajay Panicker
Limit btsnoop file size by rotating between snoop files. The rotation occurrs when a fixed number of packets have been logged and will start overwriting the older file. Bug: 35998031 Test: Enable snoop logs from developer options and let logs get large Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773 (cherry picked from commit 7e2e61ee2e3f46fa0e4bee82028b36a0f2aa22d5)
2016-06-08Update enable/disable code to reduce flakinessYuchao Zhou
Change-Id: I9d3f69ca583b365bb5f89cfe16adcd6e604614c6
2016-06-07Fix build break by adding missing parenthesis.Sharvil Nanavati
Change-Id: Ia9a47e24b25e3093f19aeea297a86964c8f00722
2016-06-07Fix flaky discoverable stress test.Sharvil Nanavati
Bug: 28980767 Change-Id: I6858456f58118a3385b05d42361a5c9223ebbdc4
2016-05-25Clean up Bluetooth test code.Sharvil Nanavati
Change-Id: I502b03df842c628c7b504e2a32a17bce6d25b4f8
2015-06-09SAP: Make it possible to enforce a 16-digit pin code (4/5)Casper Bonde
This change enable the posibility to enforce using a 16-digit pin or MITM for a RFCOMM or L2CAP connection. This is needed for the SIM access profile. Change-Id: I3205013f9e758c353381442a86845dab467780f8 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
2014-08-01Revert "Revert "Service data and manufacturer data can be repeated fields.""Wei Wang
This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
2014-08-01Revert "Service data and manufacturer data can be repeated fields."Sungsoo Lim
This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9. Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
2014-07-31Service data and manufacturer data can be repeated fields.Wei Wang
b/16635899 Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
2014-07-28Make scan filter accepts prefix. Add tests.Wei Wang
Change-Id: I714dd6d95ad2bc874dce1106b325762b19159119
2014-07-27Split manu id and manu data.Wei Wang
b/16407380 Change-Id: I39f6ce0ab4cccadec809f0a4f518f5d2c77a90b7
2014-07-25Fix bug of ScanSettings. Add unit test.Wei Wang
b/16318637. Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b
2014-07-23Fix parcel issues with empty service uuid. Added tests.Wei Wang
b/16490816 Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
2014-07-18More API modification of BLE APIs (1/2).Wei Wang
Changed include: 1) Add serviceDataUuid to filter so it matches sanRecord and AdvertiseData. 2) Add raw bytes to ScanRecord and make ScanResult take a ScanRecord instead of raw bytes. 3) Change from setServiceUuid(List) to addServiceUuid(ParcelUuid). 4) Added include device name 5) Removed service not registered and added ADVERTISE_DATA_TOO_LARGE. 6) Fixed a few comments. Change-Id: Ibbe07183b1293835c4a84728d1cd2d61e5d627d3
2014-07-19am f2bbd896: am b477fc6c: Merge "add command to enable bt snoop log" into ↵Guang Zhu
klp-modular-dev * commit 'f2bbd896b503bc525ac797ce165cf9c6403013f1': add command to enable bt snoop log
2014-07-17add command to enable bt snoop logGuang Zhu
Change-Id: I22a6482a90c2bb976a5ce44946e9f0fb8b59e6b2
2014-07-11Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)Wei Wang
Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
2014-05-29Address API review comments.Wei Wang
1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes. Fixes b/15140940 Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468 NO_SQ: multi-project submit
2014-05-20am cd98ecc6: am 6071e45a: Merge "add a command to list all bonded devices" ↵Guang Zhu
into klp-modular-dev * commit 'cd98ecc66b968c5d5d0d12522c4c8c9b848bf181': add a command to list all bonded devices
2014-05-19Revert "Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost ↵Wei Wang
and multiple advertising."" This reverts commit b1d9fbc0f8dea0c77ed810190b325bfdaaf21789. Change-Id: Ic8dec9385a7c763170ebeb1bcddd221c72f46e88
2014-05-20Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost and ↵Wei Wang
multiple advertising." This reverts commit 2c4e68a86b7a9b9f760a8907b93ff40ccad56c80. Change-Id: I98c91343d886ebe22d0bf75a710fa0b0abf738b6
2014-05-19add a command to list all bonded devicesGuang Zhu
Bug: 14601515 Change-Id: I3cc5bb664485ef768bb81f1f8870ed9bf62f8329
2014-05-19APIs for BLE scan, scan filter, batch scan, onFound/onLost and multipleWei Wang
advertising. Change-Id: I1655eb9cffa890b6fe38108bf51078662e90bc03
2014-05-19Add a method to check whether a UUID is 32bit.Wei Wang
Change-Id: I92e8bab560b2083e9f4855d28b3f54f2120ef628
2014-05-06Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bitWei Wang
Bluetooth UUIDs. Added unit tests. Change-Id: I4ecf0ede02561a5e9815acf8a5a1309d5756b887