Commit Graph
248 Commits
Author SHA1 Message Date
hais e52b7e1edd Add more time buffer so that the alarm will be executed as expected in tests. It will fix the flaky EndpointIdRotateWhenHighVizAdvertisementAgainForAWhile test.
PiperOrigin-RevId: 399248463
2021-09-27 12:08:47 -07:00
edwinwu e4a3da97d1 analytics: 3p NC: Implement AnalyticsRecorder::OnErrorCode
PiperOrigin-RevId: 396041619
2021-09-10 17:42:34 -07:00
edwinwu 1eda3dfc9a analytics: 3p NC: Implement BandwidthUpgradeAttempt.
PiperOrigin-RevId: 394802558
2021-09-03 20:20:28 -07:00
edwinwu 24539d170f analytics: 3p NC: Implement Payload.
PiperOrigin-RevId: 394695112
2021-09-03 09:07:14 -07:00
edwinwu a21b4b55d7 analytics: 3p NC: Implement EstablishedConnections.
PiperOrigin-RevId: 394582833
2021-09-02 18:01:11 -07:00
edwinwu f37dfd2e8a Fixes access ponter after free in connection_info.channel->GetMedium()
PiperOrigin-RevId: 393904932
2021-08-30 19:40:21 -07:00
edwinwu 0232b47e02 ios: nearbyConnections: Fixes the issue that can't Advertise and Discover for WifiLan.
- The local WifilanSocket and WifilanService is local variable which will be invalid if out of scope. Move them to the member and let the WifiLanMedium control the life scope.

PiperOrigin-RevId: 393133266
2021-08-26 08:47:32 -07:00
edwinwu 62e7c01cd3 analytics: 3p NC: Implement ConnectionAttempt.
PiperOrigin-RevId: 392794192
2021-08-24 18:44:26 -07:00
hai007 3e40931286 No changes to public files
PiperOrigin-RevId: 392585608
2021-08-23 21:55:15 -07:00
edwinwu 56b7daf88d Fixes bluetooth_medium is not supported then don't continue for BleDiscoveredHandler.
PiperOrigin-RevId: 391418495
2021-08-17 17:55:56 -07:00
edwinwu bf41ac7e9f Fixes the bluetooth MAC address not contained in ble_advertisement if invalid. Add the reserved bytes.
PiperOrigin-RevId: 390290878
2021-08-11 22:14:32 -07:00
nohle f483110a8d [NearbyConnections][C++] Have Cores share single ServiceControllerRouter
We refactor the `Core`/`ServiceControllerRouter`/`ServiceController` classes to better align with the GmsCore implementation. Notably,

1. `Core` instances share the same `ServiceControllerRouter`.
2. `ServiceControllerRouter` directly owns one `OfflineServiceController`--that is created lazily and destroyed when when the router is destroyed--instead of using a factory method to create `ServiceController`s.
3. Removes obsolete "strategy" logic from `ServiceControllerRouter`, which used to recreate service controllers if the "strategy" changed.
4. Removes `ServiceControllerRouter::ClientDisconnecting()`, which is identical to `StopAllEndpoints()`.
5. Makes various C++ style clean-ups like removing unnecessary static variables/functions.

See analogous Chrome OS changes at http://crrev.com/c/3025604.

PiperOrigin-RevId: 389188124
2021-08-06 09:07:31 -07:00
xlythe cb169f5897 Add '//buildenv/target:non_prod' compatibility
PiperOrigin-RevId: 388806419
2021-08-04 16:11:49 -07:00
jsobczak dfc61a8f05 Move license text to BUILD files top
PiperOrigin-RevId: 388579579
2021-08-03 17:10:57 -07:00
nohle ecb5e7488a [NearbyConnections][C++] Change FATAL logs to ERROR
PiperOrigin-RevId: 388525052
2021-08-03 13:02:49 -07:00
hai007 b1815095dd BEGIN_PUBLIC
Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387168248
2021-07-29 03:27:37 -07:00
Edwin Wu 09e65aeddb Internal change
PiperOrigin-RevId: 386356072
2021-07-22 17:18:42 -07:00
Janusz Sobczak ed511f962d Support payload offsets
Support sending a file or stream payload from a non-zero offset.
This allows the clients to resume a transfer. Upper layers should use
this feature only when both sides support it.

PiperOrigin-RevId: 385137570
2021-07-16 06:52:45 -07:00
Edwin Wu 386daf26a2 Internal change
PiperOrigin-RevId: 384608597
2021-07-13 20:09:26 -07:00
James Vecore ea231c7138 [Nearby] Acquire mutex in ClientProxy::GetLocalEndpointId
This method is called from multiple threads and needs to ensure the local_endpoint_id_ data member can be read/updated safely from multiple threads.

