Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 1774) sorted by relevance

12345678910>>...71

/external/icu/icu4c/source/common/
Ducnv_u7.cpp217 int32_t *offsets; in _UTF7ToUnicodeWithOffsets() local
241 offsets=pArgs->offsets; in _UTF7ToUnicodeWithOffsets()
283 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets()
284 *offsets++=sourceIndex++; in _UTF7ToUnicodeWithOffsets()
378 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets()
379 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets()
389 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets()
390 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets()
400 if(offsets!=NULL) { in _UTF7ToUnicodeWithOffsets()
401 *offsets++=sourceIndex; in _UTF7ToUnicodeWithOffsets()
[all …]
Ducnvlat1.cpp41 int32_t *offsets; in _Latin1ToUnicodeWithOffsets() local
49 offsets=pArgs->offsets; in _Latin1ToUnicodeWithOffsets()
85 if(offsets!=NULL) { in _Latin1ToUnicodeWithOffsets()
87 offsets[0]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
88 offsets[1]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
89 offsets[2]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
90 offsets[3]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
91 offsets[4]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
92 offsets[5]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
93 offsets[6]=sourceIndex++; in _Latin1ToUnicodeWithOffsets()
[all …]
Ducnv_u16.cpp57 int32_t *offsets; in _UTF16BEFromUnicodeWithOffsets() local
78 &pArgs->offsets, -1, in _UTF16BEFromUnicodeWithOffsets()
90 offsets=pArgs->offsets; in _UTF16BEFromUnicodeWithOffsets()
105 if(offsets!=NULL) { in _UTF16BEFromUnicodeWithOffsets()
106 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets()
107 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets()
108 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets()
109 *offsets++=-1; in _UTF16BEFromUnicodeWithOffsets()
126 if(offsets==NULL) { in _UTF16BEFromUnicodeWithOffsets()
153 *offsets++=sourceIndex; in _UTF16BEFromUnicodeWithOffsets()
[all …]
/external/libchrome/base/strings/
Dutf_offset_string_conversions_unittest.cc42 std::vector<size_t> offsets; in TEST() local
43 offsets.push_back(offset); in TEST()
44 UTF8ToUTF16AndAdjustOffsets(utf8_to_utf16_cases[i].utf8, &offsets); in TEST()
45 EXPECT_EQ(utf8_to_utf16_cases[i].output_offset, offsets[0]); in TEST()
72 std::vector<size_t> offsets; in TEST() local
73 offsets.push_back(offset); in TEST()
74 UTF16ToUTF8AndAdjustOffsets(utf16_to_utf8_cases[i].utf16, &offsets); in TEST()
75 EXPECT_EQ(utf16_to_utf8_cases[i].output_offset, offsets[0]) << i; in TEST()
116 std::vector<size_t> offsets; in TEST() local
118 offsets.push_back(t); in TEST()
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_global_work_offsets.cpp46 int check_results( size_t threads[], size_t offsets[], cl_int outputA[], cl_int outputB[], cl_int o… in check_results() argument
48 …ze_t offsettedSizes[ 3 ] = { threads[ 0 ] + offsets[ 0 ], threads[ 1 ] + offsets[ 1 ], threads[ 2 … in check_results()
74 if( ( x >= offsets[ 0 ] ) && ( y >= offsets[ 1 ] ) && ( z >= offsets[ 2 ] ) ) in check_results()
104 size_t diffs[3] = { ( offsets[ 0 ] > threads[ 0 ] ? 0 : threads[ 0 ] - offsets[ 0 ] ), in check_results()
105 ( offsets[ 1 ] > threads[ 1 ] ? 0 : threads[ 1 ] - offsets[ 1 ] ), in check_results()
106 ( offsets[ 2 ] > threads[ 2 ] ? 0 : threads[ 2 ] - offsets[ 2 ] ) }; in check_results()
125 size_t threads[] = {1,1,1}, localThreads[] = {1,1,1}, offsets[] = {0,0,0}; in test_global_work_offsets() local
162 offsets[ j ] = random_in_range( 0, MAX_OFFSET, seed ); in test_global_work_offsets()
166 offsets[ 0 ], offsets[ 1 ], offsets[ 2 ] ); in test_global_work_offsets()
175 … error = clEnqueueNDRangeKernel( queue, kernel, 3, offsets, threads, localThreads, 0, NULL, NULL ); in test_global_work_offsets()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF7.java188 …protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, boolean … in decodeLoop() argument
246 if (offsets!= null) { in decodeLoop()
247 offsets.put(sourceIndex++); in decodeLoop()
355 if (offsets != null) { in decodeLoop()
356 offsets.put(sourceIndex); in decodeLoop()
374 if (offsets != null) { in decodeLoop()
375 offsets.put(sourceIndex); in decodeLoop()
393 if (offsets != null) { in decodeLoop()
394 offsets.put(sourceIndex); in decodeLoop()
411 if (offsets != null) { in decodeLoop()
[all …]
DCharsetBOCU1.java390 …protected CoderResult encodeLoop(CharBuffer source, ByteBuffer target, IntBuffer offsets, boolean … in encodeLoop() argument
418 labelType = fastSingle(source, target, offsets); in encodeLoop()
421 labelType = getTrail(source, target, offsets); in encodeLoop()
424 labelType = regularLoop(source, target, offsets); in encodeLoop()
432 private int fastSingle(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in fastSingle() argument
446 if(offsets!=null){ in fastSingle()
447 offsets.put(nextSourceIndex++); in fastSingle()
456 if(offsets!=null){ in fastSingle()
457 offsets.put(nextSourceIndex++); in fastSingle()
469 private int getTrail(CharBuffer source, ByteBuffer target, IntBuffer offsets){ in getTrail() argument
[all …]
DCharsetSCSU.java236 protected CoderResult decodeLoop(ByteBuffer source, CharBuffer target, IntBuffer offsets, in decodeLoop() argument
260 labelType = fastSingle(source, target, offsets, ByteMode); in decodeLoop()
264 labelType = singleByteMode(source, target, offsets, ByteMode); in decodeLoop()
267 endLoop(source, target, offsets); in decodeLoop()
274 labelType = fastSingle(source, target, offsets, UnicodeMode); in decodeLoop()
278 labelType = singleByteMode(source, target, offsets, UnicodeMode); in decodeLoop()
281 endLoop(source, target, offsets); in decodeLoop()
290 … private int fastSingle(ByteBuffer source, CharBuffer target, IntBuffer offsets, int modeType){ in fastSingle() argument
301 if(offsets != null){ in fastSingle()
302 offsets.put(sourceIndex); in fastSingle()
[all …]
/external/libaom/libaom/av1/encoder/x86/
Dencodetxb_sse2.c22 const ptrdiff_t *const offsets, in load_levels_4x4x5_sse2() argument
26 level[2] = load_8bit_4x4_to_1_reg_sse2(src + offsets[0], stride); in load_levels_4x4x5_sse2()
27 level[3] = load_8bit_4x4_to_1_reg_sse2(src + offsets[1], stride); in load_levels_4x4x5_sse2()
28 level[4] = load_8bit_4x4_to_1_reg_sse2(src + offsets[2], stride); in load_levels_4x4x5_sse2()
33 const ptrdiff_t *const offsets, in load_levels_8x2x5_sse2() argument
37 level[2] = load_8bit_8x2_to_1_reg_sse2(src + offsets[0], stride); in load_levels_8x2x5_sse2()
38 level[3] = load_8bit_8x2_to_1_reg_sse2(src + offsets[1], stride); in load_levels_8x2x5_sse2()
39 level[4] = load_8bit_8x2_to_1_reg_sse2(src + offsets[2], stride); in load_levels_8x2x5_sse2()
44 const ptrdiff_t *const offsets, in load_levels_16x1x5_sse2() argument
48 level[2] = _mm_loadu_si128((__m128i *)(src + offsets[0])); in load_levels_16x1x5_sse2()
[all …]
/external/harfbuzz_ng/src/
Dhb-subset-cff2.cc55 const cff2_sub_table_offsets_t &offsets) const in serialize()
62 return_trace (FontDict::serialize_offset4_op(c, opstr.op, offsets.varStoreOffset)); in serialize()
65 return_trace (cff_top_dict_op_serializer_t<>::serialize (c, opstr, offsets)); in serialize()
289 offsets.topDictInfo.size = TopDict::calculate_serialized_size (acc.topDict, topSzr); in create()
290 final_size += offsets.topDictInfo.size; in create()
302 offsets.globalSubrsInfo.size = CFF2Subrs::calculate_serialized_size (1, 0, 0); in create()
321 offsets.globalSubrsInfo.offSize = calcOffSize (dataSize); in create()
322offsets.globalSubrsInfo.size = CFF2Subrs::calculate_serialized_size (offsets.globalSubrsInfo.offSi… in create()
325 if (!offsets.localSubrsInfos.resize (orig_fdcount)) in create()
332 offsets.localSubrsInfos[fd].init (); in create()
[all …]
Dhb-subset-cff1.cc122 : offsets (offsets_), in top_dict_modifiers_t()
126 const cff1_sub_table_offsets_t &offsets; member
142 return_trace (FontDict::serialize_offset4_op(c, op, mod.offsets.charsetInfo.offset)); in serialize()
145 return_trace (FontDict::serialize_offset4_op(c, op, mod.offsets.encodingOffset)); in serialize()
149 if (unlikely (!UnsizedByteStr::serialize_int2 (c, mod.offsets.privateDictInfo.size))) in serialize()
151 if (unlikely (!UnsizedByteStr::serialize_int4 (c, mod.offsets.privateDictInfo.offset))) in serialize()
184 …return_trace (cff_top_dict_op_serializer_t<cff1_top_dict_val_t>::serialize (c, opstr, mod.offsets)… in serialize()
429 offsets (), in cff_subset_plan()
637 offsets.nameIndexOffset = final_size; in create()
653 offsets.topDictInfo.offset = final_size; in create()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/
Dspv.textureGatherBiasLod.frag25 const ivec2 offsets[4] = { ivec2(0, 0), ivec2(0, 1), ivec2(1, 0), ivec2(1, 1) };
32 texel += textureGatherOffset(s2D, c2, offsets[0], 0, bias);
33 texel += textureGatherOffset(s2DArray, c3, offsets[1], 1, bias);
35 texel += textureGatherOffsets(s2D, c2, offsets, 0, bias);
36 texel += textureGatherOffsets(s2DArray, c3, offsets, 1, bias);
47 sparseTextureGatherOffsetARB(s2D, c2, offsets[0], result, 0, bias);
49 sparseTextureGatherOffsetARB(s2DArray, c3, offsets[1], result, 1, bias);
52 sparseTextureGatherOffsetsARB(s2D, c2, offsets, result, 0, bias);
54 sparseTextureGatherOffsetsARB(s2DArray, c3, offsets, result, 1, bias);
62 texel += textureGatherLodOffsetAMD(s2D, c2, lod, offsets[0]);
[all …]
/external/deqp-deps/glslang/Test/
Dspv.textureGatherBiasLod.frag25 const ivec2 offsets[4] = { ivec2(0, 0), ivec2(0, 1), ivec2(1, 0), ivec2(1, 1) };
32 texel += textureGatherOffset(s2D, c2, offsets[0], 0, bias);
33 texel += textureGatherOffset(s2DArray, c3, offsets[1], 1, bias);
35 texel += textureGatherOffsets(s2D, c2, offsets, 0, bias);
36 texel += textureGatherOffsets(s2DArray, c3, offsets, 1, bias);
47 sparseTextureGatherOffsetARB(s2D, c2, offsets[0], result, 0, bias);
49 sparseTextureGatherOffsetARB(s2DArray, c3, offsets[1], result, 1, bias);
52 sparseTextureGatherOffsetsARB(s2D, c2, offsets, result, 0, bias);
54 sparseTextureGatherOffsetsARB(s2DArray, c3, offsets, result, 1, bias);
62 texel += textureGatherLodOffsetAMD(s2D, c2, lod, offsets[0]);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java110 int[] offsets = new int[2]; in TestGetOffsetAroundTransition() local
177 TESTZONES[i].getOffset(MILLIS[m], true, offsets); in TestGetOffsetAroundTransition()
178 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition()
181 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
191 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_STD, BasicTimeZone.LOCAL_STD, offsets); in TestGetOffsetAroundTransition()
192 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition()
195 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
205 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_DST, BasicTimeZone.LOCAL_DST, offsets); in TestGetOffsetAroundTransition()
206 if (offsets[0] != OFFSETS3[m][0] || offsets[1] != OFFSETS3[m][1]) { in TestGetOffsetAroundTransition()
209 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java113 int[] offsets = new int[2]; in TestGetOffsetAroundTransition() local
180 TESTZONES[i].getOffset(MILLIS[m], true, offsets); in TestGetOffsetAroundTransition()
181 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition()
184 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
194 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_STD, BasicTimeZone.LOCAL_STD, offsets); in TestGetOffsetAroundTransition()
195 if (offsets[0] != OFFSETS2[m][0] || offsets[1] != OFFSETS2[m][1]) { in TestGetOffsetAroundTransition()
198 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
208 …TZONES[i].getOffsetFromLocal(MILLIS[m], BasicTimeZone.LOCAL_DST, BasicTimeZone.LOCAL_DST, offsets); in TestGetOffsetAroundTransition()
209 if (offsets[0] != OFFSETS3[m][0] || offsets[1] != OFFSETS3[m][1]) { in TestGetOffsetAroundTransition()
212 + offsets[0] + "/" + offsets[1] in TestGetOffsetAroundTransition()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DSampleAuxiliaryInformationOffsetsBox.java51 private List<Long> offsets = new LinkedList<Long>(); field in SampleAuxiliaryInformationOffsetsBox
61 …return 8 + (getVersion() == 0 ? 4 * offsets.size() : 8 * offsets.size()) + ((getFlags() & 1) == 1 … in getContentSize()
72 IsoTypeWriter.writeUInt32(byteBuffer, offsets.size()); in getContent()
73 for (Long offset : offsets) { in getContent()
92 offsets.clear(); in _parseDetails()
96 offsets.add(IsoTypeReader.readUInt32(content)); in _parseDetails()
98 offsets.add(IsoTypeReader.readUInt64(content)); in _parseDetails()
121 return offsets; in getOffsets()
124 public void setOffsets(List<Long> offsets) { in setOffsets() argument
125 this.offsets = offsets; in setOffsets()
/external/icu/icu4c/source/i18n/
Dtitletrn.cpp71 Replaceable& text, UTransPosition& offsets, in handleTransliterate() argument
81 if (offsets.start >= offsets.limit) { in handleTransliterate()
98 for (start = offsets.start - 1; start >= offsets.contextStart; start -= U16_LENGTH(c)) { in handleTransliterate()
116 csc.start = offsets.contextStart; in handleTransliterate()
117 csc.limit = offsets.contextLimit; in handleTransliterate()
123 for(textPos=offsets.start; textPos<offsets.limit;) { in handleTransliterate()
140 offsets.start=csc.cpStart; in handleTransliterate()
159 csc.limit=offsets.contextLimit+=delta; in handleTransliterate()
160 offsets.limit+=delta; in handleTransliterate()
165 offsets.start=textPos; in handleTransliterate()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTitlecaseTransliterator.java67 Position offsets, boolean isIncremental) { in handleTransliterate() argument
75 if (offsets.start >= offsets.limit) { in handleTransliterate()
91 … for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate()
108 iter.setIndex(offsets.start); in handleTransliterate()
109 iter.setLimit(offsets.limit); in handleTransliterate()
110 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate()
131 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate()
149 offsets.limit += delta; in handleTransliterate()
150 offsets.contextLimit += delta; in handleTransliterate()
154 offsets.start = offsets.limit; in handleTransliterate()
DCaseFoldTransliterator.java62 Position offsets, boolean isIncremental) { in handleTransliterate() argument
67 if(offsets.start >= offsets.limit) { in handleTransliterate()
78 iter.setIndex(offsets.start); in handleTransliterate()
79 iter.setLimit(offsets.limit); in handleTransliterate()
80 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate()
87 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate()
105 offsets.limit += delta; in handleTransliterate()
106 offsets.contextLimit += delta; in handleTransliterate()
109 offsets.start = offsets.limit; in handleTransliterate()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTitlecaseTransliterator.java66 Position offsets, boolean isIncremental) { in handleTransliterate() argument
74 if (offsets.start >= offsets.limit) { in handleTransliterate()
90 … for (start = offsets.start - 1; start >= offsets.contextStart; start -= UTF16.getCharCount(c)) { in handleTransliterate()
107 iter.setIndex(offsets.start); in handleTransliterate()
108 iter.setLimit(offsets.limit); in handleTransliterate()
109 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate()
130 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate()
148 offsets.limit += delta; in handleTransliterate()
149 offsets.contextLimit += delta; in handleTransliterate()
153 offsets.start = offsets.limit; in handleTransliterate()
DCaseFoldTransliterator.java61 Position offsets, boolean isIncremental) { in handleTransliterate() argument
66 if(offsets.start >= offsets.limit) { in handleTransliterate()
77 iter.setIndex(offsets.start); in handleTransliterate()
78 iter.setLimit(offsets.limit); in handleTransliterate()
79 iter.setContextLimits(offsets.contextStart, offsets.contextLimit); in handleTransliterate()
86 offsets.start=iter.getCaseMapCPStart(); in handleTransliterate()
104 offsets.limit += delta; in handleTransliterate()
105 offsets.contextLimit += delta; in handleTransliterate()
108 offsets.start = offsets.limit; in handleTransliterate()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_bicubic_filter.c152 unsigned video_height, struct vertex2f *offsets) in create_frag_shader() argument
219 vtex, ureg_imm2f(shader, offsets[i].x, offsets[i].y)); in create_frag_shader()
252 struct vertex2f offsets[16]; in vl_bicubic_filter_init() local
313 offsets[0].x = -1.0f; offsets[0].y = -1.0f; in vl_bicubic_filter_init()
314 offsets[1].x = 0.0f; offsets[1].y = -1.0f; in vl_bicubic_filter_init()
315 offsets[2].x = 1.0f; offsets[2].y = -1.0f; in vl_bicubic_filter_init()
316 offsets[3].x = 2.0f; offsets[3].y = -1.0f; in vl_bicubic_filter_init()
318 offsets[4].x = -1.0f; offsets[4].y = 0.0f; in vl_bicubic_filter_init()
319 offsets[5].x = 0.0f; offsets[5].y = 0.0f; in vl_bicubic_filter_init()
320 offsets[6].x = 1.0f; offsets[6].y = 0.0f; in vl_bicubic_filter_init()
[all …]
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/util/regex/
DMatcherNative.java80 public boolean find(int startIndex, int[] offsets) { in find() argument
81 return findImpl(address, startIndex, offsets); in find()
98 public boolean findNext(int[] offsets) { in findNext() argument
99 return findNextImpl(address, offsets); in findNext()
135 public boolean lookingAt(int[] offsets) { in lookingAt() argument
136 return lookingAtImpl(address, offsets); in lookingAt()
153 public boolean matches(int[] offsets) { in matches() argument
154 return matchesImpl(address, offsets); in matches()
205 private static native boolean findImpl(long addr, int startIndex, int[] offsets); in findImpl() argument
206 private static native boolean findNextImpl(long addr, int[] offsets); in findNextImpl() argument
[all …]
/external/tensorflow/tensorflow/core/kernels/
Deigen_attention_test.cc38 std::vector<IndexPair<float>> offsets; in TEST() local
39 offsets.resize(batch); in TEST()
41 offsets[i].first = (-5 + i) / 10.0f; in TEST()
42 offsets[i].second = (5 - i) / 10.0f; in TEST()
46 result = ExtractGlimpses(input, glimpse_rows, glimpse_cols, offsets); in TEST()
51 c + ((1.0f + offsets[b].second) * cols - glimpse_cols) / 2; in TEST()
54 r + ((1.0f + offsets[b].first) * rows - glimpse_rows) / 2; in TEST()
74 std::vector<IndexPair<float>> offsets; in TEST() local
75 offsets.resize(batch); in TEST()
77 offsets[i].first = (-5 + i) / 2.0f; in TEST()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DSimpleFormatterTest.java51 int[] offsets = new int[1]; in TestWithNoArguments() local
55 fmt.formatAndAppend(new StringBuilder(), offsets).toString()); in TestWithNoArguments()
59 offsets[0]); in TestWithNoArguments()
147 int[] offsets = new int[6]; in TestWithArguments() local
153 offsets, in TestWithArguments()
157 verifyOffsets(expectedOffsets, offsets); in TestWithArguments()
176 int[] offsets = new int[4]; in TestFormatReplaceNoOptimization() local
183 offsets, in TestFormatReplaceNoOptimization()
187 verifyOffsets(expectedOffsets, offsets); in TestFormatReplaceNoOptimization()
194 int[] offsets = new int[4]; in TestFormatReplaceNoOptimizationLeadingText() local
[all …]

12345678910>>...71