Home
last modified time | relevance | path

Searched refs:tempBuffer (Results 1 – 18 of 18) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DMidpointDisplacementHeightMap.java123 float[][] tempBuffer = new float[size][size]; in load() local
126 tempBuffer[0][0] = random.nextFloat(); in load()
127 tempBuffer[0][size - 1] = random.nextFloat(); in load()
128 tempBuffer[size - 1][0] = random.nextFloat(); in load()
129 tempBuffer[size - 1][size - 1] = random.nextFloat(); in load()
136 nextCoords = doSquareStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load()
140 nextCoords = doDiamondStep(tempBuffer, nextCoords, stepSize, offsetRange, random); in load()
148 setHeightAtPoint((float) tempBuffer[i][j], j, i); in load()
169 …protected int[] doSquareStep(float[][] tempBuffer, int[] coords, int stepSize, float offsetRange, … in doSquareStep() argument
173 cornerAverage += tempBuffer[x][y]; in doSquareStep()
[all …]
DParticleDepositionHeightMap.java137 float[][] tempBuffer = new float[size][size]; in load() local
184 tempBuffer[x][y] += 1; in load()
206 if (tempBuffer[tx][ty] + 1.0f < tempBuffer[sx][sy]) { in load()
207 tempBuffer[tx][ty] += 1.0f; in load()
208 tempBuffer[sx][sy] -= 1.0f; in load()
220 if (tempBuffer[sx][sy] > tempBuffer[calderaX][calderaY]) { in load()
228 calderaStartPoint = tempBuffer[calderaX][calderaY]; in load()
260 if (tempBuffer[calderaX][calderaY] > cutoff in load()
261 && tempBuffer[calderaX][calderaY] in load()
266 tempBuffer[calderaX][calderaY] = in load()
[all …]
DFaultHeightMap.java138 float[][] tempBuffer = new float[size][size]; in load() local
142 addFault(tempBuffer, random); in load()
147 setHeightAtPoint(tempBuffer[i][j], i, j); in load()
157 protected void addFault(float[][] tempBuffer, Random random) { in addFault() argument
162 addLineFault(tempBuffer, random, faultHeight, range); in addFault()
165 addCircleFault(tempBuffer, random, faultHeight, range); in addFault()
170 … protected void addLineFault(float[][] tempBuffer, Random random, float faultHeight, float range) { in addLineFault() argument
181 tempBuffer[i][j] += calcHeight(dist, random, faultHeight, range); in addLineFault()
186 …protected void addCircleFault(float[][] tempBuffer, Random random, float faultHeight, float range)… in addCircleFault() argument
209 tempBuffer[i][j] += calcHeight(dist, random, faultHeight, range); in addCircleFault()
DFluidSimHeightMap.java148 float[][] tempBuffer = new float[2][size * size]; in load() local
159tempBuffer[0][j + i * size] = tempBuffer[1][j + i * size] = randomRange(random, minInitialHeight, … in load()
175 oldBuffer = tempBuffer[1 - curBuf]; in load()
176 newBuffer = tempBuffer[curBuf]; in load()
214 heightData[x + y * size] = (float) (tempBuffer[curBuf][x + y * size]); in load()
DHillHeightMap.java126 float[][] tempBuffer = new float[size][size]; in load() local
131 addHill(tempBuffer, random); in load()
137 setHeightAtPoint((float) tempBuffer[i][j], j, i); in load()
159 protected void addHill(float[][] tempBuffer, Random random) { in addHill() argument
199 tempBuffer[i][j] += height; in addHill()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DThreadSafeDataTransportTest.cpp47 SharedBuffer* tempBuffer = 0; in TEST() local
49 transport.data(&tempBuffer, &allDataReceived); in TEST()
72 SharedBuffer* tempBuffer = 0; in TEST() local
74 transport.data(&tempBuffer, &allDataReceived); in TEST()
76 EXPECT_FALSE(memcmp(testString3, tempBuffer->data(), tempBuffer->size())); in TEST()
/external/icu4c/test/intltest/
Dmsfmrgts.cpp101 UnicodeString tempBuffer; in Test4074764() local
103 tempBuffer = messageFormatter->format(params, 2, tempBuffer, pos, status); in Test4074764()
104 if( tempBuffer != "Message with param:BUG" || failure(status, "messageFormat->format")) in Test4074764()
106 logln("Formatted with one extra param : " + tempBuffer); in Test4074764()
120 tempBuffer.remove(); in Test4074764()
121 tempBuffer = messageFormatter->format(NULL, 0, tempBuffer, pos, status); in Test4074764()
123 if( tempBuffer != "Message without param" || failure(status, "messageFormat->format")) in Test4074764()
125 logln("Formatted with no params : " + tempBuffer); in Test4074764()
127 tempBuffer.remove(); in Test4074764()
128 tempBuffer = messageFormatter->format(params, 2, tempBuffer, pos, status); in Test4074764()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dmsfmrgts.cpp104 UnicodeString tempBuffer; in Test4074764() local
106 tempBuffer = messageFormatter->format(params, 2, tempBuffer, pos, status); in Test4074764()
107 if( tempBuffer != "Message with param:BUG" || failure(status, "messageFormat->format")) in Test4074764()
109 logln("Formatted with one extra param : " + tempBuffer); in Test4074764()
123 tempBuffer.remove(); in Test4074764()
124 tempBuffer = messageFormatter->format(NULL, 0, tempBuffer, pos, status); in Test4074764()
126 if( tempBuffer != "Message without param" || failure(status, "messageFormat->format")) in Test4074764()
128 logln("Formatted with no params : " + tempBuffer); in Test4074764()
130 tempBuffer.remove(); in Test4074764()
131 tempBuffer = messageFormatter->format(params, 2, tempBuffer, pos, status); in Test4074764()
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/main/
Dimage.c464 GLuint *tempBuffer; in _mesa_convert_colors() local
467 tempBuffer = malloc(count * MAX_PIXEL_BYTES); in _mesa_convert_colors()
468 if (!tempBuffer) in _mesa_convert_colors()
477 GLushort (*dst2)[4] = (GLushort (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
488 memcpy(dst, tempBuffer, count * 4 * sizeof(GLushort)); in _mesa_convert_colors()
492 GLfloat (*dst4)[4] = (GLfloat (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
504 memcpy(dst, tempBuffer, count * 4 * sizeof(GLfloat)); in _mesa_convert_colors()
510 GLubyte (*dst1)[4] = (GLubyte (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
521 memcpy(dst, tempBuffer, count * 4 * sizeof(GLubyte)); in _mesa_convert_colors()
525 GLfloat (*dst4)[4] = (GLfloat (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
[all …]
/external/mesa3d/src/mesa/main/
Dimage.c464 GLuint *tempBuffer; in _mesa_convert_colors() local
467 tempBuffer = malloc(count * MAX_PIXEL_BYTES); in _mesa_convert_colors()
468 if (!tempBuffer) in _mesa_convert_colors()
477 GLushort (*dst2)[4] = (GLushort (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
488 memcpy(dst, tempBuffer, count * 4 * sizeof(GLushort)); in _mesa_convert_colors()
492 GLfloat (*dst4)[4] = (GLfloat (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
504 memcpy(dst, tempBuffer, count * 4 * sizeof(GLfloat)); in _mesa_convert_colors()
510 GLubyte (*dst1)[4] = (GLubyte (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
521 memcpy(dst, tempBuffer, count * 4 * sizeof(GLubyte)); in _mesa_convert_colors()
525 GLfloat (*dst4)[4] = (GLfloat (*)[4]) (useTemp ? tempBuffer : dst); in _mesa_convert_colors()
[all …]
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
DUtf8Utils.java71 private static char[] tempBuffer = null; field in Utf8Utils
84 if (tempBuffer == null || tempBuffer.length < length) { in utf8BytesToString()
85 tempBuffer = new char[length]; in utf8BytesToString()
87 char[] chars = tempBuffer; in utf8BytesToString()
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
DGZIPSerializer.java85 ByteBuffer tempBuffer = ByteBuffer.allocate(512000); in writeObject() local
86 Serializer.writeClassAndObject(tempBuffer, message); in writeObject()
91 gzipOutput.write(tempBuffer.array()); in writeObject()
DZIPSerializer.java92 ByteBuffer tempBuffer = ByteBuffer.allocate(512000); in writeObject() local
93 Serializer.writeClassAndObject(tempBuffer, message); in writeObject()
102 zipOutput.write(tempBuffer.array()); in writeObject()
/external/chromium_org/third_party/icu/source/common/
Duloc.c848 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_getKeywordValue() local
852 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), status); in uloc_getKeywordValue()
1566 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_openKeywords() local
1574 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), status); in uloc_openKeywords()
1638 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in _canonicalize() local
1653 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), err); in _canonicalize()
1986 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_getVariant() local
1995 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), err); in uloc_getVariant()
/external/icu4c/common/
Duloc.cpp819 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_getKeywordValue() local
823 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), status); in uloc_getKeywordValue()
1541 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_openKeywords() local
1549 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), status); in uloc_openKeywords()
1613 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in _canonicalize() local
1628 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), err); in _canonicalize()
1964 char tempBuffer[ULOC_FULLNAME_CAPACITY]; in uloc_getVariant() local
1973 _ConvertBCP47(tmpLocaleID, localeID, tempBuffer, sizeof(tempBuffer), err); in uloc_getVariant()
/external/lzma/CPP/7zip/Archive/7z/
D7zEncode.cpp167 CMyComPtr<ISequentialOutStream> tempBuffer = tempBufferSpec; in Encode() local
169 tempBuffers.Add(tempBuffer); in Encode()
/external/yaffs2/yaffs2/
Dyaffs_guts.c189 if (dev->tempBuffer[i].line == 0) { in yaffs_GetTempBuffer()
190 dev->tempBuffer[i].line = lineNo; in yaffs_GetTempBuffer()
194 dev->tempBuffer[j].maxLine = in yaffs_GetTempBuffer()
195 dev->tempBuffer[j].line; in yaffs_GetTempBuffer()
198 return dev->tempBuffer[i].buffer; in yaffs_GetTempBuffer()
206 T(YAFFS_TRACE_BUFFERS, (TSTR(" %d "), dev->tempBuffer[i].line)); in yaffs_GetTempBuffer()
225 if (dev->tempBuffer[i].buffer == buffer) { in yaffs_ReleaseTempBuffer()
226 dev->tempBuffer[i].line = 0; in yaffs_ReleaseTempBuffer()
249 if (dev->tempBuffer[i].buffer == buffer) in yaffs_IsManagedTempBuffer()
6419 dev->tempBuffer[i].line = 0; /* not in use */ in yaffs_GutsInitialise()
[all …]
Dyaffs_guts.h739 yaffs_TempBuffer tempBuffer[YAFFS_N_TEMP_BUFFERS]; member