Hai Shang
6871b9d5a6
Add initial impl for UpdateRemotePublicCredentials in CredentialManager.
...
PiperOrigin-RevId: 491458184
2022-11-28 15:24:26 -08:00
Janusz Sobczak
0cb5b004e4
Add more Rand helper methods
...
PiperOrigin-RevId: 491409479
2022-11-28 12:14:19 -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
Anay Wadhera
52d81710a2
Add fields to PresenceDevice
...
PiperOrigin-RevId: 490345719
2022-11-22 15:03:09 -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
Anay Wadhera
8679d3a370
Move CancellationFlag to absl::AnyInvocable
...
PiperOrigin-RevId: 490078293
2022-11-21 14:56:55 -08:00
hai007
5066b189f9
Pass over MediumMetadata to client_proxy for incoming connection
...
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Janusz Sobczak
a11733988f
Implement start advertising in service controller.
...
PiperOrigin-RevId: 489584407
2022-11-18 16:17:55 -08:00
hai007
d4551b7187
Add MCC Mode
...
PiperOrigin-RevId: 489580605
2022-11-18 15:58:41 -08:00
Janusz Sobczak
141f021140
Add Borrowable class.
...
Define Lender/Borrowable/Borrowed classes for sharing resources safely between threads.
PiperOrigin-RevId: 489361079
2022-11-17 18:56:41 -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
Qin Wang
a9062b958d
Implement Ble for Fast Pair Windows
...
PiperOrigin-RevId: 489254207
2022-11-17 10:58:34 -08:00
Guogang Li
656f888e5a
Fixed the crash to get network information
...
PiperOrigin-RevId: 488995745
2022-11-16 11:40:44 -08:00
Janusz Sobczak
384d144d6e
Do not use absl::string_view as keys.
...
absl::string_view usually is not suitable type for a member variable nor a map key.
The string referenced by string_view may run out of scope.
PiperOrigin-RevId: 488743930
2022-11-15 13:30:47 -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
Guogang Li
c9429fcb46
Fixed the bug of Laptop unable to detect another Laptop after first attempt
...
PiperOrigin-RevId: 487130249
2022-11-08 21:08: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
Janusz Sobczak
a90b7f85fc
Disable medium env by default.
...
MediumEnvironment's initial state will now match the state after calling `Stop()`.
Cleaned up tests that were calling Stop() before test start.
PiperOrigin-RevId: 486277290
2022-11-04 18:56:30 -07:00
Janusz Sobczak
5faa395f24
Change enum PublicCredentialType to enum class.
...
PiperOrigin-RevId: 486243753
2022-11-04 15:26:34 -07:00
Anay Wadhera
4c2ba2e2b7
Add missing #include <array> to uuid.h to fix build error
...
PiperOrigin-RevId: 485932488
2022-11-03 11:51:06 -07:00
Anay Wadhera
2b3b810363
Remove visibility for non-existent dir
...
PiperOrigin-RevId: 485927350
2022-11-03 11:32:37 -07:00
Anay Wadhera
74f7f5ec5c
Fix visibility rules
...
PiperOrigin-RevId: 485897261
2022-11-03 09:44:47 -07: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
hai007
4935a2ffdb
Remove usage of deprecated WebRTC APIs
...
PiperOrigin-RevId: 485657180
2022-11-02 12:01:42 -07:00
Guogang Li
33c5f44ea1
Unified the exception handling in socket
...
PiperOrigin-RevId: 485457718
2022-11-01 17:15:51 -07:00
hai007
03b1c773fe
WIFI Direct implementation (2)
...
Part 2: Implementation g3 medium/Environment/platform layer unit test
PiperOrigin-RevId: 485417100
2022-11-01 14:23:14 -07:00
hai007
5385dd4d6b
Fix data race problem
...
PiperOrigin-RevId: 485414615
2022-11-01 14:13:24 -07:00
hai007
3d812bbf1c
Add Timer implementation to Fast Pair Windows
...
PiperOrigin-RevId: 485215393
2022-10-31 20:28:53 -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
Janusz Sobczak
81f6b547bb
Add StartAdvertising to BLE medium.
...
StartAdvertising allows us to broadcast Nearby Presence advertisements.
We can now test scanning and advertising with the MediumEnvironment rather than mocking platform code.
PiperOrigin-RevId: 484662211
2022-10-28 18:23:30 -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
hai007
5d207f9e15
Add the frequency of the connected AP into the ConnectionAttemptMetadata, the purpose is to judge if there is MCC symptom.
...
Storage increase will be 4 bytes increasing in ConnetionAttemptMetadata.
(4 bytes in each sharing * 2610000 shares/daily * 7 days/week) / GB = about 0.7 GB)
(2610000 was based on current daily connection attempts count on 20221017.)
PiperOrigin-RevId: 483115234
2022-10-22 21:51:58 -07:00
hai007
e34cac3a96
Update connections_log.proto
...
1. 2499483 is the "Daily Initial Connection Attempts by Medium" from product data of 2022/10/10
2. http://shortn/_XocswsePbY
PiperOrigin-RevId: 482691333
2022-10-20 22:28:17 -07:00
hai007
5ad57c5841
Update connections_log.proto
...
1. 2499483 is the "Daily Initial Connection Attempts by Medium" from product data of 2022/10/10
2. http://shortn/_XocswsePbY
PiperOrigin-RevId: 482681421
2022-10-20 21:13:53 -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
hai007
cab9e31d0d
Add Metrics for wifi-direct/direct-hotspot group crate failed
...
PiperOrigin-RevId: 481994099
2022-10-18 12:43:26 -07:00
hai007
e39256100f
Update connections_log.proto
...
1. 6526209 is the "Daily Transfers by Medium" from product data of 2022/10/10
2. http://shortn/_7cCKZxrmVH
PiperOrigin-RevId: 481789584
2022-10-17 18:26:16 -07:00
hai007
a620d8eeb6
Remove unused variable
...
Fixes -Wunused-variable warning
PiperOrigin-RevId: 481744648
2022-10-17 14:46:46 -07:00