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

/system/media/camera/docs/
H A Dmetadata_model.py52 def __init__(self):
53 self._parent = None
54 self._name = None
57 def parent(self):
58 return self._parent
61 def name(self):
62 return self._name
64 def find_all(self, pred):
75 if pred(self):
76 yield self
[all...]
H A Dmetadata_helpers_test.py71 def test_enum_calculate_value_string(self):
74 self.assertEquals(val,
107 def test_enumerate_with_last(self):
111 self.fail("Should not return anything for empty list")
115 self.assertEquals(1, x)
116 self.assertEquals(True, last)
120 self.assertListEqual([(4, False), (5, False), (6, True)], lst)
122 def test_filter_tags(self):
158 self.assertEqual(result_text, expected_text)
160 def test_wbr(self)
[all...]
H A Dmetadata_model_test.py6 def test_combine_children_by_name(self):
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)
[all...]
H A Dmetadata_parser_xml.py64 def __init__(self, xml, file_name):
76 self._soup = validate_xml(xml)
78 if self._soup is None:
81 self._metadata = Metadata()
82 self._parse()
83 self._metadata.construct_graph()
102 def soup(self):
103 return self._soup
106 def metadata(self):
107 return self
[all...]
/system/extras/tests/sdcard/
H A Dplot_sdcard.py50 def __init__(self, line):
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):
61 return str(zip(self
[all...]
/system/core/healthd/
H A Dhealthd_mode_android.cpp41 IPCThreadState::self()->flushCommands();
46 IPCThreadState::self()->handlePolledCommands();
50 ProcessState::self()->setThreadPoolMaxThreadCount(0);
51 IPCThreadState::self()->disableBackgroundScheduling(true);
52 IPCThreadState::self()->setupPolling(&gBinderFd);
H A DBatteryPropertiesRegistrar.cpp80 IPCThreadState* self = IPCThreadState::self(); local
81 const int pid = self->getCallingPid();
82 const int uid = self->getCallingUid();
/system/core/libutils/
H A DThreads.cpp144 // prctl(PR_SET_NAME) only works for self; prctl(PR_SET_THREAD_NAME) was
742 Thread* const self = static_cast<Thread*>(user); local
744 sp<Thread> strong(self->mHoldSelf);
746 self->mHoldSelf.clear();
750 self->mTid = gettid();
759 self->mStatus = self->readyToRun();
760 result = (self->mStatus == NO_ERROR);
762 if (result && !self->exitPending()) {
773 result = self
[all...]
H A DLooper.cpp114 Looper* const self = static_cast<Looper*>(st);
115 if (self != NULL) {
116 self->decStrong((void*)threadDestructor);
/system/security/keystore/
H A Dkeystore.cpp1595 uid_t callingUid = IPCThreadState::self()->getCallingUid();
1596 pid_t spid = IPCThreadState::self()->getCallingPid();
1606 uid_t callingUid = IPCThreadState::self()->getCallingUid();
1607 pid_t spid = IPCThreadState::self()->getCallingPid();
1634 pid_t spid = IPCThreadState::self()->getCallingPid();
1635 uid_t callingUid = IPCThreadState::self()->getCallingUid();
1663 uid_t callingUid = IPCThreadState::self()->getCallingUid();
1664 pid_t spid = IPCThreadState::self()->getCallingPid();
1682 uid_t callingUid = IPCThreadState::self()->getCallingUid();
1683 pid_t spid = IPCThreadState::self()
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp103 // This testcase limits its self to using CPUs that were
227 sp<ProcessState> proc(ProcessState::self());
/system/keymaster/
H A DMakefile21 CXXFLAGS=-Wall -Werror -Wno-unused -Winit-self -Wpointer-arith -Wunused-parameter \

Completed in 523 milliseconds