hai007
38d6317274
Automated visibility attribute cleanup.
...
PiperOrigin-RevId: 495557586
2022-12-15 04:22:05 -08:00
Guogang Li
ad9c26ec90
Adjust the timeout value for Wi-Fi hotspot
...
PiperOrigin-RevId: 495389634
2022-12-14 12:44:27 -08:00
Guogang Li
73c1fba668
Added connection timeout for Wi-Fi Lan and hotspot
...
PiperOrigin-RevId: 495155204
2022-12-13 16:25:16 -08:00
hai007
c5cb0e1d39
Insert placeholder declarations into winrt/base.h.
...
PiperOrigin-RevId: 495104919
2022-12-13 13:09:29 -08:00
Guogang Li
9c9439f4b1
Refactor the implementation of scheduled executor on Windows
...
PiperOrigin-RevId: 494261976
2022-12-09 14:20:53 -08:00
Qin Wang
cdd65616fc
Implement Ble GATT Client for Windows
...
PiperOrigin-RevId: 494033195
2022-12-08 17:06:52 -08:00
Suet-Fei Li
a8ca18f477
Internal refactor.
...
PiperOrigin-RevId: 493970269
2022-12-08 12:47:57 -08:00
Suet-Fei Li
9f9bd40ada
Internal flow.
...
PiperOrigin-RevId: 493719005
2022-12-07 15:05:45 -08:00
Guogang Li
43fab95a3a
Refactor Wi-Fi discovery
...
PiperOrigin-RevId: 493417873
2022-12-06 14:47:34 -08:00
Qin Wang
ba1578777d
Implement Bluetooth Pairing for Fast Pair Windows
...
PiperOrigin-RevId: 492902580
2022-12-04 21:05:47 -08:00
Guogang Li
da4ac95e82
Check connectivity before report Wi-Fi discovery
...
PiperOrigin-RevId: 492570605
2022-12-02 15:10:31 -08:00
Aaron Yu
49af1a96b6
Add SetCustomSavePath API to Nearby Connections
...
PiperOrigin-RevId: 492563503
2022-12-02 14:38:55 -08:00
hai007
2012acdbcc
Change BWU priority from Hotspot to WifiLan
...
PiperOrigin-RevId: 491388299
2022-11-28 10:55:28 -08:00
hai007
88d5cb9fdd
Support multiple simultaneous server sockets for WLAN
...
PiperOrigin-RevId: 490596563
2022-11-23 15:31:38 -08:00
hai007
9425ba7fd6
Add Try/Catch for Hotspot methods
...
PiperOrigin-RevId: 490397928
2022-11-22 20:14:19 -08:00
Guogang Li
c499d18af6
Parse remote device IP address from text attributes first
...
PiperOrigin-RevId: 490324278
2022-11-22 13:37:21 -08:00
Janusz Sobczak
a3b6058753
Fully qualify ::location::nearby imports.
...
Find and replace exercise.
Replace
`using location::nearby`
with
`using ::location::nearby`
and
`using <Name> = location::nearby`
with
`using <Name> = ::location::nearby`
PiperOrigin-RevId: 490087051
2022-11-21 15:33:21 -08:00
hai007
3c78cb30b7
When calling GetIpAddress() before GetInformation(), it will fail to get right IP Address.
...
PiperOrigin-RevId: 489261279
2022-11-17 11:23:06 -08:00
Guogang Li
656f888e5a
Fixed the crash to get network information
...
PiperOrigin-RevId: 488995745
2022-11-16 11:40:44 -08:00
Aaron Yu
7a918e8310
Fix WiFi medium crash
...
PiperOrigin-RevId: 488453105
2022-11-14 13:28:41 -08:00
Guogang Li
0a88efb1de
Fixed the logic issue to handle Bluetooth device discovery
...
PiperOrigin-RevId: 487955459
2022-11-11 17:34:51 -08:00
Guogang Li
8c8e5d7e6f
Updated the read method for Bluetooth classic
...
PiperOrigin-RevId: 487595432
2022-11-10 11:37:22 -08:00
hai007
dba1deab3c
Check if the stored WIFI network is exist before restore WIFI connection
...
PiperOrigin-RevId: 487585021
2022-11-10 10:59:13 -08:00
Guogang Li
23a27d9384
Catch all socket exceptions
...
PiperOrigin-RevId: 487316606
2022-11-09 12:29:43 -08:00
hai007
219f9b75e1
Restore the WIFI connection when connecting to Hotspot fails.
...
PiperOrigin-RevId: 486809154
2022-11-07 17:44:06 -08:00
Guogang Li
59d172fe64
Recovered the codes of BLE medium
...
PiperOrigin-RevId: 486803584
2022-11-07 17:11:17 -08:00
Nick Bourdakos
4fb6ba318c
Internal change
...
PiperOrigin-RevId: 486691317
2022-11-07 09:59:14 -08:00
John Carroll
180b76cf84
Split file path processing off into it's own static class and implement validation.
...
PiperOrigin-RevId: 485890871
2022-11-03 09:18:34 -07:00
Guogang Li
33c5f44ea1
Unified the exception handling in socket
...
PiperOrigin-RevId: 485457718
2022-11-01 17:15:51 -07:00
Suet-Fei Li
b6b692b0ea
WIFI Direct implementation (1)
...
Part 1: Implement internal common code
Add implementation/g3 skeleton code for testing coverage.
PiperOrigin-RevId: 485067018
2022-10-31 09:14:09 -07:00
hai007
dfdc3dd818
Include <crtdbg.h> in scheduled_executor.cc.
...
The source in `scheduled_executor.cc` refers to the macro, `_ASSERT`. This macro is defined in `crtdbg.h`.
PiperOrigin-RevId: 484319035
2022-10-27 12:21:34 -07:00
hai007
2206f21c3f
Enable TAP test for nearby.fastpair.windows
...
Enable some packages to visible to nearby fast pair
PiperOrigin-RevId: 483819412
2022-10-25 17:31:00 -07:00
hai007
41ba8c8a14
Convert #include <xstring> to #include <string> in nearby files.
...
`<xstring>` is the MSVC internal implementation file for string. This makes it contingent on the MSVC STL.
`<string>` provides the same declarations, but does not expose the MSVC-specific implementation details. This implementation is guaranteed to meet the C++ standard exactly.
This change updates includes of `<xstring>` to be includes of `<string>`.
PiperOrigin-RevId: 483696244
2022-10-25 09:30:40 -07:00
Guogang Li
d8f64233f5
Fixed the issue to handle file name in UTF8
...
PiperOrigin-RevId: 482535121
2022-10-20 10:47:04 -07:00
John Carroll
5cc1e369d2
Returns the correct object type for CreateInputFile and CreateOutputFile.
...
PiperOrigin-RevId: 482042035
2022-10-18 15:48:25 -07:00
John Carroll
a3f5d108f5
Added a feature flag to control whether we are allowed to set the bluetooth adapter state or not on windows.
...
PiperOrigin-RevId: 479589889
2022-10-07 08:49:24 -07:00
Guogang Li
2fff61b312
Separated BLE permission API into mediums manager
...
PiperOrigin-RevId: 478640491
2022-10-03 16:57:24 -07:00
Eiden Kim
7350643c36
Update Prng usage so that it can generate random values on different threads.
...
PiperOrigin-RevId: 478025630
2022-09-30 10:31:27 -07:00
John Carroll
646c3e5020
Move the increment rename tag (x) from before the first dot to before the last dot.
...
PiperOrigin-RevId: 477849732
2022-09-29 16:26:36 -07:00
hai007
ad93e1f47b
Retry the Hotspot IP address query procedure
...
PiperOrigin-RevId: 477592843
2022-09-28 17:26:17 -07:00
hai007
f65e32ad32
Catch exceptions when retrieve Hotspot IP address
...
PiperOrigin-RevId: 477363744
2022-09-27 23:11:03 -07:00
Guogang Li
d55d41e263
Fixed a crash in Bluetooth classic medium
...
PiperOrigin-RevId: 477027985
2022-09-26 17:12:12 -07:00
Guogang Li
086ad175a8
Fixed the issue to transfer file name in utf8
...
PiperOrigin-RevId: 476959117
2022-09-26 12:17:17 -07:00
Guogang Li
2ca7d43f1a
Fixed the BLE start/stop issues
...
PiperOrigin-RevId: 475915082
2022-09-21 13:53:37 -07:00
Guogang Li
9f9b3d26d1
Fixed the log issue for advertisement data
...
PiperOrigin-RevId: 474897767
2022-09-16 14:09:45 -07:00
John Carroll
0b57cd5c5f
Fixed unit tests. Unit tests were failing locally, mostly just type mismatches, but there was an error in the GetDownloadPath for the test utilities.
...
PiperOrigin-RevId: 474358069
2022-09-14 12:17:35 -07:00
hai007
6b5251f8d2
Don't add WIFI_LAN device if it's device info is incomplete or has error
...
PiperOrigin-RevId: 474162548
2022-09-13 17:16:53 -07:00
John Carroll
fa062b70c9
The order of includes was messed up in bluetooth_adapter.cc
...
PiperOrigin-RevId: 473854940
2022-09-12 15:07:54 -07:00
John Carroll
55c4714b99
Cleanup the code. Change inputs on ImplementationPlatform::GetDownloadPath from std::string& to absl::string_view.
...
PiperOrigin-RevId: 472770249
2022-09-07 11:22:24 -07:00
Hai Shang
da54ba3422
Add async operations to ble_v2
...
PiperOrigin-RevId: 472611661
2022-09-06 19:08:22 -07:00