Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 59) sorted by relevance

123

/trusty/kernel/lib/libc-ext/
Duuid.c30 void uuid_to_str(const struct uuid* uuid, char* str) { in uuid_to_str() argument
31 sprintf(str, in uuid_to_str()
42 static bool parse_dash(const char** str) { in parse_dash() argument
43 if (**str != '-') { in parse_dash()
47 *str += 1; in parse_dash()
51 static bool parse_hex_digit(const char** str, uint8_t* dst) { in parse_hex_digit() argument
54 c = **str; in parse_hex_digit()
55 *str += 1; in parse_hex_digit()
70 static bool parse_u8(const char** str, uint8_t* dst) { in parse_u8() argument
74 if (!parse_hex_digit(str, &msn)) { in parse_u8()
[all …]
/trusty/vendor/google/aosp/scripts/
DgenReport.py31 llvmProfdataBin = str(str(os.path.join(llvmDir, "./llvm-profdata")))
40 llvmCovBin = str(str(os.path.join(llvmDir, "./llvm-cov")))
49 llvmCovBin = str(str(os.path.join(llvmDir, "./llvm-cov")))
63 type=str,
70 type=str,
77 type=str,
83 type=str,
89 type=str,
104 profrawFiles = [str(os.path.join(args.profraw_dir, f))
Drun_tests.py55 test: str
59 def __init__(self, test: str, status: Optional[int], retried: bool): argument
72 def __format__(self, _format_spec: str) -> str: argument
242 def test_should_run(testname: str, test_filters: Optional[list[re.Pattern]]): argument
263 projects: list[str], argument
266 ) -> list[str]:
280 def has_test(name: str): argument
303 project: str, argument
350 def print_test_command(name, cmd: Optional[list[str]] = None): argument
492 projects: list[str], argument
[all …]
Dbuild.py69 f.write(str(num))
74 return getpass.getuser() + "@" + os.uname()[1] + "-" + str(num)
362 print(str(failed))
442 def time_from_bytes(f, n: int) -> str:
620 test_obj["type"] = str(test.port_type)
671 type=str,
684 type=str,
694 parser.add_argument("--buildid", type=str, help="Server build id")
697 type=str,
703 type=str,
[all …]
Dtrusty_build_config.py124 cmd += ['--timeout', str(timeout)]
161 cmd += ['--timeout', str(self.timeout)] if self.timeout else []
202 def __init__(self, name: str, argument
365 default_key_paths: List[str], argument
366 project_overrides: Optional[Dict[str, List[str]]] = None): argument
434 def signing_keys(self, project_name: str): argument
464 print(" " + str(test.command))
581 assert m.group(1) == str(i + 1)
/trusty/user/app/sample/prebuilts-test/
Dmain.c25 char str[16]; in TEST() local
27 rc = get_foo(str, sizeof(str)); in TEST()
30 rc = strcmp(str, foo); in TEST()
/trusty/kernel/app/pactest/
Dpactest_arm64.S44 str x0, [x2]
61 str x0, [x2]
79 str x0, [x2]
96 str x0, [x2]
/trusty/user/app/keymint/secure_storage_manager/
Dsoftware.rs28 const RSA_ATTEST_KEY: &str = concat!(
100 const RSA_ATTEST_CERT: &str = concat!(
173 const RSA_ATTEST_ROOT_CERT: &str = concat!(
215 const EC_ATTEST_KEY: &str = concat!(
263 const EC_ATTEST_CERT: &str = concat!(
326 const EC_ATTEST_ROOT_CERT: &str = concat!(
412 pub fn hex_decode(hex: &str) -> Result<Vec<u8>, String> { in hex_decode()
/trusty/kernel/lib/libc-ext/include/trusty/
Duuid.h41 void uuid_to_str(const struct uuid* uuid, char* str);
51 __attribute__((warn_unused_result)) int str_to_uuid(const char* str,
/trusty/host/common/scripts/metrics_atoms_protoc_plugin/
Dmetrics_atoms_protoc_plugin.py77 def snake_case(s: str): argument
88 name: str
98 name: str
119 type_name: str) -> 'VendorAtomValueTag': argument
166 name: str
239 name: str
251 enums: Dict[str, VendorAtomEnum]
259 def snake_case(cls, s: str): argument
263 def assert_reverse_domain_name_field(msg_dict: Dict[str, DescriptorProto], argument
286 def make_atom(msg_dict: Dict[str, DescriptorProto], argument
[all …]
/trusty/user/base/lib/unittest-rust/src/
Dtypes.rs73 StaticTestName(&'static str),
75 AlignedTestName(Cow<'static, str>, NamePadding),
79 pub fn as_slice(&self) -> &str { in as_slice() argument
159 pub ignore_message: Option<&'static str>,
164 pub source_file: &'static str,
187 pub fn test_mode(&self) -> Option<&'static str> { in test_mode() argument
Dasserts.rs96 result: &'static str, in assert_err() argument
106 result: &'static str, in assert_err_inner() argument
131 pub fn simple_assert_failed(cond: &'static str, args: Option<fmt::Arguments<'_>>) { in simple_assert_failed() argument
Dlib.rs58 static TEST_PORT: &'static str; variable
84 pub static TEST_PORT: &'static str = env!(
96 Message(&'m str),
178 fn print_status(test: &TestDesc, msg: &str) { in print_status() argument
/trusty/user/base/lib/storage/rust/src/
Dtransaction.rs62 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file() argument
162 pub fn rename(&mut self, from: &str, to: &str) -> Result<(), Error> { in rename() argument
175 pub fn remove(&mut self, name: &str) -> Result<(), Error> { in remove()
Dlib.rs234 pub fn open_file(&mut self, name: &str, mode: OpenMode) -> Result<SecureFile, Error> { in open_file() argument
250 name: &str, in open_file_impl() argument
301 pub fn read<'buf>(&mut self, path: &str, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error> { in read() argument
322 pub fn write(&mut self, path: &str, buf: &[u8]) -> Result<(), Error> { in write() argument
541 pub fn rename(&mut self, from: &str, to: &str) -> Result<(), Error> { in rename() argument
548 fn rename_impl(&mut self, from: &str, to: &str, complete: bool) -> Result<(), Error> { in rename_impl() argument
583 pub fn remove(&mut self, name: &str) -> Result<(), Error> { in remove()
590 fn remove_impl(&mut self, name: &str, complete: bool) -> Result<(), Error> { in remove_impl() argument
/trusty/kernel/lib/memlog/
Dmemlog.c76 static void __memlog_write(struct memlog* log, const char* str, size_t len) { in __memlog_write() argument
93 *ptr = str[i]; in __memlog_write()
97 static void memlog_write(struct memlog* log, const char* str, size_t len) { in memlog_write() argument
105 __memlog_write(log, &str[i * chunk_size], chunk_size); in memlog_write()
109 __memlog_write(log, &str[i * chunk_size], rem); in memlog_write()
150 void memlog_print_callback(print_callback_t* cb, const char* str, size_t len) { in memlog_print_callback() argument
152 memlog_write(log, str, len); in memlog_print_callback()
/trusty/user/app/storage/
Ddebug.h30 #define TRACEFF(f, str, x...) \ argument
32 fprintf(f, "%s():%d: " str, __func__, __LINE__, ##x); \
Dcrypt.c166 uint64_t str_hash(const char* str) { in str_hash() argument
168 size_t len = strlen(str); in str_hash()
172 evp_ret = EVP_Digest(str, len, md, NULL, EVP_sha1(), NULL); in str_hash()
/trusty/user/base/lib/apploader_package/include/apploader/
Dcbor.h379 void encodeTstr(const std::basic_string_view<char> str) { in encodeTstr() argument
380 size_t len = str.size(); in encodeTstr()
386 void encodeTstr(const char* str) { in encodeTstr() argument
387 size_t len = strlen(str); in encodeTstr()
393 void encodeBstr(const std::string& str) { in encodeBstr() argument
394 encodeBstr(reinterpret_cast<const uint8_t*>(str.data()), in encodeBstr()
395 str.size()); in encodeBstr()
587 void encodeTstr(const char* str) { in encodeTstr() argument
588 const std::string_view view(str); in encodeTstr()
592 void encodeTstr(const std::string_view str) { in encodeTstr() argument
[all …]
/trusty/kernel/lib/sm/arch/arm/
Dentry.S101 str r0, [r5, #__MMU_INITIAL_MAPPING_SIZE_OFFSET]
108 str r4, [r5, #__MMU_INITIAL_MAPPING_PHYS_OFFSET]
/trusty/kernel/lib/mmutest/
Dmmutest_arm64.S68 str wzr, [x0]
98 str w3, [x0]
/trusty/user/app/keymint/unauthorized_test_app/
Dlib.rs31 const KM_SEC_TIPC_SRV_PORT: &str = "com.android.trusty.keymaster.secure"; in test_access_policy_unauthorized()
/trusty/kernel/lib/sm/arch/arm64/
Dentry.S44 str x7, [x9], #8
/trusty/user/app/sample/rust-hello-world/
Dlib.rs25 const HELLO_TRUSTY_PORT_NAME: &str = "com.android.trusty.hello";
135 let inputmsg = std::str::from_utf8(&msg.message).map_err(|e| { in on_message()
231 let deserializedstr = std::str::from_utf8(&buf[2..]) in hello_world_test()
/trusty/kernel/lib/syscall/arch/arm64/
Dsyscall.S61 str x0, [x1, 0]

123