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

1234567891011>>

/external/clearsilver/python/examples/base/
H A DPassSGMLParser.py11 def __init__(self, fp, pass_unknown=0, verbose=0):
12 self.pass_unknown = pass_unknown
13 self.data = ""
14 self.fp = fp
15 SGMLParser.__init__(self, verbose)
17 def handle_data(self, data):
18 self.data = self.data + data
20 def flush(self):
21 data = self
[all...]
/external/webkit/WebKitTools/Scripts/webkitpy/style/processors/
H A Dcpp_unittest.py55 def __init__(self, assert_fn):
57 self._assert_fn = assert_fn
58 self._errors = []
60 def __call__(self, unused_linenum, category, confidence, message):
61 self._assert_fn(category in self._all_style_categories,
64 self._seen_style_categories[category] = 1
65 self._errors.append('%s [%s] [%d]' % (message, category, confidence))
67 def results(self):
68 if len(self
[all...]
H A Dcommon_unittest.py44 def setUp(self):
45 self._style_errors = [] # The list of accumulated style errors.
47 def _mock_style_error_handler(self, line_number, category, confidence,
51 self._style_errors.append(error)
53 def assert_carriage_return(self, line, is_error):
56 handle_style_error = self._mock_style_error_handler
64 expected_errors = [(line_number, self._category, self._confidence,
66 self.assertEquals(self
[all...]
/external/srec/shared/src/
H A DHashMap.c25 ESR_ReturnCode HashMapPut(HashMap* self, const LCHAR* key, void* value) argument
27 if (self == NULL)
29 return self->put(self, key, value);
32 ESR_ReturnCode HashMapRemove(HashMap* self, const LCHAR* key) argument
34 if (self == NULL)
36 return self->remove(self, key);
39 ESR_ReturnCode HashMapRemoveAndFree(HashMap* self, const LCHAR* key) argument
41 if (self
46 HashMapRemoveAtIndex(HashMap* self, const size_t index) argument
53 HashMapRemoveAll(HashMap* self) argument
60 HashMapRemoveAndFreeAll(HashMap* self) argument
67 HashMapContainsKey(HashMap* self, const LCHAR* key, ESR_BOOL* exists) argument
74 HashMapGetSize(HashMap* self, size_t* size) argument
81 HashMapGet(HashMap* self, const LCHAR* key, void** value) argument
88 HashMapGetKeyAtIndex(HashMap* self, const size_t index, LCHAR** key) argument
95 HashMapGetValueAtIndex(HashMap* self, const size_t index, void** value) argument
102 HashMapDestroy(HashMap* self) argument
[all...]
H A DIntArrayList.c24 ESR_ReturnCode IntArrayListAdd(IntArrayList* self, int element) argument
26 if (self == NULL)
28 return self->add(self, element);
31 ESR_ReturnCode IntArrayListRemove(IntArrayList* self, int element) argument
33 if (self == NULL)
35 return self->remove(self, element);
38 ESR_ReturnCode IntArrayListRemoveAll(IntArrayList* self) argument
40 if (self
45 IntArrayListContains(IntArrayList* self, int element, ESR_BOOL* exists) argument
52 IntArrayListGetSize(IntArrayList* self, size_t* size) argument
59 IntArrayListGet(IntArrayList* self, size_t index, int* element) argument
66 IntArrayListSet(IntArrayList* self, size_t index, int element) argument
73 IntArrayListToStaticArray(IntArrayList* self, int** newArray) argument
80 IntArrayListDestroy(IntArrayList* self) argument
[all...]
H A Dlstring.c25 ESR_ReturnCode LStringAppend(LString* self, const LCHAR* value) argument
27 if (self == NULL)
32 return self->append(self, value);
35 ESR_ReturnCode LStringToLCHAR(LString* self, LCHAR** result) argument
37 if (self == NULL)
42 return self->toLCHAR(self, result);
45 ESR_ReturnCode LStringReset(LString* self) argument
47 if (self
55 LStringDestroy(LString* self) argument
[all...]
H A DInt8ArrayList.c26 ESR_ReturnCode Int8ArrayListAdd(Int8ArrayList* self, asr_int8_t element) argument
28 if (self == NULL)
33 return self->add(self, element);
36 ESR_ReturnCode Int8ArrayListRemove(Int8ArrayList* self, asr_int8_t element) argument
38 if (self == NULL)
43 return self->remove(self, element);
46 ESR_ReturnCode Int8ArrayListRemoveAll(Int8ArrayList* self) argument
48 if (self
56 Int8ArrayListContains(Int8ArrayList* self, asr_int8_t element, ESR_BOOL* exists) argument
66 Int8ArrayListGetSize(Int8ArrayList* self, size_t* size) argument
76 Int8ArrayListGet(Int8ArrayList* self, size_t index, asr_int8_t* element) argument
86 Int8ArrayListSet(Int8ArrayList* self, size_t index, asr_int8_t element) argument
96 Int8ArrayListToStaticArray(Int8ArrayList* self, asr_int8_t** newArray) argument
106 Int8ArrayListClone(Int8ArrayList* self, Int8ArrayList* clone) argument
116 Int8ArrayListDestroy(Int8ArrayList* self) argument
[all...]
/external/bluetooth/bluez/test/
H A Dapitest89 def __init__(self, argv):
90 self.name = argv[0]
92 self.parse_args(argv[1:])
95 self.dbus_setup()
100 def parse_args(self, argv):
104 self.usage()
109 self.usage()
112 self.listen = True
115 self.dev_path = a
117 self
[all...]
/external/embunit/src/
H A DTestResult.c39 void TestResult_init(TestResult* self,TestListner* listner) argument
41 self->runCount = 0;
42 self->failureCount = 0;
43 self->listener = listner;
46 void TestResult_startTest(TestResult* self,Test* test) argument
48 self->runCount++;
49 if (self->listener) {
50 TestListner_startTest(self->listener, test);
54 void TestResult_endTest(TestResult* self,Test* test) argument
56 if (self
61 TestResult_addFailure(TestResult* self,Test* test,const char* msg,int line,const char* file) argument
[all...]
/external/srec/portable/src/
H A DArrayList.c27 ESR_ReturnCode ArrayListAdd(ArrayList* self, void* element) argument
29 if (self == NULL)
34 return self->add(self, element);
37 ESR_ReturnCode ArrayListInsertAt(ArrayList* self, size_t index, void* element) argument
39 if (self == NULL)
44 return self->insertAt(self, index, element);
47 ESR_ReturnCode ArrayListRemove(ArrayList* self, void* element) argument
49 if (self
57 ArrayListRemoveAtIndex(ArrayList* self, size_t index) argument
67 ArrayListRemoveAll(ArrayList* self) argument
77 ArrayListContains(ArrayList* self, void* element, ESR_BOOL* exists) argument
87 ArrayListGetSize(ArrayList* self, size_t* size) argument
97 ArrayListGet(ArrayList* self, size_t index, void** element) argument
107 ArrayListSet(ArrayList* self, size_t index, void* element) argument
117 ArrayListClone(ArrayList* self, ArrayList* clone) argument
127 ArrayListDestroy(ArrayList* self) argument
[all...]
/external/webkit/WebKitTools/Scripts/webkitpy/layout_tests/port/
H A Dtest.py41 def __init__(self, port_name=None, options=None):
42 base.Port.__init__(self, port_name, options)
44 def base_platforms(self):
47 def baseline_path(self):
49 self.topdir = curdir[0:curdir.index("WebKitTools")]
50 return os.path.join(self.topdir, 'LayoutTests', 'platform', 'test')
52 def baseline_search_path(self):
53 return [self.baseline_path()]
55 def check_sys_deps(self):
58 def diff_image(self, actual_filenam
[all...]
H A Dchromium_mac.py43 def __init__(self, port_name=None, options=None):
46 chromium.ChromiumPort.__init__(self, port_name, options)
48 def baseline_search_path(self):
49 return [self.baseline_path(),
50 self._webkit_baseline_path('mac' + self.version()),
51 self._webkit_baseline_path('mac')]
53 def check_sys_deps(self):
57 def num_cores(self):
61 def test_platform_name(self)
[all...]
/external/webkit/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/
H A Dmetered_stream.py48 def __init__(self, verbose, stream):
54 self._dirty = False
55 self._verbose = verbose
56 self._stream = stream
57 self._last_update = ""
59 def write(self, txt):
62 if self._dirty:
63 self.update("")
64 self._dirty = False
65 self
[all...]
/external/webkit/WebKitTools/Scripts/webkitpy/
H A Dnetworktransaction.py40 def __init__(self, initial_backoff_seconds=10, grown_factor=1.1, timeout_seconds=5*60*60):
41 self._initial_backoff_seconds = initial_backoff_seconds
42 self._grown_factor = grown_factor
43 self._timeout_seconds = timeout_seconds
45 def run(self, request):
46 self._total_sleep = 0
47 self._backoff_seconds = self._initial_backoff_seconds
52 self._check_for_timeout()
53 log("Received HTTP status %s from server. Retrying in %s seconds..." % (e.code, self
[all...]
H A Dpatchcollection.py31 def collection_name(self):
34 def fetch_potential_patch_ids(self):
37 def status_server(self):
40 def is_terminal_status(self, status):
45 def __init__(self, delegate):
46 self._delegate = delegate
47 self._name = self._delegate.collection_name()
48 self._status = self
[all...]
/external/webkit/WebKitTools/Scripts/webkitpy/style/
H A Derror_handlers_unittest.py36 def setUp(self):
37 self._error_messages = ""
38 self._error_count = 0
40 def _mock_increment_error_count(self):
41 self._error_count += 1
43 def _mock_stderr_write(self, message):
44 self._error_messages += message
55 def _error_handler(self, options):
56 return DefaultStyleErrorHandler(self._file_path,
58 self
[all...]
H A Dfilter.py60 def __init__(self, filter_rules=None):
78 self._filter_rules = filter_rules
79 self._should_check_category = {} # Cached dictionary of category to True/False
81 def __str__(self):
82 return ",".join(self._filter_rules)
85 def __eq__(self, other):
87 return self._filter_rules == other._filter_rules
90 def __ne__(self, other):
92 return not (self == other)
94 def should_check(self, categor
[all...]
/external/webkit/WebKitTools/pywebsocket/mod_pywebsocket/
H A Dmemorizingfile.py49 def __init__(self, file_, max_memorized_lines=sys.maxint):
58 self._file = file_
59 self._memorized_lines = []
60 self._max_memorized_lines = max_memorized_lines
62 def __getattribute__(self, name):
65 return object.__getattribute__(self, name)
66 return self._file.__getattribute__(name)
68 def readline(self):
71 line = self._file.readline()
72 if line and len(self
[all...]
/external/srec/srec/Nametag/src/
H A DNametag.c26 ESR_ReturnCode SR_NametagGetID(const SR_Nametag* self, LCHAR** id) argument
28 if (self == NULL)
33 return self->getID(self, id);
36 ESR_ReturnCode SR_NametagGetValue(const SR_Nametag* self, const char** pvalue, size_t* plen) argument
38 if (self == NULL || pvalue == NULL || plen == NULL)
43 return self->getValue(self, pvalue, plen);
46 ESR_ReturnCode SR_NametagSetID(SR_Nametag* self, const LCHAR* id) argument
48 if (self
56 SR_NametagClone(const SR_Nametag* self, SR_Nametag** result) argument
66 SR_NametagDestroy(SR_Nametag* self) argument
[all...]
H A DNametags.c23 ESR_ReturnCode SR_NametagsLoad(SR_Nametags* self, const LCHAR* filename) argument
25 if (self == NULL)
30 return self->load(self, filename);
33 ESR_ReturnCode SR_NametagsSave(SR_Nametags* self, const LCHAR* filename) argument
35 if (self == NULL)
40 return self->save(self, filename);
43 ESR_ReturnCode SR_NametagsAdd(SR_Nametags* self, SR_Nametag* nametag) argument
45 if (self
53 SR_NametagsRemove(SR_Nametags* self, const LCHAR* id) argument
63 SR_NametagsGetSize(SR_Nametags* self, size_t* result) argument
73 SR_NametagsGet(SR_Nametags* self, const LCHAR* id, SR_Nametag** nametag) argument
83 SR_NametagsGetAtIndex(SR_Nametags* self, size_t index, SR_Nametag** nametag) argument
93 SR_NametagsContains(SR_Nametags* self, const LCHAR* id, ESR_BOOL* result) argument
103 SR_NametagsDestroy(SR_Nametags* self) argument
[all...]
/external/webkit/WebKitTools/pywebsocket/test/
H A Dmock.py45 def __init__(self):
46 self._write_data = []
48 def write(self, data):
51 self._write_data.append(data)
53 def written_data(self):
56 return ''.join(self._write_data)
66 def __init__(self, read_data):
74 _MockConnBase.__init__(self)
75 self._read_data = read_data
76 self
[all...]
/external/srec/srec/EventLog/src/
H A DEventLog.c26 ESR_ReturnCode SR_EventLogDestroy(SR_EventLog* self) argument
28 if (self == NULL)
33 return self->destroy(self);
36 ESR_ReturnCode SR_EventLogToken(SR_EventLog* self, const LCHAR* token, const LCHAR *value) argument
38 if (self == NULL)
43 return self->token(self, token, value);
46 ESR_ReturnCode SR_EventLogTokenInt(SR_EventLog* self, const LCHAR* token, int value) argument
48 if (self
56 SR_EventLogTokenUint16_t(SR_EventLog* self, const LCHAR* token, asr_uint16_t value) argument
66 SR_EventLogTokenSize_t(SR_EventLog* self, const LCHAR* token, size_t value) argument
76 SR_EventLogTokenBool(SR_EventLog* self, const LCHAR* token, ESR_BOOL value) argument
86 SR_EventLogTokenFloat(SR_EventLog* self, const LCHAR* token, float value) argument
96 SR_EventLogEventSession(SR_EventLog* self) argument
106 SR_EventLogEvent(SR_EventLog* self, const LCHAR *eventName) argument
116 SR_EventLogAudioOpen(SR_EventLog* self, const LCHAR* audio_type, size_t sample_rate, size_t sample_size) argument
126 SR_EventLogAudioClose(SR_EventLog* self) argument
136 SR_EventLogAudioWrite(SR_EventLog* self, void* buffer, size_t num_bytes) argument
146 SR_EventLogAudioGetFilename(SR_EventLog* self, LCHAR* waveformFilename, size_t* len) argument
[all...]
/external/srec/srec/Recognizer/src/
H A DRecognizer.c28 ESR_ReturnCode SR_RecognizerStart(SR_Recognizer* self) argument
30 if (self == NULL)
38 return self->start(self);
41 ESR_ReturnCode SR_RecognizerStop(SR_Recognizer* self) argument
43 if (self == NULL)
51 return self->stop(self);
54 ESR_ReturnCode SR_RecognizerDestroy(SR_Recognizer* self) argument
56 if (self
64 SR_RecognizerSetup(SR_Recognizer* self) argument
74 SR_RecognizerUnsetup(SR_Recognizer* self) argument
84 SR_RecognizerIsSetup(SR_Recognizer* self, ESR_BOOL* isSetup) argument
94 SR_RecognizerGetParameter(SR_Recognizer* self, const LCHAR* name, LCHAR* value, size_t* len) argument
104 SR_RecognizerGetSize_tParameter(SR_Recognizer* self, const LCHAR* name, size_t* value) argument
114 SR_RecognizerGetBoolParameter(SR_Recognizer* self, const LCHAR* name, ESR_BOOL* value) argument
124 SR_RecognizerSetParameter(SR_Recognizer* self, const LCHAR* name, LCHAR* value) argument
134 SR_RecognizerSetSize_tParameter(SR_Recognizer* self, const LCHAR* name, size_t value) argument
147 SR_RecognizerSetBoolParameter(SR_Recognizer* self, const LCHAR* name, ESR_BOOL value) argument
157 SR_RecognizerSetupRule(SR_Recognizer* self, SR_Grammar* grammar, const LCHAR* ruleName) argument
168 SR_RecognizerHasSetupRules(SR_Recognizer* self, ESR_BOOL* hasSetupRules) argument
179 SR_RecognizerActivateRule(SR_Recognizer* self, SR_Grammar* grammar, const LCHAR* ruleName, unsigned int weight) argument
190 SR_RecognizerDeactivateRule(SR_Recognizer* self, SR_Grammar* grammar, const LCHAR* ruleName) argument
201 SR_RecognizerDeactivateAllRules(SR_Recognizer* self) argument
211 SR_RecognizerIsActiveRule(SR_Recognizer* self, SR_Grammar* grammar, const LCHAR* ruleName, ESR_BOOL* isActiveRule) argument
222 SR_RecognizerCheckGrammarConsistency(SR_Recognizer* self, SR_Grammar* grammar, ESR_BOOL* isConsistent) argument
233 SR_RecognizerGetModels(SR_Recognizer* self, SR_AcousticModels** pmodels) argument
243 SR_RecognizerPutAudio(SR_Recognizer* self, asr_int16_t* buffer, size_t* bufferSize, ESR_BOOL isLast) argument
263 SR_RecognizerAdvance(SR_Recognizer* self, SR_RecognizerStatus* status, SR_RecognizerResultType* type, SR_RecognizerResult** result) argument
284 SR_RecognizerLoadUtterance(SR_Recognizer* self, const LCHAR* filename) argument
294 SR_RecognizerLoadWaveFile(SR_Recognizer* self, const LCHAR* filename) argument
304 SR_RecognizerLogEvent(SR_Recognizer* self, const LCHAR* event) argument
314 SR_RecognizerLogToken(SR_Recognizer* self, const LCHAR* token, const LCHAR* value) argument
324 SR_RecognizerLogTokenInt(SR_Recognizer* self, const LCHAR* token, int value) argument
335 SR_RecognizerLogSessionStart(SR_Recognizer* self, const LCHAR* sessionName) argument
346 SR_RecognizerLogSessionEnd(SR_Recognizer* self) argument
357 SR_RecognizerLogWaveformData(SR_Recognizer* self, const LCHAR* waveformFilename, const LCHAR* transcription, const double bos, const double eos, ESR_BOOL isInvocab) argument
373 SR_RecognizerSetLockFunction(SR_Recognizer* self, SR_RecognizerLockFunction function, void* data) argument
383 SR_RecognizerIsSignalClipping(SR_Recognizer* self, ESR_BOOL* isClipping) argument
393 SR_RecognizerIsSignalDCOffset(SR_Recognizer* self, ESR_BOOL* isDCOffset) argument
403 SR_RecognizerIsSignalNoisy(SR_Recognizer* self, ESR_BOOL* isNoisy) argument
413 SR_RecognizerIsSignalTooQuiet(SR_Recognizer* self, ESR_BOOL* isTooQuiet) argument
423 SR_RecognizerIsSignalTooFewSamples(SR_Recognizer* self, ESR_BOOL* isTooFewSamples) argument
433 SR_RecognizerIsSignalTooManySamples(SR_Recognizer* self, ESR_BOOL* isTooManySamples) argument
[all...]
/external/srec/srec/AcousticModels/src/
H A DAcousticModels.c26 ESR_ReturnCode SR_AcousticModelsDestroy(SR_AcousticModels* self) argument
28 if (self == NULL)
33 return self->destroy(self);
36 ESR_ReturnCode SR_AcousticModelsSave(SR_AcousticModels* self, const LCHAR* filename) argument
38 if (self == NULL)
43 return self->save(self, filename);
46 ESR_ReturnCode SR_AcousticModelsSetParameter(SR_AcousticModels* self, const LCHAR* key, LCHAR* value) argument
48 if (self
56 SR_AcousticModelsGetParameter(SR_AcousticModels* self, const LCHAR* key, LCHAR* value, size_t* len) argument
66 SR_AcousticModelsGetCount(SR_AcousticModels* self, size_t* size) argument
76 SR_AcousticModelsGetID(SR_AcousticModels* self, size_t index, SR_AcousticModelID* id, size_t* size) argument
86 SR_AcousticModelsSetID(SR_AcousticModels* self, size_t index, SR_AcousticModelID* id) argument
[all...]
/external/gtest/test/
H A Dgtest_color_test.py69 def testNoEnvVarNoFlag(self):
72 self.assert_(not UsesColor('dumb', None, None))
73 self.assert_(not UsesColor('emacs', None, None))
74 self.assert_(not UsesColor('xterm-mono', None, None))
75 self.assert_(not UsesColor('unknown', None, None))
76 self.assert_(not UsesColor(None, None, None))
77 self.assert_(UsesColor('cygwin', None, None))
78 self.assert_(UsesColor('xterm', None, None))
79 self.assert_(UsesColor('xterm-color', None, None))
81 def testFlagOnly(self)
[all...]

Completed in 198 milliseconds

1234567891011>>