/frameworks/base/libs/rs/ |
D | rsg_generator.c | 5 void printFileHeader(FILE *f) in printFileHeader() argument 7 fprintf(f, "/*\n"); in printFileHeader() 8 fprintf(f, " * Copyright (C) 2010 The Android Open Source Project\n"); in printFileHeader() 9 fprintf(f, " *\n"); in printFileHeader() 10 fprintf(f, " * Licensed under the Apache License, Version 2.0 (the \"License\");\n"); in printFileHeader() 11 fprintf(f, " * you may not use this file except in compliance with the License.\n"); in printFileHeader() 12 fprintf(f, " * You may obtain a copy of the License at\n"); in printFileHeader() 13 fprintf(f, " *\n"); in printFileHeader() 14 fprintf(f, " * http://www.apache.org/licenses/LICENSE-2.0\n"); in printFileHeader() 15 fprintf(f, " *\n"); in printFileHeader() [all …]
|
D | rsg_ScriptJavaClass.cpp | 61 static void genHeader(FILE *f, const char *packageName) in genHeader() argument 63 fprintf(f, "package %s;\n", packageName); in genHeader() 64 fprintf(f, "\n"); in genHeader() 65 fprintf(f, "import android.renderscript.*;\n"); in genHeader() 66 fprintf(f, "\n"); in genHeader() 67 fprintf(f, "\n"); in genHeader() 134 bool rsGenerateElementClass(const Element *e, const char *packageName, FILE *f) in rsGenerateElementClass() argument 136 genHeader(f, packageName); in rsGenerateElementClass() 138 fprintf(f, "class Element_%s {\n", e->name); in rsGenerateElementClass() 145 fprintf(f, " public %s %s;\n", ts, e->fields[ct].name); in rsGenerateElementClass() [all …]
|
D | rsProgramVertex.cpp | 56 static void logMatrix(const char *txt, const float *f) in logMatrix() argument 58 LOGV("Matrix %s, %p", txt, f); in logMatrix() 59 LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[0], f[4], f[8], f[12]); in logMatrix() 60 LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[1], f[5], f[9], f[13]); in logMatrix() 61 LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[2], f[6], f[10], f[14]); in logMatrix() 62 LOGV("%6.4f, %6.4f, %6.4f, %6.4f", f[3], f[7], f[11], f[15]); in logMatrix() 72 const float *f = static_cast<const float *>(mConstants[0]->getPtr()); in setupGL() local 76 glLoadMatrixf(&f[RS_PROGRAM_VERTEX_TEXTURE_OFFSET]); in setupGL() 99 if (!f) { in setupGL() 104 glLoadMatrixf(&f[RS_PROGRAM_VERTEX_PROJECTION_OFFSET]); in setupGL() [all …]
|
D | rsMatrix.cpp | 137 void Matrix::loadOrtho(float l, float r, float b, float t, float n, float f) { in loadOrtho() argument 141 m[10]= -2 / (f - n); in loadOrtho() 144 m[14]= -(f + n) / (f - n); in loadOrtho() 147 void Matrix::loadFrustum(float l, float r, float b, float t, float n, float f) { in loadFrustum() argument 153 m[10]= -(f + n) / (f - n); in loadFrustum() 155 m[14]= -2*f*n / (f - n); in loadFrustum()
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
D | isp_az.c | 34 static void Get_isp_pol(Word16 * isp, Word32 * f, Word16 n); 35 static void Get_isp_pol_16kHz(Word16 * isp, Word32 * f, Word16 n); 186 static void Get_isp_pol(Word16 * isp, Word32 * f, Word16 n) in Get_isp_pol() argument 192 f[0] = vo_L_mult(4096, 1024); /* f[0] = 1.0; in Q23 */ in Get_isp_pol() 193 f[1] = vo_L_mult(isp[0], -256); /* f[1] = -2.0*isp[0] in Q23 */ in Get_isp_pol() 195 f += 2; /* Advance f pointer */ in Get_isp_pol() 199 *f = f[-2]; in Get_isp_pol() 200 for (j = 1; j < i; j++, f--) in Get_isp_pol() 202 hi = f[-1]>>16; in Get_isp_pol() 203 lo = (f[-1] & 0xffff)>>1; in Get_isp_pol() [all …]
|
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
D | isp_az.cpp | 107 void Get_isp_pol(int16 * isp, int32 * f, int16 n); 108 void Get_isp_pol_16kHz(int16 * isp, int32 * f, int16 n); 334 void Get_isp_pol(int16 * isp, int32 * f, int16 n) in Get_isp_pol() argument 342 f[0] = 0x00800000; /* f[0] = 1.0; in Q23 */ in Get_isp_pol() 343 f[1] = -isp[0] << 9; /* f[1] = -2.0*isp[0] in Q23 */ in Get_isp_pol() 345 f += 2; /* Advance f pointer */ in Get_isp_pol() 350 *f = f[-2]; in Get_isp_pol() 355 t0 = fxp_mul32_by_16b(f[-1], *isp); in Get_isp_pol() 358 *f -= t0; /* *f -= t0 */ in Get_isp_pol() 359 *(f) += f[-2]; /* *f += f[-2] */ in Get_isp_pol() [all …]
|
/frameworks/base/tools/aidl/ |
D | search_path.cpp | 34 string f = *it; local 35 if (f.size() == 0) { 36 f = "."; 37 f += OS_PATH_SEPARATOR; 39 else if (f[f.size()-1] != OS_PATH_SEPARATOR) { 40 f += OS_PATH_SEPARATOR; 42 f.append(expected); 46 if (0 == _access(f.c_str(), 0) && /* mode 0=exist */ 47 0 == _access(f.c_str(), 4) ) { /* mode 4=readable */ 49 if (0 == access(f.c_str(), R_OK)) { [all …]
|
/frameworks/base/opengl/libagl/ |
D | fp.h | 34 extern "C" GLfixed gglFloatToFixed(float f) __attribute__((const)); 105 float f; in cmpf() 108 ua.f = a; in cmpf() 109 ub.f = b; in cmpf() 119 float f; in isZerof() 122 f = v; in isZerof() 136 float f; in isZeroOrNegativef() 139 f = v; in isZeroOrNegativef() 146 float f; in exponent() member 149 f = v; in exponent() [all …]
|
D | matrix.cpp | 241 const GLfloat f = *fp++; in load() local 242 *xp++ = isZerof(f) ? 0 : gglFloatToFixed(f); in load() 708 GLfloat* const f = c->transforms.vpt.matrix.editElements(); in ogles_viewport() local 709 f[0] = sx; f[4] = 0; f[ 8] = 0; f[12] = ox; in ogles_viewport() 710 f[1] = 0; f[5] =-sy; f[ 9] = 0; f[13] = oy; in ogles_viewport() 711 f[2] = 0; f[6] = 0; f[10] = A; f[14] = B; in ogles_viewport() 712 f[3] = 0; f[7] = 0; f[11] = 0; f[15] = 1; in ogles_viewport() 834 GLfloat f[16]; in frustumf() local 835 f[ 0] = x; in frustumf() 836 f[ 5] = y; in frustumf() [all …]
|
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
D | lsp_az.cpp | 254 Word32 *f, in Get_lsp_pol() argument 266 *f++ = (Word32) 0x01000000; in Get_lsp_pol() 267 *f++ = (Word32) - *(lsp++) << 10; /* f[1] = -2.0 * lsp[0]; */ in Get_lsp_pol() 272 *f = *(f - 2); in Get_lsp_pol() 276 hi = (Word16)(*(f - 1) >> 16); in Get_lsp_pol() 278 lo = (Word16)((*(f - 1) >> 1) - ((Word32) hi << 15)); in Get_lsp_pol() 283 *(f) += *(f - 2); /* *f += f[-2] */ in Get_lsp_pol() 284 *(f--) -= t0 << 2; /* *f -= t0 */ in Get_lsp_pol() 288 *f -= (Word32)(*lsp++) << 10; in Get_lsp_pol() 290 f += i; in Get_lsp_pol() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | DataInputStreamTest.java | 68 DataOutputStream f = new DataOutputStream(e); in testDataInputStream() local 70 f.writeBoolean(true); in testDataInputStream() 71 f.writeByte('a'); in testDataInputStream() 72 f.writeBytes("BCD"); in testDataInputStream() 73 f.writeChar('e'); in testDataInputStream() 74 f.writeChars("FGH"); in testDataInputStream() 75 f.writeUTF("ijklm"); in testDataInputStream() 76 f.writeDouble(1); in testDataInputStream() 77 f.writeFloat(2); in testDataInputStream() 78 f.writeInt(3); in testDataInputStream() [all …]
|
D | PerformanceTests.java | 590 int a, b, c, d, e, f; in testRun() local 592 a = b = c = d = e = f = 0; in testRun() 617 int a, b, c, d, e, f; in testRun() local 619 a = b = c = d = e = f = 0; in testRun() 622 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() 623 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() 624 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() 625 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() 626 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() 627 NativeTestTarget.emptyJniStaticMethod6(a, b, c, d, e, f); in testRun() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | EdgeGlow.java | 47 private static final float MAX_GLOW_HEIGHT = 3.f; 49 private static final float PULL_GLOW_BEGIN = 1.f; 146 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull() 186 mEdgeAlphaFinish = 0.f; in onRelease() 187 mEdgeScaleYFinish = 0.f; in onRelease() 188 mGlowAlphaFinish = 0.f; in onRelease() 189 mGlowScaleYFinish = 0.f; in onRelease() 209 mEdgeAlphaStart = 0.f; in onAbsorb() 210 mEdgeScaleY = mEdgeScaleYStart = 0.f; in onAbsorb() 214 mGlowScaleYStart = 0.f; in onAbsorb() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | FontLoader.java | 86 File f = new File(fontOsLocation + File.separator + FONTS_DEFINITIONS); in create() local 90 parser.parse(new FileInputStream(f), definitionParser); in create() 115 File f = new File(path + FONT_EXT); in FontLoader() local 116 if (f.isFile()) { in FontLoader() 118 Font font = Font.createFont(Font.TRUETYPE_FONT, f); in FontLoader() 166 Font f = styleMap.get(style[0]); in getFont() local 168 if (f != null) { in getFont() 169 return f; in getFont() 175 f = getFont(ttf, FONT_STYLES[Typeface.NORMAL]); in getFont() 179 f = getFont(ttf, FONT_STYLES[style[0]]); in getFont() [all …]
|
/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
D | findhalfpel.cpp | 154 register int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0; // temp register in GenerateHalfPelPred() local 195 f = ref[3]; in GenerateHalfPelPred() 196 *dst_16++ = a + f - 5 * (b + e) + 20 * (c + d); in GenerateHalfPelPred() 198 *dst_16++ = b + a - 5 * (c + f) + 20 * (d + e); in GenerateHalfPelPred() 200 *dst_16++ = c + b - 5 * (d + a) + 20 * (e + f); in GenerateHalfPelPred() 202 *dst_16++ = d + c - 5 * (e + b) + 20 * (f + a); in GenerateHalfPelPred() 208 *dst_16 = e + d - 5 * (f + c) + 20 * (a + b); in GenerateHalfPelPred() 231 f = ref[3]; in GenerateHalfPelPred() 232 tmp32 = a + f - 5 * (b + e) + 20 * (c + d); in GenerateHalfPelPred() 239 tmp32 = b + a - 5 * (c + f) + 20 * (d + e); in GenerateHalfPelPred() [all …]
|
/frameworks/base/opengl/libs/EGL/ |
D | Loader.cpp | 183 __eglMustCastToProperFunctionPointerType f = in init_api() local 185 if (f == NULL) { in init_api() 187 f = getProcAddress(name); in init_api() 189 if (f == NULL) { in init_api() 195 f = (__eglMustCastToProperFunctionPointerType)dlsym(dso, scrap); in init_api() 199 if (f == NULL) { in init_api() 206 f = (__eglMustCastToProperFunctionPointerType)dlsym(dso, scrap); in init_api() 210 if (f == NULL) { in init_api() 212 f = (__eglMustCastToProperFunctionPointerType)gl_unimplemented; in init_api() 214 *curr++ = f; in init_api() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | FileBackupHelperBase.java | 59 for (String f: files) { in performBackup_checked() 60 if (f.charAt(0) != '/') { in performBackup_checked() 61 throw new RuntimeException("files must have all absolute paths: " + f); in performBackup_checked() 84 void writeFile(File f, BackupDataInputStream in) { in writeFile() argument 88 File parent = f.getParentFile(); in writeFile() 91 result = writeFile_native(mPtr, f.getAbsolutePath(), in.mData.mBackupReader); in writeFile() 95 Log.e(TAG, "Failed restoring file '" + f + "' for app '" in writeFile()
|
/frameworks/base/core/java/android/app/ |
D | FullBackupAgent.java | 56 for (File f : contents) { in onBackup() 57 if (f.isDirectory()) { in onBackup() 58 dirsToScan.add(f); in onBackup() 59 } else if (f.isFile()) { in onBackup() 60 if (DEBUG) Log.v(TAG, " " + f.getAbsolutePath()); in onBackup() 61 allFiles.add(f.getAbsolutePath()); in onBackup()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 58 float spacing = 1.f / (colors.length - 1); in Gradient_Delegate() 60 positions[0] = 0.f; in Gradient_Delegate() 61 positions[colors.length-1] = 1.f; in Gradient_Delegate() 127 if (pos < 0.f) { in getGradientColor() 131 pos = 0.f; in getGradientColor() 151 pos = 1.f - pos; in getGradientColor() 162 pos = 1.f; in getGradientColor() 177 pos = 1.f - pos; in getGradientColor()
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | FileList.java | 43 File f = new File(mPath); in onKeyDown() local 44 mFocusFile = f.getName(); in onKeyDown() 46 f = f.getParentFile(); in onKeyDown() 47 mPath = f.getPath(); in onKeyDown() 84 File f = new File(mPath); in getData() local 85 if (!f.exists()) { in getData() 89 String[] files = f.list(); in getData() 169 abstract boolean fileFilter(File f); in fileFilter() argument
|
/frameworks/base/graphics/java/android/renderscript/ |
D | Matrix4f.java | 83 float recipLen = 1.f / len; in loadRotate() 140 public void loadOrtho(float l, float r, float b, float t, float n, float f) { in loadOrtho() argument 144 mMat[10]= -2 / (f - n); in loadOrtho() 147 mMat[14]= -(f + n) / (f - n); in loadOrtho() 150 public void loadFrustum(float l, float r, float b, float t, float n, float f) { in loadFrustum() argument 156 mMat[10]= -(f + n) / (f - n); in loadFrustum() 158 mMat[14]= -2*f*n / (f - n); in loadFrustum()
|
D | ScriptC.java | 138 for (Field f: fields) { in addDefines() 140 if ((f.getModifiers() & mask) == mask) { in addDefines() 141 Class t = f.getType(); in addDefines() 143 mIntDefines.put(f.getName(), f.getInt(o)); in addDefines() 146 mFloatDefines.put(f.getName(), f.getFloat(o)); in addDefines() 151 Log.d(TAG, "addDefines skipping field " + f.getName()); in addDefines()
|
/frameworks/base/services/java/com/android/server/ |
D | IntentResolver.java | 49 public void addFilter(F f) { in addFilter() argument 51 Slog.v(TAG, "Adding filter: " + f); in addFilter() 52 f.dump(new LogPrinter(Log.VERBOSE, TAG, Log.LOG_ID_SYSTEM), " "); in addFilter() 56 mFilters.add(f); in addFilter() 57 int numS = register_intent_filter(f, f.schemesIterator(), in addFilter() 59 int numT = register_mime_types(f, " Type: "); in addFilter() 61 register_intent_filter(f, f.actionsIterator(), in addFilter() 65 register_intent_filter(f, f.actionsIterator(), in addFilter() 70 public void removeFilter(F f) { in removeFilter() argument 71 removeFilterInternal(f); in removeFilter() [all …]
|
/frameworks/base/libs/rs/java/Fountain/res/raw/ |
D | fountain2.rs | 35 float rMax = ((float)rate) * 0.005f; 38 int color = ((int)(Control->r * 255.f)) | 39 ((int)(Control->g * 255.f)) << 8 | 40 ((int)(Control->b * 255.f)) << 16 | 59 float dy = p->delta.y + 0.15f; 62 dy *= -0.3f;
|
/frameworks/base/libs/rs/java/Fountain/src/com/android/fountain/ |
D | FountainRS.java | 48 mSD.r = ((x & 0x1) != 0) ? 0.f : 1.f; in newTouchPosition() 49 mSD.g = ((x & 0x2) != 0) ? 0.f : 1.f; in newTouchPosition() 50 mSD.b = ((x & 0x4) != 0) ? 0.f : 1.f; in newTouchPosition() 54 mSD.b = 1.f; in newTouchPosition()
|