hai007
2d4cc75dfa
Fix miscellaneous typos in the comments or logging.
...
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
jfcarroll
88ee3ba338
This needs to be declared in order to build on windows (and since it's declared that way in the header)
...
PiperOrigin-RevId: 454077812
2022-06-09 21:09:31 -07:00
edwinwu
9069451c08
[BLE Refactor] Add Base64 encoder to BleAdvertisementHeader
...
PiperOrigin-RevId: 453567012
2022-06-07 17:59:33 -07:00
hai007
37b0c31319
Add Wifi Hotspot AP and Client validation check
...
PiperOrigin-RevId: 451492039
2022-05-27 15:20:36 -07:00
hai007
500f67c85e
Add Wifi Medium to query WIFI interface capability and information
...
PiperOrigin-RevId: 451233512
2022-05-26 13:40:14 -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
aaronyujiaze
cb8fef7875
Add fix to check the availability of BluetoothAdapter
...
This change makes sure BluetoothClassic and BLE medium can only be added to the CONNECTION_REQUEST frame if BluetoothAdapter is valid and enabled.
PiperOrigin-RevId: 450777716
2022-05-24 15:05:45 -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
412f9e0752
[BLE Refactor] Connects BleV2 mediums to PCP handler.
...
PiperOrigin-RevId: 449196646
2022-05-17 05:42:05 -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
hai007
73c0ce9c76
Remove deprecated usage of CreateDataChannel()
...
CreateDataChannelOrError() should be used instead.
If the code referencing the function allows it, error handling has been modified
to match the new function.
PiperOrigin-RevId: 448168890
2022-05-11 23:27:09 -07:00
edwinwu
12cef58420
[BLE Refactor] Refactor BlePeripheral class.
...
PiperOrigin-RevId: 447638179
2022-05-09 21:27:58 -07:00
hai007
cb2672de03
Fix go/tsan failure in:
...
https://critique.corp.google.com/cl/444788086
PiperOrigin-RevId: 447591426
2022-05-09 16:33:52 -07:00
edwinwu
771ce23fa3
[BLE Refactor] Implements advertisement tracking in Ble medium with DiscoveredPeripheralTracker class.
...
PiperOrigin-RevId: 447397658
2022-05-09 00:36:33 -07:00
hai007
8f4edf3c89
Delete use of implicit conversion from rtc::scoped_refptr<T> --> T*.
...
Intended to unblock landing of webrtc cl https://webrtc-review.googlesource.com/c/src/+/260325
PiperOrigin-RevId: 446091008
2022-05-02 19:39:40 -07:00
hai007
d09f53a40b
Unit test for WIFI Hotspot in BWU layer
...
PiperOrigin-RevId: 445437919
2022-04-29 09:29:59 -07:00
hai007
8e80ee097a
Unit test for WIFI Hotspot in Connection Medium layer
...
Fix 230126796: go/tsan error (data_race) found while running //third_party/nearby/internal/platform:public_test
PiperOrigin-RevId: 444788086
2022-04-27 01:21:23 -07:00
bourdakos
da13735484
Update Package.swift and stub webrtc
...
PiperOrigin-RevId: 443722630
2022-04-22 11:57:15 -07:00
hai007
ec2d3ae1aa
WIFI Hotspot implementation (4)
...
Part 4: BWU and client interface part
PiperOrigin-RevId: 443700883
2022-04-22 10:32:12 -07:00
nohle
dee3e9cfb4
[Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (2/4)
...
Consolidate BWU service ID bookkeeping into the BaseBwuHandler class. This eliminates duplicated code in per-medium BWU handlers and allows us to easily augment the bookkeeping with endpoint IDs in a subsequent CL.
Also, localize all service ID wrapping to the BaseBwuHandler class. A postfix is appended to the service ID during bandwidth upgrade, e.g., "NearbyShare_INITIATOR_BWU"; this is done to distinguish a medium's use for advertising/discovery vs. its use for device-to-device connections.
This CL should theoretically be a no-op, but per-medium BWU handlers were inconsistent in their implementations.
PiperOrigin-RevId: 442019603
2022-04-15 08:19:19 -07:00
nohle
463d391fcd
[Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (1/4)
...
This CL should be a no-op.
Provide better access to the service ID during bandwidth upgrade handling. Notably, 1) have the endpoint channel store its associated service ID, and 2) send the service ID on a connect/disconnect.
The service ID identifies the application, for example, "NearbySharing". In future CLs, we will use the service IDs to better handle bandwidth-upgrade bookkeeping when multiple services are running simultaneously. Specifically, we will better handle reverting a bandwidth-upgrade medium without interfering with other services.
PiperOrigin-RevId: 442019209
2022-04-15 08:15:53 -07:00
edwinwu
d1b2437b0d
[BLE Refactor] Implements BleExtraField in mediums::BleAdvertisement for Extended advertisement.
...
PiperOrigin-RevId: 441665698
2022-04-13 22:06:57 -07:00
edwinwu
3050f9432c
[BLE Refactor] Implements DiscoveredPeripheralTracker.
...
PiperOrigin-RevId: 441524475
2022-04-13 10:56:16 -07:00
hai007
68ede1db20
WIFI Hotspot implementation (2)
...
Part 2: Connection common code for WIFI Hotspot
PiperOrigin-RevId: 440537272
2022-04-09 01:24:14 -07:00
edwinwu
59ea8e8005
[BLE Refactor] Add Psm value to BleAdvertisement and BleAdvertisementHeader.
...
PiperOrigin-RevId: 440410863
2022-04-08 11:20:59 -07:00
edwinwu
0747c0a349
[BLE Refactor] Tune BleAdvertisement, BleAdvertisementHeader, BlePeripheral, AdvertisementReadResult, BleUtils.
...
PiperOrigin-RevId: 439365106
2022-04-04 11:19:24 -07:00
edwinwu
190d3ebafc
[BLE Refactor] Impl Start/Stop Scanning and DiscoveredPeripheral callback function in medium layer and ScanCallback in platform layer.
...
PiperOrigin-RevId: 438293171
2022-03-30 07:08:05 -07:00
edwinwu
c3d4ffba65
[BLE Refactor] Fixed BloomFilterBase base member _bits is not initialized when construct from a non-empty ByteArray.
...
PiperOrigin-RevId: 436229874
2022-03-21 09:37:53 -07:00
edwinwu
0702409047
[BLE Refactor] Modify to allow zero numSlots for AdvertisementHeader.
...
PiperOrigin-RevId: 434634152
2022-03-14 19:39:50 -07:00
edwinwu
66b425dc4e
[BLE Refactor] Impl Start/Stop AdvertisementGattServer
...
PiperOrigin-RevId: 432657453
2022-03-05 08:33:01 -08:00
edwinwu
91dfdefb9f
[BLE Refactor] Impl Start/Stop Advertising function in medium layer.
...
PiperOrigin-RevId: 432185275
2022-03-03 07:04:32 -08:00
edwinwu
8326aeef38
[BLE Refactor] Implement CreateAdvertisementHeader in BleV2 medium.
...
PiperOrigin-RevId: 429550598
2022-02-18 06:30:09 -08:00
suetfei
3c8a279829
Add WORKSPACE and .bazelrc and make other changes for bazel build.
...
PiperOrigin-RevId: 428343135
2022-02-13 08:50:47 -08:00
suetfei
37f8b4487e
Internal flow change phase 2.
...
PiperOrigin-RevId: 427059704
2022-02-07 17:17:20 -08:00
hais
f5fcd35ced
nearby sdk refactor
...
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00