Home
last modified time | relevance | path

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

/system/media/camera/docs/
Dmetadata_model.py52 def __init__(self): argument
53 self._parent = None
54 self._name = None
57 def parent(self): argument
58 return self._parent
61 def name(self): argument
62 return self._name
64 def find_all(self, pred): argument
75 if pred(self):
76 yield self
[all …]
Dmetadata_model_test.py6 def test_combine_children_by_name(self): argument
34 self.assertIsInstance(combined_children_namespace, InnerNamespace)
38 self.assertEquals(kind, combined_children_namespace.parent)
39 self.assertEquals(1, len(combined_ins))
40 self.assertEquals(1, len(combined_ent))
42 self.assertEquals("ins1", combined_ins[0].name)
43 self.assertEquals("entry3", combined_ent[0].name)
46 self.assertIn(entry1, new_ins.entries)
47 self.assertIn(entry2, new_ins.entries)
51 def test_combine_kinds_into_single_node(self): argument
[all …]
Dmetadata_parser_xml.py64 def __init__(self, file_name): argument
75 self._soup = validate_xml(file_name)
77 if self._soup is None:
80 self._metadata = Metadata()
81 self._parse()
82 self._metadata.construct_graph()
85 def soup(self): argument
86 return self._soup
89 def metadata(self): argument
90 return self._metadata
[all …]
Dmetadata_helpers_test.py8 def test_enum_calculate_value_string(self): argument
11 self.assertEquals(val,
44 def test_enumerate_with_last(self): argument
48 self.fail("Should not return anything for empty list")
52 self.assertEquals(1, x)
53 self.assertEquals(True, last)
57 self.assertListEqual([(4, False), (5, False), (6, True)], lst)
/system/extras/tests/sdcard/
Dplot_sdcard.py50 def __init__(self, line): argument
53 self.time = []
54 self.data = []
55 self.name = res.group(1)
56 self.duration = float(res.group(2))
57 self.iteration = int(res.group(3))
58 self.summary = re.match('([a-z_]+)_total', self.name)
60 def __repr__(self): argument
61 return str(zip(self.time, self.data))
63 def Add(self, time, value): argument
[all …]
/system/extras/tests/bionic/libc/common/
Dtest_pthread_getcpuclockid.c41 pthread_t self = pthread_self(); in thread_func() local
48 e = pthread_getcpuclockid( self, &clock ); in thread_func()
50 … fprintf(stderr, "pthread_getcpuclockid(%08lx,) returned error %d: %s\n", self, e, strerror(e)); in thread_func()
60 …fprintf(stderr, "thread %08lx: clock_gettime() returned %g nsecs\n", self, ts.tv_sec*1e9 + ts.tv_n… in thread_func()
/system/core/libutils/
DThreads.cpp736 Thread* const self = static_cast<Thread*>(user); in _threadLoop() local
738 sp<Thread> strong(self->mHoldSelf); in _threadLoop()
740 self->mHoldSelf.clear(); in _threadLoop()
744 self->mTid = gettid(); in _threadLoop()
753 self->mStatus = self->readyToRun(); in _threadLoop()
754 result = (self->mStatus == NO_ERROR); in _threadLoop()
756 if (result && !self->exitPending()) { in _threadLoop()
767 result = self->threadLoop(); in _threadLoop()
770 result = self->threadLoop(); in _threadLoop()
775 Mutex::Autolock _l(self->mLock); in _threadLoop()
[all …]
DLooper.cpp114 Looper* const self = static_cast<Looper*>(st); in threadDestructor() local
115 if (self != NULL) { in threadDestructor()
116 self->decStrong((void*)threadDestructor); in threadDestructor()
/system/core/healthd/
Dhealthd.cpp179 ProcessState::self()->setThreadPoolMaxThreadCount(0); in binder_init()
180 IPCThreadState::self()->disableBackgroundScheduling(true); in binder_init()
181 IPCThreadState::self()->setupPolling(&binder_fd); in binder_init()
185 IPCThreadState::self()->handlePolledCommands(); in binder_event()
238 IPCThreadState::self()->flushCommands(); in healthd_mainloop()
/system/security/keystore/
Dkeystore.cpp1440 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in test()
1450 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in get()
1477 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in insert()
1505 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in del()
1530 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in exist()
1552 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in saw()
1608 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in reset()
1643 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in password()
1669 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in lock()
1686 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in unlock()
[all …]
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp227 sp<ProcessState> proc(ProcessState::self()); in server()