Home
last modified time | relevance | path

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

12345678910

/base/update/packaging_tools/test/
Dtest_build_update.py40 def setUp(self): argument
43 def tearDown(self): argument
46 def test_update_pkg(self): argument
71 def test_updater_partitions(self): argument
97 def test_updater_partitions2(self): argument
125 def test_update_pkg_nozip(self): argument
148 def test_type_check(self): argument
174 def test_check_update_package(self): argument
201 def test_check_update_package1(self): argument
210 def test_check_update_package2(self): argument
[all …]
Dtest_utils.py39 def setUp(self): argument
42 def tearDown(self): argument
45 def test_unzip_package(self): argument
75 def test_parse_update_config(self): argument
96 def test_clear_resource(self): argument
110 def test_get_update_info(self): argument
129 def test_get_update_info_2(self): argument
147 def test_parse_partition_file_xml(self): argument
161 def test_apply_zero_type(self): argument
Dtest_image_class.py31 def setUp(self): argument
34 def tearDown(self): argument
37 def test_update_full_image(self): argument
60 def test_get_file_data(self): argument
85 def test_get_blocks_list(self): argument
112 def test_get_file_map(self): argument
130 def test_read_ranges(self): argument
152 def test_get_range_data(self): argument
Dtest_script_generator.py30 def setUp(self): argument
33 def tearDown(self): argument
36 def test_get_proportion_value_list(self): argument
46 def test_proportion_value_list(self): argument
59 def test_proportion_value_list1(self): argument
69 def test_script_command_content(self): argument
106 def test_get_progress_value(self): argument
126 def __init__(self): argument
Dtest_vendor_script.py30 def setUp(self): argument
33 def tearDown(self): argument
36 def test_vendor_script(self): argument
52 def __init__(self): argument
57 def __init__(self): argument
62 def __init__(self): argument
67 def __init__(self): argument
Dtest_log_exception.py26 def setUp(self): argument
29 def tearDown(self): argument
32 def test_print_log_error_type(self): argument
39 def test_handle_exception1(self): argument
48 def test_handle_exception2(self): argument
Dtest_update_package.py78 def setUp(self): argument
81 def tearDown(self): argument
84 def test_create_update_bin_failed(self): argument
130 def test_get_hash_content(self): argument
143 def test_signing_package(self): argument
Dtest_inc.py24 def setUp(self): argument
27 def tearDown(self): argument
30 def test_blocks_manager(self): argument
43 def test_action_info(self): argument
/base/startup/hvb/tools/
Dhvbtool.py53 def __init__(self, sig_algo, hash_algo, bit_length, sig_bytes, hash_bytes, pubkey_bytes): argument
76 def __init__(self, footer=None): argument
86 def info_footer(self): argument
111 def __init__(self, cert=None): argument
145 def info_cert(self): argument
180 def __init__(self, pubkey): argument
200 def get_bit_length(self, pubkey): argument
211 def calc_egcd(self, num1, num2): argument
217 def calc_modinv(self, num1, modulo): argument
223 def incode_long(self, num_bits, value): argument
[all …]
/base/update/packaging_tools/
Dblocks_manager.py27 def __init__(self, range_data=None): argument
46 def __iter__(self): argument
50 def __eq__(self, other): argument
53 def __ne__(self, other): argument
56 def __parse_data_text(self, text): argument
101 def to_string_raw(self): argument
107 def get_union_with_other(self, other): argument
124 def get_intersect_with_other(self, other): argument
145 def get_subtract_with_other(self, other): argument
156 def is_overlaps(self, other): argument
[all …]
Dscript_generator.py38 def __init__(self): argument
43 def add_command(self, cmd=None): argument
51 def get_script(self): argument
58 def sha_check(self, *args, **kwargs): argument
61 def image_sha_check(self, *args, **kwargs): argument
64 def first_block_check(self, *args, **kwargs): argument
67 def image_patch(self, *args, **kwargs): argument
70 def abort(self, *args, **kwargs): argument
73 def show_progress(self, *args, **kwargs): argument
76 def block_update(self, *args, **kwargs): argument
[all …]
Dvendor_script.py50 def __init__(self): argument
55 def __init__(self): argument
60 def __init__(self): argument
65 def __init__(self): argument
70 def __init__(self): argument
83 def generate_register_cmd_script(self): argument
Dgigraph_process.py25 def __init__(self, actions_list, src_image, tgt_image): argument
38 def generate_digraph(self): argument
56 def get_intersections_dict(self, source_ranges): argument
118 def stash_process(self): argument
145 def __init__(self, graph): argument
153 def __init__(self, graph): argument
161 def dfs(self): argument
174 def sort_vertices(self): argument
179 def __init__(self, graph): argument
186 def stack(self): argument
Dcreate_hashdata.py67 def __init__(self, hash_type, count): argument
80 def write_hashinfo(self): argument
93 def write_hashdata(self): argument
107 def write_signdata(self, signdata): argument
120 def calculate_hash_data(self, data): argument
125 def write_component_hash_data(self, component): argument
155 def parse_hashinfo(self, data): argument
169 def parse_hashdata(self, data): argument
191 def parse_signdata(self, data): argument
197 def parse_print_hashdata(self, save_path): argument
Dpatch_package_process.py37 def __init__(self, partition, tgt_image, src_image, argument
49 def patch_process(self): argument
103 def apply_new_type(self, each_action, new_dat_file_obj, tgt_size, argument
118 def apply_zero_type(self, each_action, total_blocks_count, argument
132 def apply_diff_style(self, *args): argument
182 def after_for_process(self, max_stashed_blocks, total_blocks_count, argument
232 def add_diff_command(self, *args): argument
248 def compute_diff_patch(self, each_action, patch_dat_file_obj): argument
284 def add_move_command(self, *args): argument
313 def add_free_command(self, each_action, stashes): argument
[all …]
/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py69 def __init__(self, msg): argument
183 def __init__(self, arch, function_name_nr_table, is_debug): argument
212 def clear_list(self): argument
221 def update_list(self, function_name, to_update_list): argument
227 def update_priority(self, function_name): argument
230 def update_allow_list(self, function_name): argument
233 def update_blocklist(self, function_name): argument
236 def update_priority_with_args(self, function_name_with_args): argument
244 def update_allow_list_with_args(self, function_name_with_args): argument
252 def update_head_files(self, head_files): argument
[all …]
/base/security/certificate_framework/frameworks/core/v1.0/certificate/
Dx509_certificate.c63 static void DestroyX509Certificate(CfObjectBase *self) in DestroyX509Certificate()
78 static CfResult Verify(HcfCertificate *self, HcfPubKey *key) in Verify()
92 static CfResult GetEncoded(HcfCertificate *self, CfEncodingBlob *encodedByte) in GetEncoded()
106 static CfResult GetPublicKey(HcfCertificate *self, HcfPubKey **keyOut) in GetPublicKey()
120 static CfResult CheckValidityWithDate(HcfX509Certificate *self, const char *date) in CheckValidityWithDate()
134 static long GetVersion(HcfX509Certificate *self) in GetVersion()
148 static CfResult GetSerialNumber(HcfX509Certificate *self, CfBlob *out) in GetSerialNumber()
162 static CfResult GetIssuerName(HcfX509Certificate *self, CfBlob *out) in GetIssuerName()
176 static CfResult GetSubjectName(HcfX509Certificate *self, CfBlob *out) in GetSubjectName()
190 static CfResult GetNotBeforeTime(HcfX509Certificate *self, CfBlob *outDate) in GetNotBeforeTime()
[all …]
Dx509_crl.c73 static void DestroyX509Crl(CfObjectBase *self) in DestroyX509Crl()
88 static const char *GetType(HcfCrl *self) in GetType()
102 static bool IsRevoked(HcfCrl *self, const HcfCertificate *cert) in IsRevoked()
116 static CfResult Verify(HcfX509Crl *self, HcfPubKey *key) in Verify()
130 static CfResult GetEncoded(HcfX509Crl *self, CfEncodingBlob *encodedByte) in GetEncoded()
144 static long GetVersion(HcfX509Crl *self) in GetVersion()
158 static CfResult GetIssuerName(HcfX509Crl *self, CfBlob *out) in GetIssuerName()
172 static CfResult GetLastUpdate(HcfX509Crl *self, CfBlob *out) in GetLastUpdate()
186 static CfResult GetNextUpdate(HcfX509Crl *self, CfBlob *out) in GetNextUpdate()
200 static CfResult GetRevokedCert(HcfX509Crl *self, const CfBlob *serialNumber, HcfX509CrlEntry **entr… in GetRevokedCert()
[all …]
/base/security/device_security_level/oem_property/ohos/standard/
Ddslm_cred_tool.py96 def __init__(self, store_dir: str = 'artifacts'): argument
105 def generate_ecc_key_pair(self, key_alias: str, curve: str = 'brainpoolP384r1') -> bool: argument
129 def get_ecc_public_key(self, key_alias: str) -> bytes: argument
151 def digest_sign(self, key_alias: str, content: bytes, digest: str = '-sha384') -> bytes: argument
165 …def digest_verify_with_key_alias(self, key_alias: str, content: bytes, sig: bytes, digest: str = '… argument
182 …def digest_verify_with_pub_key(self, pub_key: bytes, content: bytes, sig: bytes, digest: str = '-s… argument
221 def __init__(self, store_dir: str): argument
224 def process(self): argument
248 def __init__(self, store_dir: str, file: str, payload: dict): argument
253 def _gene_head(self): argument
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/auth_sub_session/protocol_lib/
Diso_protocol_test.cpp94 BaseProtocol *self; variable
210 BaseProtocol *self; variable
224 BaseProtocol *self; variable
232 BaseProtocol *self; variable
239 BaseProtocol *self; variable
252 BaseProtocol *self; variable
265 BaseProtocol *self; variable
279 BaseProtocol *self; variable
293 BaseProtocol *self; variable
307 BaseProtocol *self; variable
[all …]
Dec_speke_protocol_test.cpp97 BaseProtocol *self; variable
271 BaseProtocol *self; variable
285 BaseProtocol *self; variable
293 BaseProtocol *self; variable
300 BaseProtocol *self; variable
313 BaseProtocol *self; variable
326 BaseProtocol *self; variable
340 BaseProtocol *self; variable
354 BaseProtocol *self; variable
368 BaseProtocol *self; variable
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
Dpub_key_exchange_test.cpp94 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
136 BaseCmd *self = CreatePubKeyExchangeCmd(nullptr, true, ABORT_IF_ERROR); variable
143 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
150 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
157 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
164 BaseCmd *self = CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
170 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
178 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
189 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
199 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
[all …]
Dauth_code_import_test.cpp94 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
136 BaseCmd *self = CreateAuthCodeImportCmd(nullptr, true, ABORT_IF_ERROR); variable
143 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
150 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
157 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
164 BaseCmd *self = CreateAuthCodeImportCmd((void *)(&errorParams), true, ABORT_IF_ERROR); variable
170 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
178 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
189 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
199 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); variable
[all …]
/base/security/device_auth/common_lib/impl/src/
Dhc_string.c30 HcBool StringAppend(HcString *self, HcString str) in StringAppend()
50 HcBool StringAppendPointer(HcString *self, const char *str) in StringAppendPointer()
69 HcBool StringAppendChar(HcString *self, char c) in StringAppendChar()
90 HcBool StringSet(HcString *self, HcString str) in StringSet()
107 HcBool StringSetPointer(HcString *self, const char *str) in StringSetPointer()
122 const char *StringGet(const HcString *self) in StringGet()
136 uint32_t StringLength(const HcString *self) in StringLength()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/
Dexpand_sub_session_test.cpp104 ExpandSubSession *self = NULL; variable
159 ExpandSubSession *self; variable
167 ExpandSubSession *self; variable
174 ExpandSubSession *self; variable
182 ExpandSubSession *self; variable
195 ExpandSubSession *self = nullptr; variable
206 ExpandSubSession *self; variable
219 ExpandSubSession *self; variable
232 ExpandSubSession *self; variable
247 ExpandSubSession *self; variable
[all …]

12345678910