Skip to content

Commit

Permalink
devtools: Update Android license format
Browse files Browse the repository at this point in the history
Update Android license format so that presubmit tests pass.

BUG=b:379257728
TEST=`python3 convert_all.py \
      ${SRC}/overlays/overlay-brya/chromeos-base/chromeos-bsp-brya/files \
      ../out ../unknown`
TEST=`python3 convert_all_ucm.py \
      ${SRC}/overlays/overlay-brya/chromeos-base/chromeos-bsp-brya/files \
      ../configs/ mixer`
TEST=`python3 convert_all_ucm.py \
      ${SRC}/overlays/overlay-brya/chromeos-base/chromeos-bsp-brya/files \
      ../configs/ xml`

Change-Id: Ie616ad53c4ed0d7c10f9f3ad6a413c4cc70943ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/6064627
Reviewed-by: Yu-Hsuan Hsu <[email protected]>
Auto-Submit: Baili Deng <[email protected]>
Commit-Queue: Baili Deng <[email protected]>
Tested-by: [email protected] <[email protected]>
  • Loading branch information
baili0411 authored and Chromeos LUCI committed Jan 3, 2025
1 parent 31edf23 commit 3c7ba89
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion devtools/sound_card_init_yaml_to_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def dict_to_xml(data, output_file):
dict_to_xml_element(data, root)
# add the licence comment in the xml
comment = ET.Comment(
"\nCopyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
Expand Down
6 changes: 3 additions & 3 deletions devtools/ucm_converter/board/ucm_to_audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ def dict_to_xml(data, output_file):
dict_to_xml_element(data, root)
# add the licence comment in the xml
comment = ET.Comment(
"Copyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"Unless required by applicable law or agreed to in writing, software\n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
"limitations under the License.\n"
)
root.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(root)
Expand Down
6 changes: 3 additions & 3 deletions devtools/ucm_converter/board/ucm_to_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ def generate_mixer_paths_xml(config_data, output_file):

# Add the licence comment in the xml
comment = ET.Comment(
"Copyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"Unless required by applicable law or agreed to in writing, software\n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
"limitations under the License.\n"
)
mixer.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(mixer)
Expand Down
6 changes: 3 additions & 3 deletions devtools/ucm_converter/usb/ucm_to_audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ def dict_to_xml(data, output_file):
dict_to_xml_element(data, root)
# add the licence comment in the xml
comment = ET.Comment(
"Copyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"Unless required by applicable law or agreed to in writing, software\n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
"limitations under the License.\n"
)
root.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(root)
Expand Down
6 changes: 3 additions & 3 deletions devtools/ucm_converter/usb/ucm_to_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ def generate_mixer_paths_xml(config_data, output_file):

# Add the licence comment in the xml
comment = ET.Comment(
"Copyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"Unless required by applicable law or agreed to in writing, software\n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
"limitations under the License.\n"
)
mixer.insert(0, comment) # insert before the root's first child
tree = ET.ElementTree(mixer)
Expand Down
6 changes: 3 additions & 3 deletions devtools/volume_curves_converter/ini_to_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ def dict_to_xml(data, output_file):
root = ET.Element("volumes")

comment = ET.Comment(
"Copyright (C) 2024 The Android Open Source Project\n\n"
"\nCopyright (C) 2025 The Android Open Source Project\n\n"
"Licensed under the Apache License, Version 2.0 (the \"License\");\n"
"you may not use this file except in compliance with the License.\n"
"You may obtain a copy of the License at\n\n"
" http://www.apache.org/licenses/LICENSE-2.0\n\n"
"Unless required by applicable law or agreed to in writing, software \n"
"Unless required by applicable law or agreed to in writing, software\n"
"distributed under the License is distributed on an \"AS IS\" BASIS,\n"
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"
"See the License for the specific language governing permissions and\n"
"limitations under the License."
"limitations under the License.\n"
)
root.insert(0, comment)

Expand Down

0 comments on commit 3c7ba89

Please sign in to comment.