Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 101) sorted by relevance

12345

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DVertices.java58 float w = bm.getWidth(); in SampleView() local
61 setXY(mTexs, 0, w/2, h/2); in SampleView()
63 setXY(mTexs, 2, w, 0); in SampleView()
64 setXY(mTexs, 3, w, h); in SampleView()
67 setXY(mVerts, 0, w/2, h/2); in SampleView()
69 setXY(mVerts, 2, w, 0); in SampleView()
70 setXY(mVerts, 3, w, h); in SampleView()
DBitmapDecode.java91 int w = mBitmap2.getWidth(); in SampleView() local
93 int[] pixels = new int[w*h]; in SampleView()
94 mBitmap2.getPixels(pixels, 0, w, 0, 0, w, h); in SampleView()
95 mBitmap3 = Bitmap.createBitmap(pixels, 0, w, w, h, in SampleView()
97 mBitmap4 = Bitmap.createBitmap(pixels, 0, w, w, h, in SampleView()
DXfermodes.java37 static Bitmap makeDst(int w, int h) { in makeDst() argument
38 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in makeDst()
43 c.drawOval(new RectF(0, 0, w*3/4, h*3/4), p); in makeDst()
48 static Bitmap makeSrc(int w, int h) { in makeSrc() argument
49 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in makeSrc()
54 c.drawRect(w/3, h/3, w*19/20, h*19/20, p); in makeSrc()
DMatrixPaletteRenderer.java89 public Grid(int w, int h) { in Grid() argument
90 if (w < 0 || w >= 65536) { in Grid()
96 if (w * h >= 65536) { in Grid()
100 mW = w; in Grid()
102 int size = w * h; in Grid()
368 public void onSurfaceChanged(GL10 gl, int w, int h) { in onSurfaceChanged() argument
369 gl.glViewport(0, 0, w, h); in onSurfaceChanged()
377 float ratio = (float) w / h; in onSurfaceChanged()
DCompressedTextureActivity.java91 Log.w(TAG, "ETC1 texture support: " + ETC1Util.isETC1Supported()); in load()
97 Log.w(TAG, "Could not load texture: " + e); in load()
126 Log.w(TAG, "Could not load texture: " + e); in load()
/development/samples/Snake/src/com/example/android/snake/
DBackgroundView.java77 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
78 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
82 w / 2, h / 2, in onSizeChanged()
84 w, 0, in onSizeChanged()
85 w, h, in onSizeChanged()
DTileView.java146 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
147 mXTileCount = (int) Math.floor(w / mTileSize); in onSizeChanged()
150 mXOffset = ((w - (mTileSize * mXTileCount)) / 2); in onSizeChanged()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSensors.java87 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
88 mBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.RGB_565); in onSizeChanged()
94 mWidth = w; in onSizeChanged()
97 mMaxX = w; in onSizeChanged()
99 mMaxX = w-50; in onSizeChanged()
102 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
131 float w = w0 - 32; in onDraw() local
135 canvas.translate(x, w*0.5f + 4.0f); in onDraw()
138 canvas.scale(w, w); in onDraw()
141 canvas.scale(w-5, w-5); in onDraw()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/logging/
DLogger.java84 public void w(String msg) { in w() method in Logger
85 Log.w(APP_TAG, getMsg(msg)); in w()
88 public void w(String msg, Throwable t) { in w() method in Logger
89 Log.w(APP_TAG, getMsg(msg), t); in w()
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dapp-android.c56 Java_com_example_SanAngeles_DemoRenderer_nativeResize( JNIEnv* env, jobject thiz, jint w, jint h ) in Java_com_example_SanAngeles_DemoRenderer_nativeResize() argument
58 sWindowWidth = w; in Java_com_example_SanAngeles_DemoRenderer_nativeResize()
60 __android_log_print(ANDROID_LOG_INFO, "SanAngeles", "resize w=%d h=%d", w, h); in Java_com_example_SanAngeles_DemoRenderer_nativeResize()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DGrid.java32 public Grid(int w, int h) { in Grid() argument
33 if (w < 0 || w >= 65536) { in Grid()
39 if (w * h >= 65536) { in Grid()
43 mW = w; in Grid()
45 int size = w * h; in Grid()
/development/ndk/platforms/android-4/samples/san-angeles/src/com/example/SanAngeles/
DDemoActivity.java104 public void onSurfaceChanged(GL10 gl, int w, int h) { in onSurfaceChanged() argument
106 nativeResize(w, h); in onSurfaceChanged()
114 private static native void nativeResize(int w, int h); in nativeResize() argument
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DTouchHighlightImageButton.java103 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
104 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
107 mCachedBounds.set(0, 0, w, h); in onSizeChanged()
/development/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java216 int w = b.getWidth();
219 if (w > width) width = w;
238 int w = bm.getWidth();
240 bm.getPixels(pixels, 0, w, 0, 0, w, h);
246 int right = w;
250 if (pixels[j*w+right-1] != 0xff000000) {
266 if (pixels[j*w+left] != 0xff000000) {
303 out.setPixels(pixels, left, w, 0, p, tw, h);
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLayoutAnimation4.java63 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView() local
64 i.setLayoutParams(new GridView.LayoutParams(w, w)); in getView()
DLayoutAnimation5.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView() local
63 i.setLayoutParams(new GridView.LayoutParams(w, w)); in getView()
DLayoutAnimation6.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView() local
63 i.setLayoutParams(new GridView.LayoutParams(w, w)); in getView()
DLayoutAnimation1.java62 final int w = (int) (36 * getResources().getDisplayMetrics().density + 0.5f); in getView() local
63 i.setLayoutParams(new GridView.LayoutParams(w, w)); in getView()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java89 int w = child.getMeasuredWidth(); in onLayout() local
92 int left = x + ((cellWidth-w)/2); in onLayout()
95 child.layout(left, top, left+w, top+h); in onLayout()
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java271 int w = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
273 int d = w == 0 ? h : h == 0 ? w : w < h ? w : h; in onMeasure()
278 protected void onSizeChanged(int w, int h, int oldw, int oldh) {
279 super.onSizeChanged(w, h, oldw, oldh);
281 int sx = (w - 2 * MARGIN) / 3;
287 mOffetX = (w - 3 * size) / 2;
456 int w = d.getIntrinsicWidth();
458 bmp = Bitmap.createBitmap(w, h, Config.ARGB_8888);
460 d.setBounds(0, 0, w - 1, h - 1);
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
DFixedGridLayout.java100 int w = child.getMeasuredWidth(); in onLayout() local
103 int left = x + ((cellWidth-w)/2); in onLayout()
106 child.layout(left, top, left+w, top+h); in onLayout()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarLander.java139 Log.w(this.getClass().getName(), "SIS is null"); in onCreate()
143 Log.w(this.getClass().getName(), "SIS is nonnull"); in onCreate()
167 Log.w(this.getClass().getName(), "SIS called"); in onSaveInstanceState()
/development/samples/TtsEngine/assets/
Deng-USA.freq23 w:1000
Deng-GBR.freq4 w:16
/development/tools/emulator/opengl/system/gralloc/
Dgralloc.cpp130 int w, int h, int format, int usage, in gralloc_alloc() argument
133 D("gralloc_alloc w=%d h=%d usage=0x%x\n", w, h, usage); in gralloc_alloc()
149 w, h, usage); in gralloc_alloc()
178 w, h, usage); in gralloc_alloc()
186 int stride = w; in gralloc_alloc()
268 size_t yStride = (w*bpp + (align - 1)) & ~(align-1); in gralloc_alloc()
274 size_t bpr = (w*bpp + (align-1)) & ~(align-1); in gralloc_alloc()
300 w, h, format, glFormat, glType); in gralloc_alloc()
326 cb->hostHandle = rcEnc->rcCreateColorBuffer(rcEnc, w, h, glFormat); in gralloc_alloc()
462 int l, int t, int w, int h) in fb_setUpdateRect() argument
[all …]

12345