Home
last modified time | relevance | path

Searched refs:self (Results 1 – 21 of 21) sorted by relevance

/trusty/vendor/google/aosp/scripts/
Dlog_processor.py68 def __init__(self): argument
69 self.message = ""
70 self.pending = {}
72 def done(self): argument
73 return not self.pending
75 def __init__(self): argument
76 self.queued = []
77 self.active = {}
79 def len(self): argument
81 assert len(self.queued) == len(self.active), diagnostic
[all …]
Dtrusty_build_config.py46 def __init__(self): argument
49 self.build = False
50 self.tests = []
51 self.also_build = {}
52 self.signing_keys = None
61 def __init__(self, **flags): argument
62 self.flags = set()
63 self.set(**flags)
65 def set(self, **flags): argument
68 if name in self.ALLOWED_FLAGS:
[all …]
Drun_tests.py59 def __init__(self, test: str, status: Optional[int], retried: bool): argument
60 self.test = test
61 self.status = status
62 self.retried = retried
64 def test_status(self) -> TEST_STATUS: argument
65 if self.status is None:
67 return TEST_STATUS.PASSED if self.status == 0 else TEST_STATUS.FAILED
69 def failed(self) -> bool: argument
70 return self.test_status() == TEST_STATUS.FAILED
72 def __format__(self, _format_spec: str) -> str: argument
[all …]
/trusty/device/arm/generic-arm64/project/qemu/
Dqemu.py55 def __init__(self, config=None): argument
69 self.script_dir = os.path.dirname(os.path.realpath(__file__))
73 return os.path.join(self.script_dir, config_value)
77 self.android = find_android_build_dir(android_path)
79 self.android = None
80 self.linux = abspath("linux")
81 self.linux_arch = config_dict.get("linux_arch")
82 self.atf = abspath("atf")
83 self.qemu = abspath("qemu", "qemu-system-aarch64")
84 self.rpmbd = abspath("rpmbd")
[all …]
Dqemu_error.py11 def __init__(self, msg): argument
12 super(RunnerGenericError, self).__init__()
13 self.msg = msg
15 def __str__(self): argument
16 return "Runner failed: %s" % self.msg
22 def __init__(self, msg): argument
23 super(ConfigError, self).__init__()
24 self.msg = msg
26 def __str__(self): argument
27 return "Invalid configuration: %s" % self.msg
[all …]
Dqemu_arm64_options.py23 def __init__(self, config): argument
24 self.args = []
25 self.config = config
27 def rpmb_data_path(self): argument
30 def rpmb_options(self, sock): argument
36 def gen_dtb(self, args, dtb_tmp_file): argument
40 self.config.qemu, "-machine",
76 def drive_args(self, image, index): argument
88 def android_drives_args(self): argument
92 args += self.drive_args("userdata", 2)
[all …]
Dqemu_options.py23 def __init__(self, config): argument
24 self.args = []
25 self.config = config
27 def rpmb_data_path(self): argument
30 def rpmb_options(self, sock): argument
36 def gen_dtb(self, args, dtb_tmp_file): argument
40 self.config.qemu, "-machine",
76 def drive_args(self, image, index): argument
88 def android_drives_args(self): argument
92 args += self.drive_args("userdata", 2)
[all …]
/trusty/user/base/tools/
Dtest_manifest_compiler.py23 def test_get_string_1(self): argument
28 self.assertEqual(len(config_data), 0)
29 self.assertTrue(log.error_occurred())
30 self.assertIsNone(data)
32 def test_get_string_2(self): argument
39 self.assertEqual(len(config_data), 0)
40 self.assertFalse(log.error_occurred())
41 self.assertEqual(data, uuid)
43 def test_get_string_3(self): argument
49 self.assertEqual(len(config_data), 0)
[all …]
Dmanifest_compiler.py213 def __init__(self, name, value, type_, unsigned=False, hex_num=False): argument
214 self.name = name
215 self.value = value
216 self.type = type_
217 self.unsigned = unsigned
218 self.hex_num = hex_num
222 def __init__(self, constants, header): argument
223 self.constants = constants
224 self.header = header
228 def __init__(self, allow_ta_connect, allow_ns_connect): argument
[all …]
/trusty/user/base/lib/stats/include/lib/stats/
Dstats.h34 void stats_istats_add_ref(struct stats_istats* self);
43 struct stats_istats* self,
46 void stats_vendor_atom_add_ref(struct stats_vendor_atom* self);
54 struct stats_vendor_atom* self,
59 struct stats_vendor_atom* self,
63 struct stats_vendor_atom* self,
68 struct stats_vendor_atom* self,
73 struct stats_vendor_atom* self,
78 struct stats_vendor_atom* self,
87 struct stats_vendor_atom* self);
[all …]
/trusty/kernel/lib/shared/device_tree/client/include/lib/shared/device_tree/
Ddevice_tree.h63 struct device_tree_idevice_tree* self,
80 struct device_tree_idevice_tree* self,
233 void device_tree_inode_release(struct device_tree_inode** self);
243 void device_tree_inode_iter_release(struct device_tree_inode_iter** self);
253 void device_tree_idevice_tree_release(struct device_tree_idevice_tree** self);
263 void device_tree_iprop_iter_release(struct device_tree_iprop_iter** self);
273 void device_tree_prop_release(struct device_tree_prop** self);
/trusty/user/base/lib/stats/
Dstats.cpp40 auto parcel = stats_vendor_atom_to_VendorAtom(self); \
84 int stats_istats_report_vendor_atom(struct stats_istats* self, in stats_istats_report_vendor_atom() argument
86 auto iface = stats_istats_to_IStats(self); in stats_istats_report_vendor_atom()
114 int stats_vendor_atom_set_reverse_domain_name(struct stats_vendor_atom* self, in stats_vendor_atom_set_reverse_domain_name() argument
117 auto parcel = stats_vendor_atom_to_VendorAtom(self); in stats_vendor_atom_set_reverse_domain_name()
122 int stats_vendor_atom_set_atom_id(struct stats_vendor_atom* self, int atom_id) { in stats_vendor_atom_set_atom_id() argument
123 auto parcel = stats_vendor_atom_to_VendorAtom(self); in stats_vendor_atom_set_atom_id()
128 int stats_vendor_atom_set_int_value_at(struct stats_vendor_atom* self, in stats_vendor_atom_set_int_value_at() argument
134 int stats_vendor_atom_set_long_value_at(struct stats_vendor_atom* self, in stats_vendor_atom_set_long_value_at() argument
140 int stats_vendor_atom_set_float_value_at(struct stats_vendor_atom* self, in stats_vendor_atom_set_float_value_at() argument
[all …]
/trusty/host/common/scripts/metrics_atoms_protoc_plugin/
Dmetrics_atoms_protoc_plugin.py92 def name_len(self): argument
93 return len(self.name)
102 def values_name_len(self): argument
103 return max(len(v.name) for v in self.values)
106 def c_name(self): argument
172 def c_name(self): argument
173 return snake_case(self.name)
176 def is_string(self): argument
177 return self.tag in [
182 def c_type(self): argument
[all …]
/trusty/kernel/lib/shared/ibinder/include/lib/shared/ibinder/
Dmacros.h37 void iface##_add_ref(struct iface* self) { \
38 auto container = containerof(self, struct iface##_container, cbinder); \
43 void parcel_struct##_add_ref(struct parcel_struct* self) { \
45 containerof(self, struct parcel_struct##_container, cparcel); \
81 android::sp<aidl>& iface##_to_##aidl(struct iface* self) { \
82 auto container = containerof(self, struct iface##_container, cbinder); \
88 struct parcel_struct* self) { \
90 containerof(self, struct parcel_struct##_container, cparcel); \
Dibinder.h28 void ibinder_add_ref(struct ibinder* self);
37 void ibinder_release(struct ibinder** self);
/trusty/kernel/lib/shared/device_tree/client/
Ddevice_tree.cpp89 struct device_tree_idevice_tree* self, in device_tree_idevice_tree_get_compatible_nodes() argument
93 self, &compat_str, 1, iter); in device_tree_idevice_tree_get_compatible_nodes()
97 struct device_tree_idevice_tree* self, in device_tree_idevice_tree_get_compatible_nodes_from_list() argument
101 assert(self != nullptr); in device_tree_idevice_tree_get_compatible_nodes_from_list()
106 auto pidevice_tree = device_tree_idevice_tree_to_IDeviceTree(self); in device_tree_idevice_tree_get_compatible_nodes_from_list()
/trusty/user/app/storage/
Dipc.c44 static void handle_channel(const uevent_t* ev, void* self);
45 static void handle_port(const uevent_t* ev, void* self);
194 static void handle_port(const struct uevent* ev, void* self) { in handle_port() argument
195 struct ipc_port_context* port_ctx = self; in handle_port()
203 static void handle_channel(const struct uevent* ev, void* self) { in handle_channel() argument
204 struct ipc_channel_context* channel_ctx = self; in handle_channel()
Dclient_tipc.c231 static bool buf_has_space(void* self, size_t max_path_len) { in buf_has_space() argument
232 struct storage_tipc_file_iter_data* this = self; in buf_has_space()
238 static void write_to_buf(void* self, in write_to_buf() argument
242 struct storage_tipc_file_iter_data* this = self; in write_to_buf()
/trusty/kernel/lib/syscall/stubgen/
Dstubgen.py95 def __init__(self, syscall_stub, footer=""): argument
96 self.syscall_stub = syscall_stub
97 self.footer = footer
/trusty/user/app/avb/test/
DMakefile2 CXXFLAGS += -g -O0 -Wall -Werror -Wno-unused -Winit-self \
/trusty/kernel/lib/libcxx-trusty/include/
D__external_threading39 // __m is self-referential so disable copies and moves
62 // __e is self-referential so disable copies and moves