Name Description Size
__init__.py 140
build_utils.py Contains common helpers for GN action()s. 16023
build_utils_test.py 1433
dep_utils.py Methods for managing deps based on build_config.json files. 11433
diff_utils.py Skip lines that are to be intentionally omitted from the expectations file. This is required when the file to be compared against expectations contains a line that changes from build to build because - for instance - it contains version information. 5087
jar_info_utils.py Returns the source= path from an .aar's source.info file. 2101
jar_utils.py Methods to run tools over jars and cache their output. 3501
java_cpp_utils.py Convert |s| from kCamelCase or CamelCase to SHOUTY_CASE. kFooBar -> FOO_BAR FooBar -> FOO_BAR FooBAR9 -> FOO_BAR9 FooBARBaz -> FOO_BAR_BAZ 5786
manifest_utils.py Contains common helpers for working with Android manifests. 11254
manifest_utils_test.py \ <?xml version="1.0" ?> <manifest package="test.pkg" android:versionCode="1234" android:versionName="1.2.33.4" tools:ignore="MissingVersion" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <!-- Should be one line. --> <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="30"/> <!-- Should have attrs sorted--> <uses-feature android:required="false" android:version="1" android:name="android.hardware.vr.headtracking" /> <!-- Should not be wrapped since < 100 chars. --> <application android:name="testname"> <activity {extra_activity_attr} android:icon="@drawable/ic_devices_48dp" android:label="label with spaces" android:name="to be hashed" android:theme="@style/Theme.Chromium.Activity.TranslucentNoAnimations"> <intent-filter> {extra_intent_filter_elem} <action android:name="android.intent.action.SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain"/> </intent-filter> </activity> <!-- Should be made non-self-closing. --> <receiver android:exported="false" android:name="\ org.chromium.chrome.browser.announcement.AnnouncementNotificationManager$Rcvr"/> </application> </manifest> 5096
md5_check.py Wraps CallAndRecordIfStale() and writes a depfile if applicable. Depfiles are automatically added to output_paths when present in the |options| argument. They are then created after |on_stale_md5| is called. By default, only python dependencies are added to the depfile. If there are other input paths that are not captured by GN deps, then they should be listed in depfile_deps. It's important to write paths to the depfile that are already captured by GN deps since GN args can cause GN deps to change, and such changes are not immediately reflected in depfiles (http://crbug.com/589311). 15881
md5_check_test.py 6765
parallel.py Helpers related to multiprocessing. Based on: //tools/binary_size/libsupersize/parallel.py 5853
protoresources.py Functions that modify resources in protobuf format. Format reference: https://cs.android.com/search?q=f:aapt2.*Resources.proto 10689
resource_utils.py Convert a Chromium locale name into a corresponding Android one. 39712
resource_utils_test.py <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <string name="copy_to_clipboard_failure_message">"Lõikelauale kopeerimine ebaõnnestus"</string> <string name="low_memory_error">"Eelmist toimingut ei saa vähese mälu tõttu lõpetada"</string> <string name="opening_file_error">"Valit. faili avamine ebaõnnestus"</string> <string name="structured_text">"This is <android:g id="STRUCTURED_TEXT">%s</android:g>"</string> </resources> 9800
resources_parser.py 6085
server_utils.py Returns True if the command was successfully sent to the build server. 4193