/development/tools/axl/ |
axl.py | 32 def __init__(self): 33 self.log = log.Log.getInstance() 35 def write(self, data): 36 self.log("BaseProtocol.write()", len(data), data) 37 return self.transport.write(data) 39 def dataReceived(self, data): 40 self.log("BaseProtocol.dataReceived()", len(data), data) 42 def connectionMade(self): 43 self.log("BaseProtocol.connectionMade()") 44 self.transport.setTcpNoDelay(1) # send immediatel [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t026actions.py | 7 def parserClass(self, base): 9 def __init__(self, *args, **kwargs): 10 base.__init__(self, *args, **kwargs) 12 self._errors = [] 13 self._output = "" 16 def capture(self, t): 17 self._output += t 20 def emitErrorMessage(self, msg): 21 self._errors.append(msg) 27 def lexerClass(self, base) [all...] |
/external/chromium_org/build/android/pylib/ |
system_properties.py | 16 def __init__(self, android_commands): 17 super(SystemProperties, self).__init__() 18 self._adb = android_commands 19 self._cached_static_properties = {} 21 def __getitem__(self, key): 22 if self._IsStatic(key): 23 if key not in self._cached_static_properties: 24 self._cached_static_properties[key] = self._GetProperty(key) 25 return self._cached_static_properties[key [all...] |
/external/chromium_org/chrome/test/functional/ |
chromeos_browser.py | 13 def testCannotCloseLastIncognito(self): 16 self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW) 17 self.assertTrue(self.GetBrowserInfo()['windows'][1]['incognito'], 20 self.CloseBrowserWindow(0) 21 info = self.GetBrowserInfo()['windows'] 22 self.assertEqual(1, len(info)) 24 self.assertEqual('chrome://newtab/', url, 26 self.assertTrue(info[0]['incognito'], 29 def testCrashBrowser(self) [all...] |
test_pyauto.py | 24 def ExtraChromeFlags(self): 30 return pyauto.PyUITest.ExtraChromeFlags(self) + self._EXTRA_CHROME_FLAGS 32 def testSetCustomChromeFlags(self): 34 self.NavigateToURL('about://version') 35 for flag in self._EXTRA_CHROME_FLAGS: 36 self.assertEqual(self.FindInPage(flag)['match_count'], 1, 39 def testCallOnInvalidWindow(self): 41 self.assertEqual(1, self.GetBrowserWindowCount() [all...] |
/external/chromium_org/chrome/test/functional/tracing/ |
tracer.py | 16 def __init__(self, browser, tab_tracker): 22 self._browser = browser 23 self._tab_tracker = tab_tracker 24 self._tab_uuid = tab_tracker.CreateTab('chrome://tracing') 34 self._ExecuteJavascript(fd.read()) 36 def __del__(self): 37 self._tab_tracker.ReleaseTab(self._tab_uuid) 39 def _ExecuteJavascript(self, js): 40 return self._browser.ExecuteJavascript [all...] |
/external/chromium_org/chrome/test/pyautolib/ |
timer_queue.py | 20 timers.addTimer(self._fooPrinter, 15, args=('hello',)) 29 def __init__(self): 31 threading.Thread.__init__(self, name='timer_thread') 32 self.timer_queue_lock = threading.Lock() 33 self.terminate = False 34 self.wait_time = 1 35 self.timers = [] 37 def AddTimer(self, method, interval, args=()): 45 self.timer_queue_lock.acquire() 47 self.timers.append({'method': method, 'interval': interval [all...] |
/external/chromium_org/ppapi/generators/ |
idl_log.py | 16 def __init__(self, name, out): 18 self._name = '%s : ' % name 20 self._name = '' 22 self._out = out 23 self._capture = False 24 self._console = True 25 self._log = [] 27 def Log(self, msg): 28 if self._console: 30 self._out.write(line [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/buildbot/ |
buildbot_mock.py | 38 def __init__(self, build_number, revision, is_green): 39 self._number = build_number 40 self._revision = revision 41 self._is_green = is_green 44 def __init__(self, name): 45 self._name = name 47 def name(self): 48 return self._name 50 def build(self, build_number): 53 def results_url(self) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/thread/ |
messagepump.py | 31 def schedule(self, interval, callback): 34 def message_available(self, message): 37 def final_message_delivered(self): 44 def __init__(self, delegate, message_queue): 45 self._delegate = delegate 46 self._message_queue = message_queue 47 self._schedule() 49 def _schedule(self): 50 self._delegate.schedule(self.interval, self._callback [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/tests/ |
test_symrec.py | 5 def setUp(self): 6 self.symtab = SymbolTable() 8 def test_keys(self): 9 self.assertEquals(len(self.symtab.keys()), 0) 10 self.symtab.declare("foo", None, 0) 11 keys = self.symtab.keys() 12 self.assertEquals(len(keys), 1) 13 self.assertEquals(keys[0], "foo") 15 def test_contains(self) [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
adml_writer_unittest.py | 23 def setUp(self): 29 self.writer = adml_writer.GetWriter(config) 30 self.writer.messages = { 40 self.writer.Init() 42 def _InitWriterForAddingPolicyGroups(self, writer): 49 def _InitWriterForAddingPolicies(self, writer, policy): 54 self._InitWriterForAddingPolicyGroups(writer) 64 self.writer._string_table_elem.getElementsByTagName('string') 66 self.writer._string_table_elem.removeChild(elem) 68 def testEmpty(self) [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/webdriver/ |
webdriver_browser_backend.py | 14 def __init__(self, driver_creator, supports_extensions, browser_options): 15 super(WebDriverBrowserBackend, self).__init__( 21 self._driver_creator = driver_creator 22 self._driver = None 23 self.wpr_http_port_pair = util.PortPair(80, 80) 24 self.wpr_https_port_pair = util.PortPair(443, 443) 26 def Start(self): 27 assert not self._driver 28 self._driver = self._driver_creator( [all...] |
/external/srec/srec/Semproc/src/ |
SemanticResult.c | 28 ESR_ReturnCode SR_SemanticResultGetKeyCount(SR_SemanticResult* self, size_t* count) 30 if (self == NULL) 35 return self->getKeyCount(self, count); 38 ESR_ReturnCode SR_SemanticResultGetKeyList(SR_SemanticResult* self, LCHAR** list, size_t* size) 40 if (self == NULL) 45 return self->getKeyList(self, list, size); 48 ESR_ReturnCode SR_SemanticResultGetValue(SR_SemanticResult* self, const LCHAR* key, LCHAR* value, size_t* len) 50 if (self == NULL [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
LockScreenWidgetCallback.java | 27 public void requestShow(View self); 30 public void requestHide(View self); 33 public boolean isVisible(View self); 37 public void userActivity(View self);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_sizes.py | 10 def test_8(self): 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 14 def test_16(self): 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 18 def test_32(self): 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 22 def test_64(self) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_macpath.py | 8 def test_abspath(self): 9 self.assertEqual(macpath.abspath("xx:yy"), "xx:yy") 11 def test_isabs(self): 13 self.assertTrue(isabs("xx:yy")) 14 self.assertTrue(isabs("xx:yy:")) 15 self.assertTrue(isabs("xx:")) 16 self.assertFalse(isabs("foo")) 17 self.assertFalse(isabs(":foo")) 18 self.assertFalse(isabs(":foo:bar")) 19 self.assertFalse(isabs(":foo:bar:") [all...] |
test_array.py | 17 def __init__(self, typecode, newarg=None): 18 array.array.__init__(self, typecode) 25 def test_constructor(self): 26 self.assertRaises(TypeError, array.array) 27 self.assertRaises(TypeError, array.array, spam=42) 28 self.assertRaises(TypeError, array.array, 'xx') 29 self.assertRaises(ValueError, array.array, 'x') 42 def assertEntryEqual(self, entry1, entry2): 43 self.assertEqual(entry1, entry2) 45 def badtypecode(self) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_sizes.py | 10 def test_8(self): 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 14 def test_16(self): 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 18 def test_32(self): 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 22 def test_64(self) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_macpath.py | 8 def test_abspath(self): 9 self.assertEqual(macpath.abspath("xx:yy"), "xx:yy") 11 def test_isabs(self): 13 self.assertTrue(isabs("xx:yy")) 14 self.assertTrue(isabs("xx:yy:")) 15 self.assertTrue(isabs("xx:")) 16 self.assertFalse(isabs("foo")) 17 self.assertFalse(isabs(":foo")) 18 self.assertFalse(isabs(":foo:bar")) 19 self.assertFalse(isabs(":foo:bar:") [all...] |
test_array.py | 17 def __init__(self, typecode, newarg=None): 18 array.array.__init__(self, typecode) 25 def test_constructor(self): 26 self.assertRaises(TypeError, array.array) 27 self.assertRaises(TypeError, array.array, spam=42) 28 self.assertRaises(TypeError, array.array, 'xx') 29 self.assertRaises(ValueError, array.array, 'x') 42 def assertEntryEqual(self, entry1, entry2): 43 self.assertEqual(entry1, entry2) 45 def badtypecode(self) [all...] |
/external/chromium/net/tools/testserver/ |
testserver.py | 65 def serve_forever(self): 66 self.stop = False 67 self.nonce_time = None 68 while not self.stop: 69 self.handle_request() 70 self.socket.close() 75 def __init__(self, server_address, request_hander_class, cert_path, 80 self.cert_chain = tlslite.api.X509CertChain([x509]) 82 self.private_key = tlslite.api.parsePEMKey(s, private=True) 83 self.ssl_client_auth = ssl_client_aut [all...] |
/external/linux-tools-perf/util/ui/ |
browser.c | 25 void ui_browser__set_color(struct ui_browser *self __used, int color) 30 void ui_browser__set_percent_color(struct ui_browser *self, 34 ui_browser__set_color(self, color); 37 void ui_browser__gotorc(struct ui_browser *self, int y, int x) 39 SLsmg_gotorc(self->y + y, self->x + x); 42 void ui_browser__list_head_seek(struct ui_browser *self, off_t offset, int whence) 44 struct list_head *head = self->entries; 52 pos = self->top; 69 self->top = pos [all...] |
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/ |
descriptor_pool_test.py | 48 def setUp(self): 49 self.pool = descriptor_pool.DescriptorPool() 50 self.factory_test1_fd = descriptor_pb2.FileDescriptorProto.FromString( 52 self.factory_test2_fd = descriptor_pb2.FileDescriptorProto.FromString( 54 self.pool.Add(self.factory_test1_fd) 55 self.pool.Add(self.factory_test2_fd) 57 def testFindFileByName(self): 59 file_desc1 = self.pool.FindFileByName(name1 [all...] |
/prebuilts/python/darwin-x86/2.7.5/share/pretty-printers/libstdcxx/gcc-4.7/ |
printers.py | 51 def __init__ (self, typename, val): 52 self.typename = typename 53 self.val = val 55 def to_string (self): 57 refcounts = self.val['_M_refcount']['_M_pi'] 65 return '%s (%s) %s' % (self.typename, state, self.val['_M_ptr']) 70 def __init__ (self, typename, val): 71 self.val = val 73 def to_string (self) [all...] |