HomeSort by relevance Sort by last modified time
    Searched full:scale (Results 376 - 400 of 4641) sorted by null

<<11121314151617181920>>

  /libcore/luni/src/test/java/libcore/io/
MemoryTest.java 32 int scale = SizeOf.INT; local
34 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1);
53 Memory.pokeIntArray(ptr + i * scale, values, i, 1, true);
73 int scale = SizeOf.LONG; local
75 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1);
94 Memory.pokeLongArray(ptr + i * scale, values, i, 1, true);
111 int scale = SizeOf.SHORT; local
113 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1);
132 Memory.pokeShortArray(ptr + i * scale, values, i, 1, true);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterTinyPlanet.java 71 Bitmap bitmapIn, int width, int height, Bitmap bitmapOut, int outSize, float scale,
129 float scale = intermediateWidth / (float) fullPanoWidth; local
133 (int) (fullPanoWidth * scale), (int) (fullPanoHeight * scale),
137 scale /= 2;
144 RectF destRect = new RectF(left * scale, top * scale, right * scale, bottom * scale);
  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
Environment.java 125 int scale; local
129 scale = mScreenWidth;
133 scale = mScreenHeight;
135 mNormalKeyTextSize = (int) (scale * NORMAL_KEY_TEXT_SIZE_RATIO);
136 mFunctionKeyTextSize = (int) (scale * FUNCTION_KEY_TEXT_SIZE_RATIO);
137 mNormalBalloonTextSize = (int) (scale * NORMAL_BALLOON_TEXT_SIZE_RATIO);
138 mFunctionBalloonTextSize = (int) (scale * FUNCTION_BALLOON_TEXT_SIZE_RATIO);
139 mKeyBalloonWidthPlus = (int) (scale * KEY_BALLOON_WIDTH_PLUS_RATIO);
140 mKeyBalloonHeightPlus = (int) (scale * KEY_BALLOON_HEIGHT_PLUS_RATIO);
  /packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
clouds.rs 96 static float scale[5];
148 gVSConstants->layer0.z = m * scale[0];
149 gVSConstants->layer1.z = m * scale[1];
150 gVSConstants->layer2.z = m * scale[2];
151 gVSConstants->layer3.z = m * scale[3];
152 gVSConstants->layer4.z = m * scale[4];
279 float scale = 255.f / (255.f - lowcol);
288 alpha = (alpha - lowcol) * scale;
303 float scale = 255.f / (255.f - lowcol);
363 scale[0] = 4.0f; // changed below based on prese
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
drawable1-expected-completion50.txt 10 <scale />
  /external/aac/libAACenc/src/
