Commit Graph
543 Commits
Author SHA1 Message Date
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
eidenkim 4b5be77ed6 Removed unused comments.
PiperOrigin-RevId: 405653375
2021-10-26 08:31:35 -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
eidenkim 4c13dea8eb Implemented StartAdvertising() API for Dart Wrappers.
PiperOrigin-RevId: 404088232
2021-10-18 16:11:17 -07:00
Will fae05d0e86 Merge pull request #348 from google/test_403438989
Implemented StartAdvertising() API for Dart Wrappers.
2021-10-18 14:49:59 -07:00
Will 69b5f9178b Merge branch 'master' into test_403438989 2021-10-18 14:10:21 -07:00
edwinwu 296274bc48 nearbyconnections : Adds accessor of ServiceType for NsdServiceInfo.
PiperOrigin-RevId: 404003948
2021-10-18 10:55:45 -07:00
eidenkim b6ea14f741 Added APIs for Dart Wrappers.
PiperOrigin-RevId: 403507168
2021-10-15 17:49:27 -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
eidenkim cd29ab51ac Implemented StartAdvertising() API for Dart Wrappers.
PiperOrigin-RevId: 403438989
2021-10-15 12:35:04 -07:00
suetfei f20e7de4e7 [Nearby Cleanup] Remove dead code and unused includes.
PiperOrigin-RevId: 402933192
2021-10-13 15:13:11 -07:00
jfcarroll 6ac98e6f4e The actual winrt file update. Although this built without source changes locally, it seems that g3 needs these additional includes.
PiperOrigin-RevId: 402359124
2021-10-11 12:06:16 -07:00
jfcarroll 0a31e427f0 Renamed ConnectAsync to Connect for the bluetooth socket, since it's not an async method. Cleaned up the connection code for bluetooth socket.
PiperOrigin-RevId: 402346996
2021-10-11 11:18:33 -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 8259c92b37 PhoneHub hopes to keep a long lived connection (over 10 mins) between Android and ChromeOS. However, phone would go to deep sleep mode and not send out KeepAlive even when receiving KeepAlive from CrOS. Here we force a KeepAliveAck back to avoid KeepAlive timeout.
PiperOrigin-RevId: 401454742
2021-10-07 01:59:30 -07:00
jfcarroll 941c9b3c5c The final fixes for the socket code allowing us to advertise and accept the connection.
PiperOrigin-RevId: 401317340
2021-10-06 12:53:43 -07:00
hai007 beff51e626 Internal Change
PiperOrigin-RevId: 401312277
2021-10-06 12:35:01 -07:00
jfcarroll eea2a91139 These are the fixes thus far. Most involve whether we're using a pointer or not.
PiperOrigin-RevId: 401241518
2021-10-06 07:42:58 -07:00
nohle dceb1e216b Fix analytics recorder's version string type
PiperOrigin-RevId: 401125543
2021-10-05 19:01:58 -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
jfcarroll 6269b8b60a Changes to the Windows solution/projects for fixes for ConditionVariable, Mutex, ServerSocket, and started exporting symbols for the UI.
PiperOrigin-RevId: 400983103
2021-10-05 07:48:21 -07:00
hai007 55edd5efa6 Branch BandwidthUpgradeManagerV2 to support the re-priority mechanism, separate the priority logic into BandwidthUpgradeProtocol to support below priority
1. 6GHz > 5GHz > 2.4 GHz

2. 80 MHz > 40 MHz > 20 MHz medium for 5GHz mediums(next CL)

PiperOrigin-RevId: 400929119
2021-10-05 02:29:31 -07:00
edwinwu 38f89e4e05 analytics: 3p NC: Update Connections_log.proto
PiperOrigin-RevId: 400862464
2021-10-04 18:21:32 -07:00
guogang 4af1c80eee Fixed a few issues in WiFi LAN feature.
PiperOrigin-RevId: 400786291
2021-10-04 12:27:45 -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
guogang 1f0ec837b6 Add WiFi LAN medium on Windows
PiperOrigin-RevId: 399587411
2021-09-28 19:47:40 -07:00
edwinwu deb5776362 nearbyconnections : Refactor WifiLan.
PiperOrigin-RevId: 399570712
2021-09-28 17:54:51 -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
fdi 7e99f545e3 [Sharing][Analytics] Create a new failure type to indicate unknown response from remote side.
Since these are not payloads failures, the connection is canceled by local device. FAILED_ATTACHMENT_TRANSMISSION_STATUS is reserved for payload failures.

