/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
H A D | tokens.py | 44 def getText(self): 51 def setText(self, text): 59 def getType(self): 66 def setType(self, ttype): 74 def getLine(self): 83 def setLine(self, line): 91 def getCharPositionInLine(self): 100 def setCharPositionInLine(self, pos): 108 def getChannel(self): 115 def setChannel(self, channe [all...] |
H A D | exceptions.py | 75 def __init__(self, input=None): 76 Exception.__init__(self) 79 self.input = None 83 self.index = None 88 self.token = None 92 self.node = None 95 self.c = None 100 self.line = None 102 self.charPositionInLine = None 108 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
H A D | chromium_linux.py | 50 def __init__(self, port_name=None, **kwargs): 52 chromium.ChromiumPort.__init__(self, port_name=port_name, **kwargs) 57 self._architecture = self._determine_architecture() 60 port_name = port_name + '-' + self._architecture 64 self._architecture = arch 65 assert self._architecture in self.SUPPORTED_ARCHITECTURES 69 self._name = port_name 70 self [all...] |
H A D | config_mock.py | 34 def __init__(self, default_configuration='Release'): 35 self._default_configuration = default_configuration 37 def build_directory(self, configuration): 40 def build_dumprendertree(self, configuration): 43 def default_configuration(self): 44 return self._default_configuration 46 def path_from_webkit_base(self, *comps): 49 def webkit_base_dir(self):
|
H A D | base.py | 72 def __init__(self, **kwargs): 79 self.__dict__[key] = value 86 def __init__(self, port_name=None, options=None, 92 self._name = port_name 96 self._operating_system = 'mac' 97 self._version = '' 98 self._architecture = 'x86' 99 self._graphics_type = 'cpu' 104 self._options = options or DummyOptions() 106 self [all...] |
H A D | http_lock_unittest.py | 35 def __init__(self, testFunc): 36 self.http_lock_obj = http_lock.HttpLock(None, "WebKitTestHttpd.lock.", "WebKitTest.lock") 37 self.lock_file_path_prefix = os.path.join(self.http_lock_obj._lock_path, 38 self.http_lock_obj._lock_file_prefix) 39 self.lock_file_name = self.lock_file_path_prefix + "0" 40 self.guard_lock_file = self.http_lock_obj._guard_lock_file 41 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | changelog_unittest.py | 35 def assert_no_error(self, lines_to_check, changelog_data): 37 self.fail('Unexpected error: %d %s %d %s for\n%s' % (line_number, category, confidence, message, changelog_data)) 38 self.lines_to_check = set(lines_to_check) 39 checker = changelog.ChangeLogChecker('ChangeLog', handle_style_error, self.mock_should_line_be_checked) 42 def assert_error(self, expected_line_number, lines_to_check, expected_category, changelog_data): 43 self.had_error = False 46 self.had_error = True 47 self.assertEquals(expected_line_number, line_number) 48 self.assertEquals(expected_category, category) 49 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
H A D | directoryfileset_unittest.py | 33 def setUp(self): 38 self._filesystem = MockFileSystem(files) 39 self._fileset = DirectoryFileSet('/test', self._filesystem) 41 def test_files_in_namelist(self): 42 self.assertTrue('some-file' in self._fileset.namelist()) 43 self.assertTrue('some-other-file' in self._fileset.namelist()) 44 self [all...] |
H A D | zipfileset_mock.py | 34 def __init__(self, url): 35 self._url = url 36 self._ziphash = ziphashes[url] 38 def namelist(self): 39 return self._ziphash.keys() 41 def read(self, member): 42 return self._ziphash[member] 44 def close(self):
|
H A D | directoryfileset.py | 30 def __init__(self, path, filesystem=None): 31 self._path = path 32 self._filesystem = filesystem or FileSystem() 33 if not self._path.endswith(self._filesystem.sep): 34 self._path += self._filesystem.sep 36 def _full_path(self, filename): 37 assert self._is_under(self [all...] |
H A D | logutils_unittest.py | 38 def test_get_logger_in_webkitpy(self): 40 self.assertEquals(logger.name, "webkitpy.common.system.logutils_unittest") 42 def test_get_logger_not_in_webkitpy(self): 50 self.assertEquals(logger.name, "test-webkitpy") 53 self.assertEquals(logger.name, "test-webkitpy") 62 def _logging_level(self): 65 def setUp(self): 66 log_stream = TestLogStream(self) 78 logging_level = self._logging_level() 79 self [all...] |
/external/llvm/utils/lit/lit/ |
H A D | TclUtil.py | 22 def __init__(self, data): 23 self.data = tcl_preprocess(data) 24 self.pos = 0 25 self.end = len(self.data) 27 def at_end(self): 28 return self.pos == self.end 30 def eat(self): 31 c = self [all...] |
H A D | ShUtil.py | 7 def __init__(self, data, win32Escapes = False): 8 self.data = data 9 self.pos = 0 10 self.end = len(data) 11 self.win32Escapes = win32Escapes 13 def eat(self): 14 c = self.data[self.pos] 15 self.pos += 1 18 def look(self) [all...] |
H A D | LitTestCase.py | 12 def __init__(self, test, lit_config): 13 unittest.TestCase.__init__(self) 14 self._test = test 15 self._lit_config = lit_config 17 def id(self): 18 return self._test.getFullName() 20 def shortDescription(self): 21 return self._test.getFullName() 23 def runTest(self): 24 tr, output = self [all...] |
H A D | Test.py | 6 def __init__(self, name, isFailure): 7 self.name = name 8 self.isFailure = isFailure 22 def __init__(self, name): 23 self.name = name 31 def __init__(self, name, source_root, exec_root, config): 32 self.name = name 33 self.source_root = source_root 34 self.exec_root = exec_root 36 self [all...] |
/external/protobuf/python/google/protobuf/internal/ |
H A D | containers.py | 52 def __init__(self, message_listener): 59 self._message_listener = message_listener 60 self._values = [] 62 def __getitem__(self, key): 64 return self._values[key] 66 def __len__(self): 68 return len(self._values) 70 def __ne__(self, other): 73 return not self == other 75 def __repr__(self) [all...] |
/external/srec/srec/Nametag/src/ |
H A D | Nametag.c | 26 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...] |
/external/webkit/Tools/QueueStatusServer/handlers/ |
H A D | recentstatus.py | 41 def __init__(self, queue): 42 self._queue = queue 43 self._work_items = queue.work_items() 44 self._last_status = QueueStatus.all().filter("queue_name =", queue.name()).order("-date").get() 47 def name(self): 48 return self._queue.name() 50 def display_name(self): 51 return self._queue.display_name() 53 def _last_status_date(self): 54 if not self [all...] |
/external/srec/shared/src/ |
H A D | Int8ArrayList.c | 26 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/markdown/markdown/ |
H A D | blockparser.py | 22 def set(self, state): 24 self.append(state) 26 def reset(self): 28 self.pop() 30 def isstate(self, state): 32 if len(self): 33 return self[-1] == state 44 def __init__(self): 45 self.blockprocessors = markdown.odict.OrderedDict() 46 self [all...] |
/external/srec/srec/EventLog/src/ |
H A D | EventLog.c | 26 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/chromium/testing/gtest/test/ |
H A D | gtest_color_test.py | 71 def testNoEnvVarNoFlag(self): 75 self.assert_(not UsesColor('dumb', None, None)) 76 self.assert_(not UsesColor('emacs', None, None)) 77 self.assert_(not UsesColor('xterm-mono', None, None)) 78 self.assert_(not UsesColor('unknown', None, None)) 79 self.assert_(not UsesColor(None, None, None)) 80 self.assert_(UsesColor('linux', None, None)) 81 self.assert_(UsesColor('cygwin', None, None)) 82 self.assert_(UsesColor('xterm', None, None)) 83 self [all...] |
/external/gtest/test/ |
H A D | gtest_color_test.py | 71 def testNoEnvVarNoFlag(self): 75 self.assert_(not UsesColor('dumb', None, None)) 76 self.assert_(not UsesColor('emacs', None, None)) 77 self.assert_(not UsesColor('xterm-mono', None, None)) 78 self.assert_(not UsesColor('unknown', None, None)) 79 self.assert_(not UsesColor(None, None, None)) 80 self.assert_(UsesColor('linux', None, None)) 81 self.assert_(UsesColor('cygwin', None, None)) 82 self.assert_(UsesColor('xterm', None, None)) 83 self [all...] |
/external/protobuf/gtest/test/ |
H A D | gtest_color_test.py | 71 def testNoEnvVarNoFlag(self): 75 self.assert_(not UsesColor('dumb', None, None)) 76 self.assert_(not UsesColor('emacs', None, None)) 77 self.assert_(not UsesColor('xterm-mono', None, None)) 78 self.assert_(not UsesColor('unknown', None, None)) 79 self.assert_(not UsesColor(None, None, None)) 80 self.assert_(UsesColor('linux', None, None)) 81 self.assert_(UsesColor('cygwin', None, None)) 82 self.assert_(UsesColor('xterm', None, None)) 83 self [all...] |
/external/webkit/Tools/QueueStatusServer/model/ |
H A D | queues_unittest.py | 36 def test_is_ews(self): 38 self.assertTrue(mac_ews.is_ews()) 40 def test_queue_with_name(self): 41 self.assertEqual(Queue.queue_with_name("bogus"), None) 42 self.assertEqual(Queue.queue_with_name("mac-ews").name(), "mac-ews") 43 self.assertRaises(AssertionError, Queue, ("bogus")) 45 def _assert_short_name(self, queue_name, short_name): 46 self.assertEquals(Queue(queue_name).short_name(), short_name) 48 def test_short_name(self): 49 self [all...] |