Commit Graph
347 Commits
Author SHA1 Message Date
jfcarroll 628255ac59 Cleanup Items that I didn't want or otherwise didn't get in the last c/l
PiperOrigin-RevId: 390507261
2021-08-12 18:29:06 -07:00
jfcarroll 07d33cfa9e Initial implementation of BluetoothServerSocket
PiperOrigin-RevId: 390461649
2021-08-12 14:33:26 -07:00
jfcarroll 512ba2af43 Fix for the broken build, the signature of core constructor was changed, so I changed the core_adapter accordingly
PiperOrigin-RevId: 390458570
2021-08-12 14:20:29 -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
hai007 38a2f6a1fc Initial commit of the CancellationFlag implementation
PiperOrigin-RevId: 389276621
2021-08-06 15:37:44 -07:00
hai007 434a50d3e2 input and output stream implementation
PiperOrigin-RevId: 389229126
2021-08-06 12:06:31 -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
hai007 7a02eaad37 Implemented BluetoothClassicMedium::ConnectToService
PiperOrigin-RevId: 389007196
2021-08-05 13:15:57 -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
hai007 236bc66e9a Moved connections/windows to third_party, and copied the blueprint file into third_party
PiperOrigin-RevId: 387621210
2021-08-02 18:52:21 -07:00
hais 4851400442 nearby presence with fake advertisement.
PiperOrigin-RevId: 388309745
2021-08-02 14:55:57 -07:00
xlythe 24d9ea6fe6 asdf
PiperOrigin-RevId: 387879731
2021-07-30 14:54:35 -07:00
hai007 942e6cbaa8 Moved connections/windows to third_party, and copied the blueprint file into third_party
PiperOrigin-RevId: 387621210
2021-07-29 11:58:12 -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
hai007 ee320905b9 Internal change
PiperOrigin-RevId: 385190129
2021-07-16 11:36: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
hai007 75c07c01c4 Internal change
PiperOrigin-RevId: 384567436
2021-07-13 15:40:22 -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
hai007 2e853156dc Internal change
PiperOrigin-RevId: 380848866
2021-06-22 11:09:32 -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
hai007 216a6d8ae0 Internal change
PiperOrigin-RevId: 380085191
2021-06-17 17:57:17 -07:00
hai007 78f19e26be Internal change
PiperOrigin-RevId: 380080172
2021-06-17 17:22:20 -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 53bb68fb14 Internal change
PiperOrigin-RevId: 377101972
2021-06-02 11:17:00 -07:00
hai007 258403118d [Nearby] Directly include base/logging.h and copybara transform to base/check.h in chromium
PiperOrigin-RevId: 376003869
2021-05-26 12:30:04 -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 836f3e2599 Internal change
PiperOrigin-RevId: 373855275
2021-05-14 13:31:37 -07:00
hai007 47d26955d0 Internal change
PiperOrigin-RevId: 373842663
2021-05-14 12:31:23 -07:00
hai007 cb74456e00 Internal change
PiperOrigin-RevId: 372999562
2021-05-10 13:26:43 -07:00