Edwin Wu
a43b20008a
Return an error when failing to start accepting BLE GATT connections.
...
PiperOrigin-RevId: 803041881
2025-09-04 08:42:59 -07:00
Francis Tsui
3f93c0ee87
Remove more unnecessary INFO logs.
...
PiperOrigin-RevId: 797859361
2025-08-21 12:04:13 -07:00
Guogang Li
981d46c589
[NC] Close GATT connection when failure happen
...
PiperOrigin-RevId: 795586959
2025-08-15 13:19:06 -07:00
Guogang Li
9e401d7b3f
Log GATT connection failure
...
PiperOrigin-RevId: 794601832
2025-08-13 08:57:08 -07:00
Guogang Li
ca8e70f613
Apply real PSM value in DCT advertising
...
PiperOrigin-RevId: 778914950
2025-07-03 10:06:06 -07:00
Guogang Li
0614f439d9
Control Advertising/Scanning of instant on lost separately
...
PiperOrigin-RevId: 778356456
2025-07-01 23:30:17 -07:00
Francis Tsui
b48b943275
Remove reference to BlePeripheral.
...
PiperOrigin-RevId: 757830081
2025-05-12 10:55:38 -07:00
Francis Tsui
59e527dbe3
Remove unused methods.
...
PiperOrigin-RevId: 756053350
2025-05-07 16:36:04 -07:00
hai007
3c77c0dfa0
Stop BLE_V2 scan before upgrading to Wifi HotSpot to avoid interference
...
PiperOrigin-RevId: 746541587
2025-04-11 11:59:18 -07:00
Edwin Wu
b10957d712
Add OpenL2capServerSocket and skeleton BleL2capServerSocket/BleL2capSocket
...
PiperOrigin-RevId: 746334743
2025-04-11 00:01:50 -07:00
Mingshiou Wu
aefcc4a8b2
Add client-side connection APIs for ble l2cap
...
PiperOrigin-RevId: 741061740
2025-03-27 01:38:10 -07:00
Mingshiou Wu
04b2f9cfc6
Interface definition for Ble L2CAP Medium in Nearby Connections layer
...
PiperOrigin-RevId: 741054574
2025-03-27 01:04:16 -07:00
Guogang Li
f7e97d23fe
Add scanning logic for DCT
...
PiperOrigin-RevId: 736888954
2025-03-14 09:33:05 -07:00
Francis Tsui
7e758061ac
Allow setting of alternate service UUID on StartDiscovery.
...
PiperOrigin-RevId: 733850300
2025-03-05 13:34:29 -08:00
Guogang Li
553f5dbf01
Add advertising logic for DCT
...
PiperOrigin-RevId: 733752366
2025-03-05 08:54:56 -08:00
hai007
fb8bfe05b2
[NearbyConnections] Fix IOS incorrect endpoint info from GATT server
...
1. Put the entire regular advertisement onto the gatt server
2. Provide the gatt read characterestics with offset.
PiperOrigin-RevId: 731102862
2025-02-25 18:17:05 -08:00
Guogang Li
202915c310
Add DCT advertising UUID
...
PiperOrigin-RevId: 730673334
2025-02-24 18:17:37 -08:00
Guogang Li
eb914ecc59
A small refactor to start BLE V2 advertisement
...
PiperOrigin-RevId: 730619310
2025-02-24 15:32:04 -08:00
Juliet Levesque
e7f45020bb
[BLE V2] Mark ChromeOS fast advertisements as non-connectable
...
PiperOrigin-RevId: 728862084
2025-02-19 16:33:41 -08:00
Edwin Wu
fb2e7e687b
analytics: Modify OperationResultCode in C++ implementation
...
PiperOrigin-RevId: 704951400
2024-12-10 20:57:25 -08:00
Edwin Wu
65c2298f27
analytics: Add exact OperationResultCode for BLE/BLEV2 - Connect/AttemptConnect
...
PiperOrigin-RevId: 704926745
2024-12-10 18:58:35 -08:00
Edwin Wu
6f63efa8db
analytics: Modify the returned code with a new OperationResultCodeWithMediums for Ble - advertising/discovery/acceptConnections
...
PiperOrigin-RevId: 704911325
2024-12-10 18:08:28 -08:00
Guogang Li
45e297cc93
Reduce GATT read during discovery
...
PiperOrigin-RevId: 684175246
2024-10-09 14:36:44 -07:00
Guogang Li
d5b5d92f87
Internal logging update
...
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Francis Tsui
b03a383f7a
Trivial replacement of NEARBY_LOG with NEARBY_LOGS.
...
PiperOrigin-RevId: 667740113
2024-08-26 15:34:21 -07:00
Guogang Li
2c700115ef
internal fix
...
PiperOrigin-RevId: 666482118
2024-08-22 14:08:02 -07:00
Guogang Li
52c80303e3
Enhance on advertising
...
PiperOrigin-RevId: 655044204
2024-07-22 23:57:16 -07:00
Crisrael Lucero
acc38a809b
[Nearby Presence] Update ScanManager to trigger changed and lost events
...
PiperOrigin-RevId: 644072733
2024-06-17 11:17:00 -07:00
Hai Shang
ce030a76b6
internal cleanup
...
PiperOrigin-RevId: 632285218
2024-05-09 15:20:03 -07:00
Hai Shang
77515694c8
Internal fix.
...
PiperOrigin-RevId: 628181275
2024-04-25 13:56:13 -07:00
Hai Shang
bcad0cae6e
Last CL for the 1 bit solution in BLE v2.
...
PiperOrigin-RevId: 625856655
2024-04-17 17:31:38 -07:00
Daniel Classon
05dac6b184
[Nearby Connections] Rename async scanning flag
...
Renames the enable_ble_v2_async_scanning_advertising flag to just
enable_ble_v2_async_scanning, reflecting that scanning/advertising
can be enabled independently. Work required to add async
advertising is tracked in b/333408829.
PiperOrigin-RevId: 624254277
2024-04-12 12:15:21 -07:00
Hai Shang
d2c8fc3cd5
Internal fix
...
PiperOrigin-RevId: 622865759
2024-04-08 09:18:16 -07:00
Hai Shang
ca936891c8
Add start/stop legacyDeviceAdvertising in connections ble v2
...
PiperOrigin-RevId: 621303221
2024-04-02 14:52:36 -07:00
Daniel Classon
f09368247b
[Nearby Connections] Use async StartScanning when flag enabled
...
Creates the feature flag `enable_ble_v2_async_scanning_advertising` which
enables/disables the use of the async StartScanning, StopScanning,
StartAdvertising, StopAdvertising, etc methods over the soon-to-be deprecated
synchronous versions of those methods. Opted for feature flag over NearbyFlag,
as ChromeOS is the only current consumer and doesn't use Mendel.
Also sets the feature flag to enabled in the ServiceControllerRouter, which
is where ChromeOS sets NC feature flags at startup.
This CL also fully links up the asynchronous Scanning methods. Advertising
will be addressed in a follow up CL.
PiperOrigin-RevId: 608158273
2024-02-18 12:59:02 -08:00
Janusz Sobczak
746a8b6231
Use AnyInvocable in mediums/ble_v2
...
PiperOrigin-RevId: 566437160
2023-09-18 15:56:54 -07:00
Janusz Sobczak
e38ce96964
Replace AcceptedConnectionCallback structs with absl::AnyInvocable
...
PiperOrigin-RevId: 557949490
2023-08-17 15:14:25 -07:00
Guogang Li
072d24238b
Made kPeripheralLostTimeout as flag
...
PiperOrigin-RevId: 530408275
2023-05-08 14:29:02 -07:00
Edwin Wu
94ff506d1e
Fixes HelloConnections that can't discover Pixel device from iPhone for Ble_v2 medium.
...
PiperOrigin-RevId: 517318035
2023-03-16 22:25:21 -07:00
Qin Wang
0c078b3528
Convet ByteArray to std::string in ble_gatt_client
...
PiperOrigin-RevId: 514786088
2023-03-07 11:10:34 -08:00
Qin Wang
4727861f5d
Refactor GattCharactristic to support bitwise combination of Permission and Property
...
PiperOrigin-RevId: 513339751
2023-03-01 14:21:04 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
edwinwu
9ce81d8534
[BLE Refactor] Implement iOS BLE incoming connection.
...
PiperOrigin-RevId: 457110588
2022-06-24 15:58:47 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
edwinwu
8e048f7be0
[BLE Refactor] Uses Uuid class for those used in Uuid string-form in /medium layer.
...
PiperOrigin-RevId: 450910238
2022-05-25 06:36:55 -07:00
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
edwinwu
eddf53ec29
[BLE Refactor] Removes fast advertisement uuid in StartAdvertising and StartScanning.
...
PiperOrigin-RevId: 448426759
2022-05-13 00:19:16 -07:00
edwinwu
080e964a4c
[BLE Refactor] Implements GattClient for sender's device to fetch Gatt advertisement.
...
PiperOrigin-RevId: 448400837
2022-05-12 20:29:30 -07:00
edwinwu
12cef58420
[BLE Refactor] Refactor BlePeripheral class.
...
PiperOrigin-RevId: 447638179
2022-05-09 21:27:58 -07:00