Commit Graph
2238 Commits
Author SHA1 Message Date
Nick Bourdakos 3a68e31b1f Merge pull request #2243 from google/cl/597411223
Remove no-op proguard rule
2024-01-11 13:39:09 -05:00
Anay Wadhera 9e705e2135 Remove no-op proguard rule
FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/google/nearby/pull/2240 from anayw2001:main 99c2e04f66
PiperOrigin-RevId: 597411223
2024-01-11 18:26:12 +00:00
Anay Wadhera d2e0d62fa1 Merge pull request #2240 from anayw2001/main
Add Android Nearby Sharing sample app
2024-01-10 17:43:03 -08:00
Anay Wadhera 99c2e04f66 Fix image sizing 2024-01-10 15:25:20 -08:00
Anay Wadhera c522dadfc1 Remove gradle wrapper and add instructions to rebuild the wrapper before build. 2024-01-10 15:25:20 -08:00
Anay Wadhera d0ceb358a5 Add example code for using the slice 2024-01-10 15:25:20 -08:00
Anay Wadhera ff09db25a2 Add screenshots of demo app 2024-01-10 15:25:20 -08:00
Anay Wadhera b46ef89339 Add Android readme and sample app 2024-01-10 15:25:19 -08:00
Francis Tsui 1190721f3e Add sharing/proto/analytics to github.
PiperOrigin-RevId: 597338174
2024-01-10 13:21:42 -08:00
Guogang Li e1f7044f28 Fixed the bug to get file size
PiperOrigin-RevId: 597266370
2024-01-10 09:05:15 -08:00
Francis Tsui c2ade33c9c No public changes.
PiperOrigin-RevId: 597033150
2024-01-09 13:46:42 -08:00
Francis Tsui 41d2d6fc4c Add sharing/fast_initiation to github.
PiperOrigin-RevId: 597004964
2024-01-09 12:05:19 -08:00
Guogang Li cd4963b0f9 Added write timeout for Wi-Fi LAN socket
PiperOrigin-RevId: 596987503
2024-01-09 11:06:28 -08:00
Francis Tsui 1072030be8 Copy sharing/internal, sharing/common and sharing/scheduling to github.
- Move Abseil pin to same as that used in Chromium.
- Disabled layering_check due to build failure in absl.

PiperOrigin-RevId: 596631921
2024-01-08 10:20:37 -08:00
Francis Tsui 97a3ceb311 - Remove unused data manager classes.
PiperOrigin-RevId: 596628112
2024-01-08 10:08:39 -08:00
hai007 6ae46a9496 Add visibilities
PiperOrigin-RevId: 596118852
2024-01-05 17:26:39 -08:00
Anthony Rueda 7f7f097adb [Presence] Deprecate Metadata and remove instances of Metadata from gmscore NP codes.
PiperOrigin-RevId: 596041877
2024-01-05 11:23:33 -08:00
Anay Wadhera 8c736a6f62 Merge pull request #2230 from anayw2001/main
Update compiled_proto
2024-01-05 14:55:11 -04:00
Anay Wadhera 733a483ee2 Update compiled_proto 2024-01-04 22:35:59 -08:00
Francis Tsui 94ae577069 - Cleanup BUILD deps
PiperOrigin-RevId: 592976313
2023-12-21 16:45:49 -08:00
Hai Shang 78609d17a1 Internal fix
PiperOrigin-RevId: 592955244
2023-12-21 14:51:55 -08:00
Francis Tsui aea7a09a24 Switch DeviceInfo to use UTF-8 strings.
- Move conversion from native to UTF-8 into platform impl.

PiperOrigin-RevId: 592912664
2023-12-21 11:35:20 -08:00
hai007 16cb7f70b3 Implement Auto-reconnect after disconnection [1]
PiperOrigin-RevId: 592344338
2023-12-19 14:27:40 -08:00
Guogang Li 850c3e2788 Fixed the bug of passing connection request info
PiperOrigin-RevId: 592248269
2023-12-19 08:46:17 -08:00
Francis Tsui 63e744e133 Finish migrating account_manager.h to new location.
PiperOrigin-RevId: 592074168
2023-12-18 19:11:52 -08:00
Francis Tsui 32740f8591 Move FakeAccountManager to nearby/internal/test
PiperOrigin-RevId: 592055356
2023-12-18 17:30:16 -08:00
Francis Tsui cf69c87d95 Cleanup FakeAccountManager.
- Remove unnecessary deps.

