/external/webkit/Tools/Scripts/webkitpy/style/ |
error_handlers.py | 31 __call__(self, line_number, category, confidence, message): 59 def __init__(self, file_path, configuration, increment_error_count, 80 self._file_path = file_path 81 self._configuration = configuration 82 self._increment_error_count = increment_error_count 83 self._line_numbers = line_numbers 87 self._category_totals = {} 90 def __eq__(self, other): 92 if self._configuration != other._configuration: 94 if self._file_path != other._file_path [all...] |
/development/testrunner/tests/ |
am_instrument_parser_tests.py | 26 def testParseAmInstResult(self): 35 self.assertEquals(4871, bundle_dict['java_size']) 36 self.assertEquals(33846, bundle_dict['cpu_time']) 37 self.assertEquals("\nError: Failed to generate emma coverage.", 40 def testParseAmInstStatus(self): 78 self.assertEquals('testLaunchComplexActivity', map['test']) 79 self.assertEquals('LaunchPerformanceTest', map['class']) 80 self.assertEquals('1', map['current']) 81 self.assertEquals('2', map['numtests']) 82 self.assertEquals('InstrumentationTestRunner', map['id'] [all...] |
/external/clang/utils/analyzer/ |
CmpRuns.py | 22 def __init__(self, elts=()): 23 self.data = {} 25 self[key] = value 27 def __getitem__(self, item): 28 return self.data[item] 29 def __setitem__(self, key, value): 30 if key in self.data: 31 self.data[key].append(value) 33 self.data[key] = [value] 34 def items(self) [all...] |
/external/webkit/Source/WebCore/platform/efl/ |
CursorEfl.cpp | 134 static Cursors* self(); 184 Cursors* Cursors::self() function in class:WebCore::__anon13369::Cursors 196 return Cursors::self()->PointerCursor; 201 return Cursors::self()->MoveCursor; 206 return Cursors::self()->CrossCursor; 211 return Cursors::self()->HandCursor; 216 return Cursors::self()->IBeamCursor; 221 return Cursors::self()->WaitCursor; 226 return Cursors::self()->HelpCursor; 231 return Cursors::self()->EastResizeCursor [all...] |
/development/testrunner/test_defs/ |
host_test.py | 46 def __init__(self): 47 test_suite.AbstractTestSuite.__init__(self) 48 self._jar_name = None 49 self._class_name = None 51 def GetBuildDependencies(self, options): 53 return self._LIB_BUILD_PATHS 55 def GetClassName(self): 56 return self._class_name 58 def SetClassName(self, class_name): 59 self._class_name = class_nam [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/ |
failuremap.py | 32 def __init__(self): 33 self._failures = [] 35 def add_regression_window(self, builder, regression_window): 36 self._failures.append({ 41 def is_empty(self): 42 return not self._failures 44 def failing_revisions(self): 46 for failure_info in self._failures] 49 def builders_failing_for(self, revision): 50 return self._builders_failing_because_of([revision] [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
google_chrome.py | 56 def baseline_search_path(self): 58 self) 59 paths.insert(0, self._webkit_baseline_path( 63 def test_expectations_overrides(self): 64 return _test_expectations_overrides(self, 67 def architecture(self): 75 def baseline_search_path(self): 77 self) 78 paths.insert(0, self._webkit_baseline_path( 82 def test_expectations_overrides(self) [all...] |
qt.py | 46 def __init__(self, **kwargs): 48 WebKitPort.__init__(self, **kwargs) 50 def baseline_search_path(self): 59 return map(self._webkit_baseline_path, port_names) 61 def _tests_for_other_platforms(self): 72 def _path_to_apache_config_file(self): 74 return self._filesystem.join(self.layout_tests_dir(), 'http', 'conf', 77 def _shut_down_http_server(self, server_pid): 89 self._executive.kill_all('apache2' [all...] |
chromium_gpu.py | 89 def __init__(self, port_name='chromium-gpu-linux', **kwargs): 90 chromium_linux.ChromiumLinuxPort.__init__(self, port_name=port_name, **kwargs) 91 _set_gpu_options(self) 93 def baseline_path(self): 95 return self._webkit_baseline_path('chromium-gpu-linux') 97 def baseline_search_path(self): 99 return (map(self._webkit_baseline_path, ['chromium-gpu-linux', 'chromium-gpu-win', 'chromium-gpu']) + 100 chromium_linux.ChromiumLinuxPort.baseline_search_path(self)) 102 def default_child_processes(self): 105 def tests(self, paths) [all...] |
/external/llvm/test/Scripts/ |
elf-dump | 10 def __init__(self, path): 13 self.file = StringIO.StringIO(sys.stdin.read()) 15 self.file = open(path, "rb") 16 self.isLSB = None 17 self.is64Bit = None 19 def seek(self, pos): 20 self.file.seek(pos) 22 def read(self, N): 23 data = self.file.read(N) 28 def read8(self) [all...] |
/external/v8/test/mozilla/ |
testcfg.py | 59 def __init__(self, filename, path, context, root, mode, framework): 60 super(MozillaTestCase, self).__init__(context, path, mode) 61 self.filename = filename 62 self.framework = framework 63 self.root = root 65 def IsNegative(self): 66 return self.filename.endswith('-n.js') 68 def GetLabel(self): 69 return "%s mozilla %s" % (self.mode, self.GetName() [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/bugzilla/ |
bug.py | 39 def __init__(self, bug_dictionary, bugzilla): 40 self.bug_dictionary = bug_dictionary 41 self._bugzilla = bugzilla 43 def id(self): 44 return self.bug_dictionary["id"] 46 def title(self): 48 return self.bug_dictionary["title"] 50 def reporter_email(self): 51 return self.bug_dictionary["reporter_email"] 53 def assigned_to_email(self) [all...] |
/external/gtest/test/ |
gtest_filter_unittest.py | 189 def AssertSetEqual(self, lhs, rhs): 193 self.assert_(elem in rhs, '%s in %s' % (elem, rhs)) 196 self.assert_(elem in lhs, '%s in %s' % (elem, lhs)) 198 def AssertPartitionIsValid(self, set_var, list_of_sets): 204 self.assertEqual(len(set_var), len(full_partition)) 205 self.assertEqual(sets.Set(set_var), sets.Set(full_partition)) 207 def RunAndVerify(self, gtest_filter, tests_to_run): 223 self.AssertSetEqual(tests_run, tests_to_run) 233 self.AssertSetEqual(tests_run, tests_to_run) 235 def RunAndVerifyWithSharding(self, gtest_filter, total_shards, tests_to_run [all...] |
/external/webkit/Source/WebKit/mac/WebView/ |
WebVideoFullscreenHUDWindowController.mm | 84 self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:bufferingType defer:flag]; 85 if (!self) 88 [self setOpaque:NO]; 89 [self setBackgroundColor:[NSColor clearColor]]; 90 [self setLevel:NSPopUpMenuWindowLevel]; 91 [self setAcceptsMouseMovedEvents:YES]; 92 [self setIgnoresMouseEvents:NO]; 93 [self setMovableByWindowBackground:YES]; 95 return self; 105 [[self windowController] exitFullscreen:self] [all...] |
/bionic/libc/tools/ |
genserv.py | 18 def __init__(self,name,port,proto): 19 self.name = name 20 self.port = port 21 self.proto = proto 22 self.aliases = [] 24 def add_alias(self,alias): 25 self.aliases.append(alias) 27 def __str__(self): 28 result = "\\%0o%s" % (len(self.name),self.name [all...] |
/external/embunit/src/ |
TestResult.c | 39 void TestResult_init(TestResult* self,TestListner* listner) 41 self->runCount = 0; 42 self->failureCount = 0; 43 self->listener = listner; 46 void TestResult_startTest(TestResult* self,Test* test) 48 self->runCount++; 49 if (self->listener) { 50 TestListner_startTest(self->listener, test); 54 void TestResult_endTest(TestResult* self,Test* test) 56 if (self->listener) [all...] |
/external/protobuf/python/google/protobuf/internal/ |
wire_format_test.py | 44 def testPackTag(self): 47 self.assertEqual((field_number << 3) | tag_type, 51 self.assertRaises(message.EncodeError, PackTag, field_number, 6) 53 self.assertRaises(message.EncodeError, PackTag, field_number, -1) 55 def testUnpackTag(self): 61 self.assertEqual(expected_field_number, field_number) 62 self.assertEqual(expected_wire_type, wire_type) 64 self.assertRaises(TypeError, wire_format.UnpackTag, None) 65 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc') 66 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0 [all...] |
/external/webkit/Tools/QueueStatusServer/model/ |
activeworkitems_unittest.py | 38 def setUp(self): 39 self.testbed = testbed.Testbed() 40 self.testbed.activate() 41 self.testbed.init_datastore_v3_stub() 42 self.testbed.init_memcache_stub() 44 def tearDown(self): 45 self.testbed.deactivate() 47 def test_basic(self): 52 self.assertEqual(items.next_item(queued_items, time), 1) 53 self.assertEqual(items.next_item([1], time), None [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
printing.py | 211 def __init__(self, port, options, regular_output, buildbot_output, 233 self._buildbot_stream = buildbot_output 234 self._options = options 235 self._port = port 236 self._stream = regular_output 240 self._current_dir = None 241 self._current_progress_str = "" 242 self._current_test_number = 0 244 self._meter = metered_stream.MeteredStream(options.verbose, 246 self._logging_handler = _configure_logging(self._meter [all...] |
test_results.py | 41 def __init__(self, filename, failures=None, test_run_time=None): 42 self.filename = filename 43 self.failures = failures or [] 44 self.test_run_time = test_run_time or 0 46 self.type = test_failures.determine_result_type(failures) 48 def __eq__(self, other): 49 return (self.filename == other.filename and 50 self.failures == other.failures and 51 self.test_run_time == other.test_run_time) 53 def __ne__(self, other) [all...] |
test_result_writer.py | 109 def __init__(self, port, root_output_dir, filename): 110 self._port = port 111 self._root_output_dir = root_output_dir 112 self._filename = filename 113 self._testname = port.relative_test_filename(filename) 115 def _make_output_directory(self): 117 fs = self._port._filesystem 118 output_filename = fs.join(self._root_output_dir, self._testname) 119 self._port.maybe_make_directory(fs.dirname(output_filename) [all...] |
/external/chromium/chrome/browser/ui/cocoa/download/ |
download_shelf_view.mm | 16 BOOL isKey = [[self window] isKeyWindow]; 17 ui::ThemeProvider* themeProvider = [[self window] themeProvider]; 25 BOOL isKey = [[self window] isKeyWindow]; 26 ui::ThemeProvider* themeProvider = [[self window] themeProvider]; 35 NSPoint phase = NSMakePoint(0, NSHeight([self bounds])); 38 NSRectFill([self bounds]); 43 NSPoint startPoint = [self convertPoint:NSMakePoint(0, 0) fromView:nil]; 45 [self convertPoint:NSMakePoint(0, [self frame].size.height) 55 [[self strokeColor] set] [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
api.py | 47 def __init__(self, scm): 48 self._scm = scm 50 def is_path_to_changelog(self, path): 53 def _latest_entry_for_changelog_at_revision(self, changelog_path, revision): 54 changelog_contents = self._scm.contents_at_revision(changelog_path, revision) 62 def changelog_entries_for_revision(self, revision): 63 changed_files = self._scm.changed_files_for_revision(revision) 70 if not self.is_path_to_changelog(path): 73 changelog_entries.append(self._latest_entry_for_changelog_at_revision(path, revision)) 79 def commit_info_for_revision(self, revision) [all...] |
/development/tools/emulator/opengl/system/GLESv2_enc/ |
GL2Encoder.cpp | 122 GLenum GL2Encoder::s_glGetError(void * self) 124 GL2Encoder *ctx = (GL2Encoder *)self; 131 return ctx->m_glGetError_enc(self); 135 void GL2Encoder::s_glFlush(void *self) 137 GL2Encoder *ctx = (GL2Encoder *) self; 138 ctx->m_glFlush_enc(self); 142 const GLubyte *GL2Encoder::s_glGetString(void *self, GLenum name) 162 void GL2Encoder::s_glPixelStorei(void *self, GLenum param, GLint value) 164 GL2Encoder *ctx = (GL2Encoder *)self; 171 void GL2Encoder::s_glBindBuffer(void *self, GLenum target, GLuint id [all...] |
/external/libxml2/ |
triostr.h | 98 TRIO_STRING_PUBLIC void trio_string_destroy TRIO_PROTO((trio_string_t *self)); 99 TRIO_STRING_PUBLIC char *trio_string_extract TRIO_PROTO((trio_string_t *self)); 100 TRIO_STRING_PUBLIC int trio_string_size TRIO_PROTO((trio_string_t *self)); 101 TRIO_STRING_PUBLIC void trio_string_terminate TRIO_PROTO((trio_string_t *self)); 102 TRIO_STRING_PUBLIC int trio_xstring_append_char TRIO_PROTO((trio_string_t *self, char character)); 108 TRIO_STRING_PUBLIC char *trio_string_get TRIO_PROTO((trio_string_t *self, int offset)); 109 TRIO_STRING_PUBLIC void trio_xstring_set TRIO_PROTO((trio_string_t *self, char *buffer)); 111 TRIO_STRING_PUBLIC int trio_string_append TRIO_PROTO((trio_string_t *self, trio_string_t *other)); 112 TRIO_STRING_PUBLIC int trio_string_contains TRIO_PROTO((trio_string_t *self, trio_string_t *other)); 113 TRIO_STRING_PUBLIC int trio_string_copy TRIO_PROTO((trio_string_t *self, trio_string_t *other)) [all...] |