/external/gtest/test/ |
gtest_xml_test_utils.py | 50 def AssertEquivalentNodes(self, expected_node, actual_node): 69 self.assertEquals(Node.CDATA_SECTION_NODE, actual_node.nodeType) 70 self.assertEquals(expected_node.nodeValue, actual_node.nodeValue) 73 self.assertEquals(Node.ELEMENT_NODE, actual_node.nodeType) 74 self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType) 75 self.assertEquals(expected_node.tagName, actual_node.tagName) 79 self.assertEquals(expected_attributes.length, actual_attributes.length) 83 self.assert_(actual_attr is not None) 84 self.assertEquals(expected_attr.value, actual_attr.value) 86 expected_children = self._GetChildren(expected_node [all...] |
gtest_break_on_failure_unittest.py | 98 def RunAndVerify(self, env_var_value, flag_value, expect_seg_fault): 141 self.assert_(has_seg_fault == expect_seg_fault, msg) 143 def testDefaultBehavior(self): 146 self.RunAndVerify(env_var_value=None, 150 def testEnvVar(self): 153 self.RunAndVerify(env_var_value='0', 156 self.RunAndVerify(env_var_value='1', 160 def testFlag(self): 163 self.RunAndVerify(env_var_value=None, 166 self.RunAndVerify(env_var_value=None [all...] |
/external/opencore/engines/2way/src/ |
pv_2way_mux_datapath.cpp | 24 CPV2WayMuxDatapath *self = OSCL_NEW(CPV2WayMuxDatapath, (aLogger, aFormat, a2Way)); local 25 OsclError::LeaveIfNull(self); 27 if (self) 29 OSCL_TRAPSTACK_PUSH(self); 30 self->ConstructL(); 34 return self;
|
/external/webkit/WebKitTools/Scripts/webkitpy/ |
changelogs_unittest.py | 87 def test_latest_entry_parse(self): 88 changelog_contents = "%s\n%s" % (self._example_entry, self._example_changelog) 91 self.assertEquals(self._example_entry, latest_entry) 117 def test_set_reviewer(self): 118 changelog_contents = "%s\n%s" % (self._new_entry_boilerplate, self._example_changelog) 119 changelog_path = self._write_tmp_file_with_contents(changelog_contents) 122 actual_contents = self._read_file_contents(changelog_path [all...] |
autoinstall.py | 184 def __init__(self, directory=None): 191 self.directory = directory 193 if not os.path.exists(self.directory): 194 self._create_cache_directory() 197 self.cache_directry = tempfile.mkdtemp() 198 _logger.info("Using cache directory '%s'." % self.directory) 200 def _create_cache_directory(self): 201 _logger.debug("Creating cache directory '%s'." % self.directory) 202 os.mkdir(self.directory) 203 readme_path = os.path.join(self.directory, "README" [all...] |
style_references.py | 59 def __init__(self): 61 self._scm = detect_scm_system(cwd) 63 def checkout_root(self): 65 return self._scm.checkout_root 67 def create_patch(self): 68 return self._scm.create_patch() 70 def create_patch_since_local_commit(self, commit): 71 return self._scm.create_patch_since_local_commit(commit)
|
changelogs.py | 45 def __init__(self, path): 46 self.path = path 72 def latest_entry(self): 73 changelog_file = open(self.path) 75 return self._parse_latest_entry_from_file(changelog_file) 82 def _wrap_line(self, line): 85 initial_indent=self._changelog_indent, 88 subsequent_indent=self._changelog_indent) 93 def _wrap_lines(self, message): 94 lines = [self._wrap_line(line) for line in message.splitlines() [all...] |
/external/srec/srec/Semproc/include/ |
SR_LexicalAnalyzer.h | 53 * @param self pointer to the newly created object 55 SREC_SEMPROC_API ESR_ReturnCode LA_Init(LexicalAnalyzer **self); 59 * @param self pointer to Lexical Analyzer 62 SREC_SEMPROC_API ESR_ReturnCode LA_Analyze(LexicalAnalyzer *self, LCHAR *script); 66 * @param self pointer to Lexical Analyzer 68 SREC_SEMPROC_API ESR_ReturnCode LA_Free(LexicalAnalyzer *self); 72 * @param self pointer to Lexical Analyzer 76 SREC_SEMPROC_API ESR_ReturnCode LA_nextToken(LexicalAnalyzer *self, LCHAR* token, size_t* tokenLen);
|
SR_SemanticResult.h | 36 * @param self SemanticResult handler 39 ESR_ReturnCode(*getKeyCount)(struct SR_SemanticResult_t* self, size_t* count); 44 * @param self SemanticResult handler 49 ESR_ReturnCode(*getKeyList)(struct SR_SemanticResult_t* self, LCHAR** list, size_t* size); 53 * @param self SemanticResult handler 59 ESR_ReturnCode(*getValue)(struct SR_SemanticResult_t* self, const LCHAR* key, LCHAR* value, size_t* len); 63 * @param self SemanticResult handler 65 ESR_ReturnCode(*destroy)(struct SR_SemanticResult_t* self); 73 * @param self SemanticResult handle 75 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticResultCreate(SR_SemanticResult** self); [all...] |
/external/webkit/WebKit/mac/Misc/ |
WebNSArrayExtras.m | 37 id object = [self objectAtIndex:index]; 43 id object = [self objectAtIndex:index]; 60 for (index = [self count] - 1; index >= 0; --index) { 61 NSMenuItem *item = [self objectAtIndex:index]; 65 [self removeObjectAtIndex:index]; 70 if ([self count] && [[self objectAtIndex:0] isSeparatorItem]) 71 [self removeObjectAtIndex:0];
|
WebNSURLExtras.mm | 394 return [self _web_URLWithData:data relativeToURL:URL]; 399 return [self _web_URLWithUserTypedString:string relativeToURL:nil]; 407 return [self _web_URLWithDataAsString:string relativeToURL:nil]; 417 return [self _web_URLWithData:data relativeToURL:baseURL]; 453 CFIndex bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, URL_BYTES_BUFFER_LENGTH); 455 CFIndex bytesToAllocate = CFURLGetBytes((CFURLRef)self, NULL, 0); 457 bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, bytesToAllocate); 464 NSURL *baseURL = (NSURL *)CFURLGetBaseURL((CFURLRef)self); 472 return [[[NSString alloc] initWithData:[self _web_originalData] encoding:NSISOLatin1StringEncoding] autorelease]; 516 NSData *data = [self _web_originalData] [all...] |
/external/webkit/WebKitTools/Scripts/webkitpy/commands/ |
early_warning_system_unittest.py | 36 def test_chromium_ews(self): 41 self.assert_queue_outputs(ChromiumEWS(), expected_stderr=expected_stderr) 43 def test_qt_ews(self): 48 self.assert_queue_outputs(QtEWS(), expected_stderr=expected_stderr) 50 def test_gtk_ews(self): 55 self.assert_queue_outputs(GtkEWS(), expected_stderr=expected_stderr) 57 def test_mac_ews(self): 62 self.assert_queue_outputs(MacEWS(), expected_stderr=expected_stderr)
|
queries_unittest.py | 36 def test_bugs_to_commit(self): 38 self.assert_execute_outputs(BugsToCommit(), None, "42\n77\n", expected_stderr) 40 def test_patches_in_commit_queue(self): 43 self.assert_execute_outputs(PatchesInCommitQueue(), None, expected_stdout, expected_stderr) 45 def test_patches_to_commit_queue(self): 50 self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options) 54 self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options) 56 def test_patches_to_review(self): 59 self.assert_execute_outputs(PatchesToReview(), None, expected_stdout, expected_stderr) 61 def test_tree_status(self) [all...] |
/external/webkit/WebKitTools/Scripts/webkitpy/steps/ |
preparechangelog.py | 46 def run(self, state): 47 if self.cached_lookup(state, "changelogs"): 49 os.chdir(self._tool.scm().checkout_root) 50 args = [self.port().script_path("prepare-ChangeLog")] 53 if self._options.email: 54 args.append("--email=%s" % self._options.email) 56 self._tool.executive.run_and_throw_if_fail(args, self._options.quiet)
|
/dalvik/vm/ |
JniInternal.h | 44 Thread* self; member in struct:JNIEnvExt 105 INLINE void dvmPopJniLocals(Thread* self, StackSaveArea* saveArea) 108 self->jniLocalRefTable.segmentState.all = saveArea->xtra.localRefCookie; 110 self->jniLocalRefTable.nextEntry = saveArea->xtra.localRefCookie; 117 INLINE void dvmSetJniEnvThreadId(JNIEnv* pEnv, Thread* self) 119 ((JNIEnvExt*)pEnv)->envThreadId = self->threadId; 120 ((JNIEnvExt*)pEnv)->self = self; 129 const Method* method, Thread* self); 131 const Method* method, Thread* self); [all...] |
/external/expat/amiga/ |
expat_lib.c | 45 uint32 libObtain (struct LibraryManagerInterface *Self); 46 uint32 libRelease (struct LibraryManagerInterface *Self); 47 struct ExpatBase *libOpen (struct LibraryManagerInterface *Self, uint32 version); 48 BPTR libClose (struct LibraryManagerInterface *Self); 49 BPTR libExpunge (struct LibraryManagerInterface *Self); 162 uint32 libObtain( struct LibraryManagerInterface *Self ) 164 ++Self->Data.RefCount; 165 return Self->Data.RefCount; 169 uint32 libRelease( struct LibraryManagerInterface *Self ) 171 --Self->Data.RefCount [all...] |
/external/webkit/WebCore/bindings/objc/ |
DOMHTML.mm | 58 return kit(createFragmentFromMarkup(core(self), markupString, [baseURL absoluteString]).get()); 64 return kit(createFragmentFromText(core(self)->createRange().get(), text).get()); 73 NSURL *baseURL = core(self)->completeURL(WebCore::deprecatedParseURL(baseURLString)); 74 return [self createDocumentFragmentWithMarkupString:markupString baseURL:baseURL]; 79 return [self createDocumentFragmentWithText:text]; 89 WebCore::HTMLDocument* coreHTMLDocument = core(self); 107 return core(self)->isTextField(); 113 NSRect result = [self boundingBox]; 114 if (!core(self)->document()->view()) 117 NSView* view = core(self)->document()->view()->documentView() [all...] |
/external/webkit/WebKitTools/pywebsocket/mod_pywebsocket/ |
dispatch.py | 122 def __init__(self, root_dir, scan_dir=None): 135 self._handlers = {} 136 self._source_warnings = [] 143 self._source_files_in_dir(root_dir, scan_dir) 145 def add_resource_path_alias(self, 157 handler = self._handlers[existing_resource_path] 158 self._handlers[alias_resource_path] = handler 162 def source_warnings(self): 165 return self._source_warnings 167 def do_extra_handshake(self, request) [all...] |
/system/core/libacc/tests/ |
test.py | 164 def checkResult(self, out, err, stdErrResult, stdOutResult=""): 169 self.assertEqual(True, compareOuput(a1,a2,b1,b2)) 171 def compileCheck(self, args, stdErrResult, stdOutResult="", 178 self.checkResult(out, err, stdErrResult, stdOutResult) 181 self.checkResult(out, "", stdErrResult, stdOutResult) 183 def compileCheckArm(self, args, result): 184 self.assertEqual(compileArm(args), result) 186 def testCompileReturnVal(self): 187 self.compileCheck(["data/returnval-ansi.c"], "") 189 def testCompileOTCCANSI(self) [all...] |
/external/webkit/WebKit/mac/WebView/ |
WebView.mm | 457 CFSetRemoveValue(allWebViewsSet, self); 465 CFSetSetValue(allWebViewsSet, self); 577 [self registerForDraggedTypes:[types allObjects]]; 606 NSRect f = [self frame]; 609 [self addSubview:frameView]; 627 WebGeolocationControllerClient* geolocationControllerClient = new WebGeolocationControllerClient(self); 631 _private->page = new Page(new WebChromeClient(self), new WebContextMenuClient(self), new WebEditorClient(self), new WebDragClient(self), new WebInspectorClient(self), new WebPluginHalterClient(self), geolocationControllerClient) [all...] |
/external/bluetooth/bluez/test/ |
simple-agent | 16 def set_exit_on_release(self, exit_on_release): 17 self.exit_on_release = exit_on_release 21 def Release(self): 23 if self.exit_on_release: 28 def Authorize(self, device, uuid): 37 def RequestPinCode(self, device): 43 def RequestPasskey(self, device): 50 def DisplayPasskey(self, device, passkey): 55 def RequestConfirmation(self, device, passkey): 64 def ConfirmModeChange(self, mode) [all...] |
/external/srec/portable/include/ |
PANSIFileSystemImpl.h | 56 PORTABLE_API ESR_ReturnCode PANSIFileSystemDestroyImpl(PFileSystem* self); 61 PORTABLE_API ESR_ReturnCode PANSIFileSystemCreatePFileImpl(PFileSystem* self, const LCHAR* path, ESR_BOOL littleEndian, PFile** file); 66 PORTABLE_API ESR_ReturnCode PANSIFileSystemAddPathImpl(PFileSystem* self, const LCHAR* virtualPath, const LCHAR* realPath); 71 PORTABLE_API ESR_ReturnCode PANSIFileSystemRemovePathImpl(PFileSystem* self, const LCHAR* virtualPath); 76 PORTABLE_API ESR_ReturnCode PANSIFileSystemMkdirImpl(PFileSystem* self, const LCHAR* path); 81 PORTABLE_API ESR_ReturnCode PANSIFileSystemChdirImpl(PFileSystem* self, const LCHAR* path); 86 PORTABLE_API ESR_ReturnCode PANSIFileSystemGetcwdImpl(PFileSystem* self, LCHAR* cwd, size_t* len); 91 * @param self PFileSystem handle 96 PORTABLE_API ESR_ReturnCode PANSIFileSystemGetRealPathImpl(PFileSystem* self, LCHAR* path, size_t* len); 101 * @param self PFileSystem handl [all...] |
/external/srec/srec/Semproc/src/ |
SemanticResultImpl.c | 29 ESR_ReturnCode SR_SemanticResultCreate(SR_SemanticResult** self) 34 if (self == NULL) 55 *self = (SR_SemanticResult*) impl; 62 ESR_ReturnCode SR_SemanticResult_GetKeyCount(SR_SemanticResult* self, size_t* count) 64 SR_SemanticResultImpl* impl = (SR_SemanticResultImpl*) self; 73 ESR_ReturnCode SR_SemanticResult_GetKeyList(SR_SemanticResult* self, LCHAR** list, size_t* count) 75 SR_SemanticResultImpl* impl = (SR_SemanticResultImpl*) self; 104 ESR_ReturnCode SR_SemanticResult_GetValue(SR_SemanticResult* self, const LCHAR* key, LCHAR* value, size_t* len) 106 SR_SemanticResultImpl* impl = (SR_SemanticResultImpl*) self; 123 ESR_ReturnCode SR_SemanticResult_Destroy(SR_SemanticResult* self) [all...] |
/external/srec/srec/Vocabulary/include/ |
SR_VocabularyImpl.h | 71 ESR_ReturnCode SR_VocabularyCreateImpl(SR_Vocabulary** self); 75 ESR_ReturnCode SR_VocabularyLoadImpl(const LCHAR* filename, SR_Vocabulary** self); 79 ESR_ReturnCode SR_VocabularySaveImpl(SR_Vocabulary* self, const LCHAR* filename); 83 ESR_ReturnCode SR_VocabularyAddWordImpl(SR_Vocabulary* self, const LCHAR* word); 87 ESR_ReturnCode SR_VocabularyDeleteWordImpl(SR_Vocabulary* self, const LCHAR* word); 91 ESR_ReturnCode SR_VocabularyContainsWordImpl(SR_Vocabulary* self, const LCHAR* word, ESR_BOOL* result); 95 ESR_ReturnCode SR_VocabularyGetPronunciationImpl(SR_Vocabulary* self, const LCHAR* word, LCHAR* phoneme, size_t* len); 99 ESR_ReturnCode SR_VocabularyGetLanguageImpl(SR_Vocabulary* self, ESR_Locale* locale); 103 ESR_ReturnCode SR_VocabularyDestroyImpl(SR_Vocabulary* self); 107 ESR_ReturnCode SR_CreateG2P(SR_Vocabulary* self); [all...] |
/external/srec/srec/Nametag/src/ |
NametagImpl.c | 31 ESR_ReturnCode SR_NametagCreate(const SR_RecognizerResult* result, const LCHAR* id, SR_Nametag** self) 38 if (self == NULL) 70 rc = SR_NametagCreateFromValue(id, transcription, (int)len, self); 120 rc = SR_NametagCreateFromValue(id, short_pron, (short_pron_ptr-short_pron), self); 130 ESR_ReturnCode SR_NametagCreateFromValue(const LCHAR* id, const char* value, size_t len, SR_Nametag** self) 135 passert(self != NULL); 170 *self = (SR_Nametag*) impl; 177 ESR_ReturnCode SR_Nametag_Destroy(SR_Nametag* self) 179 SR_NametagImpl* impl = (SR_NametagImpl*) self; 194 ESR_ReturnCode SR_Nametag_GetID(const SR_Nametag* self, LCHAR** id [all...] |