Home
last modified time | relevance | path

Searched refs:csm (Results 1 – 25 of 36) sorted by relevance

12

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculatorTest.java63 …LexicalDifferenceCalculator.CalculatedSyntaxModel csm = new LexicalDifferenceCalculator().calculat… in annotationDeclarationModifiersExampleOriginal() local
64 csm.removeIndentationElements(); in annotationDeclarationModifiersExampleOriginal()
66 assertEquals(new CsmToken(GeneratedJavaParserConstants.AT), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
67 assertEquals(new CsmToken(GeneratedJavaParserConstants.INTERFACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
68 assertEquals(new CsmToken(spaceTokenKind()), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
69 assertEquals(new CsmChild(annotationDeclaration.getName()), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
70 assertEquals(new CsmToken(spaceTokenKind()), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
71 assertEquals(new CsmToken(GeneratedJavaParserConstants.LBRACE), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
72 assertEquals(new CsmToken(eolTokenKind()), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
73 assertEquals(new CsmChild(annotationDeclaration.getMember(0)), csm.elements.get(i++)); in annotationDeclarationModifiersExampleOriginal()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculator.java126 CalculatedSyntaxModel calculatedSyntaxModelForNode(CsmElement csm, Node node) { in calculatedSyntaxModelForNode() argument
128 calculatedSyntaxModelForNode(csm, node, elements, new NoChange()); in calculatedSyntaxModelForNode()
136 …private void calculatedSyntaxModelForNode(CsmElement csm, Node node, List<CsmElement> elements, Ch… in calculatedSyntaxModelForNode() argument
137 if (csm instanceof CsmSequence) { in calculatedSyntaxModelForNode()
138 CsmSequence csmSequence = (CsmSequence) csm; in calculatedSyntaxModelForNode()
140 } else if (csm instanceof CsmComment) { in calculatedSyntaxModelForNode()
142 } else if (csm instanceof CsmSingleReference) { in calculatedSyntaxModelForNode()
143 CsmSingleReference csmSingleReference = (CsmSingleReference)csm; in calculatedSyntaxModelForNode()
153 } else if (csm instanceof CsmNone) { in calculatedSyntaxModelForNode()
155 } else if (csm instanceof CsmToken) { in calculatedSyntaxModelForNode()
[all …]
/external/icu/libicu/cts_headers/unicode/
Ducasemap.h84 ucasemap_close(UCaseMap *csm);
112 ucasemap_getLocale(const UCaseMap *csm);
121 ucasemap_getOptions(const UCaseMap *csm);
135 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
149 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
161 ucasemap_getBreakIterator(const UCaseMap *csm);
184 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
233 ucasemap_toTitle(UCaseMap *csm,
264 ucasemap_utf8ToLower(const UCaseMap *csm,
293 ucasemap_utf8ToUpper(const UCaseMap *csm,
[all …]
/external/icu/libandroidicu/include/unicode/
Ducasemap.h84 ucasemap_close(UCaseMap *csm);
112 ucasemap_getLocale(const UCaseMap *csm);
121 ucasemap_getOptions(const UCaseMap *csm);
135 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
149 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
161 ucasemap_getBreakIterator(const UCaseMap *csm);
184 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
233 ucasemap_toTitle(UCaseMap *csm,
264 ucasemap_utf8ToLower(const UCaseMap *csm,
293 ucasemap_utf8ToUpper(const UCaseMap *csm,
[all …]
/external/icu/icu4c/source/common/unicode/
Ducasemap.h84 ucasemap_close(UCaseMap *csm);
112 ucasemap_getLocale(const UCaseMap *csm);
121 ucasemap_getOptions(const UCaseMap *csm);
135 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
149 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
161 ucasemap_getBreakIterator(const UCaseMap *csm);
184 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
233 ucasemap_toTitle(UCaseMap *csm,
264 ucasemap_utf8ToLower(const UCaseMap *csm,
293 ucasemap_utf8ToUpper(const UCaseMap *csm,
[all …]
/external/libdrm/radeon/
Dradeon_cs.c7 radeon_cs_create(struct radeon_cs_manager *csm, uint32_t ndw) in radeon_cs_create() argument
9 struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw); in radeon_cs_create()
20 return csi->csm->funcs->cs_write_reloc(csi, in radeon_cs_write_reloc()
32 return csi->csm->funcs->cs_begin(csi, ndw, file, func, line); in radeon_cs_begin()
40 return csi->csm->funcs->cs_end(csi, file, func, line); in radeon_cs_end()
46 return csi->csm->funcs->cs_emit(csi); in radeon_cs_emit()
52 return csi->csm->funcs->cs_destroy(csi); in radeon_cs_destroy()
58 return csi->csm->funcs->cs_erase(csi); in radeon_cs_erase()
64 return csi->csm->funcs->cs_need_flush(csi); in radeon_cs_need_flush()
70 csi->csm->funcs->cs_print(csi, file); in radeon_cs_print()
[all …]
Dradeon_cs_gem.c125 static struct radeon_cs_int *cs_gem_create(struct radeon_cs_manager *csm, in cs_gem_create() argument
138 csg->base.csm = csm; in cs_gem_create()
340 struct radeon_cs_manager_gem *csm; in cs_gem_dump_bof() local
345 csm = (struct radeon_cs_manager_gem *)cs->csm; in cs_gem_dump_bof()
350 device_id = bof_int32(csm->device_id); in cs_gem_dump_bof()
411 sprintf(tmp, "d-0x%04X-%08d.bof", csm->device_id, csm->nbof++); in cs_gem_dump_bof()
445 r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS, in cs_gem_emit()
455 cs->csm->read_used = 0; in cs_gem_emit()
456 cs->csm->vram_write_used = 0; in cs_gem_emit()
457 cs->csm->gart_write_used = 0; in cs_gem_emit()
[all …]
Dradeon_cs_space.c111 struct radeon_cs_manager *csm = cs->csm; in radeon_cs_do_space_check() local
141 if ((sizes.op_read + sizes.op_gart_write > csm->gart_limit) || in radeon_cs_do_space_check()
142 (sizes.op_vram_write > csm->vram_limit)) { in radeon_cs_do_space_check()
146 if (((csm->vram_write_used + sizes.op_vram_write) > csm->vram_limit) || in radeon_cs_do_space_check()
147 …((csm->read_used + csm->gart_write_used + sizes.op_gart_write + sizes.op_read) > csm->gart_limit))… in radeon_cs_do_space_check()
151 csm->gart_write_used += sizes.op_gart_write; in radeon_cs_do_space_check()
152 csm->vram_write_used += sizes.op_vram_write; in radeon_cs_do_space_check()
153 csm->read_used += sizes.op_read; in radeon_cs_do_space_check()
Dradeon_cs_int.h20 struct radeon_cs_manager *csm; member
36 struct radeon_cs_int *(*cs_create)(struct radeon_cs_manager *csm,
Dradeon_cs_gem.h39 void radeon_cs_manager_gem_dtor(struct radeon_cs_manager *csm);
Dradeon_cs.h65 extern struct radeon_cs *radeon_cs_create(struct radeon_cs_manager *csm,
/external/icu/icu4c/source/common/
Ducasemap_titlecase_brkiter.cpp88 ucasemap_getBreakIterator(const UCaseMap *csm) { in ucasemap_getBreakIterator() argument
89 return reinterpret_cast<UBreakIterator *>(csm->iter); in ucasemap_getBreakIterator()
93 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode) { in ucasemap_setBreakIterator() argument
97 delete csm->iter; in ucasemap_setBreakIterator()
98 csm->iter=reinterpret_cast<BreakIterator *>(iterToAdopt); in ucasemap_setBreakIterator()
102 ucasemap_utf8ToTitle(UCaseMap *csm, in ucasemap_utf8ToTitle() argument
114 if(csm->iter==NULL) { in ucasemap_utf8ToTitle()
117 nullptr, csm->locale, csm->options, nullptr, ownedIter, *pErrorCode); in ucasemap_utf8ToTitle()
122 csm->iter = ownedIter.orphan(); in ucasemap_utf8ToTitle()
124 csm->iter->setText(&utext, *pErrorCode); in ucasemap_utf8ToTitle()
[all …]
Ducasemap.cpp69 UCaseMap *csm = new UCaseMap(locale, options, pErrorCode); in ucasemap_open() local
70 if(csm==NULL) { in ucasemap_open()
74 delete csm; in ucasemap_open()
77 return csm; in ucasemap_open()
81 ucasemap_close(UCaseMap *csm) { in ucasemap_close() argument
82 delete csm; in ucasemap_close()
86 ucasemap_getLocale(const UCaseMap *csm) { in ucasemap_getLocale() argument
87 return csm->locale; in ucasemap_getLocale()
91 ucasemap_getOptions(const UCaseMap *csm) { in ucasemap_getOptions() argument
92 return csm->options; in ucasemap_getOptions()
[all …]
Dustr_titlecase_brkiter.cpp212 ucasemap_toTitle(UCaseMap *csm, in ucasemap_toTitle() argument
219 if (csm->iter == NULL) { in ucasemap_toTitle()
222 nullptr, csm->locale, csm->options, nullptr, ownedIter, *pErrorCode); in ucasemap_toTitle()
226 csm->iter = ownedIter.orphan(); in ucasemap_toTitle()
229 csm->iter->setText(s); in ucasemap_toTitle()
231 csm->caseLocale, csm->options, csm->iter, in ucasemap_toTitle()
Ducnv2022.cpp1751 uint16_t csm; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() local
1757 csm = jpCharsetMasks[converterData->version]; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1765 csm &= ~CSM(HWKANA_7BIT); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1769 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1774 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1780 if(CSM(cs) & csm) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1782 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
/external/icu/icu4c/source/test/cintltst/
Dcstrcase.c732 UCaseMap *csm; in TestUCaseMap() local
739 csm=ucasemap_open("tur", 0xa5, &errorCode); in TestUCaseMap()
744 locale=ucasemap_getLocale(csm); in TestUCaseMap()
749 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode); in TestUCaseMap()
750 locale=ucasemap_getLocale(csm); in TestUCaseMap()
760 options=ucasemap_getOptions(csm); in TestUCaseMap()
764 ucasemap_setOptions(csm, 0x333333, &errorCode); in TestUCaseMap()
765 options=ucasemap_getOptions(csm); in TestUCaseMap()
774 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
782 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
[all …]
/external/icu/icu4c/source/samples/csdet/
Dcsdet.c35 const UCharsetMatch **csm; in main() local
58 csm = ucsdet_detectAll(csd, &matchCount, &status); in main()
61 const char *name = ucsdet_getName(csm[match], &status); in main()
62 const char *lang = ucsdet_getLanguage(csm[match], &status); in main()
63 int32_t confidence = ucsdet_getConfidence(csm[match], &status); in main()
/external/icu/icu4c/source/test/fuzzer/
Ducasemap_fuzzer.cpp44 deleted_unique_ptr<UCaseMap> csm( in LLVMFuzzerTestOneInput() local
57 case 0: ucasemap_utf8ToLower(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
60 case 1: ucasemap_utf8ToUpper(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
63 case 2: ucasemap_utf8ToTitle(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
66 case 3: ucasemap_utf8FoldCase(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
/external/icu/icu4c/source/test/intltest/
Dstrcase.cpp471 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode)); in TestCasingImpl() local
476 ucasemap_setBreakIterator(csm.getAlias(), clone, errorCode); in TestCasingImpl()
484 utf8OutLength=ucasemap_utf8ToLower(csm.getAlias(), in TestCasingImpl()
490 utf8OutLength=ucasemap_utf8ToUpper(csm.getAlias(), in TestCasingImpl()
497 utf8OutLength=ucasemap_utf8ToTitle(csm.getAlias(), in TestCasingImpl()
504 utf8OutLength=ucasemap_utf8FoldCase(csm.getAlias(), in TestCasingImpl()
745 LocalUCaseMapPointer csm(ucasemap_open("el", 0, &errorCode)); in assertGreekUpper() local
751 length = ucasemap_utf8ToUpper(csm.getAlias(), dest8, UPRV_LENGTHOF(dest8), in assertGreekUpper()
769 length = ucasemap_utf8ToUpper(csm.getAlias(), dest8b, cap, in assertGreekUpper()
869 LocalUCaseMapPointer csm(ucasemap_open("en", U_TITLECASE_NO_BREAK_ADJUSTMENT, errorCode)); in TestMalformedUTF8() local
[all …]
/external/eigen/bench/
Dspmv.cpp120 cs *csm; in main() local
121 eiToCSparse(sm, csm); in main()
/external/ImageMagick/coders/
Dtim2.c512 csm; in ReadTIM2ImageData() local
593 csm=CSM1; in ReadTIM2ImageData()
596 csm=CSM2; in ReadTIM2ImageData()
603 if (csm==CSM1) in ReadTIM2ImageData()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common.c680 rmesa->cmdbuf.csm = radeon_cs_manager_gem_ctor(fd); in rcommonInitCmdBuf()
681 if (rmesa->cmdbuf.csm == NULL) { in rcommonInitCmdBuf()
685 rmesa->cmdbuf.cs = radeon_cs_create(rmesa->cmdbuf.csm, size); in rcommonInitCmdBuf()
708 radeon_cs_manager_gem_dtor(rmesa->cmdbuf.csm); in rcommonDestroyCmdBuf()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common.c680 rmesa->cmdbuf.csm = radeon_cs_manager_gem_ctor(fd); in rcommonInitCmdBuf()
681 if (rmesa->cmdbuf.csm == NULL) { in rcommonInitCmdBuf()
685 rmesa->cmdbuf.cs = radeon_cs_create(rmesa->cmdbuf.csm, size); in rcommonInitCmdBuf()
708 radeon_cs_manager_gem_dtor(rmesa->cmdbuf.csm); in rcommonDestroyCmdBuf()
Dradeon_common_context.h368 struct radeon_cs_manager *csm; member
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISO2022.java1812 char csm; in encodeLoop() local
1817 csm = (char)jpCharsetMasks[myConverterData.version]; in encodeLoop()
1825 csm &= ~CSM(HWKANA_7BIT); in encodeLoop()
1829 csm &= ~CSM(cs); in encodeLoop()
1834 csm &= ~CSM(cs); in encodeLoop()
1840 if ((CSM(cs) & csm) != 0) { in encodeLoop()
1842 csm &= ~CSM(cs); in encodeLoop()

12