/external/webkit/Tools/Scripts/webkitpy/python24/ |
H A D | versioning_unittest.py | 36 def __init__(self, current_version): 46 self.version = current_version + " Version details." 47 self.version_info = version_info 54 def _mock_sys(self, current_version): 57 def test_default_minimum_version(self): 60 self.assertEquals(min_version, "2.5") 62 def compare_version(self, target_version, current_version=None): 66 mock_sys = self._mock_sys(current_version) 69 def compare(self, target_version, current_version=None): 71 return self [all...] |
/external/srec/srec/Recognizer/src/ |
H A D | Recognizer.c | 28 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/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
H A D | ANTLRStringStream.pm | 61 my ($self) = @_; 62 return $self->line; 66 my ($self, $value) = @_; 67 $self->line($value); 72 my ($self) = @_; 73 return $self->char_position_in_line; 77 my ($self, $value) = @_; 78 $self->char_position_in_line($value); 83 my ($self) = @_; 85 $self [all...] |
H A D | Lexer.pm | 24 my ($self) = @_; 27 $self->SUPER::reset(); 30 if (defined $self->input) { 32 $self->input->seek(0); 35 if (defined $self->state) { 36 $self->state->token(undef); 37 $self->state->type(ANTLR::Runtime::Token->INVALID_TOKEN_TYPE); 38 $self->state->channel(ANTLR::Runtime::Token->DEFAULT_CHANNEL); 39 $self->state->token_start_char_index(-1); 40 $self [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
H A D | worker_mixin.py | 44 def __init__(self): 47 def safe_init(self, port): 53 self._port = port 54 self._filesystem = port._filesystem 55 self._batch_count = 0 56 self._batch_size = self._options.batch_size 57 self._driver = None 58 tests_run_filename = self._filesystem.join(port.results_directory(), 59 "tests_run%d.txt" % self [all...] |
H A D | metered_stream.py | 75 def __init__(self, verbose, stream): 81 self._dirty = False 82 self._verbose = verbose 83 self._stream = stream 84 self._last_update = "" 86 def write(self, txt): 88 if self._dirty: 89 self._write(txt) 90 self._dirty = False 91 self [all...] |
H A D | test_input.py | 35 def __init__(self, filename, timeout): 42 self.filename = filename 43 self.timeout = timeout
|
H A D | result_summary.py | 48 def __init__(self, expectations, test_files): 49 self.total = len(test_files) 50 self.remaining = self.total 51 self.expectations = expectations 52 self.expected = 0 53 self.unexpected = 0 54 self.unexpected_failures = 0 55 self.unexpected_crashes_or_timeouts = 0 56 self [all...] |
/external/libvpx/examples/includes/HTML-Toc-0.91/ |
H A D | TocInsertor.pm | 50 my $self = $aType->SUPER::new; 52 $self->{_doOutputInsertionPointToken} = 1; 54 $self->_resetBatchVariables; 56 $self->{hti__Mode} = MODE_DO_NOTHING; 60 return $self; 69 my ($self) = @_; 71 if (defined($self->{_outputFileHandle})) { 74 select($self->{_oldFileHandle}); 76 undef $self->{_outputFileHandle}; 86 my ($self) [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
H A D | zip_mock.py | 30 def __init__(self, filesystem=None): 31 self._filesystem = filesystem or MockFileSystem() 32 self._files = {} 34 def __str__(self): 37 def insert(self, filename, content): 38 self._files[filename] = content 40 def namelist(self): 41 return self._files.keys() 43 def open(self, filename): 44 return FileSetFileHandle(self, filenam [all...] |
H A D | zipfileset_unittest.py | 35 def __init__(self, filesystem): 36 self._filesystem = filesystem 37 self._files = {} 39 def add_file(self, filename, contents): 40 self._files[filename] = contents 42 def open(self, filename): 43 return FileSetFileHandle(self, filename, self._filesystem) 45 def namelist(self): 46 return self [all...] |
H A D | filesystem_mock.py | 38 def __init__(self, files=None, cwd='/'): 47 self.files = files or {} 48 self.written_files = {} 49 self._sep = '/' 50 self.current_tmpno = 0 51 self.cwd = cwd 52 self.dirs = {} 54 def _get_sep(self): 55 return self._sep 59 def _raise_not_found(self, pat [all...] |
/external/linux-tools-perf/util/ |
H A D | pstack.c | 26 struct pstack *self = zalloc((sizeof(*self) + local 28 if (self != NULL) 29 self->max_nr_entries = max_nr_entries; 30 return self; 33 void pstack__delete(struct pstack *self) argument 35 free(self); 38 bool pstack__empty(const struct pstack *self) argument 40 return self->top == 0; 43 void pstack__remove(struct pstack *self, voi argument 60 pstack__push(struct pstack *self, void *key) argument 69 pstack__pop(struct pstack *self) argument [all...] |
/external/srec/srec/AcousticModels/src/ |
H A D | AcousticModels.c | 26 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/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
H A D | chromium_mac_unittest.py | 38 def port_maker(self, platform): 43 def test_check_wdiff_install(self): 47 self.assertTrue(port._check_wdiff_install()) 49 def assert_name(self, port_name, os_version_string, expected): 52 self.assertEquals(expected, port.name()) 54 def test_versions(self): 56 self.assertTrue(port.name() in ('chromium-mac-leopard', 'chromium-mac-snowleopard', 'chromium-mac-future')) 58 self.assert_name(None, '10.5.3', 'chromium-mac-leopard') 59 self.assert_name('chromium-mac', '10.5.3', 'chromium-mac-leopard') 60 self [all...] |
H A D | mac.py | 75 def __init__(self, port_name=None, os_version_string=None, **kwargs): 77 WebKitPort.__init__(self, port_name=port_name, **kwargs) 79 self._version = os_version(os_version_string) 80 self._name = port_name + '-' + self._version 82 self._version = port_name[4:] 83 assert self._version in self.SUPPORTED_VERSIONS 84 self._operating_system = 'mac' 85 if not hasattr(self [all...] |
H A D | win.py | 41 def __init__(self, port_name=None, **kwargs): 43 WebKitPort.__init__(self, port_name=port_name, **kwargs) 44 self._version = 'win7' 45 self._operating_system = 'win' 47 def baseline_search_path(self): 50 return map(self._webkit_baseline_path, port_names) 52 def _tests_for_other_platforms(self): 63 def _path_to_apache_config_file(self): 64 return self._filesystem.join(self [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/ |
H A D | filter.py | 60 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/srec/srec/Nametag/src/ |
H A D | Nametags.c | 23 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/Tools/Scripts/webkitpy/common/ |
H A D | memoized.py | 36 def __init__(self, function): 37 self._function = function 38 self._results_cache = {} 40 def __call__(self, *args): 42 return self._results_cache[args] 45 result = self._function(*args) 46 self._results_cache[args] = result 53 def __get__(self, instance, owner): 54 # Return a function partial with obj already bound as self. 55 return functools.partial(self [all...] |
H A D | newstringio.py | 36 def __enter__(self): 37 return self 39 def __exit__(self, type, value, traceback):
|
/external/webkit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | common_unittest.py | 45 def setUp(self): 46 self._style_errors = [] # The list of accumulated style errors. 48 def _mock_style_error_handler(self, line_number, category, confidence, 52 self._style_errors.append(error) 54 def assert_carriage_return(self, input_lines, expected_lines, error_lines): 56 handle_style_error = self._mock_style_error_handler 62 self.assertEquals(output_lines, expected_lines) 64 expected_errors = [(line_number, self._category, self._confidence, 65 self [all...] |
/external/chromium/testing/gtest/test/ |
H A D | gtest_catch_exceptions_test.py | 76 def TestSehExceptions(self, test_output): 77 self.assert_('SEH exception with code 0x2a thrown ' 80 self.assert_('SEH exception with code 0x2a thrown ' 83 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()' 85 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()' 87 self.assert_('SEH exception with code 0x2a thrown in SetUp()' 89 self.assert_('SEH exception with code 0x2a thrown in TearDown()' 91 self.assert_('SEH exception with code 0x2a thrown in the test body' 94 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self): 95 self [all...] |
/external/gtest/test/ |
H A D | gtest_catch_exceptions_test.py | 76 def TestSehExceptions(self, test_output): 77 self.assert_('SEH exception with code 0x2a thrown ' 80 self.assert_('SEH exception with code 0x2a thrown ' 83 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()' 85 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()' 87 self.assert_('SEH exception with code 0x2a thrown in SetUp()' 89 self.assert_('SEH exception with code 0x2a thrown in TearDown()' 91 self.assert_('SEH exception with code 0x2a thrown in the test body' 94 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self): 95 self [all...] |
/external/protobuf/python/ |
H A D | mox.py | 79 def __init__(self, expected_methods): 93 Error.__init__(self) 94 self._expected_methods = expected_methods 96 def __str__(self): 98 for i, m in enumerate(self._expected_methods)]) 109 def __init__(self, unexpected_method, expected): 121 Error.__init__(self) 122 self._unexpected_method = unexpected_method 123 self._expected = expected 125 def __str__(self) [all...] |