Skip to content

Commit 52e4eea

Browse files
edwinwugoogcopybara-github
authored andcommitted
analytics: Update analytics version to v1.5.0
PiperOrigin-RevId: 699470135
1 parent 0803db8 commit 52e4eea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3658
-1746
lines changed

connections/implementation/analytics/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ cc_library(
2020
"throughput_recorder.cc",
2121
],
2222
hdrs = [
23+
"advertising_metadata_params.h",
2324
"analytics_recorder.h",
2425
"connection_attempt_metadata_params.h",
26+
"discovery_metadata_params.h",
2527
"packet_meta_data.h",
2628
"throughput_recorder.h",
2729
],
@@ -57,6 +59,7 @@ cc_test(
5759
shard_count = 16,
5860
deps = [
5961
":analytics",
62+
"//connections:core_types",
6063
"//internal/analytics:mock_event_logger",
6164
"//internal/platform:base",
6265
"//internal/platform:error_code_recorder",
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef ANALYTICS_ADVERTISING_METADATA_PARAMS_H_
16+
#define ANALYTICS_ADVERTISING_METADATA_PARAMS_H_
17+
18+
#include <vector>
19+
20+
#include "internal/proto/analytics/connections_log.pb.h"
21+
22+
namespace nearby {
23+
24+
// A struct to construct AdvertisingMetadata for the analytics recorder.
25+
struct AdvertisingMetadataParams {
26+
bool is_extended_advertisement_supported = false;
27+
int connected_ap_frequency = 0;
28+
bool is_nfc_available = false;
29+
std::vector<location::nearby::analytics::proto::ConnectionsLog::
30+
OperationResultWithMedium>
31+
operation_result_with_mediums = {};
32+
};
33+
34+
} // namespace nearby
35+
36+
#endif // ANALYTICS_ADVERTISING_METADATA_PARAMS_H_

0 commit comments

Comments
 (0)