Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 113) sorted by relevance

12345

/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
Dvu.rs40 rsgClearColor(0.f, 0.f, 0.f, 1.f);
49 rsMatrixLoadTranslate(&mat1, 0.f, -90.0f * scale, 0.f);
56 -208.0f, -33.0f, 0.0f, // space
57 0.0f, 1.0f, // texture
58 208, -33.0f, 0.0f, // space
59 1.0f, 1.0f, // texture
60 208, 200.0f, 0.0f, // space
61 1.0f, 0.0f, // texture
62 -208.0f, 200.0f, 0.0f, // space
63 0.0f, 0.0f); // texture
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_feature_matching.cpp40 float f,g,fgsum,f2sum,g2sum,fsum,gsum,fg_corr,den; in db_SignedSquareNormCorr7x7_u() local
48 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
49 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
50 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
51 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
52 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
53 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
54 f= *pf; g= *pg; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
57 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
58 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
[all …]
Ddb_utilities_linalg.h257 inline int db_ScalarProduct512_s(const short *f,const short *g) in db_ScalarProduct512_s() argument
263 back+=(*f++)*(*g++); in db_ScalarProduct512_s()
270 inline int db_ScalarProduct32_s(const short *f,const short *g) in db_ScalarProduct32_s() argument
275 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
276 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
277 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
278 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
279 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
280 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
281 back+=(*f++)*(*g++); back+=(*f++)*(*g++); in db_ScalarProduct32_s()
[all …]
Ddb_metrics.h39 inline void db_CauchyDerivative(double J[4],double fp[2],const double f[2],double one_over_scale2) in db_CauchyDerivative()
73 x2=db_sqr(f[0]); in db_CauchyDerivative()
74 y2=db_sqr(f[1]); in db_CauchyDerivative()
90 fp[0]=r_fu*f[0]; in db_CauchyDerivative()
91 fp[1]=r_fu*f[1]; in db_CauchyDerivative()
94 half_dfu_dx=f[0]*coeff; in db_CauchyDerivative()
95 half_dfu_dy=f[1]*coeff; in db_CauchyDerivative()
99 J[0]=coeff2*f[0]+r_fu; in db_CauchyDerivative()
100 J[1]=coeff3*f[0]; in db_CauchyDerivative()
101 J[2]=coeff2*f[1]; in db_CauchyDerivative()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
Dmany.rs61 rsMatrixRotate(&mat1, 0.f, 0.f, 0.f, 1.f);
71 -208.0f, -33.0f, 600.0f, // space
72 0.0f, 1.0f, // texture
73 208, -33.0f, 600.0f, // space
74 1.0f, 1.0f, // texture
75 208, 200.0f, 600.0f, // space
76 1.0f, 0.0f, // texture
77 -208.0f, 200.0f, 600.0f, // space
78 0.0f, 0.0f); // texture
87 140.0f, 70.0f, 600.0f, // space
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
Dgalaxy.rs24 #define ELLIPSE_RATIO 0.892f
25 #define PI 3.1415f
26 #define TWO_PI 6.283f
27 #define ELLIPSE_TWIST 0.023333333f
29 static float angle = 50.f;
74 float w = 2.f;
76 while (w >= 1.0f) {
77 x1 = rsRand(2.0f) - 1.0f;
78 x2 = rsRand(2.0f) - 1.0f;
82 w = sqrt(-2.0f * log(w) / w);
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
Dfall.rs22 #define LEAF_SIZE 0.55f
109 leaf->y = rsRand(-height * 0.5f, height * 0.5f);
110 leaf->scale = rsRand(0.4f, 0.5f);
111 leaf->angle = rsRand(0.0f, 360.0f);
112 leaf->spin = degrees(rsRand(-0.02f, 0.02f)) * 0.25f;
115 leaf->altitude = -1.0f;
116 leaf->rippled = 1.0f;
117 leaf->deltaX = rsRand(-0.01f, 0.01f);
118 leaf->deltaY = -rsRand(0.036f, 0.044f);
134 g_DT = 0.1f;
[all …]
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
Dgalaxy.rs43 #define PI 3.1415f
44 #define TWO_PI 6.283f
52 float w = 2.f;
54 while (w >= 1.0f) {
55 x1 = rsRand(2.0f) - 1.0f;
56 x2 = rsRand(2.0f) - 1.0f;
60 w = sqrt(-2.0f * log(w) / w);
76 float scale = gGalaxyRadius / (width * 0.5f);
83 float d = fabs(randomGauss()) * gGalaxyRadius * 0.5f + rsRand(64.0f);
85 d = mapf(-4.0f, gGalaxyRadius + 4.0f, 0.0f, scale, d);
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
Dnexus.rs28 #define SPEED 0.2f // (200 / 1000) Pixels per ms
29 #define SPEED_DELTA_MIN 0.7f
30 #define SPEED_DELTA_MAX 1.7f
70 rsgProgramFragmentConstantColor(gPFTexture, 0.9f, 0.1f, 0.1f, 0.8f);
73 rsgProgramFragmentConstantColor(gPFTexture, 1.0f, 0.0f, 0.0f, 0.8f);
76 rsgProgramFragmentConstantColor(gPFTexture, 0.0f, 0.8f, 0.0f, 0.8f);
79 rsgProgramFragmentConstantColor(gPFTexture, 0.0f, 0.4f, 0.9f, 0.8f);
82 rsgProgramFragmentConstantColor(gPFTexture, 1.0f, 0.8f, 0.0f, 0.8f);
91 if (rsRand(1.f) > 0.5f) {
94 if (rsRand(1.f) > 0.5f) {
[all …]
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
Dholo_spiral.rs23 #define FOV 60.0f
24 #define SPIRAL_ROTATE_SPEED 15.0f
25 #define INNER_ROTATE_SPEED 1.5f
26 #define OUTER_ROTATE_SPEED 0.5f
78 static const INVERSE_360 = 1.0f / 360.0f;
80 return val - (multiplier * 360.0f);
102 rsMatrixRotate(&modelView, gXOffset * -SPIRAL_ROTATE_SPEED, 0.0f, 1.0f, 0.0f);
106 rsMatrixRotate(&rotateModelView, -gOuterRotateAngle, 0.0f, 0.0f, 1.0f);
117 rsMatrixRotate(&rotateModelView, gInnerRotateAngle, 0.0f, 0.0f, 1.0f);
135 gInnerRotateAngle = 0.0f;
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
Dgrass.rs23 #define TESSELATION 0.5f
24 #define HALF_TESSELATION 0.25f
25 #define MAX_BEND 0.09f
26 #define SECONDS_IN_DAY 86400.0f
27 #define PI 3.1415926f
28 #define HALF_PI 1.570796326f
88 return t * t * (3.0f - 2.0f * t);
149 rx1 = rx0 - 1.0f;
155 return 2.3f * mix(u, v, sx);
169 rx1 = rx0 - 1.0f;
[all …]
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
Dphasebeam.rs62 halfScreenWidth = screenWidth/2.0f;
63 halfScreenHeight = screenHeight/2.0f;
64 quarterScreenWidth = screenWidth/4.0f;
65 quarterScreenHeight = screenHeight/4.0f;
70 particle->position.x = rsRand(0.0f, 3.0f);
71 particle->position.y = rsRand(-1.25f, 1.25f);
75 z = 14.0f;
77 z = 25.0f;
79 z = rsRand(10.f, 20.f);
81 z = 24.0f;
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
Dwaveform.rs42 #define FADEOUT_FACTOR 0.95f
60 float amp1 = sin(0.007f * wave1amp) * 120;
61 float amp2 = sin(0.023f * wave2amp) * 80;
62 float amp3 = sin(0.011f * wave3amp) * 40;
63 float amp4 = sin(0.031f * wave4amp) * 20;
69 float val = sin(0.013f * (wave1pos + i)) * amp1
70 + sin(0.029f * (wave2pos + i)) * amp2;
71 float off = sin(0.005f * (wave3pos + i)) * amp3
72 + sin(0.017f * (wave4pos + i)) * amp4;
73 if (val < 2.f && val > -2.f) val = 2.f;
[all …]
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
Dclouds.rs101 static float4 clearColor = {0.5f, 0.0f, 0.0f, 1.0f};
114 float __agl = (3.1415927f / 180.0f) * a; \
147 float m = 0.35f;
181 rotation[0] += 0.100f * timedelta;
182 rotation[1] += 0.102f * timedelta;
183 rotation[2] += 0.106f * timedelta;
184 rotation[3] += 0.114f * timedelta;
185 rotation[4] += 0.123f * timedelta;
190 xshift[0] += 0.00100f * timedelta;
193 xshift[1] += 0.00106f * timedelta;
[all …]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
DBlobCacheTest.java444 RandomAccessFile f;
448 f = new RandomAccessFile(data0File, "rw");
449 f.seek(1);
450 byte b = f.readByte();
451 f.seek(1);
452 f.write(b);
453 f.close();
458 f = new RandomAccessFile(data0File, "rw");
459 f.seek(1);
460 f.write(0xFF);
[all …]
/packages/wallpapers/NoiseField/src/com/android/noisefield/
Dnoisefield.rs65 return t * t * (3.0f - 2.0f * t);
128 rx1 = rx0 - 1.0f;
134 ry1 = ry0 - 1.0f;
155 return 1.5f * mix(a, b, sy);
162 particle->position.x = rsRand(-1.0f, 1.0f);
163 particle->position.y = rsRand(-1.0f, 1.0f);
164 particle->speed = rsRand(0.0002f, 0.02f);
165 particle->wander = rsRand(0.50f, 1.5f);
168 particle->alphaStart = rsRand(0.01f, 1.0f);
175 rsgClearColor(0.0, 0.0, 0.0, 1.0f);
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java71 private static final float MAX_GLOW_HEIGHT = 4.f;
73 private static final float PULL_GLOW_BEGIN = 1.f;
199 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull()
242 mEdgeAlphaFinish = 0.f; in onRelease()
243 mEdgeScaleYFinish = 0.f; in onRelease()
244 mGlowAlphaFinish = 0.f; in onRelease()
245 mGlowScaleYFinish = 0.f; in onRelease()
270 mEdgeAlphaStart = 0.f; in onAbsorb()
271 mEdgeScaleY = mEdgeScaleYStart = 0.f; in onAbsorb()
275 mGlowScaleYStart = 0.f; in onAbsorb()
[all …]
DFlingScroller.java109 float f = 1 - progress; in computeScrollOffset() local
110 f = 1 - (float) Math.pow(f, DECELERATED_FACTOR); in computeScrollOffset()
111 mCurrX = getX(f); in computeScrollOffset()
112 mCurrY = getY(f); in computeScrollOffset()
116 private int getX(float f) { in getX() argument
118 Math.round(mStartX + f * mDistance * mCosAngle), mMinX, mMaxX); in getX()
121 private int getY(float f) { in getY() argument
123 Math.round(mStartY + f * mDistance * mSinAngle), mMinY, mMaxY); in getY()
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/
DBackendTest.java21 public static boolean profileExists(File f) { in profileExists() argument
22 return f.exists(); in profileExists()
25 public static boolean isImmunized(File f) { in isImmunized() argument
26 long length = f.length(); in isImmunized()
32 public static long profSize(File f) { in profSize() argument
33 return f.length(); in profSize()
36 public static boolean crcMatches(File f, long crc) { in crcMatches() argument
39 return getChecksum(f) == crc; in crcMatches()
42 public static String runRemovalCommand(Context context, File f) { in runRemovalCommand() argument
68 Process process = rt.exec(f.getAbsolutePath() + " -c " in runRemovalCommand()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DtrsMatrix.h37 inline double ProjZ(double trs[3][3], double x, double y, double f) in ProjZ() argument
39 return ((trs)[2][0]*(x) + (trs)[2][1]*(y) + (trs)[2][2]*(f)); in ProjZ()
42 inline double ProjX(double trs[3][3], double x, double y, double z, double f) in ProjX() argument
44 return (((trs)[0][0]*(x) + (trs)[0][1]*(y) + (trs)[0][2]*(f)) / (z)); in ProjX()
47 inline double ProjY(double trs[3][3], double x, double y, double z, double f) in ProjY() argument
49 return (((trs)[1][0]*(x) + (trs)[1][1]*(y) + (trs)[1][2]*(f)) / (z)); in ProjY()
/packages/apps/Nfc/jni/
Dcom_android_nfc.cpp168 jfieldID f; in nfc_jni_get_nat() local
172 f = e->GetFieldID(c, "mNative", "I"); in nfc_jni_get_nat()
173 return (struct nfc_jni_native_data*)e->GetIntField(o, f); in nfc_jni_get_nat()
246 jfieldID f; in nfc_jni_get_p2p_device_handle() local
249 f = e->GetFieldID(c, "mHandle", "I"); in nfc_jni_get_p2p_device_handle()
251 return e->GetIntField(o, f); in nfc_jni_get_p2p_device_handle()
257 jfieldID f; in nfc_jni_get_p2p_device_mode() local
260 f = e->GetFieldID(c, "mMode", "S"); in nfc_jni_get_p2p_device_mode()
262 return e->GetShortField(o, f); in nfc_jni_get_p2p_device_mode()
270 jfieldID f; in nfc_jni_get_connected_tech_index() local
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DDevice.java54 File f = context.getFileStreamPath("deviceName"); in getDeviceIdInternal() local
57 if (f.exists()) { in getDeviceIdInternal()
58 if (f.canRead()) { in getDeviceIdInternal()
59 rdr = new BufferedReader(new FileReader(f), 128); in getDeviceIdInternal()
64 if (!f.delete()) { in getDeviceIdInternal()
71 Log.w(Logging.LOG_TAG, f.getAbsolutePath() + ": File exists, but can't read?" + in getDeviceIdInternal()
73 if (!f.delete()) { in getDeviceIdInternal()
78 BufferedWriter w = new BufferedWriter(new FileWriter(f), 128); in getDeviceIdInternal()
/packages/apps/Contacts/src/com/android/contacts/
DContactsActivity.java122 protected static void showFragment(FragmentTransaction ft, Fragment f) { in showFragment() argument
123 if ((f != null) && f.isHidden()) ft.show(f); in showFragment()
126 protected static void hideFragment(FragmentTransaction ft, Fragment f) { in hideFragment() argument
127 if ((f != null) && !f.isHidden()) ft.hide(f); in hideFragment()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAssetFileAddress.java40 final File f = new File(filename); in makeFromFileName()
41 if (!f.isFile()) return null; in makeFromFileName()
42 return new AssetFileAddress(filename, 0l, f.length()); in makeFromFileName()
48 final File f = new File(filename); in makeFromFileNameAndOffset()
49 if (!f.isFile()) return null; in makeFromFileNameAndOffset()
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
DContentTransferEncodingField.java75 public static String getEncoding(ContentTransferEncodingField f) { in getEncoding() argument
76 if (f != null && f.getEncoding().length() != 0) { in getEncoding()
77 return f.getEncoding(); in getEncoding()

12345