hai007
80570e55b0
Automated Code Change
...
PiperOrigin-RevId: 620702020
2024-03-31 16:16:32 -07:00
Francis Tsui
1e08b2d886
Fixed remaining filesystem calls that throws exceptions.
...
PiperOrigin-RevId: 620379472
2024-03-29 17:33:25 -07:00
Hai Shang
6162fb5f80
add legacy_device_discovered_cb to DiscoveredPeripheralCallback
...
PiperOrigin-RevId: 619702145
2024-03-27 17:45:37 -07:00
Guogang Li
387a51b260
internal update
...
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Francis Tsui
0c086a3c93
Minor fixes to reduce copying.
...
PiperOrigin-RevId: 616927443
2024-03-18 13:22:56 -07:00
Hai Shang
30c9c55d3b
Initial Async version of StartAdvertising for windows.
...
PiperOrigin-RevId: 616915567
2024-03-18 12:43:12 -07:00
Francis Tsui
33e682f244
Bypass GN check of absl/log include.
...
PiperOrigin-RevId: 615954726
2024-03-14 17:29:31 -07:00
Anthony Rueda
848ef00cc0
[Presence] Change new unused signature_version field to string type for easier debugging and to align with [nearby_resources.proto]( https://source.corp.google.com/piper///depot/google3/google/internal/location/nearby/presence/v1/nearby_resources.proto;l=96 )
...
PiperOrigin-RevId: 615921095
2024-03-14 15:24:13 -07:00
Francis Tsui
a082f36021
Switch glog to absl::log.
...
PiperOrigin-RevId: 615535748
2024-03-13 14:03:23 -07:00
hai007
8a73a44146
Add analytics log for GATT database hash
...
Add new field in ProviderInfo message and write the data from provider GATT database characteristic
PiperOrigin-RevId: 615247090
2024-03-12 19:00:36 -07:00
hai007
965677199e
Internal change
...
PiperOrigin-RevId: 613336063
2024-03-06 14:14:42 -08:00
hai007
cf2a1eb0b1
Internal change
...
PiperOrigin-RevId: 613133183
2024-03-06 10:21:45 -08:00
Copybara-Service
ee404cb766
Merge pull request #2307 from ChenWangG:patch-1
...
PiperOrigin-RevId: 612604370
2024-03-04 15:42:43 -08:00
Francis Tsui
d15f533721
Cleanup BUILD dependencies.
...
PiperOrigin-RevId: 609511614
2024-02-22 15:05:13 -08:00
Daniel Classon
f09368247b
[Nearby Connections] Use async StartScanning when flag enabled
...
Creates the feature flag `enable_ble_v2_async_scanning_advertising` which
enables/disables the use of the async StartScanning, StopScanning,
StartAdvertising, StopAdvertising, etc methods over the soon-to-be deprecated
synchronous versions of those methods. Opted for feature flag over NearbyFlag,
as ChromeOS is the only current consumer and doesn't use Mendel.
Also sets the feature flag to enabled in the ServiceControllerRouter, which
is where ChromeOS sets NC feature flags at startup.
This CL also fully links up the asynchronous Scanning methods. Advertising
will be addressed in a follow up CL.
PiperOrigin-RevId: 608158273
2024-02-18 12:59:02 -08:00
hai007
cb5016c3f3
1.Define OperationResult message, which contains result code category and resulc code
...
2.Add OperationResult message to ConnectionAttempt, EstablishedConnection and BandwidthUpgradeAttempt
PiperOrigin-RevId: 607231266
2024-02-14 23:57:20 -08:00
Juliet Levesque
fb1f01717f
[Nearby Presence] Add authentication status to ConnectionInfo
...
Adds authentication status to `ConnectionInfo`, which will pass the result of the authentication to clients when the connection is complete. See go/cros-nearby-presence-np-nc-authentication for details. This will be used in follow up CL to communicate the authentication status to clients of RequestConnectionV3().
PiperOrigin-RevId: 606789503
2024-02-13 16:49:49 -08:00
Hai Shang
f8c907a120
internal cleanup
...
PiperOrigin-RevId: 605780857
2024-02-09 18:13:40 -08:00
Hai Shang
17a71c8b7e
Internal cleanup
...
PiperOrigin-RevId: 604442644
2024-02-05 15:00:32 -08:00
Hai Shang
9896e327c0
internal clean
...
PiperOrigin-RevId: 604358478
2024-02-05 10:23:25 -08:00
hai007
0efbd2a29d
Bump test RSA key sizes to a more realistic size
...
Looks like this code was derived from Chromium, which bumped this
in https://chromium-review.googlesource.com/c/chromium/src/+/4529975
See that CL for details.
PiperOrigin-RevId: 603779574
2024-02-02 17:25:52 -08:00
Juliet Levesque
6b2f7fa94e
[Nearby Presence] Fetch and select correct local credentials
...
Fetch the local credentials and select the correct local credential by verifying the validity of the time. This CL will be followed by
using the selected local credential for authentication. See go/cros-nearby-presence-np-nc-authentication for details.
PiperOrigin-RevId: 603772266
2024-02-02 17:23:41 -08:00
hai007
f112d9ff71
Change code to follow payload ack send/receive frame format change.
...
PiperOrigin-RevId: 601486151
2024-01-25 10:17:23 -08:00
Guogang Li
caa82a41d8
Added flag control to Bluetooth update
...
PiperOrigin-RevId: 599538193
2024-01-18 09:54:54 -08:00
hai007
2149b842f8
Allow client to use flags
...
PiperOrigin-RevId: 599243081
2024-01-17 11:50:06 -08:00
hai007
744219b1e6
Fix Intel PIE bugs and update test code
...
PiperOrigin-RevId: 598965857
2024-01-16 14:54:48 -08:00
Guogang Li
e1f7044f28
Fixed the bug to get file size
...
PiperOrigin-RevId: 597266370
2024-01-10 09:05:15 -08:00
Francis Tsui
c2ade33c9c
No public changes.
...
PiperOrigin-RevId: 597033150
2024-01-09 13:46:42 -08:00
Guogang Li
cd4963b0f9
Added write timeout for Wi-Fi LAN socket
...
PiperOrigin-RevId: 596987503
2024-01-09 11:06:28 -08:00
Francis Tsui
1072030be8
Copy sharing/internal, sharing/common and sharing/scheduling to github.
...
- Move Abseil pin to same as that used in Chromium.
- Disabled layering_check due to build failure in absl.
PiperOrigin-RevId: 596631921
2024-01-08 10:20:37 -08:00
Francis Tsui
97a3ceb311
- Remove unused data manager classes.
...
PiperOrigin-RevId: 596628112
2024-01-08 10:08:39 -08:00
hai007
6ae46a9496
Add visibilities
...
PiperOrigin-RevId: 596118852
2024-01-05 17:26:39 -08:00
Anthony Rueda
7f7f097adb
[Presence] Deprecate Metadata and remove instances of Metadata from gmscore NP codes.
...
PiperOrigin-RevId: 596041877
2024-01-05 11:23:33 -08:00
Francis Tsui
94ae577069
- Cleanup BUILD deps
...
PiperOrigin-RevId: 592976313
2023-12-21 16:45:49 -08:00
Francis Tsui
aea7a09a24
Switch DeviceInfo to use UTF-8 strings.
...
- Move conversion from native to UTF-8 into platform impl.
PiperOrigin-RevId: 592912664
2023-12-21 11:35:20 -08:00
hai007
16cb7f70b3
Implement Auto-reconnect after disconnection [1]
...
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Francis Tsui
63e744e133
Finish migrating account_manager.h to new location.
...
PiperOrigin-RevId: 592074168
2023-12-18 19:11:52 -08:00
Francis Tsui
32740f8591
Move FakeAccountManager to nearby/internal/test
...
PiperOrigin-RevId: 592055356
2023-12-18 17:30:16 -08:00
Francis Tsui
85091845a8
Turn AccountManager into pure abstract interface.
...
PiperOrigin-RevId: 591143389
2023-12-14 21:55:29 -08:00
Hai Shang
0ff449d9fc
internal fix
...
PiperOrigin-RevId: 590025851
2023-12-11 19:05:52 -08:00
Hai Shang
dde1588871
internal fix
...
PiperOrigin-RevId: 589025655
2023-12-07 23:21:12 -08:00
hai007
3a4f4cde9f
Avoid manually forward declaring BoringSSL types
...
Per go/cstyle#Forward_Declarations. BoringSSL already provides a forward declarations header. Also tidy up the source file's includes. It seems to only use symbols in aead.h.
PiperOrigin-RevId: 588069592
2023-12-05 07:48:17 -08:00
Anthony Rueda
91197f3683
[Presence] Deflag use_shared_credential_grpc and deprecate secret_id field from LocalCredential and SharedCredential protos
...
PiperOrigin-RevId: 586831590
2023-11-30 17:08:13 -08:00
hai007
6ebe52a418
Add Intel PIE based API to set Hotspot client scan channel
...
PiperOrigin-RevId: 586019580
2023-11-28 10:09:16 -08:00
Dmitri Gribenko
7103acb274
Use standard integer types
...
PiperOrigin-RevId: 585669976
2023-11-27 09:07:02 -08:00
hai007
7484132a95
Fix the following potential warnings:
...
* `-Wdeprecated-declarations`
* `-Wfinal-dtor-non-final-class`
* `-Werror=inconsistent-missing-override`
* `-Wignored-pragmas`
* `-Wint-to-void-pointer-cast`
* `-Winvalid-offsetof`
* `-Wmacro-redefined`
* `-Wmicrosoft-template`
* `-Wmicrosoft-cast`
* `-Wmicrosoft-exception-spec`
* `-Wmicrosoft-template-shadow`
* `-Wmicrosoft-unqualified-friend`
* `-Wmisleading-indentation`
* `-Werror=string-conversion`
* `-Wunused-result`
* `-Wunused-value`
* `-Wunused-variable`
* `-Wvla-extension`
* `-Wnon-virtual-dtor`
* `-Wimplicit-fallthrough`
PiperOrigin-RevId: 585621864
2023-11-27 05:24:59 -08:00
hai007
c26a53e384
1. log connectionTokens into ClientSession
...
2. In 1:1 share, this connectionToken value will be the same as that one in the ConnectionAttempt (same as the BandwidthUpgradeAttempt or the EstablishedConnection).
3. In group share, this connectionToken value will be the combination of all the connectionTokens in above point 2 (separated by comma).
PiperOrigin-RevId: 584767628
2023-11-22 18:49:13 -08:00
hai007
e876b68d90
1. log client_flow_id into ClientSession
...
2. In NS, passing the saved advertising flow id into NC so the client_flow_id in receiver side could be the same as the NS one, which could have the correct records mapping between the NS and NC.
PiperOrigin-RevId: 582876537
2023-11-15 19:02:38 -08:00
Anthony Rueda
3d11defc4a
[Presence] Add device ID to DeviceIdentityMetaData
...
PiperOrigin-RevId: 580758850
2023-11-08 20:16:54 -08:00
hai007
42043ee856
Add more log for Intel PIE API calling
...
PiperOrigin-RevId: 578409693
2023-10-31 23:20:48 -07:00