diff --git a/android_env/__init__.py b/android_env/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/__init__.py +++ b/android_env/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/components/__init__.py b/android_env/components/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/components/__init__.py +++ b/android_env/components/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/components/action_fns.py b/android_env/components/action_fns.py index df092b48..2b31e582 100644 --- a/android_env/components/action_fns.py +++ b/android_env/components/action_fns.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Functions to convert actions between different components' formats.""" from absl import logging diff --git a/android_env/components/action_fns_test.py b/android_env/components/action_fns_test.py index 0deaf0ff..036f8992 100644 --- a/android_env/components/action_fns_test.py +++ b/android_env/components/action_fns_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + from unittest import mock from absl.testing import absltest diff --git a/android_env/components/action_type.py b/android_env/components/action_type.py index 4018c0fa..351715b5 100644 --- a/android_env/components/action_type.py +++ b/android_env/components/action_type.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """The different kinds of actions that AndroidEnv supports. The native action space of AndroidEnv consists of a tuple consisting of diff --git a/android_env/components/adb_call_parser.py b/android_env/components/adb_call_parser.py index 2578fd89..45381019 100644 --- a/android_env/components/adb_call_parser.py +++ b/android_env/components/adb_call_parser.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Processes adb_pb2.AdbRequest commands.""" import os diff --git a/android_env/components/adb_call_parser_test.py b/android_env/components/adb_call_parser_test.py index 5f4e2aad..b01df804 100644 --- a/android_env/components/adb_call_parser_test.py +++ b/android_env/components/adb_call_parser_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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 builtins import os import subprocess diff --git a/android_env/components/adb_controller.py b/android_env/components/adb_controller.py index 7230efb8..e0f04739 100644 --- a/android_env/components/adb_controller.py +++ b/android_env/components/adb_controller.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A class to manage and control an external ADB process.""" import os diff --git a/android_env/components/adb_controller_test.py b/android_env/components/adb_controller_test.py index e9acc995..290a3ab0 100644 --- a/android_env/components/adb_controller_test.py +++ b/android_env/components/adb_controller_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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 os import subprocess import time diff --git a/android_env/components/adb_log_stream.py b/android_env/components/adb_log_stream.py index 71554360..0aef3ed6 100644 --- a/android_env/components/adb_log_stream.py +++ b/android_env/components/adb_log_stream.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Class for a stream of logs output by a locally running emulator.""" import subprocess diff --git a/android_env/components/adb_log_stream_test.py b/android_env/components/adb_log_stream_test.py index 2800d076..cbc42f52 100644 --- a/android_env/components/adb_log_stream_test.py +++ b/android_env/components/adb_log_stream_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for adb_log_stream.""" import subprocess diff --git a/android_env/components/app_screen_checker.py b/android_env/components/app_screen_checker.py index e009e52f..c500ed1f 100644 --- a/android_env/components/app_screen_checker.py +++ b/android_env/components/app_screen_checker.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Determines if the current app screen matches an expected app screen.""" from collections.abc import Callable, Sequence diff --git a/android_env/components/app_screen_checker_test.py b/android_env/components/app_screen_checker_test.py index 49ede1e0..938aad56 100644 --- a/android_env/components/app_screen_checker_test.py +++ b/android_env/components/app_screen_checker_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.app_screen_checker.""" import re diff --git a/android_env/components/config_classes.py b/android_env/components/config_classes.py index f9e0fff2..775e1074 100644 --- a/android_env/components/config_classes.py +++ b/android_env/components/config_classes.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Dataclass definitions used for instantiating AndroidEnv components.""" import dataclasses diff --git a/android_env/components/coordinator.py b/android_env/components/coordinator.py index 1e84d4a2..a3383df7 100644 --- a/android_env/components/coordinator.py +++ b/android_env/components/coordinator.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Coordinator handles interaction between internal components of AndroidEnv.""" import copy diff --git a/android_env/components/coordinator_test.py b/android_env/components/coordinator_test.py index 54eda040..b263889c 100644 --- a/android_env/components/coordinator_test.py +++ b/android_env/components/coordinator_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.coordinator.""" import tempfile diff --git a/android_env/components/device_settings.py b/android_env/components/device_settings.py index 6fabb607..f1076613 100644 --- a/android_env/components/device_settings.py +++ b/android_env/components/device_settings.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Sets and gets some global settings on an Android device.""" from typing import Final diff --git a/android_env/components/device_settings_test.py b/android_env/components/device_settings_test.py index 9cb29b2c..e54b0577 100644 --- a/android_env/components/device_settings_test.py +++ b/android_env/components/device_settings_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + from unittest import mock from absl.testing import absltest diff --git a/android_env/components/dumpsys_thread.py b/android_env/components/dumpsys_thread.py index 2ee5a0e8..847437ae 100644 --- a/android_env/components/dumpsys_thread.py +++ b/android_env/components/dumpsys_thread.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A ThreadFunction that runs and parses adb dumpsys.""" import concurrent.futures diff --git a/android_env/components/dumpsys_thread_test.py b/android_env/components/dumpsys_thread_test.py index 24352584..512e677e 100644 --- a/android_env/components/dumpsys_thread_test.py +++ b/android_env/components/dumpsys_thread_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.dumpsys_thread.""" from unittest import mock diff --git a/android_env/components/errors.py b/android_env/components/errors.py index c64abec9..7133fbf7 100644 --- a/android_env/components/errors.py +++ b/android_env/components/errors.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Definitions of exceptions used by AndroidEnv.""" diff --git a/android_env/components/errors_test.py b/android_env/components/errors_test.py index 07bf0ceb..95981f84 100644 --- a/android_env/components/errors_test.py +++ b/android_env/components/errors_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for errors.py.""" from absl.testing import absltest diff --git a/android_env/components/log_stream.py b/android_env/components/log_stream.py index 825f450d..5ec3eac3 100644 --- a/android_env/components/log_stream.py +++ b/android_env/components/log_stream.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Abstract class for handling a stream of logs from a simulator.""" import abc diff --git a/android_env/components/log_stream_test.py b/android_env/components/log_stream_test.py index 0165b7f7..d01ac18d 100644 --- a/android_env/components/log_stream_test.py +++ b/android_env/components/log_stream_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for log_stream.""" from absl.testing import absltest diff --git a/android_env/components/logcat_thread.py b/android_env/components/logcat_thread.py index 4b8edd93..dc1fb070 100644 --- a/android_env/components/logcat_thread.py +++ b/android_env/components/logcat_thread.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A class that launches a thread to read Android log outputs.""" from collections.abc import Callable diff --git a/android_env/components/logcat_thread_test.py b/android_env/components/logcat_thread_test.py index dff310f7..8c9ad087 100644 --- a/android_env/components/logcat_thread_test.py +++ b/android_env/components/logcat_thread_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.logcat_thread.""" import re diff --git a/android_env/components/pixel_fns.py b/android_env/components/pixel_fns.py index 8bb795a7..36b7f97a 100644 --- a/android_env/components/pixel_fns.py +++ b/android_env/components/pixel_fns.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Utils for AndroidEnv.""" from collections.abc import Sequence diff --git a/android_env/components/pixel_fns_test.py b/android_env/components/pixel_fns_test.py index 27552e3b..c07a4fe7 100644 --- a/android_env/components/pixel_fns_test.py +++ b/android_env/components/pixel_fns_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for pixel_fns.""" from absl.testing import absltest diff --git a/android_env/components/setup_step_interpreter.py b/android_env/components/setup_step_interpreter.py index 343b5b54..95ef7505 100644 --- a/android_env/components/setup_step_interpreter.py +++ b/android_env/components/setup_step_interpreter.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A component that parses and processes SetupSteps.""" from collections.abc import Sequence diff --git a/android_env/components/setup_step_interpreter_test.py b/android_env/components/setup_step_interpreter_test.py index a2f9ffa0..cee72d92 100644 --- a/android_env/components/setup_step_interpreter_test.py +++ b/android_env/components/setup_step_interpreter_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.setup_step_interpreter.""" from unittest import mock diff --git a/android_env/components/simulators/__init__.py b/android_env/components/simulators/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/components/simulators/__init__.py +++ b/android_env/components/simulators/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/components/simulators/base_simulator.py b/android_env/components/simulators/base_simulator.py index a8fa7ad4..922d9c0b 100644 --- a/android_env/components/simulators/base_simulator.py +++ b/android_env/components/simulators/base_simulator.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A base class for talking to different types of Android simulators.""" import abc diff --git a/android_env/components/simulators/base_simulator_test.py b/android_env/components/simulators/base_simulator_test.py index 0da38971..7648e5a2 100644 --- a/android_env/components/simulators/base_simulator_test.py +++ b/android_env/components/simulators/base_simulator_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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 itertools import time from unittest import mock diff --git a/android_env/components/simulators/emulator/__init__.py b/android_env/components/simulators/emulator/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/components/simulators/emulator/__init__.py +++ b/android_env/components/simulators/emulator/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/components/simulators/emulator/emulator_launcher.py b/android_env/components/simulators/emulator/emulator_launcher.py index 7bc1c432..0e80180f 100644 --- a/android_env/components/simulators/emulator/emulator_launcher.py +++ b/android_env/components/simulators/emulator/emulator_launcher.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Prepares and launches an emulator process.""" import glob diff --git a/android_env/components/simulators/emulator/emulator_launcher_test.py b/android_env/components/simulators/emulator/emulator_launcher_test.py index cfb7924e..809644aa 100644 --- a/android_env/components/simulators/emulator/emulator_launcher_test.py +++ b/android_env/components/simulators/emulator/emulator_launcher_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.emulator_launcher.""" import builtins diff --git a/android_env/components/simulators/emulator/emulator_simulator.py b/android_env/components/simulators/emulator/emulator_simulator.py index 8d3312fd..8bd0cddb 100644 --- a/android_env/components/simulators/emulator/emulator_simulator.py +++ b/android_env/components/simulators/emulator/emulator_simulator.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """A class that manages an Android Emulator.""" import os diff --git a/android_env/components/simulators/emulator/emulator_simulator_test.py b/android_env/components/simulators/emulator/emulator_simulator_test.py index aa18251e..9896fcdd 100644 --- a/android_env/components/simulators/emulator/emulator_simulator_test.py +++ b/android_env/components/simulators/emulator/emulator_simulator_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.emulator_simulator.""" import builtins diff --git a/android_env/components/simulators/fake/__init__.py b/android_env/components/simulators/fake/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/components/simulators/fake/__init__.py +++ b/android_env/components/simulators/fake/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/components/simulators/fake/fake_simulator.py b/android_env/components/simulators/fake/fake_simulator.py index 6a118f0f..f8086fc3 100644 --- a/android_env/components/simulators/fake/fake_simulator.py +++ b/android_env/components/simulators/fake/fake_simulator.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Fake Simulator for testing AndroidEnv infrastructure.""" import random diff --git a/android_env/components/simulators/fake/fake_simulator_test.py b/android_env/components/simulators/fake/fake_simulator_test.py index c8375b95..c2b543ca 100644 --- a/android_env/components/simulators/fake/fake_simulator_test.py +++ b/android_env/components/simulators/fake/fake_simulator_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for fake_simulator.""" import re diff --git a/android_env/components/specs.py b/android_env/components/specs.py index 392fff51..3e18a13f 100644 --- a/android_env/components/specs.py +++ b/android_env/components/specs.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Base specs for AndroidEnv.""" from android_env.components import action_type diff --git a/android_env/components/specs_test.py b/android_env/components/specs_test.py index be8735b3..f2f11fcf 100644 --- a/android_env/components/specs_test.py +++ b/android_env/components/specs_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for specs.py.""" from absl.testing import absltest diff --git a/android_env/components/task_manager.py b/android_env/components/task_manager.py index 0e4f39e4..84c9dad1 100644 --- a/android_env/components/task_manager.py +++ b/android_env/components/task_manager.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """TaskManager handles all events and information related to the task.""" import ast diff --git a/android_env/components/task_manager_test.py b/android_env/components/task_manager_test.py index f4bfc3ab..8cdfa034 100644 --- a/android_env/components/task_manager_test.py +++ b/android_env/components/task_manager_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.components.task_manager.py.""" import json diff --git a/android_env/env_interface.py b/android_env/env_interface.py index 8fa8d47a..a0a7f2c3 100644 --- a/android_env/env_interface.py +++ b/android_env/env_interface.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Abstract AndroidEnv interface. AndroidEnv is a standard dm_env.Environment instance, but it also offers a few diff --git a/android_env/environment.py b/android_env/environment.py index 48342d0f..dc76145b 100644 --- a/android_env/environment.py +++ b/android_env/environment.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Android environment implementation.""" from typing import Any diff --git a/android_env/environment_test.py b/android_env/environment_test.py index 7d59878a..ee404309 100644 --- a/android_env/environment_test.py +++ b/android_env/environment_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Unit tests for AndroidEnv.""" from unittest import mock diff --git a/android_env/loader.py b/android_env/loader.py index a0fe10a6..d0ea5b18 100644 --- a/android_env/loader.py +++ b/android_env/loader.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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 for loading AndroidEnv.""" import os diff --git a/android_env/loader_test.py b/android_env/loader_test.py index 53f249f4..66320911 100644 --- a/android_env/loader_test.py +++ b/android_env/loader_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for loader.""" import builtins diff --git a/android_env/proto/__init__.py b/android_env/proto/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/proto/__init__.py +++ b/android_env/proto/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/proto/a11y/__init__.py b/android_env/proto/a11y/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/proto/a11y/__init__.py +++ b/android_env/proto/a11y/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/proto/a11y/a11y.proto b/android_env/proto/a11y/a11y.proto index f512f21e..ea383178 100644 --- a/android_env/proto/a11y/a11y.proto +++ b/android_env/proto/a11y/a11y.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_action.proto b/android_env/proto/a11y/android_accessibility_action.proto index cee77987..781cca3c 100644 --- a/android_env/proto/a11y/android_accessibility_action.proto +++ b/android_env/proto/a11y/android_accessibility_action.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_forest.proto b/android_env/proto/a11y/android_accessibility_forest.proto index fe1b9830..dac5316b 100644 --- a/android_env/proto/a11y/android_accessibility_forest.proto +++ b/android_env/proto/a11y/android_accessibility_forest.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_node_info.proto b/android_env/proto/a11y/android_accessibility_node_info.proto index 8ec9abb0..031146d9 100644 --- a/android_env/proto/a11y/android_accessibility_node_info.proto +++ b/android_env/proto/a11y/android_accessibility_node_info.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto b/android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto index 1d57ac34..4241e1c5 100644 --- a/android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto +++ b/android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_tree.proto b/android_env/proto/a11y/android_accessibility_tree.proto index 1218bc36..bb3d84d2 100644 --- a/android_env/proto/a11y/android_accessibility_tree.proto +++ b/android_env/proto/a11y/android_accessibility_tree.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/android_accessibility_window_info.proto b/android_env/proto/a11y/android_accessibility_window_info.proto index f0bf2423..0f83ea6b 100644 --- a/android_env/proto/a11y/android_accessibility_window_info.proto +++ b/android_env/proto/a11y/android_accessibility_window_info.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/a11y/rect.proto b/android_env/proto/a11y/rect.proto index 1865456c..7897e3e5 100644 --- a/android_env/proto/a11y/rect.proto +++ b/android_env/proto/a11y/rect.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/adb.proto b/android_env/proto/adb.proto index fa94e8f7..a776982e 100644 --- a/android_env/proto/adb.proto +++ b/android_env/proto/adb.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/emulator_controller.proto b/android_env/proto/emulator_controller.proto index 58a1d745..6592aea1 100644 --- a/android_env/proto/emulator_controller.proto +++ b/android_env/proto/emulator_controller.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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. + // Copyright (C) 2018 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/android_env/proto/snapshot.proto b/android_env/proto/snapshot.proto index f8ec1be2..ce4c23d7 100644 --- a/android_env/proto/snapshot.proto +++ b/android_env/proto/snapshot.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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. + // Copyright (C) 2018 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/android_env/proto/snapshot_service.proto b/android_env/proto/snapshot_service.proto index 3412a712..ca1df3a1 100644 --- a/android_env/proto/snapshot_service.proto +++ b/android_env/proto/snapshot_service.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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. + // Copyright (C) 2018 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/android_env/proto/state.proto b/android_env/proto/state.proto index 467f9220..8d32dcdf 100644 --- a/android_env/proto/state.proto +++ b/android_env/proto/state.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/proto/task.proto b/android_env/proto/task.proto index 75b6639f..e933894a 100644 --- a/android_env/proto/task.proto +++ b/android_env/proto/task.proto @@ -12,6 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2025 DeepMind Technologies Limited. +// +// 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 +// +// http://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 = "proto3"; package android_env; diff --git a/android_env/wrappers/__init__.py b/android_env/wrappers/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/wrappers/__init__.py +++ b/android_env/wrappers/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/wrappers/a11y/__init__.py b/android_env/wrappers/a11y/__init__.py index 5945dc5e..cc12771c 100644 --- a/android_env/wrappers/a11y/__init__.py +++ b/android_env/wrappers/a11y/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/android_env/wrappers/a11y/a11y_events.py b/android_env/wrappers/a11y/a11y_events.py index 6d5c0b63..8c021c39 100644 --- a/android_env/wrappers/a11y/a11y_events.py +++ b/android_env/wrappers/a11y/a11y_events.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tools for accessing accessibility events.""" from collections.abc import Mapping diff --git a/android_env/wrappers/a11y/a11y_events_test.py b/android_env/wrappers/a11y/a11y_events_test.py index 4acff418..606ba825 100644 --- a/android_env/wrappers/a11y/a11y_events_test.py +++ b/android_env/wrappers/a11y/a11y_events_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for a11y_events.""" from absl.testing import absltest diff --git a/android_env/wrappers/a11y/a11y_forests.py b/android_env/wrappers/a11y/a11y_forests.py index cc74894e..247f3c8d 100644 --- a/android_env/wrappers/a11y/a11y_forests.py +++ b/android_env/wrappers/a11y/a11y_forests.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tools for accessing accessibility events.""" from collections.abc import Mapping diff --git a/android_env/wrappers/a11y/a11y_forests_test.py b/android_env/wrappers/a11y/a11y_forests_test.py index 55622e7d..39d69862 100644 --- a/android_env/wrappers/a11y/a11y_forests_test.py +++ b/android_env/wrappers/a11y/a11y_forests_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for a11y_forests.""" from absl.testing import absltest diff --git a/android_env/wrappers/a11y/a11y_servicer.py b/android_env/wrappers/a11y/a11y_servicer.py index 1a6ff065..93913adf 100644 --- a/android_env/wrappers/a11y/a11y_servicer.py +++ b/android_env/wrappers/a11y/a11y_servicer.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Accessibility Servicer implementation.""" import asyncio diff --git a/android_env/wrappers/a11y/a11y_servicer_test.py b/android_env/wrappers/a11y/a11y_servicer_test.py index ef8fa1e0..3adcaede 100644 --- a/android_env/wrappers/a11y/a11y_servicer_test.py +++ b/android_env/wrappers/a11y/a11y_servicer_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for a11y_servicer.""" import asyncio diff --git a/android_env/wrappers/a11y_grpc_wrapper.py b/android_env/wrappers/a11y_grpc_wrapper.py index a37a5f5b..ff2e3d1e 100644 --- a/android_env/wrappers/a11y_grpc_wrapper.py +++ b/android_env/wrappers/a11y_grpc_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps AndroidEnv to retrieve accessibility messages from gRPC.""" from concurrent import futures diff --git a/android_env/wrappers/a11y_grpc_wrapper_test.py b/android_env/wrappers/a11y_grpc_wrapper_test.py index 49b4124d..c7c94c2e 100644 --- a/android_env/wrappers/a11y_grpc_wrapper_test.py +++ b/android_env/wrappers/a11y_grpc_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for a11y_grpc_wrapper.""" import time diff --git a/android_env/wrappers/base_wrapper.py b/android_env/wrappers/base_wrapper.py index faea1c01..1bba3089 100644 --- a/android_env/wrappers/base_wrapper.py +++ b/android_env/wrappers/base_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Base class for AndroidEnv wrappers.""" from typing import Any diff --git a/android_env/wrappers/base_wrapper_test.py b/android_env/wrappers/base_wrapper_test.py index 133d1b4d..ba2a4ef1 100644 --- a/android_env/wrappers/base_wrapper_test.py +++ b/android_env/wrappers/base_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.base_wrapper.""" from unittest import mock diff --git a/android_env/wrappers/discrete_action_wrapper.py b/android_env/wrappers/discrete_action_wrapper.py index 4d7b8de2..c1363f35 100644 --- a/android_env/wrappers/discrete_action_wrapper.py +++ b/android_env/wrappers/discrete_action_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps the AndroidEnv environment to provide discrete actions.""" from collections.abc import Sequence diff --git a/android_env/wrappers/discrete_action_wrapper_test.py b/android_env/wrappers/discrete_action_wrapper_test.py index 4afc6956..54923276 100644 --- a/android_env/wrappers/discrete_action_wrapper_test.py +++ b/android_env/wrappers/discrete_action_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.discrete_action_wrapper.""" from unittest import mock diff --git a/android_env/wrappers/flat_interface_wrapper.py b/android_env/wrappers/flat_interface_wrapper.py index 917e103c..f217748d 100644 --- a/android_env/wrappers/flat_interface_wrapper.py +++ b/android_env/wrappers/flat_interface_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps the AndroidEnv environment to make its interface flat.""" from typing import Any, cast diff --git a/android_env/wrappers/flat_interface_wrapper_test.py b/android_env/wrappers/flat_interface_wrapper_test.py index 0717ae2e..5a3470e5 100644 --- a/android_env/wrappers/flat_interface_wrapper_test.py +++ b/android_env/wrappers/flat_interface_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.flat_interface_wrapper.""" from typing import cast diff --git a/android_env/wrappers/float_pixels_wrapper.py b/android_env/wrappers/float_pixels_wrapper.py index 64b570de..e1158a2e 100644 --- a/android_env/wrappers/float_pixels_wrapper.py +++ b/android_env/wrappers/float_pixels_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Converts pixel observation to from int to float32 between 0.0 and 1.0.""" from android_env import env_interface diff --git a/android_env/wrappers/float_pixels_wrapper_test.py b/android_env/wrappers/float_pixels_wrapper_test.py index 2723d867..3186d2a2 100644 --- a/android_env/wrappers/float_pixels_wrapper_test.py +++ b/android_env/wrappers/float_pixels_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.float_pixels_wrapper.""" from unittest import mock diff --git a/android_env/wrappers/gym_wrapper.py b/android_env/wrappers/gym_wrapper.py index 8c233e16..c729a06a 100644 --- a/android_env/wrappers/gym_wrapper.py +++ b/android_env/wrappers/gym_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps the AndroidEnv to expose an OpenAI Gym interface.""" from typing import Any diff --git a/android_env/wrappers/gym_wrapper_test.py b/android_env/wrappers/gym_wrapper_test.py index 5f80fc2e..5ccbdcc8 100644 --- a/android_env/wrappers/gym_wrapper_test.py +++ b/android_env/wrappers/gym_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.gym_wrapper.""" from unittest import mock diff --git a/android_env/wrappers/image_rescale_wrapper.py b/android_env/wrappers/image_rescale_wrapper.py index 13a18237..e0d3772d 100644 --- a/android_env/wrappers/image_rescale_wrapper.py +++ b/android_env/wrappers/image_rescale_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps the AndroidEnv environment to rescale the observations.""" from collections.abc import Sequence diff --git a/android_env/wrappers/image_rescale_wrapper_test.py b/android_env/wrappers/image_rescale_wrapper_test.py index a6833b9d..58feb515 100644 --- a/android_env/wrappers/image_rescale_wrapper_test.py +++ b/android_env/wrappers/image_rescale_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.image_rescale_wrapper.""" from typing import Any diff --git a/android_env/wrappers/last_action_wrapper.py b/android_env/wrappers/last_action_wrapper.py index 1bf58196..0ddcba0a 100644 --- a/android_env/wrappers/last_action_wrapper.py +++ b/android_env/wrappers/last_action_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Extends Android observation with the latest action taken.""" from typing import cast diff --git a/android_env/wrappers/last_action_wrapper_test.py b/android_env/wrappers/last_action_wrapper_test.py index 0c3cbd77..63793969 100644 --- a/android_env/wrappers/last_action_wrapper_test.py +++ b/android_env/wrappers/last_action_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for android_env.wrappers.last_action_wrapper.""" from typing import Any diff --git a/android_env/wrappers/rate_limit_wrapper.py b/android_env/wrappers/rate_limit_wrapper.py index 521fc62a..37cb6469 100644 --- a/android_env/wrappers/rate_limit_wrapper.py +++ b/android_env/wrappers/rate_limit_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Limits interactions with the environment to a given rate.""" import enum diff --git a/android_env/wrappers/rate_limit_wrapper_test.py b/android_env/wrappers/rate_limit_wrapper_test.py index 36c5a430..65357484 100644 --- a/android_env/wrappers/rate_limit_wrapper_test.py +++ b/android_env/wrappers/rate_limit_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for rate_limit_wrapper.""" import time diff --git a/android_env/wrappers/tap_action_wrapper.py b/android_env/wrappers/tap_action_wrapper.py index a9e63b1e..0f00bd05 100644 --- a/android_env/wrappers/tap_action_wrapper.py +++ b/android_env/wrappers/tap_action_wrapper.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Wraps the AndroidEnv environment to provide tap actions of a given duration.""" from collections.abc import Sequence diff --git a/android_env/wrappers/tap_action_wrapper_test.py b/android_env/wrappers/tap_action_wrapper_test.py index 81876fb7..c7348b9c 100644 --- a/android_env/wrappers/tap_action_wrapper_test.py +++ b/android_env/wrappers/tap_action_wrapper_test.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Tests for tap_action_wrapper.""" from unittest import mock diff --git a/examples/__init__.py b/examples/__init__.py index 5945dc5e..cc12771c 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -13,3 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + diff --git a/examples/run_acme_agent.py b/examples/run_acme_agent.py index 29662f10..c802e615 100644 --- a/examples/run_acme_agent.py +++ b/examples/run_acme_agent.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Acme DQN agent interacting with AndroidEnv.""" from absl import app diff --git a/examples/run_human_agent.py b/examples/run_human_agent.py index 7fa24e0d..c5c53517 100644 --- a/examples/run_human_agent.py +++ b/examples/run_human_agent.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Loads an interactive session where a human acts on behalf of an agent.""" import time diff --git a/examples/run_random_agent.py b/examples/run_random_agent.py index 87aef11d..02ed228a 100644 --- a/examples/run_random_agent.py +++ b/examples/run_random_agent.py @@ -13,6 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + """Example script demonstrating usage of AndroidEnv.""" from absl import app diff --git a/setup.py b/setup.py index e0922b71..787b3bb2 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,18 @@ +# coding=utf-8 +# Copyright 2025 DeepMind Technologies Limited. +# +# 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 +# +# http://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. + # Copyright 2025 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License");