Commit Graph
281 Commits
Author SHA1 Message Date
edwinwu acf516189b nearbyconnections : Replace WifiLanV2 to WifiLan.
PiperOrigin-RevId: 406033177
2021-10-27 18:59:43 -07:00
suetfei 94ef1b532b [Nearby Connection] Move peer_id.* & webrtc_socket_wrapper.* up one directory.
PiperOrigin-RevId: 406011497
2021-10-27 16:47:51 -07:00
edwinwu 57ee5f10a4 nearbyconnections : Implement WifiLanV2 BandwidthUpgrade functions.
PiperOrigin-RevId: 405821802
2021-10-26 23:52:23 -07:00
edwinwu 7197b84e4d nearbyconnections : Implement WifiLanV2 Connection functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405820452
2021-10-26 23:39:26 -07:00
edwinwu 83480d6473 nearbyconnections : Implement WifiLanV2 Discovery functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405782006
2021-10-26 18:27:36 -07:00
jfcarroll ef57b09fc3 Added an additional constructor that takes only the InputFile, and then generates an id automatically.
PiperOrigin-RevId: 405712536
2021-10-26 12:48:50 -07:00
edwinwu 32836a8357 nearbyconnections : Implement WifiLanV2 Advertising functions for /medium, /public(wrapper), /g3.
PiperOrigin-RevId: 405547661
2021-10-25 19:45:53 -07:00
edwinwu d0da545834 nearbyconnections : Define interfaces of /medium, /public(wrapper), /g3 WifiLanV2.
PiperOrigin-RevId: 405537829
2021-10-25 18:35:42 -07:00
jfcarroll b733dde4e7 'Flattening' of payload.h
PiperOrigin-RevId: 404800166
2021-10-21 08:28:01 -07:00
edwinwu 296274bc48 nearbyconnections : Adds accessor of ServiceType for NsdServiceInfo.
PiperOrigin-RevId: 404003948
2021-10-18 10:55:45 -07:00
jfcarroll d7f0f1b635 Separation of ConnectionOptions into a header and an implementation file.
PiperOrigin-RevId: 403486468
2021-10-15 15:55:09 -07:00
suetfei f20e7de4e7 [Nearby Cleanup] Remove dead code and unused includes.
PiperOrigin-RevId: 402933192
2021-10-13 15:13:11 -07:00
jfcarroll 99b77bda8e Export more symbols, refactor how this is laid out for dll compliance
PiperOrigin-RevId: 402286243
2021-10-11 07:05:49 -07:00
nohle 51a19d24c1 Fix dereferencing of null channel
PiperOrigin-RevId: 401814449
2021-10-08 11:19:12 -07:00
suetfei 686351c4c3 Replace some C like syntax and add missing include files.
PiperOrigin-RevId: 401541156
2021-10-07 10:07:35 -07:00
hai007 beff51e626 Internal Change
PiperOrigin-RevId: 401312277
2021-10-06 12:35:01 -07:00
jfcarroll e0b1dd8dfc Exporting symbols for consumers of the dll - and deleted old code
PiperOrigin-RevId: 401098019
2021-10-05 16:27:15 -07:00
jfcarroll 679838223c Added defs in build files for building windows dll
PiperOrigin-RevId: 401062093
2021-10-05 13:23:17 -07:00
edwinwu 38f89e4e05 analytics: 3p NC: Update Connections_log.proto
PiperOrigin-RevId: 400862464
2021-10-04 18:21:32 -07:00
guogang 4c72e4667e Fixed the issue to initialize an EndpointInfo instance in payload manager.
PiperOrigin-RevId: 400624671
2021-10-03 20:59:29 -07:00
nohle 0d803da06e Replace proto.h includes with pb.h
PiperOrigin-RevId: 399801411
2021-09-29 16:20:05 -07:00
nohle bc8769c64e [Nearby Connections][C++] Wake up keep-alive thread to unblock destruction
PiperOrigin-RevId: 399693890
2021-09-29 08:39:37 -07:00
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 2a629b2c1b nearby_connections: proto: analytics: sync protos and add unit test for proto ConnectionsLog.
PiperOrigin-RevId: 394164605
2021-08-31 23:45:52 -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 c73504e68d analytics: 3p NC: Defines interface EventLogger for Analytics logger.
- this is the init cl.

doc: go/nc-analytics-api
PiperOrigin-RevId: 391901111
2021-08-19 20:03: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 0937be0fbb Moved connections/windows to third_party, and copied the blueprint file into third_party
PiperOrigin-RevId: 388521021
2021-08-03 12:46:34 -07:00
jsobczak 4be6b7a70d Internal change
PiperOrigin-RevId: 388461110
2021-08-03 08:34:09 -07:00
xlythe 24d9ea6fe6 asdf
PiperOrigin-RevId: 387879731
2021-07-30 14:54:35 -07:00
xlythe 1db4420c59 BEGIN_PUBLIC
Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387591860
2021-07-29 08:44:22 -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
Edwin Wu f82dc3faa1 Internal change
PiperOrigin-RevId: 386179189
2021-07-22 00:25:35 -07:00
Josh Nohle 7c1f423014 [Nearby Connections][C++] Fix integer comparison and includes
PiperOrigin-RevId: 385222885
2021-07-16 14:22:34 -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
hai007 75c07c01c4 Internal change
PiperOrigin-RevId: 384567436
2021-07-13 15:40:22 -07:00