Home
last modified time | relevance | path

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

/bionic/libc/kernel/tools/
Dkernel.py67 def __init__(self,config={}): argument
69 self.reset()
70 self.config = config
72 def reset(self,config={}): argument
73 self.files = set() # set of files being parsed for headers
74 self.headers = {} # maps headers to set of users
75 self.config = config
77 def checkInclude(self, line, from_file, kernel_root=None): argument
87 self.files.add(from_file)
98 if not header in self.headers:
[all …]
Dcpp.py106 def __init__(self, tu=None, group=None, int_data=None, ptr_data=None, argument
108 clang.cindex.Token.__init__(self)
109 self._id = None
110 self._tu = tu
111 self._group = group
112 self._cursor = cursor
116 self.int_data = int_data
117 self.ptr_data = ptr_data
120 def id(self): argument
122 if self._id is None:
[all …]
Dutils.py21 def __init__(self): argument
22 self.line = ""
24 def write(self,msg): argument
25 self.line += msg
28 def get(self): argument
29 return self.line
52 def __init__(self): argument
53 self.old_files = set()
54 self.new_files = set()
55 self.new_data = {}
[all …]
/bionic/libc/tools/
Dgenserv.py18 def __init__(self,name,port,proto): argument
19 self.name = name
20 self.port = port
21 self.proto = proto
22 self.aliases = []
24 def add_alias(self,alias): argument
25 self.aliases.append(alias)
27 def __str__(self): argument
28 result = "\\%0o%s" % (len(self.name),self.name)
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
[all …]
Dgensyscalls.py388 def __init__(self): argument
389 self.syscalls = []
390 self.lineno = 0
392 def E(self, msg): argument
393 print "%d: %s" % (self.lineno, msg)
395 def parse_line(self, line): argument
402 E = self.E
483 self.syscalls.append(t)
488 def parse_file(self, file_path): argument
492 self.lineno += 1
[all …]
Dgenlibgcc_compat.py77 def process(self): argument
/bionic/libc/bionic/
Dfork.cpp39 pthread_internal_t* self = __get_thread(); in fork() local
42 pid_t parent_pid = self->invalidate_cached_pid(); in fork()
45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); in fork()
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); in fork()
50 self->set_cached_pid(gettid()); in fork()
53 self->set_cached_pid(parent_pid); in fork()
Dgetpid.cpp36 pthread_internal_t* self = __get_thread(); in getpid() local
40 if (__predict_true(self->get_cached_pid(&cached_pid))) { in getpid()
Dclone.cpp70 pthread_internal_t* self = __get_thread(); in clone() local
71 pid_t parent_pid = self->invalidate_cached_pid(); in clone()
81 self->set_cached_pid(parent_pid); in clone()
/bionic/tools/bionicbb/
Dtest_tasks.py11 def test_accepts_googlers(self, mock_commit, *other_checks): argument
20 self.assertFalse(presubmit.should_skip_build({
29 def test_rejects_googlish_domains(self, mock_commit, *other_checks): argument
38 self.assertTrue(presubmit.should_skip_build({
47 def test_rejects_non_googlers(self, mock_commit, *other_checks): argument
56 self.assertTrue(presubmit.should_skip_build({
65 def test_skips_cleanspecs(self, mock_files, *other_checks): argument
71 self.assertTrue(presubmit.should_skip_build({
80 def test_skips_bionicbb(self, mock_files, *other_checks): argument
86 self.assertTrue(presubmit.should_skip_build({
Dgerrit.py21 def __init__(self, code, url): argument
22 self.code = code
23 self.url = url
24 super(GerritError, self).__init__('Error {}: {}'.format(code, url))
/bionic/tests/
Ddlfcn_test.cpp54 void* self = dlopen(NULL, RTLD_NOW); in TEST() local
55 ASSERT_TRUE(self != NULL); in TEST()
58 void* sym = dlsym(self, "DlSymTestFunction"); in TEST()
67 ASSERT_EQ(0, dlclose(self)); in TEST()
720 void* self = dlopen("/does/not/exist", RTLD_NOW); in TEST() local
721 ASSERT_TRUE(self == NULL); in TEST()
752 void* self = dlopen(NULL, RTLD_NOW); in TEST() local
753 ASSERT_TRUE(self != NULL); in TEST()
769 sym = dlsym(self, NULL); in TEST()
775 sym = dlsym(self, "ThisSymbolDoesNotExist"); in TEST()
[all …]