From c3a89bb8941d6c6d9899e4e8fdafd6dd8c55c037 Mon Sep 17 00:00:00 2001 From: Alexey Polyudov Date: Thu, 16 Apr 2020 16:44:24 -0700 Subject: [PATCH] Generate OSS-ready HEAD from master Signed-off-by: Alexey Polyudov Change-Id: I8ca8ef4727e289f3c6ea62ad73008ad718096e5d --- CMakeLists.txt | 14 ++++++++ cmake/CMakeLists-smhasher.txt | 14 ++++++++ cmake/local_build_protobuf.cmake | 14 ++++++++ cmake/local_build_setup.cmake | 14 ++++++++ cmake/local_setup_smhasher.cmake | 14 ++++++++ cmake/proto_defs.cmake | 14 ++++++++ cpp/core/BUILD | 14 ++++++++ cpp/core/CMakeLists.txt | 14 ++++++++ cpp/core/check_compilation.cc | 14 ++++++++ cpp/core/core.cc | 14 ++++++++ cpp/core/core.h | 14 ++++++++ cpp/core/internal/BUILD | 14 ++++++++ cpp/core/internal/CMakeLists.txt | 14 ++++++++ cpp/core/internal/bandwidth_upgrade_handler.h | 14 ++++++++ .../internal/bandwidth_upgrade_manager.cc | 14 ++++++++ cpp/core/internal/bandwidth_upgrade_manager.h | 14 ++++++++ .../base_bandwidth_upgrade_handler.cc | 14 ++++++++ .../internal/base_bandwidth_upgrade_handler.h | 14 ++++++++ cpp/core/internal/base_endpoint_channel.cc | 14 ++++++++ cpp/core/internal/base_endpoint_channel.h | 14 ++++++++ .../internal/base_endpoint_channel_test.cc | 14 ++++++++ cpp/core/internal/base_pcp_handler.cc | 14 ++++++++ cpp/core/internal/base_pcp_handler.h | 14 ++++++++ cpp/core/internal/ble_advertisement.cc | 14 ++++++++ cpp/core/internal/ble_advertisement.h | 14 ++++++++ cpp/core/internal/ble_advertisement_test.cc | 14 ++++++++ cpp/core/internal/ble_compat.h | 14 ++++++++ cpp/core/internal/ble_endpoint_channel.cc | 14 ++++++++ cpp/core/internal/ble_endpoint_channel.h | 14 ++++++++ cpp/core/internal/bluetooth_device_name.cc | 14 ++++++++ cpp/core/internal/bluetooth_device_name.h | 14 ++++++++ .../internal/bluetooth_device_name_test.cc | 14 ++++++++ .../internal/bluetooth_endpoint_channel.cc | 14 ++++++++ .../internal/bluetooth_endpoint_channel.h | 14 ++++++++ cpp/core/internal/client_proxy.cc | 14 ++++++++ cpp/core/internal/client_proxy.h | 14 ++++++++ cpp/core/internal/encryption_runner.cc | 14 ++++++++ cpp/core/internal/encryption_runner.h | 14 ++++++++ cpp/core/internal/endpoint_channel.h | 14 ++++++++ cpp/core/internal/endpoint_channel_manager.cc | 14 ++++++++ cpp/core/internal/endpoint_channel_manager.h | 14 ++++++++ cpp/core/internal/endpoint_manager.cc | 14 ++++++++ cpp/core/internal/endpoint_manager.h | 14 ++++++++ cpp/core/internal/internal_payload.cc | 14 ++++++++ cpp/core/internal/internal_payload.h | 14 ++++++++ cpp/core/internal/internal_payload_factory.cc | 14 ++++++++ cpp/core/internal/internal_payload_factory.h | 14 ++++++++ cpp/core/internal/loop_runner.cc | 14 ++++++++ cpp/core/internal/loop_runner.h | 14 ++++++++ cpp/core/internal/medium_manager.cc | 14 ++++++++ cpp/core/internal/medium_manager.h | 14 ++++++++ cpp/core/internal/mediums/BUILD | 14 ++++++++ cpp/core/internal/mediums/CMakeLists.txt | 14 ++++++++ .../mediums/advertisement_read_result.cc | 14 ++++++++ .../mediums/advertisement_read_result.h | 14 ++++++++ .../mediums/advertisement_read_result_test.cc | 14 ++++++++ cpp/core/internal/mediums/ble.cc | 14 ++++++++ cpp/core/internal/mediums/ble.h | 14 ++++++++ .../internal/mediums/ble_advertisement.cc | 14 ++++++++ cpp/core/internal/mediums/ble_advertisement.h | 14 ++++++++ .../mediums/ble_advertisement_header.cc | 14 ++++++++ .../mediums/ble_advertisement_header.h | 14 ++++++++ .../mediums/ble_advertisement_header_test.cc | 14 ++++++++ .../mediums/ble_advertisement_test.cc | 14 ++++++++ cpp/core/internal/mediums/ble_packet.cc | 14 ++++++++ cpp/core/internal/mediums/ble_packet.h | 14 ++++++++ cpp/core/internal/mediums/ble_packet_test.cc | 14 ++++++++ cpp/core/internal/mediums/ble_peripheral.cc | 14 ++++++++ cpp/core/internal/mediums/ble_peripheral.h | 14 ++++++++ cpp/core/internal/mediums/ble_v2.cc | 14 ++++++++ cpp/core/internal/mediums/ble_v2.h | 14 ++++++++ cpp/core/internal/mediums/bloom_filter.cc | 14 ++++++++ cpp/core/internal/mediums/bloom_filter.h | 14 ++++++++ .../internal/mediums/bloom_filter_test.cc | 14 ++++++++ .../internal/mediums/bluetooth_classic.cc | 14 ++++++++ cpp/core/internal/mediums/bluetooth_classic.h | 14 ++++++++ cpp/core/internal/mediums/bluetooth_radio.cc | 14 ++++++++ cpp/core/internal/mediums/bluetooth_radio.h | 14 ++++++++ .../mediums/discovered_peripheral_callback.h | 14 ++++++++ .../mediums/discovered_peripheral_tracker.cc | 14 ++++++++ .../mediums/discovered_peripheral_tracker.h | 14 ++++++++ .../internal/mediums/lost_entity_tracker.cc | 14 ++++++++ .../internal/mediums/lost_entity_tracker.h | 14 ++++++++ .../mediums/lost_entity_tracker_test.cc | 14 ++++++++ cpp/core/internal/mediums/mediums.cc | 14 ++++++++ cpp/core/internal/mediums/mediums.h | 14 ++++++++ cpp/core/internal/mediums/utils.cc | 14 ++++++++ cpp/core/internal/mediums/utils.h | 14 ++++++++ cpp/core/internal/mediums/uuid.cc | 14 ++++++++ cpp/core/internal/mediums/uuid.h | 14 ++++++++ cpp/core/internal/offline_frames.cc | 14 ++++++++ cpp/core/internal/offline_frames.h | 14 ++++++++ cpp/core/internal/offline_frames_test.cc | 14 ++++++++ .../internal/offline_service_controller.cc | 14 ++++++++ .../internal/offline_service_controller.h | 14 ++++++++ cpp/core/internal/p2p_cluster_pcp_handler.cc | 14 ++++++++ cpp/core/internal/p2p_cluster_pcp_handler.h | 14 ++++++++ .../p2p_point_to_point_pcp_handler.cc | 14 ++++++++ .../internal/p2p_point_to_point_pcp_handler.h | 14 ++++++++ cpp/core/internal/p2p_star_pcp_handler.cc | 14 ++++++++ cpp/core/internal/p2p_star_pcp_handler.h | 14 ++++++++ cpp/core/internal/payload_manager.cc | 35 ++++++++----------- cpp/core/internal/payload_manager.h | 14 ++++++++ cpp/core/internal/pcp.h | 14 ++++++++ cpp/core/internal/pcp_handler.h | 14 ++++++++ cpp/core/internal/pcp_manager.cc | 14 ++++++++ cpp/core/internal/pcp_manager.h | 14 ++++++++ cpp/core/internal/service_controller.h | 14 ++++++++ .../internal/service_controller_router.cc | 14 ++++++++ cpp/core/internal/service_controller_router.h | 14 ++++++++ cpp/core/internal/wifi_lan_service_info.cc | 14 ++++++++ cpp/core/internal/wifi_lan_service_info.h | 14 ++++++++ .../internal/wifi_lan_service_info_test.cc | 14 ++++++++ cpp/core/internal/wifi_lan_upgrade_handler.cc | 14 ++++++++ cpp/core/internal/wifi_lan_upgrade_handler.h | 14 ++++++++ cpp/core/listeners.h | 14 ++++++++ cpp/core/options.h | 14 ++++++++ cpp/core/params.h | 14 ++++++++ cpp/core/payload.cc | 14 ++++++++ cpp/core/payload.h | 14 ++++++++ cpp/core/status.h | 14 ++++++++ cpp/core/strategy.cc | 14 ++++++++ cpp/core/strategy.h | 14 ++++++++ cpp/platform/BUILD | 14 ++++++++ cpp/platform/CMakeLists.txt | 14 ++++++++ cpp/platform/api/BUILD | 14 ++++++++ cpp/platform/api/CMakeLists.txt | 14 ++++++++ cpp/platform/api/atomic_boolean.h | 14 ++++++++ cpp/platform/api/atomic_reference.h | 14 ++++++++ cpp/platform/api/ble.h | 14 ++++++++ cpp/platform/api/ble_v2.h | 14 ++++++++ cpp/platform/api/bluetooth_adapter.h | 14 ++++++++ cpp/platform/api/bluetooth_classic.h | 14 ++++++++ cpp/platform/api/condition_variable.h | 14 ++++++++ cpp/platform/api/count_down_latch.h | 14 ++++++++ cpp/platform/api/executor.h | 14 ++++++++ cpp/platform/api/future.h | 14 ++++++++ cpp/platform/api/hash_utils.h | 14 ++++++++ cpp/platform/api/input_file.h | 14 ++++++++ cpp/platform/api/input_stream.h | 14 ++++++++ cpp/platform/api/listenable_future.h | 14 ++++++++ cpp/platform/api/lock.h | 14 ++++++++ cpp/platform/api/multi_thread_executor.h | 14 ++++++++ cpp/platform/api/output_file.h | 14 ++++++++ cpp/platform/api/output_stream.h | 14 ++++++++ cpp/platform/api/scheduled_executor.h | 14 ++++++++ cpp/platform/api/server_sync.h | 14 ++++++++ cpp/platform/api/settable_future.h | 14 ++++++++ cpp/platform/api/single_thread_executor.h | 14 ++++++++ cpp/platform/api/socket.h | 14 ++++++++ cpp/platform/api/submittable_executor.h | 14 ++++++++ cpp/platform/api/system_clock.h | 14 ++++++++ cpp/platform/api/thread_utils.h | 14 ++++++++ cpp/platform/api/webrtc.h | 14 ++++++++ cpp/platform/api/wifi.h | 14 ++++++++ cpp/platform/api/wifi_lan.h | 14 ++++++++ cpp/platform/api2/BUILD | 14 ++++++++ cpp/platform/api2/CMakeLists.txt | 14 ++++++++ cpp/platform/api2/atomic_boolean.h | 14 ++++++++ cpp/platform/api2/atomic_reference.h | 14 ++++++++ cpp/platform/api2/ble.h | 14 ++++++++ cpp/platform/api2/ble_v2.h | 14 ++++++++ cpp/platform/api2/bluetooth_adapter.h | 14 ++++++++ cpp/platform/api2/bluetooth_classic.h | 14 ++++++++ cpp/platform/api2/condition_variable.h | 14 ++++++++ cpp/platform/api2/count_down_latch.h | 14 ++++++++ cpp/platform/api2/executor.h | 14 ++++++++ cpp/platform/api2/future.h | 14 ++++++++ cpp/platform/api2/hash_utils.h | 14 ++++++++ cpp/platform/api2/input_file.h | 14 ++++++++ cpp/platform/api2/input_stream.h | 14 ++++++++ cpp/platform/api2/listenable_future.h | 14 ++++++++ cpp/platform/api2/multi_thread_executor.h | 14 ++++++++ cpp/platform/api2/mutex.h | 14 ++++++++ cpp/platform/api2/output_file.h | 14 ++++++++ cpp/platform/api2/output_stream.h | 14 ++++++++ cpp/platform/api2/scheduled_executor.h | 14 ++++++++ cpp/platform/api2/server_sync.h | 14 ++++++++ cpp/platform/api2/settable_future.h | 14 ++++++++ cpp/platform/api2/single_thread_executor.h | 14 ++++++++ cpp/platform/api2/socket.h | 14 ++++++++ cpp/platform/api2/submittable_executor.h | 14 ++++++++ cpp/platform/api2/system_clock.h | 14 ++++++++ cpp/platform/api2/thread_utils.h | 14 ++++++++ cpp/platform/api2/webrtc.h | 14 ++++++++ cpp/platform/api2/wifi.h | 14 ++++++++ cpp/platform/base64_utils.cc | 14 ++++++++ cpp/platform/base64_utils.h | 14 ++++++++ cpp/platform/byte_array.h | 14 ++++++++ cpp/platform/byte_array_test.cc | 14 ++++++++ cpp/platform/callable.h | 14 ++++++++ cpp/platform/cancelable.h | 14 ++++++++ cpp/platform/cancelable_alarm.cc | 14 ++++++++ cpp/platform/cancelable_alarm.h | 14 ++++++++ cpp/platform/container_of.h | 14 ++++++++ cpp/platform/container_of_test.cc | 14 ++++++++ cpp/platform/exception.h | 14 ++++++++ cpp/platform/exception_test.cc | 14 ++++++++ cpp/platform/file_impl.cc | 14 ++++++++ cpp/platform/file_impl.h | 14 ++++++++ cpp/platform/file_impl_test.cc | 14 ++++++++ cpp/platform/impl/default/BUILD | 14 ++++++++ cpp/platform/impl/default/CMakeLists.txt | 14 ++++++++ .../default/default_condition_variable.cc | 14 ++++++++ .../impl/default/default_condition_variable.h | 14 ++++++++ cpp/platform/impl/default/default_lock.cc | 14 ++++++++ cpp/platform/impl/default/default_lock.h | 14 ++++++++ cpp/platform/impl/default/default_platform.cc | 14 ++++++++ cpp/platform/impl/default/default_platform.h | 14 ++++++++ cpp/platform/impl/ios/BUILD | 14 ++++++++ cpp/platform/impl/sample/BUILD | 14 ++++++++ cpp/platform/impl/sample/CMakeLists.txt | 14 ++++++++ cpp/platform/impl/sample/sample_platform.h | 14 ++++++++ .../impl/sample/sample_wifi_medium.cc | 14 ++++++++ cpp/platform/impl/sample/sample_wifi_medium.h | 14 ++++++++ cpp/platform/logging.h | 14 ++++++++ cpp/platform/pipe.cc | 14 ++++++++ cpp/platform/pipe.h | 14 ++++++++ cpp/platform/pipe_test.cc | 14 ++++++++ cpp/platform/port/BUILD | 14 ++++++++ cpp/platform/port/CMakeLists.txt | 14 ++++++++ cpp/platform/port/config.h | 14 ++++++++ cpp/platform/port/down_cast.h | 14 ++++++++ cpp/platform/port/string.h | 14 ++++++++ cpp/platform/prng.cc | 14 ++++++++ cpp/platform/prng.h | 14 ++++++++ cpp/platform/prng_test.cc | 14 ++++++++ cpp/platform/ptr.h | 14 ++++++++ cpp/platform/ptr_test.cc | 14 ++++++++ cpp/platform/reliability_utils.cc | 14 ++++++++ cpp/platform/reliability_utils.h | 14 ++++++++ cpp/platform/runnable.h | 14 ++++++++ cpp/platform/synchronized.h | 14 ++++++++ proto/BUILD | 14 ++++++++ proto/CMakeLists.txt | 14 ++++++++ proto/bootstrap_enums.proto | 14 ++++++++ proto/connections/BUILD | 14 ++++++++ proto/connections/CMakeLists.txt | 14 ++++++++ proto/connections/offline_wire_formats.proto | 14 ++++++++ proto/connections_enums.proto | 24 +++++++------ proto/discovery_enums.proto | 14 ++++++++ proto/magic_pair_enums.proto | 14 ++++++++ proto/nearby_client_enums.proto | 20 +++++++---- proto/nearby_event_codes.proto | 14 ++++++++ proto/setup_enums.proto | 14 ++++++++ proto/sharing_enums.proto | 14 ++++++++ script/oss.py | 15 ++++++++ 247 files changed, 3458 insertions(+), 38 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfdbfc18..69831361 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cmake_minimum_required(VERSION 3.13) project(nearby CXX) diff --git a/cmake/CMakeLists-smhasher.txt b/cmake/CMakeLists-smhasher.txt index 08761ae1..a8fc1fd5 100644 --- a/cmake/CMakeLists-smhasher.txt +++ b/cmake/CMakeLists-smhasher.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + project(smhasher CXX) cmake_minimum_required(VERSION 3.13) diff --git a/cmake/local_build_protobuf.cmake b/cmake/local_build_protobuf.cmake index c10f38d3..3a04d554 100644 --- a/cmake/local_build_protobuf.cmake +++ b/cmake/local_build_protobuf.cmake @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if (NOT EXISTS ${TOOLS_INSTALL_PREFIX}/bin/protoc) set(PKG_BUILD_ROOT ${TOOLS_BUILD_ROOT}/protobuf) set(PKG_SRC_ROOT ${CMAKE_SOURCE_DIR}/third_party/protobuf) diff --git a/cmake/local_build_setup.cmake b/cmake/local_build_setup.cmake index dd85a0a9..a7917fe7 100644 --- a/cmake/local_build_setup.cmake +++ b/cmake/local_build_setup.cmake @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include(ProcessorCount) ProcessorCount(N_CPUS) diff --git a/cmake/local_setup_smhasher.cmake b/cmake/local_setup_smhasher.cmake index cb4164dd..b32a6b2e 100644 --- a/cmake/local_setup_smhasher.cmake +++ b/cmake/local_setup_smhasher.cmake @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set(PKG_STAGE_SRC_ROOT ${TOOLS_ROOT}/src/smhasher) if (NOT EXISTS ${PKG_STAGE_SRC_ROOT}/CMakeLists.txt) set(PKG_SRC_ROOT ${PROJECT_SOURCE_DIR}/third_party/smhasher) diff --git a/cmake/proto_defs.cmake b/cmake/proto_defs.cmake index d9a0d1cb..aae0ce9c 100644 --- a/cmake/proto_defs.cmake +++ b/cmake/proto_defs.cmake @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + function(add_cc_proto_library NAME) set(single) set(multi_args PROTOS INCS DEPS) diff --git a/cpp/core/BUILD b/cpp/core/BUILD index fa226c20..549ac92a 100644 --- a/cpp/core/BUILD +++ b/cpp/core/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "core", hdrs = [ diff --git a/cpp/core/CMakeLists.txt b/cpp/core/CMakeLists.txt index 8f2a70c0..71077e0e 100644 --- a/cpp/core/CMakeLists.txt +++ b/cpp/core/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(core STATIC) target_sources(core diff --git a/cpp/core/check_compilation.cc b/cpp/core/check_compilation.cc index 3d62e379..e65ba161 100644 --- a/cpp/core/check_compilation.cc +++ b/cpp/core/check_compilation.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include diff --git a/cpp/core/core.cc b/cpp/core/core.cc index 8409d0cc..3727138a 100644 --- a/cpp/core/core.cc +++ b/cpp/core/core.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/core.h" #include diff --git a/cpp/core/core.h b/cpp/core/core.h index d148d6df..6453780e 100644 --- a/cpp/core/core.h +++ b/cpp/core/core.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_CORE_H_ #define CORE_CORE_H_ diff --git a/cpp/core/internal/BUILD b/cpp/core/internal/BUILD index f54df70d..75800414 100644 --- a/cpp/core/internal/BUILD +++ b/cpp/core/internal/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "internal", srcs = [ diff --git a/cpp/core/internal/CMakeLists.txt b/cpp/core/internal/CMakeLists.txt index 752732ed..d10c1062 100644 --- a/cpp/core/internal/CMakeLists.txt +++ b/cpp/core/internal/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(core_internal STATIC) target_sources(core_internal diff --git a/cpp/core/internal/bandwidth_upgrade_handler.h b/cpp/core/internal/bandwidth_upgrade_handler.h index 6e8c0775..901bdc4a 100644 --- a/cpp/core/internal/bandwidth_upgrade_handler.h +++ b/cpp/core/internal/bandwidth_upgrade_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BANDWIDTH_UPGRADE_HANDLER_H_ #define CORE_INTERNAL_BANDWIDTH_UPGRADE_HANDLER_H_ diff --git a/cpp/core/internal/bandwidth_upgrade_manager.cc b/cpp/core/internal/bandwidth_upgrade_manager.cc index 4c502beb..62cf32aa 100644 --- a/cpp/core/internal/bandwidth_upgrade_manager.cc +++ b/cpp/core/internal/bandwidth_upgrade_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/bandwidth_upgrade_manager.h" #include "proto/connections_enums.pb.h" diff --git a/cpp/core/internal/bandwidth_upgrade_manager.h b/cpp/core/internal/bandwidth_upgrade_manager.h index 5aab4033..6715c2a9 100644 --- a/cpp/core/internal/bandwidth_upgrade_manager.h +++ b/cpp/core/internal/bandwidth_upgrade_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BANDWIDTH_UPGRADE_MANAGER_H_ #define CORE_INTERNAL_BANDWIDTH_UPGRADE_MANAGER_H_ diff --git a/cpp/core/internal/base_bandwidth_upgrade_handler.cc b/cpp/core/internal/base_bandwidth_upgrade_handler.cc index 9970bb8e..85650c0f 100644 --- a/cpp/core/internal/base_bandwidth_upgrade_handler.cc +++ b/cpp/core/internal/base_bandwidth_upgrade_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/base_bandwidth_upgrade_handler.h" namespace location { diff --git a/cpp/core/internal/base_bandwidth_upgrade_handler.h b/cpp/core/internal/base_bandwidth_upgrade_handler.h index c4be0a7d..867656cd 100644 --- a/cpp/core/internal/base_bandwidth_upgrade_handler.h +++ b/cpp/core/internal/base_bandwidth_upgrade_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BASE_BANDWIDTH_UPGRADE_HANDLER_H_ #define CORE_INTERNAL_BASE_BANDWIDTH_UPGRADE_HANDLER_H_ diff --git a/cpp/core/internal/base_endpoint_channel.cc b/cpp/core/internal/base_endpoint_channel.cc index 6665a2b5..7d15c17d 100644 --- a/cpp/core/internal/base_endpoint_channel.cc +++ b/cpp/core/internal/base_endpoint_channel.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/base_endpoint_channel.h" #include diff --git a/cpp/core/internal/base_endpoint_channel.h b/cpp/core/internal/base_endpoint_channel.h index 4e3c112e..b7ffec64 100644 --- a/cpp/core/internal/base_endpoint_channel.h +++ b/cpp/core/internal/base_endpoint_channel.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BASE_ENDPOINT_CHANNEL_H_ #define CORE_INTERNAL_BASE_ENDPOINT_CHANNEL_H_ diff --git a/cpp/core/internal/base_endpoint_channel_test.cc b/cpp/core/internal/base_endpoint_channel_test.cc index abdb5dbe..697d480c 100644 --- a/cpp/core/internal/base_endpoint_channel_test.cc +++ b/cpp/core/internal/base_endpoint_channel_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/base_endpoint_channel.h" #include "platform/impl/default/default_platform.h" diff --git a/cpp/core/internal/base_pcp_handler.cc b/cpp/core/internal/base_pcp_handler.cc index e885e42c..b83c2409 100644 --- a/cpp/core/internal/base_pcp_handler.cc +++ b/cpp/core/internal/base_pcp_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/base_pcp_handler.h" #include diff --git a/cpp/core/internal/base_pcp_handler.h b/cpp/core/internal/base_pcp_handler.h index 9019a9b9..17e9223f 100644 --- a/cpp/core/internal/base_pcp_handler.h +++ b/cpp/core/internal/base_pcp_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BASE_PCP_HANDLER_H_ #define CORE_INTERNAL_BASE_PCP_HANDLER_H_ diff --git a/cpp/core/internal/ble_advertisement.cc b/cpp/core/internal/ble_advertisement.cc index aaf602f9..0ee84373 100644 --- a/cpp/core/internal/ble_advertisement.cc +++ b/cpp/core/internal/ble_advertisement.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/ble_advertisement.h" #include diff --git a/cpp/core/internal/ble_advertisement.h b/cpp/core/internal/ble_advertisement.h index 64eb6a20..518a2385 100644 --- a/cpp/core/internal/ble_advertisement.h +++ b/cpp/core/internal/ble_advertisement.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BLE_ADVERTISEMENT_H_ #define CORE_INTERNAL_BLE_ADVERTISEMENT_H_ diff --git a/cpp/core/internal/ble_advertisement_test.cc b/cpp/core/internal/ble_advertisement_test.cc index 683aa6b3..959a8716 100644 --- a/cpp/core/internal/ble_advertisement_test.cc +++ b/cpp/core/internal/ble_advertisement_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/ble_advertisement.h" #include diff --git a/cpp/core/internal/ble_compat.h b/cpp/core/internal/ble_compat.h index 264cb39e..a10cb38a 100644 --- a/cpp/core/internal/ble_compat.h +++ b/cpp/core/internal/ble_compat.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BLE_COMPAT_H_ #define CORE_INTERNAL_BLE_COMPAT_H_ diff --git a/cpp/core/internal/ble_endpoint_channel.cc b/cpp/core/internal/ble_endpoint_channel.cc index 8684dcc1..73618165 100644 --- a/cpp/core/internal/ble_endpoint_channel.cc +++ b/cpp/core/internal/ble_endpoint_channel.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/ble_endpoint_channel.h" #include diff --git a/cpp/core/internal/ble_endpoint_channel.h b/cpp/core/internal/ble_endpoint_channel.h index fb92dc4d..a966f433 100644 --- a/cpp/core/internal/ble_endpoint_channel.h +++ b/cpp/core/internal/ble_endpoint_channel.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BLE_ENDPOINT_CHANNEL_H_ #define CORE_INTERNAL_BLE_ENDPOINT_CHANNEL_H_ diff --git a/cpp/core/internal/bluetooth_device_name.cc b/cpp/core/internal/bluetooth_device_name.cc index d305167d..19d581ca 100644 --- a/cpp/core/internal/bluetooth_device_name.cc +++ b/cpp/core/internal/bluetooth_device_name.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/bluetooth_device_name.h" #include diff --git a/cpp/core/internal/bluetooth_device_name.h b/cpp/core/internal/bluetooth_device_name.h index de81dee7..0da3d5bc 100644 --- a/cpp/core/internal/bluetooth_device_name.h +++ b/cpp/core/internal/bluetooth_device_name.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BLUETOOTH_DEVICE_NAME_H_ #define CORE_INTERNAL_BLUETOOTH_DEVICE_NAME_H_ diff --git a/cpp/core/internal/bluetooth_device_name_test.cc b/cpp/core/internal/bluetooth_device_name_test.cc index 90a789ea..b5640c86 100644 --- a/cpp/core/internal/bluetooth_device_name_test.cc +++ b/cpp/core/internal/bluetooth_device_name_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/bluetooth_device_name.h" #include diff --git a/cpp/core/internal/bluetooth_endpoint_channel.cc b/cpp/core/internal/bluetooth_endpoint_channel.cc index f9525b36..59cfd897 100644 --- a/cpp/core/internal/bluetooth_endpoint_channel.cc +++ b/cpp/core/internal/bluetooth_endpoint_channel.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/bluetooth_endpoint_channel.h" #include diff --git a/cpp/core/internal/bluetooth_endpoint_channel.h b/cpp/core/internal/bluetooth_endpoint_channel.h index f9be2269..74d75bb6 100644 --- a/cpp/core/internal/bluetooth_endpoint_channel.h +++ b/cpp/core/internal/bluetooth_endpoint_channel.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_BLUETOOTH_ENDPOINT_CHANNEL_H_ #define CORE_INTERNAL_BLUETOOTH_ENDPOINT_CHANNEL_H_ diff --git a/cpp/core/internal/client_proxy.cc b/cpp/core/internal/client_proxy.cc index 55d6ea7f..2fa7412e 100644 --- a/cpp/core/internal/client_proxy.cc +++ b/cpp/core/internal/client_proxy.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/client_proxy.h" #include diff --git a/cpp/core/internal/client_proxy.h b/cpp/core/internal/client_proxy.h index 98e76fbb..fbad987a 100644 --- a/cpp/core/internal/client_proxy.h +++ b/cpp/core/internal/client_proxy.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_CLIENT_PROXY_H_ #define CORE_INTERNAL_CLIENT_PROXY_H_ diff --git a/cpp/core/internal/encryption_runner.cc b/cpp/core/internal/encryption_runner.cc index ccd5f8d5..3536d17a 100644 --- a/cpp/core/internal/encryption_runner.cc +++ b/cpp/core/internal/encryption_runner.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/encryption_runner.h" #include diff --git a/cpp/core/internal/encryption_runner.h b/cpp/core/internal/encryption_runner.h index 3a2373f8..c5d2637c 100644 --- a/cpp/core/internal/encryption_runner.h +++ b/cpp/core/internal/encryption_runner.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_ENCRYPTION_RUNNER_H_ #define CORE_INTERNAL_ENCRYPTION_RUNNER_H_ diff --git a/cpp/core/internal/endpoint_channel.h b/cpp/core/internal/endpoint_channel.h index b7e2e52b..76e9c426 100644 --- a/cpp/core/internal/endpoint_channel.h +++ b/cpp/core/internal/endpoint_channel.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_ENDPOINT_CHANNEL_H_ #define CORE_INTERNAL_ENDPOINT_CHANNEL_H_ diff --git a/cpp/core/internal/endpoint_channel_manager.cc b/cpp/core/internal/endpoint_channel_manager.cc index 80222b6a..ebd753de 100644 --- a/cpp/core/internal/endpoint_channel_manager.cc +++ b/cpp/core/internal/endpoint_channel_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/endpoint_channel_manager.h" #include "core/internal/ble_endpoint_channel.h" diff --git a/cpp/core/internal/endpoint_channel_manager.h b/cpp/core/internal/endpoint_channel_manager.h index 059085b7..dff4d7b0 100644 --- a/cpp/core/internal/endpoint_channel_manager.h +++ b/cpp/core/internal/endpoint_channel_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_ENDPOINT_CHANNEL_MANAGER_H_ #define CORE_INTERNAL_ENDPOINT_CHANNEL_MANAGER_H_ diff --git a/cpp/core/internal/endpoint_manager.cc b/cpp/core/internal/endpoint_manager.cc index d4d6c3de..2586533f 100644 --- a/cpp/core/internal/endpoint_manager.cc +++ b/cpp/core/internal/endpoint_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/endpoint_manager.h" #include diff --git a/cpp/core/internal/endpoint_manager.h b/cpp/core/internal/endpoint_manager.h index 05263f2c..772acf13 100644 --- a/cpp/core/internal/endpoint_manager.h +++ b/cpp/core/internal/endpoint_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_ENDPOINT_MANAGER_H_ #define CORE_INTERNAL_ENDPOINT_MANAGER_H_ diff --git a/cpp/core/internal/internal_payload.cc b/cpp/core/internal/internal_payload.cc index ca485783..fdab80e4 100644 --- a/cpp/core/internal/internal_payload.cc +++ b/cpp/core/internal/internal_payload.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/internal_payload.h" namespace location { diff --git a/cpp/core/internal/internal_payload.h b/cpp/core/internal/internal_payload.h index 33f11860..62f2625d 100644 --- a/cpp/core/internal/internal_payload.h +++ b/cpp/core/internal/internal_payload.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_INTERNAL_PAYLOAD_H_ #define CORE_INTERNAL_INTERNAL_PAYLOAD_H_ diff --git a/cpp/core/internal/internal_payload_factory.cc b/cpp/core/internal/internal_payload_factory.cc index 4deb40b7..616b0ba9 100644 --- a/cpp/core/internal/internal_payload_factory.cc +++ b/cpp/core/internal/internal_payload_factory.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/internal_payload_factory.h" #include diff --git a/cpp/core/internal/internal_payload_factory.h b/cpp/core/internal/internal_payload_factory.h index 0b7086e6..eb1ab1d5 100644 --- a/cpp/core/internal/internal_payload_factory.h +++ b/cpp/core/internal/internal_payload_factory.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_INTERNAL_PAYLOAD_FACTORY_H_ #define CORE_INTERNAL_INTERNAL_PAYLOAD_FACTORY_H_ diff --git a/cpp/core/internal/loop_runner.cc b/cpp/core/internal/loop_runner.cc index 39414857..9e48338a 100644 --- a/cpp/core/internal/loop_runner.cc +++ b/cpp/core/internal/loop_runner.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/loop_runner.h" #include "platform/exception.h" diff --git a/cpp/core/internal/loop_runner.h b/cpp/core/internal/loop_runner.h index af18a5c9..8f4091c2 100644 --- a/cpp/core/internal/loop_runner.h +++ b/cpp/core/internal/loop_runner.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_LOOP_RUNNER_H_ #define CORE_INTERNAL_LOOP_RUNNER_H_ diff --git a/cpp/core/internal/medium_manager.cc b/cpp/core/internal/medium_manager.cc index be6ca370..40c18139 100644 --- a/cpp/core/internal/medium_manager.cc +++ b/cpp/core/internal/medium_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/medium_manager.h" #include "platform/synchronized.h" diff --git a/cpp/core/internal/medium_manager.h b/cpp/core/internal/medium_manager.h index 93ba82af..002b6e1e 100644 --- a/cpp/core/internal/medium_manager.h +++ b/cpp/core/internal/medium_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUM_MANAGER_H_ #define CORE_INTERNAL_MEDIUM_MANAGER_H_ diff --git a/cpp/core/internal/mediums/BUILD b/cpp/core/internal/mediums/BUILD index b0fca5fa..4916b4a0 100644 --- a/cpp/core/internal/mediums/BUILD +++ b/cpp/core/internal/mediums/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "mediums", srcs = [ diff --git a/cpp/core/internal/mediums/CMakeLists.txt b/cpp/core/internal/mediums/CMakeLists.txt index 311f7084..e991f711 100644 --- a/cpp/core/internal/mediums/CMakeLists.txt +++ b/cpp/core/internal/mediums/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(core_internal_mediums STATIC) target_sources(core_internal_mediums diff --git a/cpp/core/internal/mediums/advertisement_read_result.cc b/cpp/core/internal/mediums/advertisement_read_result.cc index 12cf2e1d..7629e041 100644 --- a/cpp/core/internal/mediums/advertisement_read_result.cc +++ b/cpp/core/internal/mediums/advertisement_read_result.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/advertisement_read_result.h" #include diff --git a/cpp/core/internal/mediums/advertisement_read_result.h b/cpp/core/internal/mediums/advertisement_read_result.h index 9fde9598..36b80a15 100644 --- a/cpp/core/internal/mediums/advertisement_read_result.h +++ b/cpp/core/internal/mediums/advertisement_read_result.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_ADVERTISEMENT_READ_RESULT_H_ #define CORE_INTERNAL_MEDIUMS_ADVERTISEMENT_READ_RESULT_H_ diff --git a/cpp/core/internal/mediums/advertisement_read_result_test.cc b/cpp/core/internal/mediums/advertisement_read_result_test.cc index 158e01fb..ecd4923d 100644 --- a/cpp/core/internal/mediums/advertisement_read_result_test.cc +++ b/cpp/core/internal/mediums/advertisement_read_result_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/advertisement_read_result.h" #include "platform/impl/default/default_platform.h" diff --git a/cpp/core/internal/mediums/ble.cc b/cpp/core/internal/mediums/ble.cc index ebcffbf4..82c8c9a2 100644 --- a/cpp/core/internal/mediums/ble.cc +++ b/cpp/core/internal/mediums/ble.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble.h" #include "platform/synchronized.h" diff --git a/cpp/core/internal/mediums/ble.h b/cpp/core/internal/mediums/ble.h index e7db1336..5af2a241 100644 --- a/cpp/core/internal/mediums/ble.h +++ b/cpp/core/internal/mediums/ble.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_H_ #define CORE_INTERNAL_MEDIUMS_BLE_H_ diff --git a/cpp/core/internal/mediums/ble_advertisement.cc b/cpp/core/internal/mediums/ble_advertisement.cc index e83d8d3b..1e4c99b0 100644 --- a/cpp/core/internal/mediums/ble_advertisement.cc +++ b/cpp/core/internal/mediums/ble_advertisement.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_advertisement.h" #include diff --git a/cpp/core/internal/mediums/ble_advertisement.h b/cpp/core/internal/mediums/ble_advertisement.h index 75209336..4683301d 100644 --- a/cpp/core/internal/mediums/ble_advertisement.h +++ b/cpp/core/internal/mediums/ble_advertisement.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_ADVERTISEMENT_H_ #define CORE_INTERNAL_MEDIUMS_BLE_ADVERTISEMENT_H_ diff --git a/cpp/core/internal/mediums/ble_advertisement_header.cc b/cpp/core/internal/mediums/ble_advertisement_header.cc index b5e1d672..b1a48727 100644 --- a/cpp/core/internal/mediums/ble_advertisement_header.cc +++ b/cpp/core/internal/mediums/ble_advertisement_header.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_advertisement_header.h" #include diff --git a/cpp/core/internal/mediums/ble_advertisement_header.h b/cpp/core/internal/mediums/ble_advertisement_header.h index 3cf70e5a..db0d1bca 100644 --- a/cpp/core/internal/mediums/ble_advertisement_header.h +++ b/cpp/core/internal/mediums/ble_advertisement_header.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_ADVERTISEMENT_HEADER_H_ #define CORE_INTERNAL_MEDIUMS_BLE_ADVERTISEMENT_HEADER_H_ diff --git a/cpp/core/internal/mediums/ble_advertisement_header_test.cc b/cpp/core/internal/mediums/ble_advertisement_header_test.cc index df9267c6..1ba30371 100644 --- a/cpp/core/internal/mediums/ble_advertisement_header_test.cc +++ b/cpp/core/internal/mediums/ble_advertisement_header_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_advertisement_header.h" #include "platform/base64_utils.h" diff --git a/cpp/core/internal/mediums/ble_advertisement_test.cc b/cpp/core/internal/mediums/ble_advertisement_test.cc index 965cd543..b96c881f 100644 --- a/cpp/core/internal/mediums/ble_advertisement_test.cc +++ b/cpp/core/internal/mediums/ble_advertisement_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_advertisement.h" #include diff --git a/cpp/core/internal/mediums/ble_packet.cc b/cpp/core/internal/mediums/ble_packet.cc index be7a9bb8..bdea3049 100644 --- a/cpp/core/internal/mediums/ble_packet.cc +++ b/cpp/core/internal/mediums/ble_packet.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_packet.h" #include diff --git a/cpp/core/internal/mediums/ble_packet.h b/cpp/core/internal/mediums/ble_packet.h index ec7cf0c7..660b374d 100644 --- a/cpp/core/internal/mediums/ble_packet.h +++ b/cpp/core/internal/mediums/ble_packet.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_PACKET_H_ #define CORE_INTERNAL_MEDIUMS_BLE_PACKET_H_ diff --git a/cpp/core/internal/mediums/ble_packet_test.cc b/cpp/core/internal/mediums/ble_packet_test.cc index 90c0d06b..5a247557 100644 --- a/cpp/core/internal/mediums/ble_packet_test.cc +++ b/cpp/core/internal/mediums/ble_packet_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_packet.h" #include "gtest/gtest.h" diff --git a/cpp/core/internal/mediums/ble_peripheral.cc b/cpp/core/internal/mediums/ble_peripheral.cc index ef54ec8c..ea1c2a92 100644 --- a/cpp/core/internal/mediums/ble_peripheral.cc +++ b/cpp/core/internal/mediums/ble_peripheral.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble_peripheral.h" namespace location { diff --git a/cpp/core/internal/mediums/ble_peripheral.h b/cpp/core/internal/mediums/ble_peripheral.h index 0c5acd01..7e1a333e 100644 --- a/cpp/core/internal/mediums/ble_peripheral.h +++ b/cpp/core/internal/mediums/ble_peripheral.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_PERIPHERAL_H_ #define CORE_INTERNAL_MEDIUMS_BLE_PERIPHERAL_H_ diff --git a/cpp/core/internal/mediums/ble_v2.cc b/cpp/core/internal/mediums/ble_v2.cc index 32ba762c..7e491814 100644 --- a/cpp/core/internal/mediums/ble_v2.cc +++ b/cpp/core/internal/mediums/ble_v2.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/ble.h" #include "core/internal/mediums/ble_advertisement_header.h" #include "core/internal/mediums/bloom_filter.h" diff --git a/cpp/core/internal/mediums/ble_v2.h b/cpp/core/internal/mediums/ble_v2.h index d8f07bd2..8f268959 100644 --- a/cpp/core/internal/mediums/ble_v2.h +++ b/cpp/core/internal/mediums/ble_v2.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLE_V2_H_ #define CORE_INTERNAL_MEDIUMS_BLE_V2_H_ diff --git a/cpp/core/internal/mediums/bloom_filter.cc b/cpp/core/internal/mediums/bloom_filter.cc index 835ed205..e8107237 100644 --- a/cpp/core/internal/mediums/bloom_filter.cc +++ b/cpp/core/internal/mediums/bloom_filter.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/bloom_filter.h" #include "absl/numeric/int128.h" diff --git a/cpp/core/internal/mediums/bloom_filter.h b/cpp/core/internal/mediums/bloom_filter.h index d358cb25..174bba9a 100644 --- a/cpp/core/internal/mediums/bloom_filter.h +++ b/cpp/core/internal/mediums/bloom_filter.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLOOM_FILTER_H_ #define CORE_INTERNAL_MEDIUMS_BLOOM_FILTER_H_ diff --git a/cpp/core/internal/mediums/bloom_filter_test.cc b/cpp/core/internal/mediums/bloom_filter_test.cc index 00ad384a..384e6505 100644 --- a/cpp/core/internal/mediums/bloom_filter_test.cc +++ b/cpp/core/internal/mediums/bloom_filter_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/bloom_filter.h" #include diff --git a/cpp/core/internal/mediums/bluetooth_classic.cc b/cpp/core/internal/mediums/bluetooth_classic.cc index c49348c5..bf374d26 100644 --- a/cpp/core/internal/mediums/bluetooth_classic.cc +++ b/cpp/core/internal/mediums/bluetooth_classic.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/bluetooth_classic.h" #include diff --git a/cpp/core/internal/mediums/bluetooth_classic.h b/cpp/core/internal/mediums/bluetooth_classic.h index dddf3993..05ec5a5d 100644 --- a/cpp/core/internal/mediums/bluetooth_classic.h +++ b/cpp/core/internal/mediums/bluetooth_classic.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLUETOOTH_CLASSIC_H_ #define CORE_INTERNAL_MEDIUMS_BLUETOOTH_CLASSIC_H_ diff --git a/cpp/core/internal/mediums/bluetooth_radio.cc b/cpp/core/internal/mediums/bluetooth_radio.cc index 9edaa777..0f5b73ba 100644 --- a/cpp/core/internal/mediums/bluetooth_radio.cc +++ b/cpp/core/internal/mediums/bluetooth_radio.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/bluetooth_radio.h" #include "platform/exception.h" diff --git a/cpp/core/internal/mediums/bluetooth_radio.h b/cpp/core/internal/mediums/bluetooth_radio.h index 14dd611b..00e4cf28 100644 --- a/cpp/core/internal/mediums/bluetooth_radio.h +++ b/cpp/core/internal/mediums/bluetooth_radio.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_BLUETOOTH_RADIO_H_ #define CORE_INTERNAL_MEDIUMS_BLUETOOTH_RADIO_H_ diff --git a/cpp/core/internal/mediums/discovered_peripheral_callback.h b/cpp/core/internal/mediums/discovered_peripheral_callback.h index 1e3fe35f..b3edbda1 100644 --- a/cpp/core/internal/mediums/discovered_peripheral_callback.h +++ b/cpp/core/internal/mediums/discovered_peripheral_callback.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_DISCOVERED_PERIPHERAL_CALLBACK_H_ #define CORE_INTERNAL_MEDIUMS_DISCOVERED_PERIPHERAL_CALLBACK_H_ diff --git a/cpp/core/internal/mediums/discovered_peripheral_tracker.cc b/cpp/core/internal/mediums/discovered_peripheral_tracker.cc index 276ec2cf..4fee1e4c 100644 --- a/cpp/core/internal/mediums/discovered_peripheral_tracker.cc +++ b/cpp/core/internal/mediums/discovered_peripheral_tracker.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/discovered_peripheral_tracker.h" #include "core/internal/mediums/ble_packet.h" diff --git a/cpp/core/internal/mediums/discovered_peripheral_tracker.h b/cpp/core/internal/mediums/discovered_peripheral_tracker.h index 7c23a3d8..b1aa8685 100644 --- a/cpp/core/internal/mediums/discovered_peripheral_tracker.h +++ b/cpp/core/internal/mediums/discovered_peripheral_tracker.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_DISCOVERED_PERIPHERAL_TRACKER_H_ #define CORE_INTERNAL_MEDIUMS_DISCOVERED_PERIPHERAL_TRACKER_H_ diff --git a/cpp/core/internal/mediums/lost_entity_tracker.cc b/cpp/core/internal/mediums/lost_entity_tracker.cc index 0122cb57..1b71bb9a 100644 --- a/cpp/core/internal/mediums/lost_entity_tracker.cc +++ b/cpp/core/internal/mediums/lost_entity_tracker.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/lost_entity_tracker.h" #include "platform/synchronized.h" diff --git a/cpp/core/internal/mediums/lost_entity_tracker.h b/cpp/core/internal/mediums/lost_entity_tracker.h index ad4fb7ae..b1d30f8e 100644 --- a/cpp/core/internal/mediums/lost_entity_tracker.h +++ b/cpp/core/internal/mediums/lost_entity_tracker.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_LOST_ENTITY_TRACKER_H_ #define CORE_INTERNAL_MEDIUMS_LOST_ENTITY_TRACKER_H_ diff --git a/cpp/core/internal/mediums/lost_entity_tracker_test.cc b/cpp/core/internal/mediums/lost_entity_tracker_test.cc index ce37d6e0..7da24e22 100644 --- a/cpp/core/internal/mediums/lost_entity_tracker_test.cc +++ b/cpp/core/internal/mediums/lost_entity_tracker_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/lost_entity_tracker.h" #include "platform/impl/default/default_platform.h" diff --git a/cpp/core/internal/mediums/mediums.cc b/cpp/core/internal/mediums/mediums.cc index 22638499..69c1d166 100644 --- a/cpp/core/internal/mediums/mediums.cc +++ b/cpp/core/internal/mediums/mediums.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/mediums.h" namespace location { diff --git a/cpp/core/internal/mediums/mediums.h b/cpp/core/internal/mediums/mediums.h index f6d57d75..68c6c72d 100644 --- a/cpp/core/internal/mediums/mediums.h +++ b/cpp/core/internal/mediums/mediums.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_MEDIUMS_H_ #define CORE_INTERNAL_MEDIUMS_MEDIUMS_H_ diff --git a/cpp/core/internal/mediums/utils.cc b/cpp/core/internal/mediums/utils.cc index 125359c7..0d76a440 100644 --- a/cpp/core/internal/mediums/utils.cc +++ b/cpp/core/internal/mediums/utils.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/utils.h" #include diff --git a/cpp/core/internal/mediums/utils.h b/cpp/core/internal/mediums/utils.h index 665716a9..264f1fa7 100644 --- a/cpp/core/internal/mediums/utils.h +++ b/cpp/core/internal/mediums/utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_UTILS_H_ #define CORE_INTERNAL_MEDIUMS_UTILS_H_ diff --git a/cpp/core/internal/mediums/uuid.cc b/cpp/core/internal/mediums/uuid.cc index df6bed62..549c8c2b 100644 --- a/cpp/core/internal/mediums/uuid.cc +++ b/cpp/core/internal/mediums/uuid.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/mediums/uuid.h" #include diff --git a/cpp/core/internal/mediums/uuid.h b/cpp/core/internal/mediums/uuid.h index 5742e6c4..bb99460d 100644 --- a/cpp/core/internal/mediums/uuid.h +++ b/cpp/core/internal/mediums/uuid.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_MEDIUMS_UUID_H_ #define CORE_INTERNAL_MEDIUMS_UUID_H_ diff --git a/cpp/core/internal/offline_frames.cc b/cpp/core/internal/offline_frames.cc index 232a6c89..36407111 100644 --- a/cpp/core/internal/offline_frames.cc +++ b/cpp/core/internal/offline_frames.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/offline_frames.h" #include diff --git a/cpp/core/internal/offline_frames.h b/cpp/core/internal/offline_frames.h index e29699bf..d82773bb 100644 --- a/cpp/core/internal/offline_frames.h +++ b/cpp/core/internal/offline_frames.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_OFFLINE_FRAMES_H_ #define CORE_INTERNAL_OFFLINE_FRAMES_H_ diff --git a/cpp/core/internal/offline_frames_test.cc b/cpp/core/internal/offline_frames_test.cc index 764514f7..1eddd6eb 100644 --- a/cpp/core/internal/offline_frames_test.cc +++ b/cpp/core/internal/offline_frames_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/offline_frames.h" #include diff --git a/cpp/core/internal/offline_service_controller.cc b/cpp/core/internal/offline_service_controller.cc index b5e45cfb..c7578e26 100644 --- a/cpp/core/internal/offline_service_controller.cc +++ b/cpp/core/internal/offline_service_controller.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/offline_service_controller.h" #include diff --git a/cpp/core/internal/offline_service_controller.h b/cpp/core/internal/offline_service_controller.h index 743e7852..69d34c0c 100644 --- a/cpp/core/internal/offline_service_controller.h +++ b/cpp/core/internal/offline_service_controller.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_OFFLINE_SERVICE_CONTROLLER_H_ #define CORE_INTERNAL_OFFLINE_SERVICE_CONTROLLER_H_ diff --git a/cpp/core/internal/p2p_cluster_pcp_handler.cc b/cpp/core/internal/p2p_cluster_pcp_handler.cc index 84881eef..c98d8041 100644 --- a/cpp/core/internal/p2p_cluster_pcp_handler.cc +++ b/cpp/core/internal/p2p_cluster_pcp_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/p2p_cluster_pcp_handler.h" #include "platform/api/hash_utils.h" diff --git a/cpp/core/internal/p2p_cluster_pcp_handler.h b/cpp/core/internal/p2p_cluster_pcp_handler.h index 78d5c757..0be713c0 100644 --- a/cpp/core/internal/p2p_cluster_pcp_handler.h +++ b/cpp/core/internal/p2p_cluster_pcp_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_P2P_CLUSTER_PCP_HANDLER_H_ #define CORE_INTERNAL_P2P_CLUSTER_PCP_HANDLER_H_ diff --git a/cpp/core/internal/p2p_point_to_point_pcp_handler.cc b/cpp/core/internal/p2p_point_to_point_pcp_handler.cc index 4e48a42c..6dd600d0 100644 --- a/cpp/core/internal/p2p_point_to_point_pcp_handler.cc +++ b/cpp/core/internal/p2p_point_to_point_pcp_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/p2p_point_to_point_pcp_handler.h" namespace location { diff --git a/cpp/core/internal/p2p_point_to_point_pcp_handler.h b/cpp/core/internal/p2p_point_to_point_pcp_handler.h index 56f7104b..e73c3140 100644 --- a/cpp/core/internal/p2p_point_to_point_pcp_handler.h +++ b/cpp/core/internal/p2p_point_to_point_pcp_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_P2P_POINT_TO_POINT_PCP_HANDLER_H_ #define CORE_INTERNAL_P2P_POINT_TO_POINT_PCP_HANDLER_H_ diff --git a/cpp/core/internal/p2p_star_pcp_handler.cc b/cpp/core/internal/p2p_star_pcp_handler.cc index a3bf50d6..0e37e616 100644 --- a/cpp/core/internal/p2p_star_pcp_handler.cc +++ b/cpp/core/internal/p2p_star_pcp_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/p2p_star_pcp_handler.h" #include diff --git a/cpp/core/internal/p2p_star_pcp_handler.h b/cpp/core/internal/p2p_star_pcp_handler.h index 4a7c110f..f7c635ae 100644 --- a/cpp/core/internal/p2p_star_pcp_handler.h +++ b/cpp/core/internal/p2p_star_pcp_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_P2P_STAR_PCP_HANDLER_H_ #define CORE_INTERNAL_P2P_STAR_PCP_HANDLER_H_ diff --git a/cpp/core/internal/payload_manager.cc b/cpp/core/internal/payload_manager.cc index 383a08ee..6325244b 100644 --- a/cpp/core/internal/payload_manager.cc +++ b/cpp/core/internal/payload_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/payload_manager.h" #include @@ -442,17 +456,6 @@ class HandleSuccessfulOutgoingChunkRunnable : public Runnable { return; } - // nearby:google3-begin - // TODO(reznor): The fact that we've sent total_size bytes (which we will - // always know 1 frame before we get the SUCCESS frame), also tells us this - // is the last chunk - should we add those smarts, or just be simple and - // always have the last IN_PROGRESS have the same numbers as the following - // SUCCESS? I prefer the simplicity, but it'll look stupid if we send all - // the bytes and then remain hanging because the remote device disconnected - // at just that point, so at least consider injecting the smarts. - // TODO(reznor): Should we check whether payload_header.total_size == - // payload_chunk.offset? - // nearby:google3-end bool is_last_chunk = (payload_chunk_flags_ & PayloadTransferFrame::PayloadChunk::LAST_CHUNK) != 0; PayloadTransferUpdate update( @@ -516,16 +519,6 @@ class HandleSuccessfulIncomingChunkRunnable : public Runnable { return; } - // nearby:google3-begin - // TODO(reznor): The fact that we've received total_size bytes (which we - // will always know 1 frame before we get the SUCCESS frame), also tells us - // this is the last chunk - should we add those smarts, or just be simple - // and always have the last IN_PROGRESS have the same numbers as the - // following SUCCESS? I prefer the simplicity, but it'll look stupid if we - // get all the bytes and then remain hanging because the remote device - // disconnected at just that point, so at least consider injecting the - // smarts. - // nearby:google3-end bool is_last_chunk = (payload_chunk_flags_ & PayloadTransferFrame::PayloadChunk::LAST_CHUNK) != 0; PayloadTransferUpdate update( diff --git a/cpp/core/internal/payload_manager.h b/cpp/core/internal/payload_manager.h index 4058ec6f..3f427499 100644 --- a/cpp/core/internal/payload_manager.h +++ b/cpp/core/internal/payload_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_PAYLOAD_MANAGER_H_ #define CORE_INTERNAL_PAYLOAD_MANAGER_H_ diff --git a/cpp/core/internal/pcp.h b/cpp/core/internal/pcp.h index 427d974f..3a4fe92e 100644 --- a/cpp/core/internal/pcp.h +++ b/cpp/core/internal/pcp.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_PCP_H_ #define CORE_INTERNAL_PCP_H_ diff --git a/cpp/core/internal/pcp_handler.h b/cpp/core/internal/pcp_handler.h index 4babed34..d016c2c3 100644 --- a/cpp/core/internal/pcp_handler.h +++ b/cpp/core/internal/pcp_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_PCP_HANDLER_H_ #define CORE_INTERNAL_PCP_HANDLER_H_ diff --git a/cpp/core/internal/pcp_manager.cc b/cpp/core/internal/pcp_manager.cc index 50500e2e..eb618cfe 100644 --- a/cpp/core/internal/pcp_manager.cc +++ b/cpp/core/internal/pcp_manager.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/pcp_manager.h" #include "core/internal/p2p_cluster_pcp_handler.h" diff --git a/cpp/core/internal/pcp_manager.h b/cpp/core/internal/pcp_manager.h index 8bb77a32..b5695796 100644 --- a/cpp/core/internal/pcp_manager.h +++ b/cpp/core/internal/pcp_manager.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_PCP_MANAGER_H_ #define CORE_INTERNAL_PCP_MANAGER_H_ diff --git a/cpp/core/internal/service_controller.h b/cpp/core/internal/service_controller.h index 05f37071..6c7aef31 100644 --- a/cpp/core/internal/service_controller.h +++ b/cpp/core/internal/service_controller.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_SERVICE_CONTROLLER_H_ #define CORE_INTERNAL_SERVICE_CONTROLLER_H_ diff --git a/cpp/core/internal/service_controller_router.cc b/cpp/core/internal/service_controller_router.cc index aa76330e..3a7eb23f 100644 --- a/cpp/core/internal/service_controller_router.cc +++ b/cpp/core/internal/service_controller_router.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/service_controller_router.h" #include "core/internal/offline_service_controller.h" diff --git a/cpp/core/internal/service_controller_router.h b/cpp/core/internal/service_controller_router.h index 73e2784c..11d3ba63 100644 --- a/cpp/core/internal/service_controller_router.h +++ b/cpp/core/internal/service_controller_router.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_SERVICE_CONTROLLER_ROUTER_H_ #define CORE_INTERNAL_SERVICE_CONTROLLER_ROUTER_H_ diff --git a/cpp/core/internal/wifi_lan_service_info.cc b/cpp/core/internal/wifi_lan_service_info.cc index 7cfb9b3e..8c22627b 100644 --- a/cpp/core/internal/wifi_lan_service_info.cc +++ b/cpp/core/internal/wifi_lan_service_info.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/wifi_lan_service_info.h" #include diff --git a/cpp/core/internal/wifi_lan_service_info.h b/cpp/core/internal/wifi_lan_service_info.h index eb193c28..97f81b52 100644 --- a/cpp/core/internal/wifi_lan_service_info.h +++ b/cpp/core/internal/wifi_lan_service_info.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_WIFI_LAN_SERVICE_INFO_H_ #define CORE_INTERNAL_WIFI_LAN_SERVICE_INFO_H_ diff --git a/cpp/core/internal/wifi_lan_service_info_test.cc b/cpp/core/internal/wifi_lan_service_info_test.cc index 7b7c5ced..79c4b094 100644 --- a/cpp/core/internal/wifi_lan_service_info_test.cc +++ b/cpp/core/internal/wifi_lan_service_info_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/wifi_lan_service_info.h" #include diff --git a/cpp/core/internal/wifi_lan_upgrade_handler.cc b/cpp/core/internal/wifi_lan_upgrade_handler.cc index 7df38ed7..8ddd1ed5 100644 --- a/cpp/core/internal/wifi_lan_upgrade_handler.cc +++ b/cpp/core/internal/wifi_lan_upgrade_handler.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/internal/wifi_lan_upgrade_handler.h" #include "proto/connections_enums.pb.h" diff --git a/cpp/core/internal/wifi_lan_upgrade_handler.h b/cpp/core/internal/wifi_lan_upgrade_handler.h index 26781c47..54f89804 100644 --- a/cpp/core/internal/wifi_lan_upgrade_handler.h +++ b/cpp/core/internal/wifi_lan_upgrade_handler.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_INTERNAL_WIFI_LAN_UPGRADE_HANDLER_H_ #define CORE_INTERNAL_WIFI_LAN_UPGRADE_HANDLER_H_ diff --git a/cpp/core/listeners.h b/cpp/core/listeners.h index 28ab7a30..3831408a 100644 --- a/cpp/core/listeners.h +++ b/cpp/core/listeners.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_LISTENERS_H_ #define CORE_LISTENERS_H_ diff --git a/cpp/core/options.h b/cpp/core/options.h index 222f0060..05ba1d88 100644 --- a/cpp/core/options.h +++ b/cpp/core/options.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_OPTIONS_H_ #define CORE_OPTIONS_H_ diff --git a/cpp/core/params.h b/cpp/core/params.h index 754d0ec6..a1299dc2 100644 --- a/cpp/core/params.h +++ b/cpp/core/params.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_PARAMS_H_ #define CORE_PARAMS_H_ diff --git a/cpp/core/payload.cc b/cpp/core/payload.cc index cafabcee..5b878465 100644 --- a/cpp/core/payload.cc +++ b/cpp/core/payload.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/payload.h" #include diff --git a/cpp/core/payload.h b/cpp/core/payload.h index 5dd3436f..e07b5894 100644 --- a/cpp/core/payload.h +++ b/cpp/core/payload.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_PAYLOAD_H_ #define CORE_PAYLOAD_H_ diff --git a/cpp/core/status.h b/cpp/core/status.h index ea0de7b6..cce5f41d 100644 --- a/cpp/core/status.h +++ b/cpp/core/status.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_STATUS_H_ #define CORE_STATUS_H_ diff --git a/cpp/core/strategy.cc b/cpp/core/strategy.cc index dfa1637c..a5c46a8e 100644 --- a/cpp/core/strategy.cc +++ b/cpp/core/strategy.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "core/strategy.h" namespace location { diff --git a/cpp/core/strategy.h b/cpp/core/strategy.h index 2cd1dacd..24c64454 100644 --- a/cpp/core/strategy.h +++ b/cpp/core/strategy.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef CORE_STRATEGY_H_ #define CORE_STRATEGY_H_ diff --git a/cpp/platform/BUILD b/cpp/platform/BUILD index 72d19bc6..fea39046 100644 --- a/cpp/platform/BUILD +++ b/cpp/platform/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "utils", srcs = [ diff --git a/cpp/platform/CMakeLists.txt b/cpp/platform/CMakeLists.txt index bac031db..c346e859 100644 --- a/cpp/platform/CMakeLists.txt +++ b/cpp/platform/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_utils STATIC base64_utils.cc file_impl.cc diff --git a/cpp/platform/api/BUILD b/cpp/platform/api/BUILD index f1c769b7..80ee2bf1 100644 --- a/cpp/platform/api/BUILD +++ b/cpp/platform/api/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = [ "//core:__subpackages__", "//platform:__subpackages__", diff --git a/cpp/platform/api/CMakeLists.txt b/cpp/platform/api/CMakeLists.txt index 59343794..935d2d24 100644 --- a/cpp/platform/api/CMakeLists.txt +++ b/cpp/platform/api/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_api STATIC atomic_boolean.h atomic_reference.h diff --git a/cpp/platform/api/atomic_boolean.h b/cpp/platform/api/atomic_boolean.h index 41f94165..84949079 100644 --- a/cpp/platform/api/atomic_boolean.h +++ b/cpp/platform/api/atomic_boolean.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_ATOMIC_BOOLEAN_H_ #define PLATFORM_API_ATOMIC_BOOLEAN_H_ diff --git a/cpp/platform/api/atomic_reference.h b/cpp/platform/api/atomic_reference.h index 52a8b14e..61ee8c9f 100644 --- a/cpp/platform/api/atomic_reference.h +++ b/cpp/platform/api/atomic_reference.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_ATOMIC_REFERENCE_H_ #define PLATFORM_API_ATOMIC_REFERENCE_H_ diff --git a/cpp/platform/api/ble.h b/cpp/platform/api/ble.h index e9d44250..460daf3a 100644 --- a/cpp/platform/api/ble.h +++ b/cpp/platform/api/ble.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_BLE_H_ #define PLATFORM_API_BLE_H_ diff --git a/cpp/platform/api/ble_v2.h b/cpp/platform/api/ble_v2.h index 06a88288..b620ea32 100644 --- a/cpp/platform/api/ble_v2.h +++ b/cpp/platform/api/ble_v2.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_BLE_V2_H_ #define PLATFORM_API_BLE_V2_H_ diff --git a/cpp/platform/api/bluetooth_adapter.h b/cpp/platform/api/bluetooth_adapter.h index 04223492..170afde6 100644 --- a/cpp/platform/api/bluetooth_adapter.h +++ b/cpp/platform/api/bluetooth_adapter.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_BLUETOOTH_ADAPTER_H_ #define PLATFORM_API_BLUETOOTH_ADAPTER_H_ diff --git a/cpp/platform/api/bluetooth_classic.h b/cpp/platform/api/bluetooth_classic.h index 154c7f0f..fdf448a3 100644 --- a/cpp/platform/api/bluetooth_classic.h +++ b/cpp/platform/api/bluetooth_classic.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_BLUETOOTH_CLASSIC_H_ #define PLATFORM_API_BLUETOOTH_CLASSIC_H_ diff --git a/cpp/platform/api/condition_variable.h b/cpp/platform/api/condition_variable.h index b40aa7f5..d0351065 100644 --- a/cpp/platform/api/condition_variable.h +++ b/cpp/platform/api/condition_variable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_CONDITION_VARIABLE_H_ #define PLATFORM_API_CONDITION_VARIABLE_H_ diff --git a/cpp/platform/api/count_down_latch.h b/cpp/platform/api/count_down_latch.h index d5b99f95..ed2cbb45 100644 --- a/cpp/platform/api/count_down_latch.h +++ b/cpp/platform/api/count_down_latch.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_COUNT_DOWN_LATCH_H_ #define PLATFORM_API_COUNT_DOWN_LATCH_H_ diff --git a/cpp/platform/api/executor.h b/cpp/platform/api/executor.h index 2755af36..3c1f68cc 100644 --- a/cpp/platform/api/executor.h +++ b/cpp/platform/api/executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_EXECUTOR_H_ #define PLATFORM_API_EXECUTOR_H_ diff --git a/cpp/platform/api/future.h b/cpp/platform/api/future.h index 166a4ed9..7ba3d8db 100644 --- a/cpp/platform/api/future.h +++ b/cpp/platform/api/future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_FUTURE_H_ #define PLATFORM_API_FUTURE_H_ diff --git a/cpp/platform/api/hash_utils.h b/cpp/platform/api/hash_utils.h index 12083380..4bbe1ae7 100644 --- a/cpp/platform/api/hash_utils.h +++ b/cpp/platform/api/hash_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_HASH_UTILS_H_ #define PLATFORM_API_HASH_UTILS_H_ diff --git a/cpp/platform/api/input_file.h b/cpp/platform/api/input_file.h index ed2c782a..8de2ba5c 100644 --- a/cpp/platform/api/input_file.h +++ b/cpp/platform/api/input_file.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_INPUT_FILE_H_ #define PLATFORM_API_INPUT_FILE_H_ diff --git a/cpp/platform/api/input_stream.h b/cpp/platform/api/input_stream.h index 02eb6502..49a65921 100644 --- a/cpp/platform/api/input_stream.h +++ b/cpp/platform/api/input_stream.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_INPUT_STREAM_H_ #define PLATFORM_API_INPUT_STREAM_H_ diff --git a/cpp/platform/api/listenable_future.h b/cpp/platform/api/listenable_future.h index 3cd306e7..1f5d47ca 100644 --- a/cpp/platform/api/listenable_future.h +++ b/cpp/platform/api/listenable_future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_LISTENABLE_FUTURE_H_ #define PLATFORM_API_LISTENABLE_FUTURE_H_ diff --git a/cpp/platform/api/lock.h b/cpp/platform/api/lock.h index 1c93aa8c..f1256c73 100644 --- a/cpp/platform/api/lock.h +++ b/cpp/platform/api/lock.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_LOCK_H_ #define PLATFORM_API_LOCK_H_ diff --git a/cpp/platform/api/multi_thread_executor.h b/cpp/platform/api/multi_thread_executor.h index 3770fda4..3ffdc46e 100644 --- a/cpp/platform/api/multi_thread_executor.h +++ b/cpp/platform/api/multi_thread_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_MULTI_THREAD_EXECUTOR_H_ #define PLATFORM_API_MULTI_THREAD_EXECUTOR_H_ diff --git a/cpp/platform/api/output_file.h b/cpp/platform/api/output_file.h index b600d539..90d31002 100644 --- a/cpp/platform/api/output_file.h +++ b/cpp/platform/api/output_file.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_OUTPUT_FILE_H_ #define PLATFORM_API_OUTPUT_FILE_H_ diff --git a/cpp/platform/api/output_stream.h b/cpp/platform/api/output_stream.h index fd4d8ea3..a94febff 100644 --- a/cpp/platform/api/output_stream.h +++ b/cpp/platform/api/output_stream.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_OUTPUT_STREAM_H_ #define PLATFORM_API_OUTPUT_STREAM_H_ diff --git a/cpp/platform/api/scheduled_executor.h b/cpp/platform/api/scheduled_executor.h index 2100058b..38410ffd 100644 --- a/cpp/platform/api/scheduled_executor.h +++ b/cpp/platform/api/scheduled_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SCHEDULED_EXECUTOR_H_ #define PLATFORM_API_SCHEDULED_EXECUTOR_H_ diff --git a/cpp/platform/api/server_sync.h b/cpp/platform/api/server_sync.h index e6b01aa9..8c20b368 100644 --- a/cpp/platform/api/server_sync.h +++ b/cpp/platform/api/server_sync.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SERVER_SYNC_H_ #define PLATFORM_API_SERVER_SYNC_H_ diff --git a/cpp/platform/api/settable_future.h b/cpp/platform/api/settable_future.h index f9a5e35c..3aed3d83 100644 --- a/cpp/platform/api/settable_future.h +++ b/cpp/platform/api/settable_future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SETTABLE_FUTURE_H_ #define PLATFORM_API_SETTABLE_FUTURE_H_ diff --git a/cpp/platform/api/single_thread_executor.h b/cpp/platform/api/single_thread_executor.h index e3338648..ed92e0fa 100644 --- a/cpp/platform/api/single_thread_executor.h +++ b/cpp/platform/api/single_thread_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SINGLE_THREAD_EXECUTOR_H_ #define PLATFORM_API_SINGLE_THREAD_EXECUTOR_H_ diff --git a/cpp/platform/api/socket.h b/cpp/platform/api/socket.h index e6e69775..915a85ba 100644 --- a/cpp/platform/api/socket.h +++ b/cpp/platform/api/socket.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SOCKET_H_ #define PLATFORM_API_SOCKET_H_ diff --git a/cpp/platform/api/submittable_executor.h b/cpp/platform/api/submittable_executor.h index 3d7bd625..3554165b 100644 --- a/cpp/platform/api/submittable_executor.h +++ b/cpp/platform/api/submittable_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SUBMITTABLE_EXECUTOR_H_ #define PLATFORM_API_SUBMITTABLE_EXECUTOR_H_ diff --git a/cpp/platform/api/system_clock.h b/cpp/platform/api/system_clock.h index d85ae1ca..60e3e2ed 100644 --- a/cpp/platform/api/system_clock.h +++ b/cpp/platform/api/system_clock.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_SYSTEM_CLOCK_H_ #define PLATFORM_API_SYSTEM_CLOCK_H_ diff --git a/cpp/platform/api/thread_utils.h b/cpp/platform/api/thread_utils.h index e477662b..50dd3ea2 100644 --- a/cpp/platform/api/thread_utils.h +++ b/cpp/platform/api/thread_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_THREAD_UTILS_H_ #define PLATFORM_API_THREAD_UTILS_H_ diff --git a/cpp/platform/api/webrtc.h b/cpp/platform/api/webrtc.h index 35f53e60..fd73f19d 100644 --- a/cpp/platform/api/webrtc.h +++ b/cpp/platform/api/webrtc.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_WEBRTC_H_ #define PLATFORM_API_WEBRTC_H_ diff --git a/cpp/platform/api/wifi.h b/cpp/platform/api/wifi.h index 6631d036..3eeb83e5 100644 --- a/cpp/platform/api/wifi.h +++ b/cpp/platform/api/wifi.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_WIFI_H_ #define PLATFORM_API_WIFI_H_ diff --git a/cpp/platform/api/wifi_lan.h b/cpp/platform/api/wifi_lan.h index 1b13b393..744813f8 100644 --- a/cpp/platform/api/wifi_lan.h +++ b/cpp/platform/api/wifi_lan.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API_WIFI_LAN_H_ #define PLATFORM_API_WIFI_LAN_H_ diff --git a/cpp/platform/api2/BUILD b/cpp/platform/api2/BUILD index 5313b366..6051f5c4 100644 --- a/cpp/platform/api2/BUILD +++ b/cpp/platform/api2/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + package(default_visibility = [ "//core:__subpackages__", "//platform:__subpackages__", diff --git a/cpp/platform/api2/CMakeLists.txt b/cpp/platform/api2/CMakeLists.txt index 64e8a7a7..9639502f 100644 --- a/cpp/platform/api2/CMakeLists.txt +++ b/cpp/platform/api2/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_api2 STATIC) target_sources(platform_api2 diff --git a/cpp/platform/api2/atomic_boolean.h b/cpp/platform/api2/atomic_boolean.h index b5e729fa..52ac5831 100644 --- a/cpp/platform/api2/atomic_boolean.h +++ b/cpp/platform/api2/atomic_boolean.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_ATOMIC_BOOLEAN_H_ #define PLATFORM_API2_ATOMIC_BOOLEAN_H_ diff --git a/cpp/platform/api2/atomic_reference.h b/cpp/platform/api2/atomic_reference.h index 8740be0d..7e6b6d96 100644 --- a/cpp/platform/api2/atomic_reference.h +++ b/cpp/platform/api2/atomic_reference.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_ATOMIC_REFERENCE_H_ #define PLATFORM_API2_ATOMIC_REFERENCE_H_ diff --git a/cpp/platform/api2/ble.h b/cpp/platform/api2/ble.h index 337f0717..a9e79823 100644 --- a/cpp/platform/api2/ble.h +++ b/cpp/platform/api2/ble.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_BLE_H_ #define PLATFORM_API2_BLE_H_ diff --git a/cpp/platform/api2/ble_v2.h b/cpp/platform/api2/ble_v2.h index e0573c55..58c433fb 100644 --- a/cpp/platform/api2/ble_v2.h +++ b/cpp/platform/api2/ble_v2.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_BLE_V2_H_ #define PLATFORM_API2_BLE_V2_H_ diff --git a/cpp/platform/api2/bluetooth_adapter.h b/cpp/platform/api2/bluetooth_adapter.h index 21171a01..58bf9dad 100644 --- a/cpp/platform/api2/bluetooth_adapter.h +++ b/cpp/platform/api2/bluetooth_adapter.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_BLUETOOTH_ADAPTER_H_ #define PLATFORM_API2_BLUETOOTH_ADAPTER_H_ diff --git a/cpp/platform/api2/bluetooth_classic.h b/cpp/platform/api2/bluetooth_classic.h index 57de4ddc..b693e671 100644 --- a/cpp/platform/api2/bluetooth_classic.h +++ b/cpp/platform/api2/bluetooth_classic.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_BLUETOOTH_CLASSIC_H_ #define PLATFORM_API2_BLUETOOTH_CLASSIC_H_ diff --git a/cpp/platform/api2/condition_variable.h b/cpp/platform/api2/condition_variable.h index 936a3c36..f0fd7573 100644 --- a/cpp/platform/api2/condition_variable.h +++ b/cpp/platform/api2/condition_variable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_CONDITION_VARIABLE_H_ #define PLATFORM_API2_CONDITION_VARIABLE_H_ diff --git a/cpp/platform/api2/count_down_latch.h b/cpp/platform/api2/count_down_latch.h index ae0dfc86..8ba4a3c0 100644 --- a/cpp/platform/api2/count_down_latch.h +++ b/cpp/platform/api2/count_down_latch.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_COUNT_DOWN_LATCH_H_ #define PLATFORM_API2_COUNT_DOWN_LATCH_H_ diff --git a/cpp/platform/api2/executor.h b/cpp/platform/api2/executor.h index ee561894..0ed336c3 100644 --- a/cpp/platform/api2/executor.h +++ b/cpp/platform/api2/executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_EXECUTOR_H_ #define PLATFORM_API2_EXECUTOR_H_ diff --git a/cpp/platform/api2/future.h b/cpp/platform/api2/future.h index 7f46c484..4d566d30 100644 --- a/cpp/platform/api2/future.h +++ b/cpp/platform/api2/future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_FUTURE_H_ #define PLATFORM_API2_FUTURE_H_ diff --git a/cpp/platform/api2/hash_utils.h b/cpp/platform/api2/hash_utils.h index fab68f32..fc692ad3 100644 --- a/cpp/platform/api2/hash_utils.h +++ b/cpp/platform/api2/hash_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_HASH_UTILS_H_ #define PLATFORM_API2_HASH_UTILS_H_ diff --git a/cpp/platform/api2/input_file.h b/cpp/platform/api2/input_file.h index 0191aff8..29aafb72 100644 --- a/cpp/platform/api2/input_file.h +++ b/cpp/platform/api2/input_file.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_INPUT_FILE_H_ #define PLATFORM_API2_INPUT_FILE_H_ diff --git a/cpp/platform/api2/input_stream.h b/cpp/platform/api2/input_stream.h index f91a5466..4caf598f 100644 --- a/cpp/platform/api2/input_stream.h +++ b/cpp/platform/api2/input_stream.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_INPUT_STREAM_H_ #define PLATFORM_API2_INPUT_STREAM_H_ diff --git a/cpp/platform/api2/listenable_future.h b/cpp/platform/api2/listenable_future.h index 2993bc88..0007e98c 100644 --- a/cpp/platform/api2/listenable_future.h +++ b/cpp/platform/api2/listenable_future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_LISTENABLE_FUTURE_H_ #define PLATFORM_API2_LISTENABLE_FUTURE_H_ diff --git a/cpp/platform/api2/multi_thread_executor.h b/cpp/platform/api2/multi_thread_executor.h index f910bbc4..4f4bb951 100644 --- a/cpp/platform/api2/multi_thread_executor.h +++ b/cpp/platform/api2/multi_thread_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_MULTI_THREAD_EXECUTOR_H_ #define PLATFORM_API2_MULTI_THREAD_EXECUTOR_H_ diff --git a/cpp/platform/api2/mutex.h b/cpp/platform/api2/mutex.h index d4dbaf61..a097da40 100644 --- a/cpp/platform/api2/mutex.h +++ b/cpp/platform/api2/mutex.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_MUTEX_H_ #define PLATFORM_API2_MUTEX_H_ diff --git a/cpp/platform/api2/output_file.h b/cpp/platform/api2/output_file.h index 4ac962e8..1375c65c 100644 --- a/cpp/platform/api2/output_file.h +++ b/cpp/platform/api2/output_file.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_OUTPUT_FILE_H_ #define PLATFORM_API2_OUTPUT_FILE_H_ diff --git a/cpp/platform/api2/output_stream.h b/cpp/platform/api2/output_stream.h index b9336ad1..95be4cd4 100644 --- a/cpp/platform/api2/output_stream.h +++ b/cpp/platform/api2/output_stream.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_OUTPUT_STREAM_H_ #define PLATFORM_API2_OUTPUT_STREAM_H_ diff --git a/cpp/platform/api2/scheduled_executor.h b/cpp/platform/api2/scheduled_executor.h index ae773ee1..2bc068a5 100644 --- a/cpp/platform/api2/scheduled_executor.h +++ b/cpp/platform/api2/scheduled_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SCHEDULED_EXECUTOR_H_ #define PLATFORM_API2_SCHEDULED_EXECUTOR_H_ diff --git a/cpp/platform/api2/server_sync.h b/cpp/platform/api2/server_sync.h index 47bc3aa5..46d5c5e2 100644 --- a/cpp/platform/api2/server_sync.h +++ b/cpp/platform/api2/server_sync.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SERVER_SYNC_H_ #define PLATFORM_API2_SERVER_SYNC_H_ diff --git a/cpp/platform/api2/settable_future.h b/cpp/platform/api2/settable_future.h index 2089173c..73617ae5 100644 --- a/cpp/platform/api2/settable_future.h +++ b/cpp/platform/api2/settable_future.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SETTABLE_FUTURE_H_ #define PLATFORM_API2_SETTABLE_FUTURE_H_ diff --git a/cpp/platform/api2/single_thread_executor.h b/cpp/platform/api2/single_thread_executor.h index 990f2fe7..56319d3e 100644 --- a/cpp/platform/api2/single_thread_executor.h +++ b/cpp/platform/api2/single_thread_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SINGLE_THREAD_EXECUTOR_H_ #define PLATFORM_API2_SINGLE_THREAD_EXECUTOR_H_ diff --git a/cpp/platform/api2/socket.h b/cpp/platform/api2/socket.h index 0f855609..29113ca8 100644 --- a/cpp/platform/api2/socket.h +++ b/cpp/platform/api2/socket.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SOCKET_H_ #define PLATFORM_API2_SOCKET_H_ diff --git a/cpp/platform/api2/submittable_executor.h b/cpp/platform/api2/submittable_executor.h index 43f16f56..c55f7a5a 100644 --- a/cpp/platform/api2/submittable_executor.h +++ b/cpp/platform/api2/submittable_executor.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SUBMITTABLE_EXECUTOR_H_ #define PLATFORM_API2_SUBMITTABLE_EXECUTOR_H_ diff --git a/cpp/platform/api2/system_clock.h b/cpp/platform/api2/system_clock.h index 3b0b8090..cf1442e9 100644 --- a/cpp/platform/api2/system_clock.h +++ b/cpp/platform/api2/system_clock.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_SYSTEM_CLOCK_H_ #define PLATFORM_API2_SYSTEM_CLOCK_H_ diff --git a/cpp/platform/api2/thread_utils.h b/cpp/platform/api2/thread_utils.h index 990c0ec2..013f3a3d 100644 --- a/cpp/platform/api2/thread_utils.h +++ b/cpp/platform/api2/thread_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_THREAD_UTILS_H_ #define PLATFORM_API2_THREAD_UTILS_H_ diff --git a/cpp/platform/api2/webrtc.h b/cpp/platform/api2/webrtc.h index e1dbde9e..23ab20ed 100644 --- a/cpp/platform/api2/webrtc.h +++ b/cpp/platform/api2/webrtc.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_WEBRTC_H_ #define PLATFORM_API2_WEBRTC_H_ diff --git a/cpp/platform/api2/wifi.h b/cpp/platform/api2/wifi.h index 74f0e5c9..93552823 100644 --- a/cpp/platform/api2/wifi.h +++ b/cpp/platform/api2/wifi.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_API2_WIFI_H_ #define PLATFORM_API2_WIFI_H_ diff --git a/cpp/platform/base64_utils.cc b/cpp/platform/base64_utils.cc index 9c5f2fa8..2210970d 100644 --- a/cpp/platform/base64_utils.cc +++ b/cpp/platform/base64_utils.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/base64_utils.h" #include "absl/strings/escaping.h" diff --git a/cpp/platform/base64_utils.h b/cpp/platform/base64_utils.h index 042dc386..615b4e82 100644 --- a/cpp/platform/base64_utils.h +++ b/cpp/platform/base64_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_BASE64_UTILS_H_ #define PLATFORM_BASE64_UTILS_H_ diff --git a/cpp/platform/byte_array.h b/cpp/platform/byte_array.h index 49f9bf88..79bbd52b 100644 --- a/cpp/platform/byte_array.h +++ b/cpp/platform/byte_array.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_BYTE_ARRAY_H_ #define PLATFORM_BYTE_ARRAY_H_ diff --git a/cpp/platform/byte_array_test.cc b/cpp/platform/byte_array_test.cc index 8bd5ee97..3989c4a4 100644 --- a/cpp/platform/byte_array_test.cc +++ b/cpp/platform/byte_array_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/byte_array.h" #include "gmock/gmock.h" diff --git a/cpp/platform/callable.h b/cpp/platform/callable.h index 792a207d..79465ad9 100644 --- a/cpp/platform/callable.h +++ b/cpp/platform/callable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_CALLABLE_H_ #define PLATFORM_CALLABLE_H_ diff --git a/cpp/platform/cancelable.h b/cpp/platform/cancelable.h index 74a2d634..2a506896 100644 --- a/cpp/platform/cancelable.h +++ b/cpp/platform/cancelable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_CANCELABLE_H_ #define PLATFORM_CANCELABLE_H_ diff --git a/cpp/platform/cancelable_alarm.cc b/cpp/platform/cancelable_alarm.cc index 326a893e..faa729fa 100644 --- a/cpp/platform/cancelable_alarm.cc +++ b/cpp/platform/cancelable_alarm.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/cancelable_alarm.h" #include "platform/synchronized.h" diff --git a/cpp/platform/cancelable_alarm.h b/cpp/platform/cancelable_alarm.h index d5549cf6..3551ecca 100644 --- a/cpp/platform/cancelable_alarm.h +++ b/cpp/platform/cancelable_alarm.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_CANCELABLE_ALARM_H_ #define PLATFORM_CANCELABLE_ALARM_H_ diff --git a/cpp/platform/container_of.h b/cpp/platform/container_of.h index ccdccd7a..e6f61127 100644 --- a/cpp/platform/container_of.h +++ b/cpp/platform/container_of.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_CONTAINER_OF_H_ #define PLATFORM_CONTAINER_OF_H_ diff --git a/cpp/platform/container_of_test.cc b/cpp/platform/container_of_test.cc index 72c5d8c6..46dba31e 100644 --- a/cpp/platform/container_of_test.cc +++ b/cpp/platform/container_of_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/container_of.h" #include "gmock/gmock.h" diff --git a/cpp/platform/exception.h b/cpp/platform/exception.h index 485f03a3..9976e838 100644 --- a/cpp/platform/exception.h +++ b/cpp/platform/exception.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_EXCEPTION_H_ #define PLATFORM_EXCEPTION_H_ diff --git a/cpp/platform/exception_test.cc b/cpp/platform/exception_test.cc index d36e2d85..31058398 100644 --- a/cpp/platform/exception_test.cc +++ b/cpp/platform/exception_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/exception.h" #include diff --git a/cpp/platform/file_impl.cc b/cpp/platform/file_impl.cc index 67bab338..91c596db 100644 --- a/cpp/platform/file_impl.cc +++ b/cpp/platform/file_impl.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/file_impl.h" #include diff --git a/cpp/platform/file_impl.h b/cpp/platform/file_impl.h index db522c23..9945afe7 100644 --- a/cpp/platform/file_impl.h +++ b/cpp/platform/file_impl.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_FILE_IMPL_H_ #define PLATFORM_FILE_IMPL_H_ diff --git a/cpp/platform/file_impl_test.cc b/cpp/platform/file_impl_test.cc index f37e0b91..b6b03784 100644 --- a/cpp/platform/file_impl_test.cc +++ b/cpp/platform/file_impl_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/file_impl.h" #include diff --git a/cpp/platform/impl/default/BUILD b/cpp/platform/impl/default/BUILD index 87f28f9c..3e5dbe6d 100644 --- a/cpp/platform/impl/default/BUILD +++ b/cpp/platform/impl/default/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "default", srcs = [ diff --git a/cpp/platform/impl/default/CMakeLists.txt b/cpp/platform/impl/default/CMakeLists.txt index 222d9ae0..a542481c 100644 --- a/cpp/platform/impl/default/CMakeLists.txt +++ b/cpp/platform/impl/default/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_impl_default STATIC) target_sources(platform_impl_default diff --git a/cpp/platform/impl/default/default_condition_variable.cc b/cpp/platform/impl/default/default_condition_variable.cc index d7e3811f..a48d77a3 100644 --- a/cpp/platform/impl/default/default_condition_variable.cc +++ b/cpp/platform/impl/default/default_condition_variable.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/impl/default/default_condition_variable.h" namespace location { diff --git a/cpp/platform/impl/default/default_condition_variable.h b/cpp/platform/impl/default/default_condition_variable.h index 4aa1343f..76d7cf8d 100644 --- a/cpp/platform/impl/default/default_condition_variable.h +++ b/cpp/platform/impl/default/default_condition_variable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_IMPL_DEFAULT_DEFAULT_CONDITION_VARIABLE_H_ #define PLATFORM_IMPL_DEFAULT_DEFAULT_CONDITION_VARIABLE_H_ diff --git a/cpp/platform/impl/default/default_lock.cc b/cpp/platform/impl/default/default_lock.cc index bfd3cf0b..df67c6c1 100644 --- a/cpp/platform/impl/default/default_lock.cc +++ b/cpp/platform/impl/default/default_lock.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/impl/default/default_lock.h" namespace location { diff --git a/cpp/platform/impl/default/default_lock.h b/cpp/platform/impl/default/default_lock.h index 18d50e44..3e1b2e41 100644 --- a/cpp/platform/impl/default/default_lock.h +++ b/cpp/platform/impl/default/default_lock.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_IMPL_DEFAULT_DEFAULT_LOCK_H_ #define PLATFORM_IMPL_DEFAULT_DEFAULT_LOCK_H_ diff --git a/cpp/platform/impl/default/default_platform.cc b/cpp/platform/impl/default/default_platform.cc index 3d41d42b..876ad0f3 100644 --- a/cpp/platform/impl/default/default_platform.cc +++ b/cpp/platform/impl/default/default_platform.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/impl/default/default_platform.h" #include "platform/impl/default/default_condition_variable.h" diff --git a/cpp/platform/impl/default/default_platform.h b/cpp/platform/impl/default/default_platform.h index 0d001825..54132b19 100644 --- a/cpp/platform/impl/default/default_platform.h +++ b/cpp/platform/impl/default/default_platform.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_IMPL_DEFAULT_DEFAULT_PLATFORM_H_ #define PLATFORM_IMPL_DEFAULT_DEFAULT_PLATFORM_H_ diff --git a/cpp/platform/impl/ios/BUILD b/cpp/platform/impl/ios/BUILD index a75790f9..089b92d6 100644 --- a/cpp/platform/impl/ios/BUILD +++ b/cpp/platform/impl/ios/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + objc_library( name = "ios", visibility = [ diff --git a/cpp/platform/impl/sample/BUILD b/cpp/platform/impl/sample/BUILD index 892ccd51..e75257c7 100644 --- a/cpp/platform/impl/sample/BUILD +++ b/cpp/platform/impl/sample/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "sample", srcs = [ diff --git a/cpp/platform/impl/sample/CMakeLists.txt b/cpp/platform/impl/sample/CMakeLists.txt index 0944ac4f..c5929ffe 100644 --- a/cpp/platform/impl/sample/CMakeLists.txt +++ b/cpp/platform/impl/sample/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_impl_sample STATIC) target_sources(platform_impl_sample diff --git a/cpp/platform/impl/sample/sample_platform.h b/cpp/platform/impl/sample/sample_platform.h index 113f4636..78b154c5 100644 --- a/cpp/platform/impl/sample/sample_platform.h +++ b/cpp/platform/impl/sample/sample_platform.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_IMPL_SAMPLE_SAMPLE_PLATFORM_H_ #define PLATFORM_IMPL_SAMPLE_SAMPLE_PLATFORM_H_ diff --git a/cpp/platform/impl/sample/sample_wifi_medium.cc b/cpp/platform/impl/sample/sample_wifi_medium.cc index 89b68391..2031cc8e 100644 --- a/cpp/platform/impl/sample/sample_wifi_medium.cc +++ b/cpp/platform/impl/sample/sample_wifi_medium.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/impl/sample/sample_wifi_medium.h" #include diff --git a/cpp/platform/impl/sample/sample_wifi_medium.h b/cpp/platform/impl/sample/sample_wifi_medium.h index e64f1b8e..46acfc2b 100644 --- a/cpp/platform/impl/sample/sample_wifi_medium.h +++ b/cpp/platform/impl/sample/sample_wifi_medium.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_IMPL_SAMPLE_SAMPLE_WIFI_MEDIUM_H_ #define PLATFORM_IMPL_SAMPLE_SAMPLE_WIFI_MEDIUM_H_ diff --git a/cpp/platform/logging.h b/cpp/platform/logging.h index 836ce62f..96511073 100644 --- a/cpp/platform/logging.h +++ b/cpp/platform/logging.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_LOGGING_H_ #define PLATFORM_LOGGING_H_ diff --git a/cpp/platform/pipe.cc b/cpp/platform/pipe.cc index e5572127..52779b95 100644 --- a/cpp/platform/pipe.cc +++ b/cpp/platform/pipe.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/pipe.h" #include "platform/synchronized.h" diff --git a/cpp/platform/pipe.h b/cpp/platform/pipe.h index 29e06d11..c4a8ca72 100644 --- a/cpp/platform/pipe.h +++ b/cpp/platform/pipe.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PIPE_H_ #define PLATFORM_PIPE_H_ diff --git a/cpp/platform/pipe_test.cc b/cpp/platform/pipe_test.cc index f4f2799b..7d511c8a 100644 --- a/cpp/platform/pipe_test.cc +++ b/cpp/platform/pipe_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/pipe.h" #include diff --git a/cpp/platform/port/BUILD b/cpp/platform/port/BUILD index 80447569..6b0293d6 100644 --- a/cpp/platform/port/BUILD +++ b/cpp/platform/port/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( name = "config", hdrs = [ diff --git a/cpp/platform/port/CMakeLists.txt b/cpp/platform/port/CMakeLists.txt index 18dbe0c3..ac2b8f16 100644 --- a/cpp/platform/port/CMakeLists.txt +++ b/cpp/platform/port/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_library(platform_port_config_private INTERFACE) target_sources(platform_port_config_private diff --git a/cpp/platform/port/config.h b/cpp/platform/port/config.h index 19857578..f7da653c 100644 --- a/cpp/platform/port/config.h +++ b/cpp/platform/port/config.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PORT_CONFIG_H_ #define PLATFORM_PORT_CONFIG_H_ diff --git a/cpp/platform/port/down_cast.h b/cpp/platform/port/down_cast.h index 161884c8..6cc2fcb7 100644 --- a/cpp/platform/port/down_cast.h +++ b/cpp/platform/port/down_cast.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PORT_DOWN_CAST_H_ #define PLATFORM_PORT_DOWN_CAST_H_ diff --git a/cpp/platform/port/string.h b/cpp/platform/port/string.h index d9a0cdff..e0cfda4a 100644 --- a/cpp/platform/port/string.h +++ b/cpp/platform/port/string.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PORT_STRING_H_ #define PLATFORM_PORT_STRING_H_ diff --git a/cpp/platform/prng.cc b/cpp/platform/prng.cc index 7f98870c..e4512346 100644 --- a/cpp/platform/prng.cc +++ b/cpp/platform/prng.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/prng.h" #include diff --git a/cpp/platform/prng.h b/cpp/platform/prng.h index 9a7ff34a..4ed2198d 100644 --- a/cpp/platform/prng.h +++ b/cpp/platform/prng.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PRNG_H_ #define PLATFORM_PRNG_H_ diff --git a/cpp/platform/prng_test.cc b/cpp/platform/prng_test.cc index e4115944..328e3687 100644 --- a/cpp/platform/prng_test.cc +++ b/cpp/platform/prng_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/prng.h" #include "gtest/gtest.h" diff --git a/cpp/platform/ptr.h b/cpp/platform/ptr.h index 6527db19..45c5e55d 100644 --- a/cpp/platform/ptr.h +++ b/cpp/platform/ptr.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_PTR_H_ #define PLATFORM_PTR_H_ diff --git a/cpp/platform/ptr_test.cc b/cpp/platform/ptr_test.cc index adc73c08..2ce2f9b0 100644 --- a/cpp/platform/ptr_test.cc +++ b/cpp/platform/ptr_test.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/ptr.h" #include "gtest/gtest.h" diff --git a/cpp/platform/reliability_utils.cc b/cpp/platform/reliability_utils.cc index 1f296eb8..917a2fa7 100644 --- a/cpp/platform/reliability_utils.cc +++ b/cpp/platform/reliability_utils.cc @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "platform/reliability_utils.h" namespace location { diff --git a/cpp/platform/reliability_utils.h b/cpp/platform/reliability_utils.h index a4262e89..4c387b60 100644 --- a/cpp/platform/reliability_utils.h +++ b/cpp/platform/reliability_utils.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_RELIABILITY_UTILS_H_ #define PLATFORM_RELIABILITY_UTILS_H_ diff --git a/cpp/platform/runnable.h b/cpp/platform/runnable.h index e70bd512..76d0d4be 100644 --- a/cpp/platform/runnable.h +++ b/cpp/platform/runnable.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_RUNNABLE_H_ #define PLATFORM_RUNNABLE_H_ diff --git a/cpp/platform/synchronized.h b/cpp/platform/synchronized.h index 81b37789..c95a1dd5 100644 --- a/cpp/platform/synchronized.h +++ b/cpp/platform/synchronized.h @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef PLATFORM_SYNCHRONIZED_H_ #define PLATFORM_SYNCHRONIZED_H_ diff --git a/proto/BUILD b/proto/BUILD index 6446d8f9..ae34afb9 100644 --- a/proto/BUILD +++ b/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Proto for Nearby products load("//net/proto2/contrib/portable/cc:portable_proto_build_defs.bzl", "portable_proto_library") diff --git a/proto/CMakeLists.txt b/proto/CMakeLists.txt index 7eb4378b..4c6002d9 100644 --- a/proto/CMakeLists.txt +++ b/proto/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_cc_proto_library( proto_bootstrap_enums_cc_proto PROTOS bootstrap_enums.proto diff --git a/proto/bootstrap_enums.proto b/proto/bootstrap_enums.proto index 71bcfad6..777ba3b0 100644 --- a/proto/bootstrap_enums.proto +++ b/proto/bootstrap_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto; diff --git a/proto/connections/BUILD b/proto/connections/BUILD index c7c295c2..03567b3d 100644 --- a/proto/connections/BUILD +++ b/proto/connections/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("//net/proto2/contrib/portable/cc:portable_proto_build_defs.bzl", "portable_proto_library") proto_library( diff --git a/proto/connections/CMakeLists.txt b/proto/connections/CMakeLists.txt index 0b36c455..9195a301 100644 --- a/proto/connections/CMakeLists.txt +++ b/proto/connections/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_cc_proto_library( proto_offline_wire_formats_cc_proto PROTOS offline_wire_formats.proto diff --git a/proto/connections/offline_wire_formats.proto b/proto/connections/offline_wire_formats.proto index b5d2901e..5e2f3360 100644 --- a/proto/connections/offline_wire_formats.proto +++ b/proto/connections/offline_wire_formats.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.connections; diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index cbd1d5d6..1961c20b 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -1,15 +1,17 @@ -// nearby:google3-begin -// Any changes in this file maybe cause the unmapped result in the PLX tables. -// Please remember to update the table schemas: -// 1. Check your changes are rolled out in the MPM. -// https://mpmbrowse.corp.google.com/package/location/nearby/lingo -// 2. Check the new lingo job is scheduled and completed. -// https://borgcron-dashboard.corp.google.com/#user=social-copresence-batch -// 3. Runs PLX script to update schema. -// https://plx.corp.google.com/scripts2/script_e1._9eb6f3_e3cd_419b_b483_c1e42abc824a +// Copyright 2020 Google LLC // -// Or you can wait one or two days then run the above Step3. dircetly. -// nearby:google3-end +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; diff --git a/proto/discovery_enums.proto b/proto/discovery_enums.proto index c8b0848f..9e9adffb 100644 --- a/proto/discovery_enums.proto +++ b/proto/discovery_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto; diff --git a/proto/magic_pair_enums.proto b/proto/magic_pair_enums.proto index 275be438..c74dc399 100644 --- a/proto/magic_pair_enums.proto +++ b/proto/magic_pair_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto; diff --git a/proto/nearby_client_enums.proto b/proto/nearby_client_enums.proto index aec58708..602e338d 100644 --- a/proto/nearby_client_enums.proto +++ b/proto/nearby_client_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto; @@ -10,12 +24,6 @@ option objc_class_prefix = "GNCP"; enum UserType { UNKNOWN_USER_TYPE = 0; PRODUCTION = 1; -// nearby:google3-begin - MODULEFOOD = 2; - TEST = 3; - PRESTO_DOGFOOD = 4; - AUTO_TEST = 5; -// nearby:google3-end } // The client that is logging. diff --git a/proto/nearby_event_codes.proto b/proto/nearby_event_codes.proto index 9ee412a0..3981e09c 100644 --- a/proto/nearby_event_codes.proto +++ b/proto/nearby_event_codes.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto; diff --git a/proto/setup_enums.proto b/proto/setup_enums.proto index 79880c0f..a2399207 100644 --- a/proto/setup_enums.proto +++ b/proto/setup_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto.setup; diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 2447a135..bbb792c5 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -1,3 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + syntax = "proto2"; package location.nearby.proto.sharing; diff --git a/script/oss.py b/script/oss.py index 7010ed46..be08927c 100755 --- a/script/oss.py +++ b/script/oss.py @@ -1,5 +1,20 @@ #!/usr/bin/python3 +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + import argparse import os import shutil