/system/media/camera/docs/ |
D | metadata_model.py | 52 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 …]
|
D | metadata_model_test.py | 6 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 …]
|
D | metadata_parser_xml.py | 64 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 …]
|
D | metadata_helpers_test.py | 8 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/ |
D | plot_sdcard.py | 50 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/ |
D | test_pthread_getcpuclockid.c | 41 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/ |
D | Threads.cpp | 736 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 …]
|
D | Looper.cpp | 114 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/ |
D | healthd.cpp | 179 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/ |
D | keystore.cpp | 1440 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/ |
D | binderAddInts.cpp | 227 sp<ProcessState> proc(ProcessState::self()); in server()
|