PiperOrigin-RevId: 384337724
2021-07-12 16:06:22 -07:00
Edwin Wu 7c2e204b2c Internal change
PiperOrigin-RevId: 383557920
2021-07-07 21:57:45 -07:00
Janusz Sobczak 15996d64dd Internal change
PiperOrigin-RevId: 383512322
2021-07-07 16:02:54 -07:00
Edwin Wu a915858be9 Internal change
PiperOrigin-RevId: 381594763
2021-06-25 20:47:51 -07:00
Janusz Sobczak da07b7ba77 Use A-Z0-9 for EndpointID (avoid a-z, -, _ characters)
PiperOrigin-RevId: 380975403
2021-06-23 00:53:59 -07:00
Edwin Wu 56d519c739 Internal change
PiperOrigin-RevId: 380767892
2021-06-22 03:03:21 -07:00
Janusz Sobczak ae7c51e95d Run workers on dedicated threads.
Run reader and keep-alive workers on dedicated threads provided by
SingleThreadExecutor.
The thread handlers are stored in EndpointState, the workers are automatically
terminated when EndpointState is destroyed.

PiperOrigin-RevId: 380543888
2021-06-21 03:54:01 -07:00
Edwin Wu 5ed0903d6e Internal change
PiperOrigin-RevId: 379422825
2021-06-14 23:20:15 -07:00
Edwin Wu b924c9200d Internal change
PiperOrigin-RevId: 379422596
2021-06-14 23:17:29 -07:00
Edwin Wu 6efdd6d43e Internal change
PiperOrigin-RevId: 379414858
2021-06-14 22:13:49 -07:00
James Vecore 67a85e4599 Fix ReadClientIntroductionAckFrame log
PiperOrigin-RevId: 378503771
2021-06-09 14:45:14 -07:00
Edwin Wu af4701c237 Internal change
PiperOrigin-RevId: 377900845
2021-06-07 06:31:26 -07:00
hai007 82b112c8b7 Internal change
PiperOrigin-RevId: 374453629
2021-05-18 10:41:15 -07:00
hai007 f70f63684d Internal change
PiperOrigin-RevId: 374419669
2021-05-18 08:05:47 -07:00
hai007 dffa2d661d Internal change
PiperOrigin-RevId: 374273547
2021-05-17 13:54:26 -07:00
hai007 52f0e43055 Internal change
PiperOrigin-RevId: 373884970
2021-05-14 16:12:28 -07:00
hai007 cb74456e00 Internal change
PiperOrigin-RevId: 372999562
2021-05-10 13:26:43 -07:00
hai007 e664c1b4cc use exp backoff in bwu retry.
PiperOrigin-RevId: 372602204
2021-05-07 12:07:05 -07:00
hai007 93eec2c07b Internal change
PiperOrigin-RevId: 372382338
2021-05-06 11:10:24 -07:00
hai007 dadd6794e4 Internal change
PiperOrigin-RevId: 372053798
2021-05-04 21:24:52 -07:00
hai007 7f64533ec8 Internal change
PiperOrigin-RevId: 372030567
2021-05-04 17:39:33 -07:00
hai007 e7cbcabe0f Internal change
PiperOrigin-RevId: 372029711
2021-05-04 17:33:22 -07:00
hai007 6332010f2a Internal change
PiperOrigin-RevId: 372027391
2021-05-04 17:17:22 -07:00
hai007 2afe75e7c4 [Nearby] Fix incorrect format on log messages
PiperOrigin-RevId: 372026660
2021-05-04 17:12:26 -07:00
hai007 f43d18d2a3 Internal change
PiperOrigin-RevId: 372020671
2021-05-04 16:38:37 -07:00
hai007 8b871d01b2 Internal change
PiperOrigin-RevId: 372018903
2021-05-04 16:30:07 -07:00
hai007 1e5416bdcb Internal change
PiperOrigin-RevId: 372018877
2021-05-04 16:29:09 -07:00
hai007 8655b5fc09 [Nearby] Fix incorrect format on log messages
PiperOrigin-RevId: 371433152
2021-04-30 17:25:41 -07:00
hai007 54f30cd81d Internal change
PiperOrigin-RevId: 371332999
2021-04-30 07:57:08 -07:00
hai007 857958c87f Internal change
PiperOrigin-RevId: 370796827
2021-04-27 17:24:10 -07:00
hai007 a45898859b Internal change
PiperOrigin-RevId: 370664271
2021-04-27 06:16:48 -07:00