Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 41) sorted by relevance

12

/build/make/tools/releasetools/
Dtest_ota_from_target_files.py84 def __init__(self): argument
87 def Mount(self, *args): argument
90 def AssertDevice(self, *args): argument
93 def AssertOemProperty(self, *args): argument
96 def AssertFingerprintOrThumbprint(self, *args): argument
99 def AssertSomeFingerprint(self, *args): argument
102 def AssertSomeThumbprint(self, *args): argument
151 def test_init(self): argument
158 def test_init_with_oem_props(self): argument
177 def test___getitem__(self): argument
[all …]
Dtest_common.py49 def _verify(self, zip_file, zip_file_name, arcname, expected_hash, argument
80 def _test_ZipWrite(self, contents, extra_zipwrite_args=None): argument
120 def _test_ZipWriteStr(self, zinfo_or_arcname, contents, extra_args=None): argument
151 def _test_ZipWriteStr_large_file(self, large, small, extra_args=None): argument
200 def _test_reset_ZIP64_LIMIT(self, func, *args): argument
206 def test_ZipWrite(self): argument
210 def test_ZipWrite_with_opts(self): argument
223 def test_ZipWrite_large_file(self): argument
229 def test_ZipWrite_resets_ZIP64_LIMIT(self): argument
232 def test_ZipWriteStr(self): argument
[all …]
Dtest_sign_target_files_apks.py41 def setUp(self): argument
44 def test_EditTags(self): argument
54 def test_RewriteProps(self): argument
111 def test_ReplaceVerityKeyId(self): argument
151 def test_ReplaceVerityKeyId_no_veritykeyid(self): argument
169 def test_ReplaceCerts(self): argument
195 def test_ReplaceCerts_duplicateEntries(self): argument
213 def test_ReplaceCerts_skipNonExistentCerts(self): argument
239 def test_CheckApkAndApexKeysAvailable(self): argument
263 def test_CheckApkAndApexKeysAvailable_invalidApexKeys(self): argument
[all …]
Dtest_add_img_to_target_files.py34 def setUp(self): argument
37 def _verifyCareMap(self, expected, file_name): argument
66 def test_CheckAbOtaImages_imageExistsUnderImages(self): argument
71 def test_CheckAbOtaImages_imageExistsUnderRadio(self): argument
81 def test_CheckAbOtaImages_missingImages(self): argument
86 def test_AddPackRadioImages(self): argument
94 def test_AddPackRadioImages_with_suffix(self): argument
103 def test_AddPackRadioImages_zipOutput(self): argument
115 def test_AddPackRadioImages_imageExists(self): argument
127 def test_AddPackRadioImages_missingImages(self): argument
[all …]
Dtest_rangelib.py23 def test_union(self): argument
29 def test_intersect(self): argument
35 def test_subtract(self): argument
41 def test_overlaps(self): argument
45 def test_size(self): argument
49 def test_map_within(self): argument
61 def test_first(self): argument
72 def test_extend(self): argument
78 def test_equality(self): argument
90 def test_init(self): argument
[all …]
Dtest_verity_utils.py37 def setUp(self): argument
54 def _create_simg(self, raw_data): argument
67 def _generate_image(self): argument
92 def test_CreateHashtreeInfoGenerator(self): argument
102 def test_DecomposeSparseImage(self): argument
112 def test_ParseHashtreeMetadata(self): argument
126 def test_ValidateHashtree_smoke(self): argument
141 def test_ValidateHashtree_failure(self): argument
156 def test_Generate(self): argument
181 def test_init(self): argument
[all …]
Dtest_blockimgdiff.py31 def __init__(self, score): argument
34 def test_init(self): argument
50 def test_clear(self): argument
60 def test_GenerateDigraphOrder(self): argument
111 def test_ReviseStashSize(self): argument
140 def test_ReviseStashSize_bug_33687949(self): argument
178 def test_FileTypeSupportedByImgdiff(self): argument
196 def test_CanUseImgdiff(self): argument
213 def test_CanUseImgdiff_ineligible(self): argument
251 def test_Log(self): argument
[all …]
Drangelib.py33 def __init__(self, data=None): argument
45 def __iter__(self): argument
49 def __eq__(self, other): argument
52 def __ne__(self, other): argument
55 def __nonzero__(self): argument
58 def __str__(self): argument
64 def __repr__(self): argument
68 def extra(self): argument
101 def _parse_internal(self, text): argument
142 def to_string(self): argument
[all …]
Dblockimgdiff.py64 def RangeSha1(self, ranges): argument
67 def ReadRangeSet(self, ranges): argument
70 def TotalSha1(self, include_clobbered_blocks=False): argument
73 def WriteRangeDataToFd(self, ranges, fd): argument
80 def __init__(self): argument
89 def RangeSha1(self, ranges): argument
92 def ReadRangeSet(self, ranges): argument
95 def TotalSha1(self, include_clobbered_blocks=False): argument
101 def WriteRangeDataToFd(self, ranges, fd): argument
108 def __init__(self, data, trim=False, pad=False): argument
[all …]
Dedify_generator.py23 def __init__(self, version, info, fstab=None): argument
35 def required_cache(self): argument
67 def AppendScript(self, other): argument
72 def AssertOemProperty(self, name, values, oem_no_mount): argument
96 def AssertSomeFingerprint(self, *fp): argument
107 def AssertSomeThumbprint(self, *fp): argument
118 def AssertFingerprintOrThumbprint(self, fp, tp): argument
129 def AssertOlderBuild(self, timestamp, timestamp_text): argument
138 def AssertDevice(self, device): argument
146 def AssertSomeBootloader(self, *bootloaders): argument
[all …]
Dtest_build_image.py32 def test_CheckHeadroom_SizeUnderLimit(self): argument
41 def test_CheckHeadroom_InsufficientHeadroom(self): argument
51 def test_CheckHeadroom_WrongFsType(self): argument
60 def test_CheckHeadroom_MissingProperties(self): argument
75 def test_CheckHeadroom_WithMke2fsOutput(self): argument
99 def test_SetUpInDirAndFsConfig_SystemRootImageTrue_NonSystem(self): argument
117 def test_SetUpInDirAndFsConfig(self): argument
146 def test_SetUpInDirAndFsConfig_WithRootFsConfig(self): argument
180 def test_GetFilesystemCharacteristics(self): argument
Dtest_validate_target_files.py34 def setUp(self): argument
37 def _generate_boot_image(self, output_file): argument
58 def test_ValidateVerifiedBootImages_bootImage(self): argument
72 def test_ValidateVerifiedBootImages_bootImage_wrongKey(self): argument
88 def test_ValidateVerifiedBootImages_bootImage_corrupted(self): argument
112 def _generate_system_image(self, output_file, system_root=None, argument
142 def test_ValidateVerifiedBootImages_systemImage(self): argument
165 def test_ValidateFileConsistency_incompleteRange(self): argument
Dota_package_parser.py27 def __init__(self): argument
34 def StashBlocks(self, SHA1, blocks): argument
43 def FreeBlocks(self, SHA1): argument
48 def HandleOverlapBlocks(self, SHA1, blocks): argument
57 def __init__(self, package): argument
75 def ParseTransferList(self, name): argument
143 def PrintDataInfo(self, partition): argument
163 def AnalyzePartition(self, partition): argument
172 def PrintMetadata(self): argument
187 def Analyze(self): argument
Dtest_merge_target_files.py28 def setUp(self): argument
31 def test_read_config_list(self): argument
48 def test_validate_config_lists_ReturnsFalseIfMissingDefaultItem(self): argument
55 def test_validate_config_lists_ReturnsTrueIfDefaultItemInDifferentList(self): argument
64 def test_validate_config_lists_ReturnsTrueIfExtraItem(self): argument
71 def test_validate_config_lists_ReturnsFalseIfBadSystemMiscInfoKeys(self): argument
Dtest_apex_utils.py30 def setUp(self): argument
42 def test_ParseApexPayloadInfo(self): argument
51 def test_SignApexPayload(self): argument
57 def test_SignApexPayload_withSignerHelper(self): argument
68 def test_SignApexPayload_invalidKey(self): argument
78 def test_VerifyApexPayload_wrongKey(self): argument
Dcheck_target_files_signatures66 def _decodeExtra(self): argument
108 def __init__(self): argument
111 def Add(self, cert, name=None): argument
121 def Get(self, cert): argument
125 def FindLocalCerts(self): argument
172 def __init__(self, full_filename, filename): argument
185 def RecordCerts(self, full_filename): argument
204 def ReadManifest(self, full_filename): argument
235 def __init__(self): argument
242 def LoadZipFile(self, filename): argument
[all …]
Dcheck_target_files_signatures.py66 def _decodeExtra(self): argument
108 def __init__(self): argument
111 def Add(self, cert, name=None): argument
121 def Get(self, cert): argument
125 def FindLocalCerts(self): argument
172 def __init__(self, full_filename, filename): argument
185 def RecordCerts(self, full_filename): argument
204 def ReadManifest(self, full_filename): argument
235 def __init__(self): argument
242 def LoadZipFile(self, filename): argument
[all …]
Dverity_utils.py38 def __init__(self, message): argument
217 def CalculateMaxImageSize(self, partition_size): argument
221 def CalculateDynamicPartitionSize(self, image_size): argument
225 def PadSparseImage(self, out_file): argument
229 def Build(self, out_file): argument
237 def __init__(self, partition_size, block_dev, fec_supported, signer_path, argument
250 def CalculateDynamicPartitionSize(self, image_size): argument
255 def CalculateMaxImageSize(self, partition_size=None): argument
300 def Build(self, out_file): argument
344 def PadSparseImage(self, out_file): argument
[all …]
Dota_from_target_files282 def __init__(self, info_dict, oem_dicts): argument
308 def is_ab(self): argument
312 def device(self): argument
316 def fingerprint(self): argument
320 def vendor_fingerprint(self): argument
324 def product_fingerprint(self): argument
328 def odm_fingerprint(self): argument
331 def _fingerprint_of(self, partition): argument
342 def oem_props(self): argument
345 def __getitem__(self, key): argument
[all …]
/build/soong/cc/
Dtest_gen_stub_libs.py29 def test_decode_api_level(self): argument
38 def test_get_tags_no_tags(self): argument
42 def test_get_tags(self): argument
46 def test_split_tag(self): argument
52 def test_get_tag_value(self): argument
58 def test_is_api_level_tag(self): argument
71 def test_decode_api_level_tags(self): argument
101 def test_version_is_private(self): argument
115 def test_symbol_in_arch(self): argument
121 def test_symbol_in_api(self): argument
[all …]
/build/soong/scripts/
Dmanifest_fixer_test.py32 def test_sdk(self): argument
38 def test_codename(self): argument
44 def test_sdk_codename(self): argument
49 def test_compare_numeric(self): argument
57 def raise_min_sdk_version_test(self, input_manifest, min_sdk_version, argument
73 def uses_sdk(self, min=None, target=None, extra=''): argument
83 def test_no_uses_sdk(self): argument
91 def test_no_min(self): argument
100 def test_raise_min(self): argument
108 def test_raise(self): argument
[all …]
/build/make/tools/fs_config/
Dtest_fs_config_generator.py22 def test_is_overlap(self): argument
35 def test_in_any_range(self): argument
45 def test_aid(self): argument
64 def test_aid_header_parser_good(self): argument
91 def test_aid_header_parser_good_unordered(self): argument
118 def test_aid_header_parser_bad_aid(self): argument
131 def test_aid_header_parser_bad_oem_range(self): argument
145 def test_aid_header_parser_bad_oem_range_no_end(self): argument
158 def test_aid_header_parser_bad_oem_range_no_start(self): argument
171 def test_aid_header_parser_bad_oem_range_mismatch_start_end(self): argument
[all …]
Dfs_config_generator.py42 def __init__(self, gen): argument
58 def __call__(self, cls): argument
143 def __init__(self, identifier, value, found, login_shell): argument
175 def __eq__(self, other): argument
227 def __init__(self, mode, user, group, caps, path, filename): argument
244 def __eq__(self, other): argument
250 def __repr__(self): argument
265 def __init__(self, capability_header): argument
275 def _parse(self, capability_file): argument
324 def __init__(self, aid_header): argument
[all …]
/build/make/tools/
Dfat16copy.py81 def seek(self, amount, direction=0): argument
102 def __init__(self, fs, cluster, size=None): argument
118 def read(self, size): argument
126 def write(self, data): argument
147 def __init__(self, backing): argument
165 def __str__(self): argument
168 def add_dentry(self, attributes, shortname, ext, longname, first_cluster, argument
187 def make_short_name(self, name): argument
214 def new_file(self, name, data=None): argument
237 def open_subdirectory(self, name): argument
[all …]
Dparsedeps.py10 def __init__(self, tgt): argument
16 def add(self, prereq): argument
21 def __init__(self): argument
26 def add(self, tgt, prereq): argument
38 def setPos(self, tgt, pos): argument
45 def get(self, tgt): argument
51 def __iter__(self): argument
54 def trace(self, tgt, prereq): argument
61 def __trace(self, d, prereq): argument

12