29 Commits
Author SHA1 Message Date
Lasan Mahaliyana 37e916ecbd Merge remote-tracking branch 'nearby/main'
# Conflicts:
#	connections/implementation/bwu_manager_test.cc
#	sharing/BUILD
#	sharing/certificates/fake_nearby_share_certificate_manager.cc
#	sharing/certificates/fake_nearby_share_certificate_manager.h
#	sharing/internal/base/utf_string_conversions.h
2026-07-26 22:46:37 +05:30
Lasan Mahaliyana c77a146edc fixed base endpoint channel breakign when kRefactorBleL2cap enabled (bug?) 2026-06-25 15:45:10 +05:30
hai007 8efa219dcf Implement dynamic role switching for bandwidth upgrades.
PiperOrigin-RevId: 933898362
2026-06-17 13:39:58 -07:00
Francis Tsui f3a8df5db3 Refactor AnalyticsRecorder into an abstract interface and decouple ClientProxy from logging protos.
PiperOrigin-RevId: 922838021
2026-05-28 10:09:19 -07:00
Francis Tsui 6f52ec53dd Remove unnecessary code.
PiperOrigin-RevId: 908359047
2026-04-30 13:55:42 -07:00
Francis Tsui dacbd03aa1 Replace ByteArray with std::string.
PiperOrigin-RevId: 900893850
2026-04-16 13:52:02 -07:00
Francis Tsui b5796d2394 Simplify use of ByteArray.
PiperOrigin-RevId: 855304597
2026-01-12 11:15:52 -08:00
Francis Tsui fbf66ad7e3 Switch OutputStream::Write to use string_view.
PiperOrigin-RevId: 854225267
2026-01-09 09:37:00 -08:00
Francis Tsui 931624a621 Prevent logging connection failure when mDNS client connects to test the connection.
PiperOrigin-RevId: 850545490
2025-12-30 16:54:14 -08:00
Edwin Wu 7a8ba5f18b [BLEREFACTOR]: Implement the BLE/L2CAP read/write logic.
PiperOrigin-RevId: 831637265
2025-11-12 19:12:00 -08:00
Edwin Wu 2695dd4089 [BLEREFACTOR]:Refactor byte_utils global functions
PiperOrigin-RevId: 831134984
2025-11-11 17:40:12 -08:00
Edwin Wu 1e7611f61b [BLEREFACTOR]: Refactor BLE/L2CAP endpoint channel
PiperOrigin-RevId: 830711004
2025-11-10 20:15:50 -08:00
hai007 00a2999269 Format all the files in CL786733783
PiperOrigin-RevId: 786873870
2025-07-24 16:25:18 -07:00
hai007 71cdf84236 Replace NEARBY_LOGS with LOG for all coding under google3/third_party/nearby/
PiperOrigin-RevId: 786733783
2025-07-24 09:34:17 -07:00
Guogang Li ed6562754b Enhance on keep alive
PiperOrigin-RevId: 719317678
2025-01-24 08:45:49 -08:00
Edwin Wu fb2e7e687b analytics: Modify OperationResultCode in C++ implementation
PiperOrigin-RevId: 704951400
2024-12-10 20:57:25 -08:00
Guogang Li 13e2f1a23b Make the default packet size of transmission changeable
PiperOrigin-RevId: 702411852
2024-12-03 11:37:20 -08:00
hai007 cb07eead88 Implement multiplex for WIFI_LAN
PiperOrigin-RevId: 694239460
2024-11-07 14:02:22 -08:00
Francis Tsui 2f4eb8649a Improve frame validation logging.
PiperOrigin-RevId: 674365762
2024-09-13 11:15:58 -07:00
Guogang Li d5b5d92f87 Internal logging update
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
hai007 bc77c39d84 This CL logs the safe disconnection result in the analytics recorder.
PiperOrigin-RevId: 655757596
2024-07-24 17:41:00 -07:00
Janusz Sobczak 2c08cfc9e8 Close BaseEndpointChannel once
Closing the bluetoth socket and streams more than once is wasteful and error prone.

PiperOrigin-RevId: 549964135
2023-07-21 09:12:05 -07:00
Janusz Sobczak 6d5eab04d3 Work around race condition during encryption setup
The sending party may finish setting up encryption and start
sending encrypted packets while the receiving party is still configuring
encryption and expecting unencrypted packets

PiperOrigin-RevId: 549267838
2023-07-19 03:47:10 -07:00
Janusz Sobczak 1a78b33a89 Add InputStream::ReadExactly
Read() can return fewer bytes than requested.
ReadExactly() will call Read() repeatedly until we
have read as many bytes as we need.

PiperOrigin-RevId: 518719418
2023-03-22 17:45:50 -07:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
hai007 8f681dece0 Throughput profiling
PiperOrigin-RevId: 477752265
2022-09-29 10:02:11 -07:00
hai007 0a7f68f382 Cap the output stream package size to kMaxAllowedReadBytes, which is 1048576
PiperOrigin-RevId: 459622727
2022-07-07 16:00:19 -07:00
nohle 463d391fcd [Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (1/4)
This CL should be a no-op.

Provide better access to the service ID during bandwidth upgrade handling. Notably, 1) have the endpoint channel store its associated service ID, and 2) send the service ID on a connect/disconnect.

The service ID identifies the application, for example, "NearbySharing". In future CLs, we will use the service IDs to better handle bandwidth-upgrade bookkeeping when multiple services are running simultaneously. Specifically, we will better handle reverting a bandwidth-upgrade medium without interfering with other services.

PiperOrigin-RevId: 442019209
2022-04-15 08:15:53 -07:00
hais f5fcd35ced nearby sdk refactor
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00