/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
H A D | environment.py | 31 def __init__(self, env=None): 32 self.env = env or {} 34 def to_dictionary(self): 35 return self.env 37 def disable_gcc_smartquotes(self): 41 self.env['LC_ALL'] = 'C'
|
/external/chromium_org/third_party/closure_linter/closure_linter/common/ |
H A D | errorhandler.py | 31 def __init__(self): 32 if self.__class__ == ErrorHandler: 35 def HandleFile(self, filename, first_token): 43 def HandleError(self, error): 50 def FinishFile(self): 56 def GetErrors(self):
|
H A D | tokens.py | 50 def __init__(self, string, token_type, line, line_number, values=None, 66 self.type = token_type 67 self.string = string 68 self.length = len(string) 69 self.line = line 70 self.line_number = line_number 71 self.orig_line_number = orig_line_number 72 self.values = values 73 self.is_deleted = False 76 self [all...] |
/external/chromium_org/third_party/tlslite/tlslite/integration/ |
H A D | asyncstatemachine.py | 24 def __init__(self): 25 self._clear() 27 def _clear(self): 31 self.handshaker = None 32 self.closer = None 33 self.reader = None 34 self.writer = None 41 self.result = None 43 def _checkAssert(self, maxActive=1): 45 #active, and that self [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
H A D | mock_writer.py | 14 def __init__(self): 17 def WritePolicy(self, policy): 20 def BeginTemplate(self): 23 def GetTemplateText(self): 26 def IsPolicySupported(self, policy): 29 def Test(self):
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | cpp_unittest.py | 56 def __init__(self, assert_fn, filter=None, lines_to_check=None): 59 self._assert_fn = assert_fn 60 self._errors = [] 61 self._lines_to_check = lines_to_check 64 self._filter = filter 66 def __call__(self, line_number, category, confidence, message): 67 self._assert_fn(category in self._all_style_categories, 71 if self._lines_to_check and not line_number in self [all...] |
/external/chromium_org/mojo/python/tests/ |
H A D | async_wait_unittest.py | 14 def setUp(self): 16 self.loop = system.RunLoop() 17 self.array = [] 18 self.handles = system.MessagePipe() 19 self.cancel = self.handles.handle0.AsyncWait(system.HANDLE_SIGNAL_READABLE, 21 self._OnResult) 23 def tearDown(self): 24 self.cancel() 25 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | possible_browser.py | 13 def __init__(self, browser_type, target_os, finder_options, 15 self._browser_type = browser_type 16 self._target_os = target_os 17 self._finder_options = finder_options 18 self._supports_tab_control = supports_tab_control 19 self._platform = None 20 self._platform_backend = None 21 self._archive_path = None 22 self._append_to_existing_wpr = False 23 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/ |
H A D | crash_service.py | 36 def __init__(self, port_obj, crash_dumps_dir): 41 super(CrashService, self).__init__(port_obj, port_obj.default_results_directory()) 42 self._name = 'CrashService' 43 self._crash_dumps_dir = crash_dumps_dir 44 self._env = None 46 self._pid_file = self._filesystem.join(self._runtime_path, '%s.pid' % self._name) 47 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/timeline/ |
H A D | recording_options.py | 7 def __init__(self): 8 self.record_timeline = True 9 self.record_network = False
|
/external/srec/shared/src/ |
H A D | HashMap.c | 25 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 D | IntArrayList.c | 24 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 D | lstring.c | 25 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...] |
/external/chromium_org/mojo/nacl/generator/ |
H A D | interface_dsl.py | 6 def __init__(self): 7 self.functions = [] 9 def Func(self, name, return_type): 10 f = Function(self, len(self.functions), name, return_type) 11 self.functions.append(f) 14 def Finalize(self): 15 for f in self.functions: 19 def __init__(self, parent, uid, name, return_type): 20 self [all...] |
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/ |
H A D | TestDataFormatterStdList.py | 17 def test_with_dsym_and_run_command(self): 19 self.buildDsym() 20 self.data_formatter_commands() 24 def test_with_dwarf_and_run_command(self): 26 self.buildDwarf() 27 self.data_formatter_commands() 29 def setUp(self): 31 TestBase.setUp(self) 33 self.line = line_number('main.cpp', '// Set break point at this line.') 34 self [all...] |
/external/chromium_org/build/android/pylib/utils/ |
H A D | watchdog_timer.py | 16 def __init__(self, timeout): 22 self._start_time = time.time() 23 self._timeout = timeout 25 def Reset(self): 27 self._start_time = time.time() 29 def IsTimedOut(self): 35 if self._timeout is None: 37 return time.time() - self._start_time > self._timeout
|
/external/chromium_org/tools/telemetry/telemetry/core/heap/ |
H A D | retaining_edge.py | 22 def __init__(self, from_object_id, to_object_id, type_string, name_string): 36 self.from_object_id = from_object_id 37 self.to_object_id = to_object_id 38 self.from_object = {} 39 self.to_object = {} 40 self.type_string = type_string 41 self.name_string = name_string 43 def SetFromObject(self, obj): 44 self.from_object = obj 45 return self [all...] |
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/ |
H A D | TestDataFormatterStdVector.py | 17 def test_with_dsym_and_run_command(self): 19 self.buildDsym() 20 self.data_formatter_commands() 25 def test_with_dwarf_and_run_command(self): 27 if "gcc" in self.getCompiler() and "4.8" in self.getCompilerVersion(): 28 self.skipTest("llvm.org/pr15301 LLDB prints incorrect sizes of STL containers") 29 self.buildDwarf() 30 self.data_formatter_commands() 32 def setUp(self) [all...] |
/external/chromium_org/content/test/gpu/gpu_tests/ |
H A D | webgl_conformance_expectations.py | 22 def SetExpectations(self): 24 # self.Fail('gl-enable-vertex-attrib.html', 28 self.Fail('conformance/glsl/misc/shaders-with-uniform-structs.html', 32 self.Fail('conformance/extensions/webgl-draw-buffers.html', 36 self.Fail('conformance/glsl/misc/struct-equals.html', 38 self.Fail('conformance/glsl/bugs/conditional-discard-in-loop.html', 40 self.Fail('conformance/attribs/gl-bindAttribLocation-matrix.html', 44 self.Fail('conformance/rendering/gl-scissor-test.html', 46 self.Fail('conformance/context/premultiplyalpha-test.html', 48 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/test/ |
H A D | finder_unittest.py | 32 def setUp(self): 42 self.fs = MockFileSystem(files) 43 self.finder = Finder(self.fs) 44 self.finder.add_tree('/foo', 'bar') 45 self.finder.add_tree('/foo2') 49 self.root_logger = logging.getLogger() 50 self.log_levels = [] 51 self.log_handlers = self [all...] |
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/ |
H A D | TestDataFormatterLibcxxVector.py | 17 def test_with_dsym_and_run_command(self): 19 self.buildDsym() 20 self.data_formatter_commands() 24 def test_with_dwarf_and_run_command(self): 26 self.buildDwarf() 27 self.data_formatter_commands() 29 def setUp(self): 31 TestBase.setUp(self) 33 self.line = line_number('main.cpp', '// Set break point at this line.') 34 self [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/ |
H A D | cros_power_monitor_unittest.py | 181 def testParsePowerSupplyInfo(self): 183 self.initial_power) 184 self.assertDictEqual(result, self.expected_parsing_power) 186 def testParsePower(self): 188 self.initial_power, self.final_power, 0.2) 190 self.assertAlmostEqual( 192 self.expected_power['component_utilization']['battery'][value]) 193 self [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/ |
H A D | error_handlers_unittest.py | 36 def setUp(self): 37 self._error_messages = [] 38 self._error_count = 0 46 def _mock_increment_error_count(self): 47 self._error_count += 1 49 def _mock_stderr_write(self, message): 50 self._error_messages.append(message) 52 def _style_checker_configuration(self): 62 stderr_write=self._mock_stderr_write) 64 def _error_handler(self, configuratio [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
H A D | t042ast.py | 7 ## def lexerClass(self, base): 9 ## def reportError(self, re): 16 def parserClass(self, base): 18 def recover(self, input, re): 25 def parse(self, text, method, rArgs=[], **kwargs): 26 self.compileGrammar() #options='-trace') 29 self.lexer = self.getLexer(cStream) 30 tStream = antlr3.CommonTokenStream(self.lexer) 31 self [all...] |
/external/lldb/test/unittest2/test/ |
H A D | test_case.py | 22 def runTest(self): pass 23 def test1(self): pass 26 def test2(self): pass 31 def __init__(self, events): 32 super(Test.LoggingTestCase, self).__init__('test') 33 self.events = events 35 def setUp(self): 36 self.events.append('setUp') 38 def test(self): 39 self [all...] |