PiperOrigin-RevId: 591964328
2023-12-18 11:41:24 -08:00
Francis Tsui 85091845a8 Turn AccountManager into pure abstract interface.
PiperOrigin-RevId: 591143389
2023-12-14 21:55:29 -08:00
hai007 5fee66b487 Rename OperationResultDetail to be OperationResultCode
PiperOrigin-RevId: 590803695
2023-12-13 20:59:24 -08:00
Anay Wadhera 7022e6c5d9 Create instant on loss advertisement format
PiperOrigin-RevId: 590680562
2023-12-13 12:33:12 -08:00
Guogang Li ceded2da84 Added more logs on bandwidth upgrade
PiperOrigin-RevId: 590229747
2023-12-12 09:22:45 -08:00
Hai Shang 0ff449d9fc internal fix
PiperOrigin-RevId: 590025851
2023-12-11 19:05:52 -08:00
Qin Wang 0e7fc8d429 Disable flaky test //third_party/nearby/fastpair/internal:fast_pair_seeker_impl_test
PiperOrigin-RevId: 590018163
2023-12-11 18:31:53 -08:00
Hai Shang dde1588871 internal fix
PiperOrigin-RevId: 589025655
2023-12-07 23:21:12 -08:00
hai007 d710bff241 Apply result code to payloads
PiperOrigin-RevId: 588978332
2023-12-07 19:08:16 -08:00
hai007 b675986871 create a new PacketType "PAYLOAD_ACK" to replace ControlMessage.EventType "PAYLOAD_RECEIVED_ACK"
PiperOrigin-RevId: 588287541
2023-12-05 21:47:49 -08:00
hai007 3a4f4cde9f Avoid manually forward declaring BoringSSL types
Per go/cstyle#Forward_Declarations. BoringSSL already provides a forward declarations header. Also tidy up the source file's includes. It seems to only use symbols in aead.h.

PiperOrigin-RevId: 588069592
2023-12-05 07:48:17 -08:00
hai007 454d24e837 Allow ConnectionOptionsW::GetMediums to actually return the updated mediums_size value.
Currently, mediums_size is passed in by value, so updates to it have no effect outside the function.

PiperOrigin-RevId: 587942623
2023-12-04 22:21:22 -08:00
Anthony Rueda 91197f3683 [Presence] Deflag use_shared_credential_grpc and deprecate secret_id field from LocalCredential and SharedCredential protos
PiperOrigin-RevId: 586831590
2023-11-30 17:08:13 -08:00
hai007 6ebe52a418 Add Intel PIE based API to set Hotspot client scan channel
PiperOrigin-RevId: 586019580
2023-11-28 10:09:16 -08:00
hai007 437a048aad Add timeout exception error message for L2CAP connecting
PiperOrigin-RevId: 585864057
2023-11-27 23:21:48 -08:00
Dmitri Gribenko 7103acb274 Use standard integer types
PiperOrigin-RevId: 585669976
2023-11-27 09:07:02 -08:00
hai007 7484132a95 Fix the following potential warnings:
* `-Wdeprecated-declarations`
 * `-Wfinal-dtor-non-final-class`
 * `-Werror=inconsistent-missing-override`
 * `-Wignored-pragmas`
 * `-Wint-to-void-pointer-cast`
 * `-Winvalid-offsetof`
 * `-Wmacro-redefined`
 * `-Wmicrosoft-template`
 * `-Wmicrosoft-cast`
 * `-Wmicrosoft-exception-spec`
 * `-Wmicrosoft-template-shadow`
 * `-Wmicrosoft-unqualified-friend`
 * `-Wmisleading-indentation`
 * `-Werror=string-conversion`
 * `-Wunused-result`
 * `-Wunused-value`
 * `-Wunused-variable`
 * `-Wvla-extension`
 * `-Wnon-virtual-dtor`
 * `-Wimplicit-fallthrough`

PiperOrigin-RevId: 585621864
2023-11-27 05:24:59 -08:00
hai007 c26a53e384 1. log connectionTokens into ClientSession
2. In 1:1 share, this connectionToken value will be the same as that one in the ConnectionAttempt (same as the BandwidthUpgradeAttempt or the EstablishedConnection).
3. In group share, this connectionToken value will be the combination of all the connectionTokens in above point 2 (separated by comma).

PiperOrigin-RevId: 584767628
2023-11-22 18:49:13 -08:00
Hai Shang 6ee53db8f5 Internal fix on p2p_cluster_pcp_handler
PiperOrigin-RevId: 584669043
2023-11-22 10:44:38 -08:00
Hai Shang 8987ddd461 Add more logs for bwu_manager
PiperOrigin-RevId: 584429491
2023-11-21 14:27:18 -08:00
Crisrael Lucero 41a2821099 Create PresenceDevice constructor that takes in an endpoint ID
PiperOrigin-RevId: 583266968
2023-11-16 22:15:11 -08:00
hai007 e876b68d90 1. log client_flow_id into ClientSession
2. In NS, passing the saved advertising flow id into NC so the client_flow_id in receiver side could be the same as the NS one, which could have the correct records mapping between the NS and NC.

PiperOrigin-RevId: 582876537
2023-11-15 19:02:38 -08:00
hai007 a83fbe3ebb Correct event types for SendDesktopNotification and SendDesktopTransferEvent
PiperOrigin-RevId: 580773405
2023-11-08 21:34:55 -08:00
Anthony Rueda 3d11defc4a [Presence] Add device ID to DeviceIdentityMetaData
PiperOrigin-RevId: 580758850
2023-11-08 20:16:54 -08:00