PiperOrigin-RevId: 398821851
2021-09-24 15:04:16 -07:00
fdi 6fc709d6c8 [Analytics] Add proto and enum for establish_connection event.
Set up the proto and enums in advance. No real logic.

LOG_STORAGE_INCREASE(GB/week): 0.5
Based on go/ns-analytics-worksheet

PiperOrigin-RevId: 398810446
2021-09-24 14:08:11 -07:00
xlythe 69307c4604 Add error codes for mediums being disabled on unsupported devices
PiperOrigin-RevId: 398801753
2021-09-24 13:26:41 -07:00
jfcarroll 27577c6994 Delete the windows specific count_down_latch and use the shared implementation
PiperOrigin-RevId: 398772515
2021-09-24 11:17:45 -07:00
hai007 d68a8f6216 Add following information into metrics:
1. country code: where the device is located.
2. network operator: the telephony operator MCC/MNC value.
3. tdls status: the TDLS status of the WiFi Lan
4. AP frequency: the wifi frequency of the connected WiFi AP.
5. Tethering status: the enable status of the wifi Hotspot.
6. try counts: the try counds of the medium operation.
7. Tx/Rx speed: the MAX TX/RX speed of the WiFi network.
8. Channel width: the supported WiFi frequency MHz value. e.g. 20MHz or 40MHz for the WiFi Direct Client or WiFi Hotspot STA.

Storage increase will be:
1.4 bytes connected_ap_frequency in advertising side
2.4 bytes connected_ap_frequency + 1 byte supports_extended_ble_advertisements in discover side.
3. Incoming or outgoing conection:
    4 bytes wifi_channel_width
    So need 4*4 = 16 bytes in two directions initial connections and two directions bandwidth upgrades.

So there are total 4+5+16 =  25 bytes grows in each share.

(25 bytes in each sharing * 1072782 shares/daily * 7 days/week) / GB = about 0.175 GB)
(1072782 was based on current daily activedevice on 20210906.)

PiperOrigin-RevId: 398656656
2021-09-23 23:02:45 -07:00
jfcarroll d16de1c3ab Fixed a bug in BluetoothAdapter::SetName, that was causing the loss of the default name.
PiperOrigin-RevId: 397871581
2021-09-20 16:43:33 -07:00
jfcarroll 687d1ba4b5 Clean up platform.cc Remove unnecessary namespace symbols to improve consistency.
PiperOrigin-RevId: 397870990
2021-09-20 16:40:42 -07:00
jfcarroll 584e1c0ac7 Cleanup unit tests, and remove the loop that checks to make sure all jobs are run.
PiperOrigin-RevId: 397869801
2021-09-20 16:35:15 -07:00
hai007 c56f7a29ba Internal change.
PiperOrigin-RevId: 397581907
2021-09-19 01:53:57 -07:00
jfcarroll 233c5f5337 Refactor thread pool to support lazy initialization.
PiperOrigin-RevId: 397152910
2021-09-16 13:19:03 -07:00
jfcarroll c6ebc3162f Fix for failing executor test.
PiperOrigin-RevId: 396998512
2021-09-15 22:08:08 -07:00
jfcarroll 0de9bed4ca Initial commit for bluetooth classic medium notified of adapter scan mode change.
PiperOrigin-RevId: 396955416
2021-09-15 16:55:07 -07:00
jfcarroll 1a3b294407 Finish off SystemClock
PiperOrigin-RevId: 396369189
2021-09-13 09:07:16 -07:00
edwinwu e4a3da97d1 analytics: 3p NC: Implement AnalyticsRecorder::OnErrorCode
PiperOrigin-RevId: 396041619
2021-09-10 17:42:34 -07:00