/external/protobuf/python/google/protobuf/ |
descriptor.py | 67 def __init__(self, options, options_class_name): 72 self._options = options 73 self._options_class_name = options_class_name 76 self.has_options = options is not None 78 def GetOptions(self): 84 if self._options: 85 return self._options 88 options_class = getattr(descriptor_pb2, self._options_class_name) 91 (self._options_class_name)) 92 self._options = options_class( [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/ |
array_stream_unittest.py | 39 def assertEmpty(self, a_stream): 40 self.assertTrue(a_stream.empty()) 42 def assertNotEmpty(self, a_stream): 43 self.assertFalse(a_stream.empty()) 45 def assertContentsMatch(self, a_stream, contents): 46 self.assertEquals(a_stream.get(), contents) 48 def test_basics(self): 50 self.assertEmpty(a) 51 self.assertContentsMatch(a, []) 54 self.assertEmpty(a [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
executive_mock.py | 37 def __init__(self, output='', exit_code=0, exception=None, 39 self._output = output 40 self._stderr = stderr 41 self._exit_code = exit_code 42 self._exception = exception 43 self._run_command_fn = run_command_fn 45 def cpu_count(self): 48 def kill_all(self, process_name): 51 def kill_process(self, pid): 54 def run_command(self, arg_list, error_handler=None, return_exit_code=False [all...] |
path_unittest.py | 35 def assertMatch(self, test_path, expected_uri, 39 self.assertEqual(path.abspath_to_uri(test_path, platform=platform), 42 def test_abspath_to_uri_cygwin(self): 46 self.assertMatch('/cygdrive/c/foo/bar.html', 49 self.assertEqual(path.abspath_to_uri('/cygdrive/c/foo/bar.html', 53 def test_abspath_to_uri_darwin(self): 54 self.assertMatch('/foo/bar.html', 57 self.assertEqual(path.abspath_to_uri("/foo/bar.html", 61 def test_abspath_to_uri_linux2(self): 62 self.assertMatch('/foo/bar.html' [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
queueengine_unittest.py | 42 def __init__(self, test): 43 self._test = test 44 self._callbacks = [] 45 self._run_before = False 46 self.stop_message = None 60 def record(self, method_name): 61 self._callbacks.append(method_name) 63 def queue_log_path(self): 64 self.record("queue_log_path") 65 return os.path.join(self._test.temp_dir, "queue_log_path" [all...] |
expectedfailures.py | 31 def __init__(self): 32 self._failures = set() 34 def _can_trust_results(self, results): 39 def failures_were_expected(self, results): 40 if not self._can_trust_results(results): 42 return set(results.failing_tests()) <= self._failures 44 def shrink_expected_failures(self, results, run_success): 46 self._failures = set() 47 elif self._can_trust_results(results): 49 self._failures.intersection_update(set(results.failing_tests()) [all...] |
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
dfa.py | 47 self, 52 self.recognizer = recognizer 54 self.decisionNumber = decisionNumber 55 self.eot = eot 56 self.eof = eof 57 self.min = min 58 self.max = max 59 self.accept = accept 60 self.special = special 61 self.transition = transitio [all...] |
streams.py | 59 def consume(self): 63 def LA(self, i): 74 def mark(self): 87 def index(self): 97 def rewind(self, marker=None): 121 def release(self, marker=None): 135 def seek(self, index): 162 def size(self): 172 def getSourceName(self): 196 def substring(self, start, stop) [all...] |
/external/icu4c/test/perf/perldriver/ |
Dataset.pm | 16 my $self = bless { 27 $stats->add_data(@{$self->{_data}}); 28 $self->{_mean} = $stats->mean(); 36 $self->{_error} = $t * $stats->standard_deviation(); 40 $self; 46 my ($self, $scale) = @_; 47 $self->{_scale} = $scale; 52 my ($self, $a) = @_; 53 $self->{_scale} *= $a; 58 my $self = shift [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
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._operating_system = 'linux [all...] |
/external/v8/test/benchmarks/ |
testcfg.py | 43 def __init__(self, path, context, mode): 44 super(BenchmarkTestCase, self).__init__(context, split(path), mode) 45 self.root = path 47 def GetLabel(self): 48 return '%s benchmark %s' % (self.mode, self.GetName()) 50 def IsFailureOutput(self, output): 61 def GetCommand(self): 62 result = self.context.GetVmCommand(self, self.mode [all...] |
/external/bluetooth/bluez/audio/ |
gsta2dpsink.c | 74 static gboolean gst_a2dp_sink_init_caps_filter(GstA2dpSink *self); 75 static gboolean gst_a2dp_sink_init_fakesink(GstA2dpSink *self); 76 static gboolean gst_a2dp_sink_remove_fakesink(GstA2dpSink *self); 80 GstA2dpSink *self = GST_A2DP_SINK(obj); local 82 g_mutex_free(self->cb_mutex); 87 static GstState gst_a2dp_sink_get_state(GstA2dpSink *self) 91 gst_element_get_state(GST_ELEMENT(self), ¤t, &pending, 0); 102 static GstElement *gst_a2dp_sink_init_element(GstA2dpSink *self, 109 GST_LOG_OBJECT(self, "Initializing %s", elementname); 113 GST_DEBUG_OBJECT(self, "Couldn't create %s", elementname) 164 GstA2dpSink *self = GST_A2DP_SINK(object); local 204 GstA2dpSink *self = GST_A2DP_SINK(object); local 282 GstA2dpSink *self = GST_A2DP_SINK(element); local 406 GstA2dpSink *self = GST_A2DP_SINK(GST_PAD_PARENT(pad)); local 599 GstA2dpSink *self; local 614 GstA2dpSink *self; local [all...] |
/external/sonivox/jet_tools/JetCreator/ |
JetCreator.py | 51 def __init__(self, parent, id, jetConfigFile, importFlag=False):
52 wx.Frame.__init__(self, parent, id, size=(1050, 720), style=wx.DEFAULT_FRAME_STYLE | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX)
54 self.myicon = img_favicon.getIcon()
55 self.SetIcon(self.myicon)
56 self.UndoStack = []
57 self.RedoStack = []
58 self.queueSegs = []
59 self.clipBoard = None
60 self.jet = None [all...] |
/frameworks/base/media/mca/ |
structgen.py | 99 def __init__(self, lineno, message): 100 self.lineno = lineno 101 self.message = message 103 def __str__(self): 104 return "On line %d: %s" % (self.lineno, self.message) 107 def __init__(self, name, structname, jclassname, package, javatype, ctype, jtype, defval): 108 self.name = name 109 self.structname = structname 110 self.jclassname = jclassnam [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
CommonToken.pm | 72 my ($self, $arg_ref) = @_; 76 $self->text($token->get_text()); 77 $self->type($token->get_type()); 78 $self->line($token->get_line()); 79 $self->index($token->get_token_index()); 80 $self->char_position_in_line($token->get_char_position_in_line()); 81 $self->channel($token->get_channel()); 87 my ($self) = @_; 88 return $self->type; 92 my ($self, $value) = @_ [all...] |
/external/embunit/src/ |
TestCase.c | 42 char* TestCase_name(TestCase* self) 44 return self->name; 47 void TestCase_run(TestCase* self,TestResult* result) 49 TestResult_startTest(result, (Test*)self); 50 if (self->setUp) { 51 self->setUp(); 53 if (self->runTest) { 57 self_ = self; 58 self->runTest(); 62 if (self->tearDown) [all...] |
/external/llvm/utils/lit/lit/ |
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._test.config.test_format.execute [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
changelog.py | 49 def __init__(self, contents, committer_list=CommitterList()): 50 self._contents = contents 51 self._committer_list = committer_list 52 self._parse_entry() 54 def _parse_entry(self): 55 match = re.match(self.date_line_regexp, self._contents, re.MULTILINE) 57 log("WARNING: Creating invalid ChangeLogEntry:\n%s" % self._contents) 59 # FIXME: group("name") does not seem to be Unicode? Probably due to self._contents not being unicode. 60 self._author_name = match.group("name") if match else Non [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/ |
testoutput_unittest.py | 33 def __init__(self, filename, contents="fake contents"): 34 self._filename = filename 35 self._contents = contents 37 def name(self): 38 return self._filename 40 def contents(self): 41 return self._contents 45 def __init__(self, platform, output_type, contents, is_expected=False): 46 self._output_type = output_type 47 self._contents = content [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/ |
optparser_unittest.py | 40 def _create_options(self, 50 def test_to_flag_string(self): 51 options = self._create_options('vs7', 5, ['+foo', '-bar'], 'git') 52 self.assertEquals('--filter=+foo,-bar --git-commit=git ' 54 self._printer.to_flag_string(options)) 58 options = self._create_options() 59 self.assertEquals('--min-confidence=3 --output=emacs', 60 self._printer.to_flag_string(options)) 69 def write(self, message): 74 def _parse(self, args) [all...] |
/external/webkit/Tools/gdb/ |
webkit.py | 75 def __init__(self, val): 76 self.val = val 78 def display_hint(self): 84 def to_string(self): 85 return ustring_to_string(self.val) 90 def to_string(self): 91 return self.val['m_string'] 96 def to_string(self): 98 vector = self.val['m_buffer']['m_ptr']['m_vector'] 105 def get_length(self) [all...] |
/external/srec/shared/include/ |
lstring.h | 45 * @param self LString handle 48 ESR_ReturnCode(*append)(struct LString_t* self, const LCHAR* value); 52 * @param self LString handle 54 ESR_ReturnCode(*reset)(struct LString_t* self); 59 * @param self LString handle 62 ESR_ReturnCode(*toLCHAR)(struct LString_t* self, LCHAR** result); 66 * @param self LString handle 68 ESR_ReturnCode(*destroy)(struct LString_t* self); 77 * @param self LString handle 79 ESR_SHARED_API ESR_ReturnCode LStringCreate(LString** self); [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t048rewrite.py | 11 def setUp(self): 12 self.compileGrammar() 15 def _parse(self, input): 17 lexer = self.getLexer(cStream) 24 def testInsertBeforeIndex0(self): 25 tokens = self._parse("abc") 30 self.failUnlessEqual(result, expecting) 33 def testInsertAfterLastIndex(self): 34 tokens = self._parse("abc") 39 self.failUnlessEqual(result, expecting [all...] |
t001lexer.py | 6 def setUp(self): 7 self.compileGrammar() 10 def lexerClass(self, base): 12 def emitErrorMessage(self, msg): 16 def reportError(self, re): 23 def testValid(self): 25 lexer = self.getLexer(stream) 28 self.failUnlessEqual(token.type, self.lexerModule.ZERO) 31 self.failUnlessEqual(token.type, self.lexerModule.EOF [all...] |
/external/linux-tools-perf/util/ |
pstack.h | 8 void pstack__delete(struct pstack *self); 9 bool pstack__empty(const struct pstack *self); 10 void pstack__remove(struct pstack *self, void *key); 11 void pstack__push(struct pstack *self, void *key); 12 void *pstack__pop(struct pstack *self);
|