/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | RawTexture.java | 27 private RawTexture(GLCanvas canvas, int id) { argument 28 super(canvas, id, STATE_LOADED); 31 public static RawTexture newInstance(GLCanvas canvas) { argument 33 GL11 gl = canvas.getGLInstance(); 35 return new RawTexture(canvas, textureId[0]); 39 protected boolean onBind(GLCanvas canvas) { argument 40 if (mCanvasRef.get() != canvas) { 41 throw new RuntimeException("cannot bind to different canvas");
|
H A D | Texture.java | 42 public void draw(GLCanvas canvas, int x, int y); argument 43 public void draw(GLCanvas canvas, int x, int y, int w, int h); argument
|
H A D | SelectionDrawer.java | 35 public abstract void draw(GLCanvas canvas, Texture content, argument 39 public abstract void drawFocus(GLCanvas canvas, int width, int height); argument 41 public void draw(GLCanvas canvas, Texture content, int width, int height, argument 43 draw(canvas, content, width, height, rotation, path, 48 public static void drawWithRotation(GLCanvas canvas, Texture content, argument 51 canvas.save(GLCanvas.SAVE_FLAG_MATRIX); 52 canvas.rotate(rotation, 0, 0, 1); 55 content.draw(canvas, x, y, width, height); 58 canvas.restore(); 62 public static void drawFrame(GLCanvas canvas, NinePatchTextur argument [all...] |
H A D | BasicTexture.java | 53 protected BasicTexture(GLCanvas canvas, int id, int state) { argument 54 setAssociatedCanvas(canvas); 66 protected void setAssociatedCanvas(GLCanvas canvas) { argument 67 mCanvasRef = canvas == null 69 : new WeakReference<GLCanvas>(canvas); 124 public void draw(GLCanvas canvas, int x, int y) { argument 125 canvas.drawTexture(this, x, y, getWidth(), getHeight()); 128 public void draw(GLCanvas canvas, int x, int y, int w, int h) { argument 129 canvas.drawTexture(this, x, y, w, h); 134 abstract protected boolean onBind(GLCanvas canvas); argument 136 isLoaded(GLCanvas canvas) argument [all...] |
H A D | ProgressSpinner.java | 57 public void draw(GLCanvas canvas, int x, int y) { argument 58 long now = canvas.currentAnimationTimeMillis(); 69 canvas.save(GLCanvas.SAVE_FLAG_MATRIX); 71 canvas.translate(x + mWidth / 2, y + mHeight / 2, 0); 72 canvas.rotate(mInnerDegree, 0, 0, 1); 73 mOuter.draw(canvas, -mOuter.getWidth() / 2, -mOuter.getHeight() / 2); 74 canvas.rotate(mOuterDegree - mInnerDegree, 0, 0, 1); 75 mInner.draw(canvas, -mInner.getWidth() / 2, -mInner.getHeight() / 2); 76 canvas.restore();
|
H A D | SlideshowView.java | 92 protected void render(GLCanvas canvas) { argument 93 long currentTimeMillis = canvas.currentAnimationTimeMillis(); 95 GL11 gl = canvas.getGLInstance(); 101 canvas.save(GLCanvas.SAVE_FLAG_ALPHA | GLCanvas.SAVE_FLAG_MATRIX); 102 canvas.setAlpha(1f - alpha); 103 mPrevAnimation.apply(canvas); 104 canvas.rotate(mPrevRotation, 0, 0, 1); 105 mPrevTexture.draw(canvas, -mPrevTexture.getWidth() / 2, 107 canvas.restore(); 111 canvas 140 apply(GLCanvas canvas) argument [all...] |
H A D | HighlightDrawer.java | 37 public void draw(GLCanvas canvas, Texture content, int width, argument 44 drawWithRotation(canvas, content, x, y, width, height, rotation); 54 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); 55 drawLabelBackground(canvas, width, height, labelBackgroundHeight); 56 drawIcon(canvas, width, height, dataSourceType); 59 drawPressedFrame(canvas, x, y, width, height); 61 drawSelectedFrame(canvas, x, y, width, height);
|
H A D | ColorTexture.java | 34 public void draw(GLCanvas canvas, int x, int y) { argument 35 draw(canvas, x, y, mWidth, mHeight); 38 public void draw(GLCanvas canvas, int x, int y, int w, int h) { argument 39 canvas.fillRect(x, y, w, h, mColor);
|
H A D | GridDrawer.java | 48 public void draw(GLCanvas canvas, Texture content, int width, argument 56 drawWithRotation(canvas, content, x, y, width, height, rotation); 66 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); 67 drawLabelBackground(canvas, width, height, labelBackgroundHeight); 68 drawIcon(canvas, width, height, dataSourceType); 70 drawImportLabel(canvas, width, height); 74 drawPressedFrame(canvas, x, y, width, height); 76 drawSelectedFrame(canvas, x, y, width, height); 81 private void drawImportLabel(GLCanvas canvas, int width, int height) { argument 92 mImportLabel.draw(canvas, 96 drawFocus(GLCanvas canvas, int width, int height) argument [all...] |
H A D | DrawableTexture.java | 34 protected void onDraw(Canvas canvas, Bitmap backing) { argument 36 mDrawable.draw(canvas);
|
H A D | ManageCacheDrawer.java | 58 public void draw(GLCanvas canvas, Texture content, int width, argument 71 canvas.save(GLCanvas.SAVE_FLAG_ALPHA); 72 canvas.multiplyAlpha(0.6f); 75 drawWithRotation(canvas, content, x, y, width, height, rotation); 78 canvas.restore(); 89 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); 90 drawLabelBackground(canvas, width, height, labelBackgroundHeight); 91 drawIcon(canvas, width, height, dataSourceType); 92 drawCachingPin(canvas, path, dataSourceType, isCaching, chooseToCache, 96 drawPressedFrame(canvas, 100 drawCachingPin(GLCanvas canvas, Path path, int dataSourceType, boolean isCaching, boolean chooseToCache, int width, int height) argument 132 drawFocus(GLCanvas canvas, int width, int height) argument [all...] |
H A D | FadeInTexture.java | 49 public void draw(GLCanvas canvas, int x, int y) { argument 50 draw(canvas, x, y, mWidth, mHeight); 53 public void draw(GLCanvas canvas, int x, int y, int w, int h) { argument 55 canvas.drawMixed(mTexture, mColor, getRatio(), x, y, w, h); 57 mTexture.draw(canvas, x, y, w, h);
|
H A D | IconDrawer.java | 65 protected IconDimension drawIcon(GLCanvas canvas, int width, int height, argument 71 icon.draw(canvas, id.x, id.y, id.width, id.height); 110 protected void drawMediaTypeOverlay(GLCanvas canvas, int mediaType, argument 113 drawVideoOverlay(canvas, x, y, width, height); 116 drawPanoramaBorder(canvas, x, y, width, height); 120 protected void drawVideoOverlay(GLCanvas canvas, int x, int y, argument 127 mVideoOverlay.draw(canvas, x, y, w, h); 130 mVideoPlayIcon.draw(canvas, -side / 2, -side / 2, side, side); 133 protected void drawPanoramaBorder(GLCanvas canvas, int x, int y, argument 139 mPanoramaBorder.draw(canvas, 144 drawLabelBackground(GLCanvas canvas, int width, int height, int drawLabelBackground) argument 151 drawPressedFrame(GLCanvas canvas, int x, int y, int width, int height) argument 156 drawSelectedFrame(GLCanvas canvas, int x, int y, int width, int height) argument 162 drawFocus(GLCanvas canvas, int width, int height) argument [all...] |
H A D | DisplayItem.java | 38 public abstract int render(GLCanvas canvas, int pass); argument
|
H A D | GLRoot.java | 24 public boolean onGLIdle(GLRoot root, GLCanvas canvas); argument
|
H A D | StripDrawer.java | 50 public void draw(GLCanvas canvas, Texture content, argument 58 drawWithRotation(canvas, content, x, y, width, height, rotation); 61 drawFrame(canvas, mFramePressed, x, y, width, height); 66 public void drawFocus(GLCanvas canvas, int width, int height) { argument 70 mFocusBox.draw(canvas, x - p.left, y - p.top,
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLCanvasTest.java | 42 GLCanvas canvas = new GLCanvasImpl(glStub); 43 canvas.setSize(100, 200); 44 canvas.setSize(1000, 100); 46 canvas.setSize(-1, 100); 60 GLCanvas canvas = new GLCanvasImpl(this); 62 canvas.clearBuffer(); 71 GLCanvas canvas = new GLCanvasImpl(glStub); 76 canvas.setCurrentAnimationTimeMillis(v); 77 assertEquals(v, canvas.currentAnimationTimeMillis()); 81 canvas 516 MyTexture(GLCanvas canvas, int id, boolean isOpaque) argument 523 onBind(GLCanvas canvas) argument [all...] |
H A D | TextureTest.java | 36 MyBasicTexture(GLCanvas canvas, int id) { argument 37 super(canvas, id, BasicTexture.STATE_UNLOADED); 41 protected boolean onBind(GLCanvas canvas) { argument 59 GLCanvas canvas = new GLCanvasImpl(glStub); 60 MyBasicTexture texture = new MyBasicTexture(canvas, 47); 74 assertFalse(texture.isLoaded(canvas)); 76 assertTrue(texture.isLoaded(canvas)); 84 texture.draw(canvas, 100, 200, 1, 1); 87 texture.draw(canvas, 0, 0); 95 GLCanvas canvas 183 MyTextureForMixed(GLCanvas canvas, int id) argument 188 onBind(GLCanvas canvas) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
H A D | CanvasAnimation.java | 24 public abstract void apply(GLCanvas canvas); argument
|
H A D | AlphaAnimation.java | 34 public void apply(GLCanvas canvas) { argument 35 canvas.multiplyAlpha(mCurrentAlpha);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | HolographicViewHelper.java | 70 private Bitmap createPressImage(ImageView v, Canvas canvas) { argument 75 canvas.setBitmap(b); 76 canvas.save(); 77 v.getDrawable().draw(canvas); 78 canvas.restore(); 79 canvas.drawColor(mHighlightColor, PorterDuff.Mode.SRC_IN); 80 canvas.setBitmap(null);
|
H A D | HolographicImageView.java | 47 protected void onDraw(Canvas canvas) { argument 48 super.onDraw(canvas);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartGridView.java | 91 protected void onDraw(Canvas canvas) { argument 102 secondary.draw(canvas); 113 primary.draw(canvas); 117 mBorder.draw(canvas); 123 canvas.save(); 124 canvas.translate(0, height + padding); 125 start.draw(canvas); 126 canvas.restore(); 131 canvas.save(); 132 canvas [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
H A D | DoodleView.java | 76 // Set up a matrix that maps back normalized paths to be drawn on the bitmap or canvas. 82 private void drawDoodle(Canvas canvas) { argument 83 if ((canvas != null) && (doodle != null)) { 86 canvas.drawPath(drawingPath, doodlePaint); 154 protected void onDraw(Canvas canvas) { argument 155 super.onDraw(canvas); 157 canvas.save(); 158 canvas.clipRect(displayBounds); 159 canvas.concat(displayMatrix); 161 canvas [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 72 Canvas canvas = new Canvas(target); 73 canvas.translate(sStackPhotoWidth / 2, sStackPhotoHeight / 2); 74 canvas.rotate(rotation); 75 canvas.scale(scale, scale); 77 canvas.drawBitmap(bitmap, -w / 2, -h / 2, paint);
|