/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
FatLfnDirectoryEntry.java | 3 * 2009,2010 Matthias Treydte <mt@waldheinz.de> 20 package de.waldheinz.fs.fat; 22 import de.waldheinz.fs.AbstractFsObject; 23 import de.waldheinz.fs.FsDirectoryEntry; 24 import de.waldheinz.fs.ReadOnlyException;
|
LittleEndian.java | 3 * 2009,2010 Matthias Treydte <mt@waldheinz.de> 20 package de.waldheinz.fs.fat;
|
/external/deqp/modules/egl/ |
teglRenderCase.cpp | 129 string("Config") + de::toString(configId) + "-Window", 130 string("Config ID ") + de::toString(configId) + ", window surface"); 137 de::UniquePtr<eglu::NativeWindow> window (windowFactory.createWindow(&nativeDisplay, display, config, DE_NULL, params)); 154 string("Config") + de::toString(configId) + "-Pixmap", 155 string("Config ID ") + de::toString(configId) + ", pixmap surface"); 178 string("Config") + de::toString(configId) + "-Pbuffer", 179 string("Config ID ") + de::toString(configId) + ", pbuffer surface");
|
/external/deqp/modules/gles31/functional/ |
es31fPrimitiveBoundingBoxTests.cpp | 95 const float wMin = de::max(0.0f, bbox.min.w()); // clamp to w=0 as extension requires 96 const float wMax = de::max(0.0f, bbox.max.w()); 234 de::Random rnd (0xDE3210); 254 const tcu::ScopedLogSection section (m_testCtx.getLog(), "Iteration", "Iteration " + de::toString(caseNdx+1)); 559 de::MovePtr<glu::ShaderProgram> m_program; 560 de::MovePtr<glu::Buffer> m_vbo; 561 de::MovePtr<glu::Framebuffer> m_fbo; 620 throw tcu::NotSupportedError(std::string() + "Test requires " + de::toString<int>(RENDER_TARGET_MIN_SIZE) + "x" + de::toString<int>(RENDER_TARGET_MIN_SIZE) + " default framebuffer"); 655 m_program = de::MovePtr<glu::ShaderProgram>(new glu::ShaderProgram(m_context.getRenderContext(), sources)) [all...] |
es31fOpaqueTypeIndexingTests.cpp | 66 typedef de::UniquePtr<ShaderExecutor> ShaderExecutorPtr; 99 const string varName = varPrefix + de::toString(varNdx); 113 maxElem = de::max(maxElem, elements[ndx]); 240 DE_ASSERT(de::inRange(numCoords, 1, 4)); 378 const string varName = indicesPrefix + de::toString(lookupNdx); 387 const string varName = resultPrefix + de::toString(lookupNdx); 410 static void fillTextureData (const tcu::PixelBufferAccess& access, de::Random& rnd) 446 de::Random rnd (deInt32Hash(m_samplerType) ^ deInt32Hash(m_shaderType) ^ deInt32Hash(m_indexExprType)); 490 const string samplerName = string("sampler[") + de::toString(samplerNdx) + "]"; 551 if (de::abs(result-reference) > 0.005f [all...] |
es31fUniformLocationTests.cpp | 65 using de::UniquePtr; 115 de::MovePtr<glu::Texture2D> createTexture (glu::DataType samplerType, float redChannelValue, int binding); 163 de::Random rng (seed); 292 const string layout = uniformInfo.location >= 0 ? "layout(location = " + de::toString(uniformInfo.location) + ") " : ""; 293 const string uniName = "uni" + de::toString(uniformNdx); 330 const string expectValue = de::floatToString(getExpectedValue(scalarType, location >= 0 ? location+subTypeIndex : -1, typeName), 3); 491 de::MovePtr<glu::Texture2D> UniformLocationCase::createTexture (glu::DataType samplerType, float redChannelValue, int binding) 498 de::MovePtr<Texture2D> tex; 500 tex = de::MovePtr<Texture2D>(new Texture2D(m_renderCtx, format, 16, 16)); 524 using de::MovePtr [all...] |
es31fTextureGatherTests.cpp | 59 using de::MovePtr; 83 return de::abs(a) / de::abs(b) * deSign32(a) * deSign32(b); 90 de::Random rnd (seed); [all...] |
es31fCopyImageTests.cpp | 72 using de::ArrayBuffer; 183 return de::toLower(enumName); 287 const int maxSize = de::max(size.x(), size.y()); 293 const int maxSize = de::max(size.x(), de::max(size.y(), size.z())); 355 size[i] = de::max(baseSize[i] >> level, 1); 360 size[i] = de::max(baseSize[i] >> level, 1); 412 void genTexel (de::Random& rng, deUint32 glFormat, int texelBlockSize, const int texelCount, deUint8* buffer) 506 return de::getSizedArrayElement<6>(cubeFaces, ndx); 571 de::Random& rng [all...] |
/external/deqp/framework/referencerenderer/ |
rrVertexAttrib.cpp | 94 dst[0] = de::max(-1.0f, float(aligned[0]) / float(range)); 95 if (size >= 2) dst[1] = de::max(-1.0f, float(aligned[1]) / float(range)); 96 if (size >= 3) dst[2] = de::max(-1.0f, float(aligned[2]) / float(range)); 97 if (size >= 4) dst[3] = de::max(-1.0f, float(aligned[3]) / float(range)); 203 dst[Order::T0] = de::max(-1.0f, float(extendSign<10>((aligned >> 0) & ((1 << 10) - 1))) / float(range10)); 204 if (size >= 2) dst[Order::T1] = de::max(-1.0f, float(extendSign<10>((aligned >> 10) & ((1 << 10) - 1))) / float(range10)); 205 if (size >= 3) dst[Order::T2] = de::max(-1.0f, float(extendSign<10>((aligned >> 20) & ((1 << 10) - 1))) / float(range10)); 206 if (size >= 4) dst[Order::T3] = de::max(-1.0f, float(extendSign< 2>((aligned >> 30) & ((1 << 2) - 1))) / float(range2)); 464 if (!de::inBounds<int>(vertexAttrib.type, 0, VERTEXATTRIBTYPE_LAST) || 465 !de::inRange(vertexAttrib.size, 0, 4) | [all...] |
/external/deqp/modules/gles2/functional/ |
es2fDepthRangeTests.cpp | 107 const float cNear = de::clamp(zNear, 0.0f, 1.0f); 108 const float cFar = de::clamp(zFar, 0.0f, 1.0f); 143 de::Random rnd (deStringHash(getName())); 145 const int viewportW = de::min(128, renderTarget.getWidth()); 146 const int viewportH = de::min(128, renderTarget.getHeight()); 232 int half = de::clamp((int)((float)referenceFrame.getWidth()*0.5f + 0.5f), 0, referenceFrame.getWidth()); 292 de::Random rnd (deStringHash(getName())); 294 const int viewportW = de::min(128, renderTarget.getWidth()); 295 const int viewportH = de::min(128, renderTarget.getHeight()); 384 int col = de::clamp(deRoundFloatToInt32((float)step*depthStep*255.0f), 0, 255) [all...] |
es2fRandomFragmentOpTests.cpp | 137 int viewportX = de::min(quad.posA.x(), quad.posB.x()); 138 int viewportY = de::min(quad.posA.y(), quad.posB.y()); 139 int viewportW = de::abs(quad.posA.x()-quad.posB.x())+1; 140 int viewportH = de::abs(quad.posA.y()-quad.posB.y())+1; 264 int width = de::min<int>(m_context.getRenderTarget().getWidth(), VIEWPORT_WIDTH); 265 int height = de::min<int>(m_context.getRenderTarget().getHeight(), VIEWPORT_HEIGHT); 298 de::Random rnd (iterSeed); 313 const tcu::ScopedLogSection iterSection (m_testCtx.getLog(), std::string("Iteration") + de::toString(m_iterNdx), std::string("Iteration ") + de::toString(m_iterNdx)); 434 addChild(new RandomFragmentOpCase(m_context, de::toString(ndx).c_str(), "", (deUint32)(ndx*NUM_ITERATIONS_PER_CASE))) [all...] |
es2fMultisampleTests.cpp | 91 return de::min(de::min(de::min(a, b), c), d); 97 return de::max(de::max(de::max(a, b), c), d); 118 int xMin = de::clamp(min4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); 119 int yMin = de::clamp(min4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); 120 int xMax = de::clamp(max4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); 121 int yMax = de::clamp(max4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1) [all...] |
es2fFlushFinishTests.cpp | 192 " for (int i = 0; i < " + de::toString(int(NUM_ITERS_IN_SHADER)) + "; i++)\n" 222 const int viewportW = de::min<int>(m_context.getRenderTarget().getWidth(), MAX_VIEWPORT_SIZE); 223 const int viewportH = de::min<int>(m_context.getRenderTarget().getHeight(), MAX_VIEWPORT_SIZE); 300 curDrawCount = de::clamp(deFloorFloatToInt32(est), 1, int(MAX_DRAW_CALL_COUNT)); 351 maxVal = de::max(maxVal, samples[ndx].*field); 448 de::Random rnd (123);
|
/external/deqp/modules/gles3/functional/ |
es3fRandomFragmentOpTests.cpp | 137 int viewportX = de::min(quad.posA.x(), quad.posB.x()); 138 int viewportY = de::min(quad.posA.y(), quad.posB.y()); 139 int viewportW = de::abs(quad.posA.x()-quad.posB.x())+1; 140 int viewportH = de::abs(quad.posA.y()-quad.posB.y())+1; 264 int width = de::min<int>(m_context.getRenderTarget().getWidth(), VIEWPORT_WIDTH); 265 int height = de::min<int>(m_context.getRenderTarget().getHeight(), VIEWPORT_HEIGHT); 298 de::Random rnd (iterSeed); 313 const tcu::ScopedLogSection iterSection (m_testCtx.getLog(), std::string("Iteration") + de::toString(m_iterNdx), std::string("Iteration ") + de::toString(m_iterNdx)); 434 addChild(new RandomFragmentOpCase(m_context, de::toString(ndx).c_str(), "", (deUint32)(ndx*NUM_ITERATIONS_PER_CASE))) [all...] |
es3fMultisampleTests.cpp | 93 return de::min(de::min(de::min(a, b), c), d); 99 return de::max(de::max(de::max(a, b), c), d); 120 int xMin = de::clamp(min4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); 121 int yMin = de::clamp(min4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1); 122 int xMax = de::clamp(max4(p0.x(), p1.x(), p2.x(), p3.x()), 0, img.getWidth()-1); 123 int yMax = de::clamp(max4(p0.y(), p1.y(), p2.y(), p3.y()), 0, img.getHeight()-1) [all...] |
es3fShaderCommonFunctionTests.cpp | 68 template<typename T> T randomScalar (de::Random& rnd, T minValue, T maxValue); 69 template<> inline float randomScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValue); } 70 template<> inline deInt32 randomScalar (de::Random& rnd, deInt32 minValue, deInt32 maxValue) { return rnd.getInt(minValue, maxValue); } 71 template<> inline deUint32 randomScalar (de::Random& rnd, deUint32 minValue, deUint32 maxValue) { return minValue + rnd.getUint32() % (maxValue - minValue + 1); } 74 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue) 83 static void fillRandomVectors (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue, void* dst, int numValues, int offset = 0) 91 static void fillRandomScalars (de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, int offset = 0) 103 return de::max(0, inExp-outExp); // Lost due to mantissa shift. 158 DE_ASSERT(de::inBounds<int>(precision, 0, DE_LENGTH_OF_ARRAY(bits))); 399 DE_ASSERT(de::inBounds<int>(precision, 0, DE_LENGTH_OF_ARRAY(s_postfix))) [all...] |
/external/deqp/modules/glshared/ |
glsRandomShaderCase.cpp | 149 de::Random rnd(m_parameters.seed); 267 throw tcu::TestError("Limit query failed: " + de::toString(glu::getErrorStr(error))); 270 throw tcu::NotSupportedError("Shader requires " + de::toString(numRequiredSamplers) + " sampler(s). Implementation supports " + de::toString(numSupported)); 287 throw tcu::TestError("Limit query failed: " + de::toString(glu::getErrorStr(error))); 290 throw tcu::NotSupportedError("Program requires " + de::toString(numRequiredCombinedSamplers) + " sampler(s). Implementation supports " + de::toString(numSupported)); 474 de::Random rnd (m_parameters.seed); 475 int viewportWidth = de::min<int>(VIEWPORT_WIDTH, m_renderCtx.getRenderTarget().getWidth()); 476 int viewportHeight = de::min<int>(VIEWPORT_HEIGHT, m_renderCtx.getRenderTarget().getHeight()) [all...] |
glsLongStressCase.cpp | 65 using de::SharedPtr; 66 using de::Random; 67 using de::toString; 129 return de::min(pixelSize, 8); 182 de::floatToString(prob*100.0f, 0) + "%"; 497 const int numLevels = useMipmap ? deLog2Floor32(de::max(width, height))+1 : 1; 505 memUsageApproxAfter += de::max(1, width>>level) * de::max(1, height>>level) * pixelSize * (m_type == TEXTURETYPE_CUBE ? 6 : 1); 518 m_numMipLevels = useMipmap ? deLog2Floor32(de::max(width, height))+1 : 1; 536 const int levelWid = de::max(1, width>>level) [all...] |
glsRasterizationTestUtil.cpp | 201 aabb.x() = (int)deFloatFloor(de::min(de::min(screenSpace[0].x(), screenSpace[1].x()), screenSpace[2].x())); 202 aabb.y() = (int)deFloatFloor(de::min(de::min(screenSpace[0].y(), screenSpace[1].y()), screenSpace[2].y())); 203 aabb.z() = (int)deFloatCeil (de::max(de::max(screenSpace[0].x(), screenSpace[1].x()), screenSpace[2].x())); 204 aabb.w() = (int)deFloatCeil (de::max(de::max(screenSpace[0].y(), screenSpace[1].y()), screenSpace[2].y())); 298 return de::max(de::max(minDividend / minDivisor, minDividend / maxDivisor), de::max(maxDividend / minDivisor, maxDiv (…) [all...] |
glsRandomShaderProgram.cpp | 56 DE_ASSERT(de::inRange(numComps, 1, 4)); 178 const int numToExecute = de::min(numPackets-packetOffset, (int)rsg::EXEC_VEC_WIDTH); 188 DE_ASSERT(attribType.isFloatOrVec() && de::inRange(numComponents, 1, 4)); 229 DE_ASSERT(varType.isFloatOrVec() && de::inRange(numComponents, 1, 4)); 257 const int numPacketsToExecute = de::min(numPackets-packetOffset, (int)rsg::EXEC_VEC_WIDTH / (int)rr::NUM_FRAGMENTS_PER_PACKET); 267 DE_ASSERT(varType.isFloatOrVec() && de::inRange(numComponents, 1, 4));
|
/external/libhevc/common/ |
ihevc_deblk_edge_filter.c | 112 WORD32 de, dep, deq; local 152 de = 0; 178 de = (d_sam0 == 1 && d_sam3 == 1) ? 2 : 1; 188 if(de != 0) 200 if(de == 2) 349 WORD32 de, dep, deq; local 394 de = 0; 424 de = (d_sam0 == 1 && d_sam3 == 1) ? 2 : 1; 434 if(de != 0) 445 if(de == 2 [all...] |
/frameworks/native/cmds/dumpstate/ |
utils.c | 64 struct dirent *de; local 74 while ((de = readdir(d))) { 76 if (de->d_type != DT_DIR || !(userid = atoi(de->d_name))) { 87 struct dirent *de; local 95 while ((de = readdir(d))) { 101 if (!(pid = atoi(de->d_name))) { 130 struct dirent *de; local 143 while ((de = readdir(d))) { 149 if (!(tid = atoi(de->d_name))) [all...] |
/system/core/fastboot/ |
usb_linux.c | 316 struct dirent *de; local 323 while((de = readdir(busdir)) && (usb == 0)) { 324 if(badname(de->d_name)) continue; 326 if(!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { 341 if(filter_usb_device(de->d_name, desc, n, writable, callback,
|
/external/deqp/framework/egl/ |
egluUtil.cpp | 77 return de::splitString(extensionStr, ' '); 83 return de::contains(extensions.begin(), extensions.end(), str); 240 usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && 241 de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); 293 usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && 294 de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); 334 usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && 335 de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); 393 const vector<string> apiStrs = de::splitString(apiList, ' ');
|
/external/deqp/framework/common/ |
tcuCommandLine.cpp | 93 de::cmdline::parseType(val.c_str(), &intVal); 98 void registerOptions (de::cmdline::Parser& parser) 100 using de::cmdline::Option; 101 using de::cmdline::NamedValue; 167 void registerLegacyOptions (de::cmdline::Parser& parser) 169 using de::cmdline::Option; 528 : m_casePatterns(de::splitString(pathList, ',')) 605 const vector<string> components = de::splitString(caseName, '.'); 610 const vector<string> patternComponents = de::splitString(m_casePatterns[ndx], '.'); 678 const de::cmdline::CommandLine& CommandLine::getCommandLine (void) cons [all...] |