Commit Graph
61 Commits
Author SHA1 Message Date
Edwin Wu 1e229e31c5 [Nearby Connections] Add OS_INFO for NC C++.
PiperOrigin-RevId: 509443158
2023-02-14 00:05:17 -08:00
Suet-Fei Li 084f7ebd88 Remove location namespace in third_party/nearby.
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
hai007 5066b189f9 Pass over MediumMetadata to client_proxy for incoming connection
PiperOrigin-RevId: 489597576
2022-11-18 17:41:42 -08:00
Eiden Kim 7350643c36 Update Prng usage so that it can generate random values on different threads.
PiperOrigin-RevId: 478025630
2022-09-30 10:31:27 -07:00
Eiden Kim 028d2ae96a Fix to generate endpoint_id randomly.
PiperOrigin-RevId: 476421714
2022-09-23 11:37:47 -07:00
hai007 d41cd674c8 Add onSessionComplete method in ClientProxy to log session
PiperOrigin-RevId: 461772377
2022-07-18 19:17:19 -07:00
hai007 7e081c663a Add dump function to nearby connections.
Sample output:
```
Time: 2022-06-23T17:24:14.3815934+00:00
Windows version: 10.0 build 19042
NearbyShare version: 1.2.3.4
Nearby Share Settings
  Device name: Deling's PC
  Visibility: 1
  Enabled: 1
  ShowNotification: 0
  DataUsage: 0
  Allowed contacts:
Nearby Sharing Service state
  IsScanning: 0
  IsConnecting: 0
  IsTransferring: 0
  IsSendingFile: 0
  IsReceivingFile: 0
Nearby Connections State
  Client ID: -5841239073452700193
  Local Endpoint ID: IWV0
  High Vis Mode: 0
  Is Advertising: 0
  Advertising Service ID:
  Is Discovering: 0
  Discovery Service ID:
  Connections:
  Discovered endpoint IDs:
```
PiperOrigin-RevId: 458066027
2022-06-29 14:33:41 -07:00
hai007 519144eb24 [Analytics] Reorganize code structure for Analytics
- move AnalyticsRecorder to Connections specific folder
- log generic proto type in EventLogger

PiperOrigin-RevId: 451265563
2022-05-26 16:14:51 -07:00
edwinwu 771ce23fa3 [BLE Refactor] Implements advertisement tracking in Ble medium with DiscoveredPeripheralTracker class.
PiperOrigin-RevId: 447397658
2022-05-09 00:36:33 -07:00
nohle e5fb3a8f11 [Nearby Connections][C++] Track bandwidth upgrade mediums for each endpoint (3/4)
* Fix bandwidth upgrade service ID usage. For instance, no longer use the inaccurate service ID from ClientProxy.
* Add more fine-grained upgraded endpoint tracking using both service IDs and endpoint IDs
* Only "revert" bandwidth-upgrade mediums--for example, stop accepting connections on a server socket--for a service when the last endpoint for that service is finished.

These changes are necessary to support multiple services (e.g., Nearby Share and Phone Hub) and multiple mediums (e.g., WebRTC and WLAN).

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