band_nrg.cpp 135 INT i, j, scale, nr = 0; local
141 scale = fixMax(0, sfbMaxScaleSpec[i]-4);
144 spec = mdctSpectrum[j]<<scale;
152 bandEnergyLdData[i] -= scale*FL2FXCONST_DBL(2.0/64);
162 scale = fixMax(0,sfbMaxScaleSpec[nr]-4);
163 scale = fixMax(2*(minSpecShift-scale),-(DFRACT_BITS-1));
165 maxNrg = scaleValue(bandEnergy[nr], scale);
223 INT scale = fixMin((sfbMaxScaleSpec[i]-4)<<1,(DFRACT_BITS-1)); local
224 bandEnergy[i] = scaleValue(bandEnergy[i], -scale);
237 INT scale = fixMin( ((sfbMaxScaleSpec[i]-4)+shiftBits)<<1, (DFRACT_BITS-1)); local
275 INT scale = (2*(sfbMaxScaleSpec[i]-3))-1; \/* max sfbWidth = 36 ; 2^6=64 => 6\/2 = 3 (spc*spc) *\/ local
340 INT scale = fixMax(0, 2*(minScale-4)); local
356 bandEnergyMid[i] >>= scale; local
357 bandEnergySide[i] >>= scale; local
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkColorPriv.h 46 byte into a scale value, so that we can say scale * value >> 8 instead of
137 /** Scale the 16bit color value by the 0..256 scale parameter.
142 static inline U16CPU SkAlphaMulRGB16(U16CPU c, unsigned scale) {
143 return SkCompact_rgb_16(SkExpand_rgb_16(c) * (scale >> 3) >> 5);
149 /** Blend src and dst 16bit colors by the 0..256 scale parameter.
250 unsigned scale) {
251 unsigned a = SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale);
252 unsigned r = SkAlphaBlend(SkGetPackedR32(src), SkGetPackedR32(dst), scale);
267 unsigned scale = SkAlpha255To256(srcWeight); local
648 unsigned scale = SkAlpha15To16(15 - sa); local
    [all...]
  /external/skia/include/core/
SkColorPriv.h 46 byte into a scale value, so that we can say scale * value >> 8 instead of
137 /** Scale the 16bit color value by the 0..256 scale parameter.
142 static inline U16CPU SkAlphaMulRGB16(U16CPU c, unsigned scale) {
143 return SkCompact_rgb_16(SkExpand_rgb_16(c) * (scale >> 3) >> 5);
149 /** Blend src and dst 16bit colors by the 0..256 scale parameter.
250 unsigned scale) {
251 unsigned a = SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale);
252 unsigned r = SkAlphaBlend(SkGetPackedR32(src), SkGetPackedR32(dst), scale);
267 unsigned scale = SkAlpha255To256(srcWeight); local
648 unsigned scale = SkAlpha15To16(15 - sa); local
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkEdge.cpp 40 float scale = float(1 << (shift + 6)); local
41 x0 = int(p0.fX * scale);
42 y0 = int(p0.fY * scale);
43 x1 = int(p1.fX * scale);
44 y1 = int(p1.fY * scale);
183 float scale = float(1 << (shift + 6)); local
184 x0 = int(pts[0].fX * scale);
185 y0 = int(pts[0].fY * scale);
186 x1 = int(pts[1].fX * scale);
187 y1 = int(pts[1].fY * scale);
343 float scale = float(1 << (shift + 6)); local
    [all...]
  /external/chromium_org/tools/grit/grit/gather/
chrome_html.py 7 high DPI resources and removing references to unsupported scale factors.
13 of the inlined file including those on relevant platforms. Unsupported scale
44 # Matches a single image in a CSS image set with the capture group scale.
46 'url\((?P<quote>"|\'|)[^"\'()]*(?P=quote)\)[ ]*(?P<scale>[0-9.]*x)',
54 """Generate the list of images which match the provided scale factors.
57 corresponding to the supported scale factors. If the file is from a
58 chrome://theme/ source, inserts supported @Nx scale factors as high DPI
64 scale_factors: a list of the supported scale factors (i.e. ['2x'])
68 array of tuples containing scale factor and image (i.e.
71 # Any matches for which a chrome URL handler will serve all scale factor
    [all...]
  /external/chromium_org/tools/traceline/traceline/
assembler.h 182 // [base + index*scale + disp/r]
183 Operand(Register base, Register index, ScaleFactor scale, int disp) {
184 Init(base, index, scale, disp);
187 // [index*scale + disp/r]
188 Operand(Register index, ScaleFactor scale, int disp) {
189 Init(index, scale, disp);
231 // [base + index*scale + disp/r]
234 ScaleFactor scale,
238 // [base + index*scale]
240 set_sib(scale, index, base)
    [all...]
  /external/skia/src/core/
SkEdge.cpp 40 float scale = float(1 << (shift + 6)); local
41 x0 = int(p0.fX * scale);
42 y0 = int(p0.fY * scale);
43 x1 = int(p1.fX * scale);
44 y1 = int(p1.fY * scale);
183 float scale = float(1 << (shift + 6)); local
184 x0 = int(pts[0].fX * scale);
185 y0 = int(pts[0].fY * scale);
186 x1 = int(pts[1].fX * scale);
187 y1 = int(pts[1].fY * scale);
343 float scale = float(1 << (shift + 6)); local
    [all...]
SkRRect.cpp 26 SkScalar scale = SkMinScalar(SkScalarDiv(rect.width(), xRad + xRad), local
28 SkASSERT(scale < SK_Scalar1);
29 xRad = SkScalarMul(xRad, scale);
30 yRad = SkScalarMul(yRad, scale);
62 // could still be non-zero and play in the global scale factor
76 // Proportionally scale down all radii to fit. Find the minimum ratio
78 // that to scale down _all_ the radii. This algorithm is from the
86 SkScalar scale = SK_Scalar1; local
89 scale = SkMinScalar(scale,
    [all...]
  /frameworks/base/core/java/android/content/res/
CompatibilityInfo.java 86 * Application's scale.
91 * Application's inverted scale.
245 int dens, float scale, float invertedScale) {
248 applicationScale = scale;
311 rect.scale(applicationInvertedScale);
318 transparentRegion.scale(applicationScale);
326 /* When we scale for compatibility, we can put our stretched
344 canvas.scale(applicationScale, applicationScale);
351 event.scale(applicationInvertedScale);
359 params.scale(applicationScale)
380 final float scale = applicationInvertedScale; local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
GeometryMathUtils.java 184 public static void scaleRect(RectF r, float scale) {
185 r.set(r.left * scale, r.top * scale, r.right * scale, r.bottom * scale);
204 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { method in class:GeometryMathUtils
355 float scale = w / pw; local
357 scale = h / ph;
359 scale = scale * cScale
448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight); local
472 float scale = GeometryMathUtils.scale(crop.width(), crop.height(), viewWidth, viewHeight); local
    [all...]
  /packages/apps/MusicFX/src/com/android/musicfx/seekbar/
AbsSeekBar.java 217 void onProgressRefresh(float scale, boolean fromUser) {
218 super.onProgressRefresh(scale, fromUser);
221 setThumbPos(getWidth(), getHeight(), thumb, scale, Integer.MIN_VALUE);
247 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
251 setThumbPos(w, h, thumb, scale, 0);
268 setThumbPos(w, h, thumb, scale, gap);
278 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
282 setThumbPos(w, h, thumb, scale, 0);
299 setThumbPos(w, h, thumb, scale, gap);
308 private void setThumbPos(int w, int h, Drawable thumb, float scale, int gap)
    [all...]
  /frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
ui_test.rs 142 static void createParticle(Particle_t *part, int idx, float scale) {
167 d = mapf(-4.0f, gGalaxyRadius + 4.0f, 0.0f, scale, d);
171 gSpeed[idx] = rsRand(0.0015f, 0.0025f) * (0.5f + (scale / d)) * 0.8f;
181 float scale = gGalaxyRadius / (gWidth * 0.5f);
184 createParticle(part, i, scale);
204 float scale = 512.0f / gWidth;
205 float x = -scale - scale * 0.05f;
206 float y = -scale;
208 scale *= 2.0f
    [all...]
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
many.rs 58 float scale = 0.0041;
62 rsMatrixScale(&mat1, scale, scale, scale);
102 rsMatrixTranslate(&mat1, 0.f, -57.0f * scale, 0.f);
104 rsMatrixScale(&mat1, scale, scale, scale);
121 rsMatrixScale(&mat1, scale, scale, scale)
    [all...]
  /art/compiler/dex/quick/x86/
codegen_x86.h 36 LIR* LoadBaseIndexed(int rBase, int r_index, int r_dest, int scale, OpSize size);
37 LIR* LoadBaseIndexedDisp(int rBase, int r_index, int scale, int displacement,
43 LIR* StoreBaseIndexed(int rBase, int r_index, int r_src, int scale, OpSize size);
44 LIR* StoreBaseIndexedDisp(int rBase, int r_index, int scale, int displacement,
90 RegLocation rl_index, RegLocation rl_src, int scale);
92 RegLocation rl_index, RegLocation rl_dest, int scale);
94 RegLocation rl_index, RegLocation rl_src, int scale);
160 void OpLea(int rBase, int reg1, int reg2, int scale, int offset);
180 int scale, int disp);
181 void EmitArrayReg(const X86EncodingMap* entry, uint8_t base, uint8_t index, int scale, int disp
    [all...]
  /external/chromium_org/chrome/browser/history/
select_favicon_frames.cc 86 float scale = ui::GetScaleFactorScale(scale_factor); local
87 desired_size = static_cast<int>(desired_size * scale + 0.5f);
102 if (desired_size > 16 * scale && desired_size <= 24 * scale) {
103 int source_size = static_cast<int>(16 * scale + 0.5f);
114 if (candidate_sizes[i].width() * scale == source_size &&
115 candidate_sizes[i].height() * scale == source_size) {
213 float scale = ui::GetScaleFactorScale(scale_factor); local
215 desired_size_in_dip * scale + 0.5f);
221 int inner_border_in_pixel = static_cast<int>(16 * scale + 0.5f)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/
FEDisplacementMap.cpp 43 FEDisplacementMap::FEDisplacementMap(Filter* filter, ChannelSelectorType xChannelSelector, ChannelSelectorType yChannelSelector, float scale)
47 , m_scale(scale)
52 ChannelSelectorType yChannelSelector, float scale)
54 return adoptRef(new FEDisplacementMap(filter, xChannelSelector, yChannelSelector, scale));
83 float FEDisplacementMap::scale() const function in class:WebCore::FEDisplacementMap
88 bool FEDisplacementMap::setScale(float scale)
90 if (m_scale == scale)
92 m_scale = scale;
209 // This can be fixed by adding a 2nd scale parameter to SkDisplacementMapEffect
225 // This can be fixed by adding a 2nd scale parameter to SkDisplacementMapEffec
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/media/base/
videocommon.cc 70 1.f / 2.f, // 1/2 scale.
71 1.f / 4.f, // 1/4 scale.
72 1.f / 8.f, // 1/8 scale.
73 1.f / 16.f // 1/16 scale.
78 // Finds the scale factor that, when applied to width and height, produces
85 int best_index = kNumScaleFactors - 1; // Default to max scale.
101 // Compute a size to scale frames to that is below maximum compression
139 // Snap to a scale factor that is less than or equal to target pixels.
140 float scale = FindLowerScale(frame_width, frame_height, local
142 *scaled_width = static_cast<int>(frame_width * scale + .5f)
    [all...]
  /external/chromium_org/webkit/common/cursors/
webcursor_unittest.cc 23 // Scale
52 // Scale
70 // Scale
88 // Scale
98 // This custom cursor uses zero scale.
107 // Scale
117 // This custom cursor uses tiny scale.
126 // Scale
163 // Scale
197 // Scale
    [all...]
  /external/chromium_org/ash/magnifier/
magnification_controller_unittest.cc 98 // Confirms the the scale can't be changed.
106 // Enables magnifier and confirms the default scale is 2.0x.
113 // Changes the scale.
358 float scale = 2.f; local
364 scale *= kMagnificationScaleFactor;
365 GetMagnificationController()->SetScale(scale, false);
373 scale *= kMagnificationScaleFactor;
374 GetMagnificationController()->SetScale(scale, false);
380 scale *= kMagnificationScaleFactor;
381 GetMagnificationController()->SetScale(scale, false)
404 float scale = 2.f; local
    [all...]
  /external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/
3d-raytrace.js 52 function scaleVector(self, scale) {
53 self[0] *= scale;
54 self[1] *= scale;
55 self[2] *= scale;
83 function scale(v, scale) { function
84 return [v[0] * scale, v[1] * scale, v[2] * scale];
204 var hit = add(origin, scale(dir, far));
    [all...]

Completed in 844 milliseconds

<<11121314151617181920>>