guogang
dcbcbb53cc
Avoided to set Bluetooth radio status when new state is same as old
...
PiperOrigin-RevId: 458545342
2022-07-01 14:37:27 -07:00
aaronyujiaze
ff9a986595
Reduce the frequency of redundant Bluetooth Classic operations
...
PiperOrigin-RevId: 458057650
2022-06-29 14:05:41 -07:00
aaronyujiaze
abc0ae34df
Ensure bluetooth adapter is enabled before BLE operations
...
PiperOrigin-RevId: 458011940
2022-06-29 10:47:25 -07:00
jfcarroll
bd9d01ec29
Fix for outgoing file names being truncated, and renaming input files should not occur, only output files.
...
PiperOrigin-RevId: 457857046
2022-06-28 17:41:29 -07:00
guogang
698b04184a
Fixed a few issues found during test
...
PiperOrigin-RevId: 457604581
2022-06-27 17:30:37 -07:00
jfcarroll
87c76ea235
The file was overwritten when transferring a file that already existed in the downloads folder. With this change we now add " (x)", where x is an incrementing number, starting at 1, using the next non-existing number, to the file name, just before the first dot, or at the end if no dot. This has been applied to the GetDownloadPath method in the platform api.
...
PiperOrigin-RevId: 457530287
2022-06-27 11:44:15 -07:00
aaronyujiaze
75aa59d57e
Fix BluetoothAdapter bug to enable Bluetooth Classic Advertising
...
PiperOrigin-RevId: 456609115
2022-06-22 14:28:52 -07:00
aaronyujiaze
064a482e7d
Add unit tests for BluetoothAdapter
...
PiperOrigin-RevId: 455673471
2022-06-17 12:36:02 -07:00
aaronyujiaze
6bd1a78eeb
Add size limit check for Bluetooth Classic SetName
...
PiperOrigin-RevId: 455442872
2022-06-16 12:34:35 -07:00
aaronyujiaze
cf85146096
Add the comprehensive set of BluetoothError Enums
...
PiperOrigin-RevId: 455239120
2022-06-15 15:54:27 -07:00
hai007
2d4cc75dfa
Fix miscellaneous typos in the comments or logging.
...
PiperOrigin-RevId: 454649199
2022-06-13 10:55:57 -07:00
xlythe
62fc7e1e24
[Connections] Fix typo in log
...
PiperOrigin-RevId: 453992571
2022-06-09 13:00:55 -07:00
hai007
1aeb1093a9
Delete temporary Hotspot profiles after the session is done.
...
Reduce max rescan from 3 to 2 times. Experiment shows if second time scan fail, it always fail to find the Hotspot.
PiperOrigin-RevId: 453729656
2022-06-08 11:39:32 -07:00
aaronyujiaze
199bbc9cd1
Add null checkers to Bluetooth Classic medium ConnectToService
...
PiperOrigin-RevId: 453542256
2022-06-07 15:44:41 -07:00
aaronyujiaze
ccca7bef6f
Mute logging of BLE advertisement discovery for release builds
...
PiperOrigin-RevId: 453493406
2022-06-07 12:06:31 -07:00
aaronyujiaze
5566832a00
Enhance stability of bluetooth classic medium
...
PiperOrigin-RevId: 453239216
2022-06-06 11:09:57 -07:00
aaronyujiaze
71974b2c0b
Fix BlePeripheral pointer protection bug
...
PiperOrigin-RevId: 452884820
2022-06-03 19:08:15 -07:00
aaronyujiaze
bc6c726970
Fix bugs in Windows' BluetoothAdapter
...
PiperOrigin-RevId: 452808916
2022-06-03 11:38:33 -07:00
aaronyujiaze
4045af569f
Add Extended Advertising support for BlePeripheral discovery
...
PiperOrigin-RevId: 452801874
2022-06-03 11:06:43 -07:00
aaronyujiaze
45386948be
Add dual-mode Bluetooth Classic Device to support RequestConnection over BLE Fast Advertisement
...
PiperOrigin-RevId: 452782174
2022-06-03 09:33:59 -07:00
aaronyujiaze
c94981c880
Convert logging of advertisement bytes to hex string format
...
PiperOrigin-RevId: 452610643
2022-06-02 13:35:52 -07:00
aaronyujiaze
926dcc28d4
Add BlePeripheral discovery logic implementation
...
PiperOrigin-RevId: 452609641
2022-06-02 13:31:25 -07:00
jfcarroll
28da839987
Latest update for winrt
...
PiperOrigin-RevId: 452591835
2022-06-02 12:05:19 -07:00
jfcarroll
6d8d04a9f7
Fix for memory leaks, buffer overruns etc on the bluetooth adapter.
...
PiperOrigin-RevId: 452464213
2022-06-01 23:09:25 -07:00
jfcarroll
5e2b1e9c4c
Fix for expanding the CriticalSection coverage to eliminate out of order callbacks from bluetooth
...
PiperOrigin-RevId: 452463213
2022-06-01 23:01:19 -07:00
jfcarroll
8f067bba98
Set scan mode was starting advertising whether we should or not.
...
SetScanMode now only starts advertising if the radio is discoverable.
PiperOrigin-RevId: 452461975
2022-06-01 22:48:57 -07:00
hai007
6ebf3731c8
Add WifiLan validation check
...
PiperOrigin-RevId: 452402734
2022-06-01 15:51:06 -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
aaronyujiaze
b4b74ca5b4
Add Extended Advertising support in Nearby Connections layer
...
PiperOrigin-RevId: 452112156
2022-05-31 12:29:18 -07:00
jfcarroll
0521012f83
Remove spurious log entries
...
PiperOrigin-RevId: 452106082
2022-05-31 12:02:33 -07:00
hai007
fe27ea822a
Change comment "WIFI" to "WiFi"
...
PiperOrigin-RevId: 451659534
2022-05-28 14:48:55 -07:00
hai007
37b0c31319
Add Wifi Hotspot AP and Client validation check
...
PiperOrigin-RevId: 451492039
2022-05-27 15:20:36 -07:00
jfcarroll
10605d5534
Remove spurious log entries
...
PiperOrigin-RevId: 451426941
2022-05-27 10:37:09 -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
aaronyujiaze
8867721271
Add reset for std::promise
...
std::promise needs to be reinitialized for each async operation after std::future is returned
PiperOrigin-RevId: 451236518
2022-05-26 13:55:18 -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
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
aaronyujiaze
0be161e3bb
Add Copresence Service UUID to BLE Advertisement 0x16 Service Data
...
The medium abstraction layer does not prepopulate the advertisement_bytes ByteArray with Copresence Service UUID. This adds it at the platform impl layer.
PiperOrigin-RevId: 450054877
2022-05-20 13:47:29 -07:00
aaronyujiaze
48a91eec73
Add BLE V1 windows platform implementation
...
This CL implements the BLE V1 Medium and its corresponding unit tests:
- Start/Stop Advertising
- Start/Stop Scanning
- Receive BLE Advertisement callbacks handler
- BLE Advertisement Publisher/Watcher status callbacks handler
PiperOrigin-RevId: 449824666
2022-05-19 13:48:56 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
aaronyujiaze
8f1623d293
Fix minor bluetooth adapter crash bug
...
If bluetooth adapter is not present on the Windows device, Nearby Connection will crash. This change resolves the issue by adding null checkers.
PiperOrigin-RevId: 449578225
2022-05-18 14:32:47 -07:00
guogang
4aee0b681c
Applied thread pool implementation from Windows platform
...
PiperOrigin-RevId: 449385710
2022-05-17 21:02:00 -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
e9c4225443
Fix typo in the Nearby Sharing Windows Bluetooth classic socket logging.
...
PiperOrigin-RevId: 448113611
2022-05-11 16:42:58 -07:00
edwinwu
12cef58420
[BLE Refactor] Refactor BlePeripheral class.
...
PiperOrigin-RevId: 447638179
2022-05-09 21:27:58 -07:00
aaronyujiaze
6b88d326df
Add BLE V2 windows platform implementation (Phase 1)
...
This CL implements the scanning and advertising of Nearby BLE Medium Fast Advertisement with hardcoded advertisement data
PiperOrigin-RevId: 446806137
2022-05-05 13:45:35 -07:00
hai007
aeff3a9683
Change build target visibility for testing.
...
PiperOrigin-RevId: 445051381
2022-04-27 21:28:29 -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