edwinwu
9ce81d8534
[BLE Refactor] Implement iOS BLE incoming connection.
...
PiperOrigin-RevId: 457110588
2022-06-24 15:58:47 -07:00
hai007
7046d24dfe
Turn on auto_upgrade_bandwidth as default.
...
PiperOrigin-RevId: 456586628
2022-06-22 12:58:14 -07:00
jfcarroll
a0fd221155
Make PayloadProgressInfoW align with java code definition.
...
PiperOrigin-RevId: 456344013
2022-06-21 13:59:11 -07:00
jfcarroll
320d4437ca
This should fix mismatched payload id's on the translation from incoming payload to payloadw.
...
PiperOrigin-RevId: 455384840
2022-06-16 08:09:20 -07:00
johnsonlu
ce80804639
Modify the comment of MediumMetaData.ap_frequency
...
PiperOrigin-RevId: 455297318
2022-06-15 22:19:39 -07:00
jfcarroll
abb6efd006
This fixes the translated PayloadW having a different payload id than the incoming Payload.
...
PiperOrigin-RevId: 455023901
2022-06-14 20:41:13 -07:00
hai007
a9d7061794
Group Connection Info into structure
...
PiperOrigin-RevId: 454663252
2022-06-13 11:49:53 -07:00
hai007
2d4cc75dfa
Fix miscellaneous typos in the comments or logging.
...
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -07:00
hai007
a852817f0e
Fix the function comments of StopAllEndpoints.
...
PiperOrigin-RevId: 454648920
2022-06-13 10:53:49 -07:00
edwinwu
67b318fa6f
[BLE Refactor] Refactor GATTClient implementation.
...
PiperOrigin-RevId: 454290863
2022-06-10 20:20:40 -07:00
edwinwu
c96875f310
Fixes A go/asan error (heap_use_after_free) found while running //third_party/nearby/connections/implementation:core_internal_test
...
PiperOrigin-RevId: 454288190
2022-06-10 20:00:03 -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
aaronyujiaze
b195c46286
Fix payload id signed integer bug
...
PiperOrigin-RevId: 454001575
2022-06-09 13:37:43 -07:00
crisrael
89462d1d45
[NC] Fix nullptr crashes in BasePcpHandler
...
PiperOrigin-RevId: 453967262
2022-06-09 11:10:49 -07:00
edwinwu
9069451c08
[BLE Refactor] Add Base64 encoder to BleAdvertisementHeader
...
PiperOrigin-RevId: 453567012
2022-06-07 17:59:33 -07:00
hai007
7d3b6d7d82
Disable BWU from WLAN to Hotspot for Discoverer side
...
Windows doesn't support BWU from WIFI_LAN to WIFI_HOTSPOT. Because when the discoverer side try to switch from current AP to the Hotspot, it loss physical connection. When here's no physical connection, BWU protocol frame exchange won't be finished successfully, then BWU will fail eventually.
In the current code implementation, if Windows Nearby act as Advertiser, it will not do BWU from WLAN to Hotspot. This CL adds similar logic when Windows Nearby act as discoverer.
PiperOrigin-RevId: 453248717
2022-06-06 11:50:06 -07:00
aaronyujiaze
11558b453c
Fix remote static bluetooth mac address serialization bug
...
PiperOrigin-RevId: 452536487
2022-06-02 07:48:03 -07:00
hai007
33ebc9e93f
Change SendPayload to accept const char ** instead of char **.
...
PiperOrigin-RevId: 452457446
2022-06-01 22:06:11 -07:00
hai007
90b0f35449
Remove duplicate strategy field in the AdvertisingOptionsW, ConnectionOptionsW.
...
PiperOrigin-RevId: 452444826
2022-06-01 20:14:46 -07:00
hai007
5cf5ee2048
Change DisconnectFromEndpoint to accept const char * instead of char *.
...
PiperOrigin-RevId: 452301890
2022-06-01 08:26:08 -07:00
hai007
412e97a40a
Fix link error when linking exe with core_adapter.dll.
...
PiperOrigin-RevId: 452222662
2022-05-31 23:30:05 -07:00
jfcarroll
b5a1359d1f
Automated g4 rollback of changelist 451248048.
...
*** Reason for rollback ***
Although this fixes Bluetooth Classic, it appears to break Ble, will resubmit once Ble is fixed.
*** Original change description ***
BEGIN_PUBLIC
Bug fixes for 233012255 and 232995024
Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into...
***
PiperOrigin-RevId: 452177878
2022-05-31 17:31:03 -07:00
hai007
e096c7e666
Fix typo in the comment.
...
PiperOrigin-RevId: 452034210
2022-05-31 06:52:23 -07:00
hai007
b14201a744
Add ToString support to location::nearby::connections::Status.
...
PiperOrigin-RevId: 451985493
2022-05-31 01:33:46 -07:00
hai007
e9d34f4c3f
Fix link error when linking exe with core_adapter.dll.
...
PiperOrigin-RevId: 451885776
2022-05-30 09:15:09 -07:00
hai007
0e63917cb6
Replace line separators from Windows style(\r\n) to Unix style(\n).
...
PiperOrigin-RevId: 451877419
2022-05-30 08:12:11 -07:00
hai007
e9d7a29d14
Add visibility for Nearby test snippet.
...
PiperOrigin-RevId: 451876141
2022-05-30 08:03:02 -07:00
hai007
4aaedaac28
Fix typo in the comment and replace line separators to Unix style(\n).
...
PiperOrigin-RevId: 451875541
2022-05-30 07:57:57 -07:00
hai007
37b0c31319
Add Wifi Hotspot AP and Client validation check
...
PiperOrigin-RevId: 451492039
2022-05-27 15:20:36 -07:00
hai007
519144eb24
[Analytics] Reorganize code structure for Analytics
...
- move AnalyticsRecorder to Connections specific folder
- log generic proto type in EventLogger
PiperOrigin-RevId: 451265563
2022-05-26 16:14:51 -07:00
jfcarroll
8765e5bc83
Bug fixes for 233012255 and 232995024
...
Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into the dll.
PiperOrigin-RevId: 451248048
2022-05-26 14:46:08 -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
hai007
28acece858
C++20 fixes.
...
Structs with user-declared constructors are no longer aggregates.
Remove the user-declared constructors.
Bug: chromium:1284275
PiperOrigin-RevId: 450762391
2022-05-24 13:58:08 -07:00
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
johnsonlu
58d14a36bf
Add comments of MediumMetadata
...
PiperOrigin-RevId: 449641256
2022-05-18 20:17:56 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
jfcarroll
d0a83cee39
This correctly exports the dll functions needed by the flutter app (and any other app).
...
PiperOrigin-RevId: 449402726
2022-05-17 23:21:55 -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
487d272e24
Fix go/MSAN and coverage failure in:
...
https://critique.corp.google.com/cl/445437919
PiperOrigin-RevId: 447592532
2022-05-09 16:38:44 -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