edwinwu
01ec55de58
[BLE Refactor] Implement iOS Platform BLEV2 api with No-Op for advertising and discovery
...
PiperOrigin-RevId: 451844375
2022-05-30 03:54:55 -07:00
hai007
fe27ea822a
Change comment "WIFI" to "WiFi"
...
PiperOrigin-RevId: 451659534
2022-05-28 14:48:55 -07:00
hai007
37b0c31319
Add Wifi Hotspot AP and Client validation check
...
PiperOrigin-RevId: 451492039
2022-05-27 15:20:36 -07:00
jfcarroll
10605d5534
Remove spurious log entries
...
PiperOrigin-RevId: 451426941
2022-05-27 10:37:09 -07:00
jfcarroll
8765e5bc83
Bug fixes for 233012255 and 232995024
...
Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into the dll.
PiperOrigin-RevId: 451248048
2022-05-26 14:46:08 -07:00
aaronyujiaze
8867721271
Add reset for std::promise
...
std::promise needs to be reinitialized for each async operation after std::future is returned
PiperOrigin-RevId: 451236518
2022-05-26 13:55:18 -07:00
hai007
500f67c85e
Add Wifi Medium to query WIFI interface capability and information
...
PiperOrigin-RevId: 451233512
2022-05-26 13:40:14 -07:00
edwinwu
8e048f7be0
[BLE Refactor] Uses Uuid class for those used in Uuid string-form in /medium layer.
...
PiperOrigin-RevId: 450910238
2022-05-25 06:36:55 -07:00
edwinwu
a1e84f0597
[BLE Refactor] Implements BleV2Socket and BleV2ServerSocket.
...
PiperOrigin-RevId: 450586535
2022-05-23 20:22:10 -07:00
aaronyujiaze
0be161e3bb
Add Copresence Service UUID to BLE Advertisement 0x16 Service Data
...
The medium abstraction layer does not prepopulate the advertisement_bytes ByteArray with Copresence Service UUID. This adds it at the platform impl layer.
PiperOrigin-RevId: 450054877
2022-05-20 13:47:29 -07:00
aaronyujiaze
48a91eec73
Add BLE V1 windows platform implementation
...
This CL implements the BLE V1 Medium and its corresponding unit tests:
- Start/Stop Advertising
- Start/Stop Scanning
- Receive BLE Advertisement callbacks handler
- BLE Advertisement Publisher/Watcher status callbacks handler
PiperOrigin-RevId: 449824666
2022-05-19 13:48:56 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
aaronyujiaze
8f1623d293
Fix minor bluetooth adapter crash bug
...
If bluetooth adapter is not present on the Windows device, Nearby Connection will crash. This change resolves the issue by adding null checkers.
PiperOrigin-RevId: 449578225
2022-05-18 14:32:47 -07:00
guogang
4aee0b681c
Applied thread pool implementation from Windows platform
...
PiperOrigin-RevId: 449385710
2022-05-17 21:02:00 -07:00
edwinwu
eddf53ec29
[BLE Refactor] Removes fast advertisement uuid in StartAdvertising and StartScanning.
...
PiperOrigin-RevId: 448426759
2022-05-13 00:19:16 -07:00
edwinwu
080e964a4c
[BLE Refactor] Implements GattClient for sender's device to fetch Gatt advertisement.
...
PiperOrigin-RevId: 448400837
2022-05-12 20:29:30 -07:00
hai007
e9c4225443
Fix typo in the Nearby Sharing Windows Bluetooth classic socket logging.
...
PiperOrigin-RevId: 448113611
2022-05-11 16:42:58 -07:00
edwinwu
12cef58420
[BLE Refactor] Refactor BlePeripheral class.
...
PiperOrigin-RevId: 447638179
2022-05-09 21:27:58 -07:00
hai007
487d272e24
Fix go/MSAN and coverage failure in:
...
https://critique.corp.google.com/cl/445437919
PiperOrigin-RevId: 447592532
2022-05-09 16:38:44 -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
aaronyujiaze
6b88d326df
Add BLE V2 windows platform implementation (Phase 1)
...
This CL implements the scanning and advertising of Nearby BLE Medium Fast Advertisement with hardcoded advertisement data
PiperOrigin-RevId: 446806137
2022-05-05 13:45:35 -07:00
hai007
aeff3a9683
Change build target visibility for testing.
...
PiperOrigin-RevId: 445051381
2022-04-27 21:28:29 -07:00
hai007
ec2d3ae1aa
WIFI Hotspot implementation (4)
...
Part 4: BWU and client interface part
PiperOrigin-RevId: 443700883
2022-04-22 10:32:12 -07:00
hai007
60e896ad37
Implementation g3 medium/Environment/platform layer unit test for WIFI Hotspot
...
PiperOrigin-RevId: 443304661
2022-04-21 01:09:38 -07:00
jfcarroll
6fc5b64605
Flattening payload and listeners
...
PiperOrigin-RevId: 443168939
2022-04-20 12:55:23 -07:00
hai007
93f203dc0b
WIFI Hotspot implementation (3)
...
Part 3: WIFI Hotspot platform code for Windows
PiperOrigin-RevId: 441826092
2022-04-14 12:31:07 -07:00
eidenkim
3f81504dc1
Nearby Connections - Fixed crash when starting the app on devices with no Bluetooth adapter
...
PiperOrigin-RevId: 441773811
2022-04-14 08:59:23 -07:00
hai007
530a6faeca
Change copts include patch from relative path to full path for "impl_test"
...
PiperOrigin-RevId: 441529218
2022-04-13 11:13:00 -07:00
jfcarroll
2dca231337
This fixes the memory issues in bluetooth_adapter.cc
...
PiperOrigin-RevId: 441012332
2022-04-11 15:30:06 -07:00
edwinwu
a6f4bb9c04
[iOS NC] LSC: Separate third_party/nearby/internal/platform/implementation/ios to
...
- third_party/nearby/internal/platform/implementation/ios (for platform)
- third_party/nearby/connections/clients/ios (for connections)
- third_party/nearby/connections/samples/ios (for sample codes)
PiperOrigin-RevId: 440895852
2022-04-11 08:19:27 -07:00
edwinwu
fcb3b27314
BEGIN_PUBLIC
...
[iOS] Fixes the file_path is empty when "CreateIncomingInternalPayload" in internal_payload_factory. If empty then use the payload_id for the file_name.
END_PUBLIC
- This is for the way iOS -> Android file transfer.
- CC_MD5 is deprecated in iOS13, change to CC_SHA256
- UIImageWriteToSavedPhotosAlbum, the UIImage* is nil after completion callback to the selector "didFinishSavingWithError". Changes to show image by "showReceivedImage" after write to Photo album.
- "NSDownloadsDirectory" seems have
<<Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Downloads” in the folder>>. Changes to use "NSTempDirectory".
PiperOrigin-RevId: 440808267
2022-04-11 00:18:05 -07:00
edwinwu
0c8838ad9b
Deprecates the InputFile with PayloadId and replace the one with file path.
...
PiperOrigin-RevId: 440516892
2022-04-08 21:44:01 -07:00
hai007
43a165e418
WIFI Hotspot implementation (1)
...
Part 1: Internal common code
PiperOrigin-RevId: 440437253
2022-04-08 13:18:47 -07:00
hai007
6b3402ccd0
Disable layering check for objc_library
...
In preparation for enabling layering check by default for
objc_library, we are disabling layering check for any targets or
packages that would otherwise fail.
PiperOrigin-RevId: 439900062
2022-04-06 12:01:37 -07:00
bourdakos
9429d0f383
In the connection initiated handler, return endpoint info as NSData instead of casting to a String
...
PiperOrigin-RevId: 439382816
2022-04-04 12:28:17 -07:00
jfcarroll
9470516984
Refactored the executor test testing a single threaded executor with mulitple tasks. I pulled the main
...
thread out of the array, and assigned it to it's own local var. I think this simplify's the test
making it more amenable to debugging. We are having flakiness in the iOS version of this test, so this is intended to make it absolutely clear what we are testing.
PiperOrigin-RevId: 438897634
2022-04-01 13:29:47 -07:00
bourdakos
0f8c1b1fbe
Move public headers to be compatible with SPM
...
PiperOrigin-RevId: 438583798
2022-03-31 09:16:17 -07:00
bourdakos
a4feafd4f8
Fix a few struct initializers that are not compatible with c++14
...
PiperOrigin-RevId: 438565404
2022-03-31 07:44:24 -07:00
bourdakos
7c4bb693b5
Return the actual download path instead of tmp directory
...
PiperOrigin-RevId: 438464501
2022-03-30 20:26:26 -07:00
bourdakos
4e1c8c8222
Don't include base/logging.h for SPM builds
...
PiperOrigin-RevId: 438453534
2022-03-30 19:11:34 -07:00
bourdakos
267afabefd
Escape file paths to avoid crashes when paths include spaces
...
PiperOrigin-RevId: 438437189
2022-03-30 17:26:43 -07:00
edwinwu
190d3ebafc
[BLE Refactor] Impl Start/Stop Scanning and DiscoveredPeripheral callback function in medium layer and ScanCallback in platform layer.
...
PiperOrigin-RevId: 438293171
2022-03-30 07:08:05 -07:00
bourdakos
15d3fa0df5
Put CreateWebRtcMedium behind NO_WEBRTC flag
...
PiperOrigin-RevId: 437864516
2022-03-28 15:07:30 -07:00
bourdakos
6050084473
BEGIN_PUBLIC
...
Remove GTMStringEncoding dependency, because it is unused
END_PUBLIC
PiperOrigin-RevId: 437854852
2022-03-28 14:27:33 -07:00
jfcarroll
f4b80ccb59
These are the changes for Payload::Type => PayloadType for the flattening CL
...
PiperOrigin-RevId: 436767666
2022-03-23 10:11:15 -07:00
jfcarroll
517d77f5aa
This adds parent path and file name to the Payload constructor. This will affect chrome.
...
PiperOrigin-RevId: 435223740
2022-03-16 19:18:13 -07:00
guogang
31b2aae6c5
Fixed crashes during bandwidth upgrade
...
PiperOrigin-RevId: 435192352
2022-03-16 16:36:09 -07:00
edwinwu
66b425dc4e
[BLE Refactor] Impl Start/Stop AdvertisementGattServer
...
PiperOrigin-RevId: 432657453
2022-03-05 08:33:01 -08:00
hai007
eadc972af3
Fix BWU crash problem because WIFI_LAN create socket based on IPV6.
...
PiperOrigin-RevId: 432222945
2022-03-03 10:16:22 -08:00
edwinwu
91dfdefb9f
[BLE Refactor] Impl Start/Stop Advertising function in medium layer.
...
PiperOrigin-RevId: 432185275
2022-03-03 07:04:32 -08:00