/cts/tests/tests/graphics/src/android/graphics/cts/ |
CanvasTest.java | 73 private Canvas mCanvas; 90 mCanvas = new Canvas(mMutableBitmap); 139 mCanvas.setBitmap(mImmutableBitmap); 149 mCanvas.setBitmap(mMutableBitmap); 157 mCanvas.setBitmap(mMutableBitmap); 158 assertEquals(BITMAP_WIDTH, mCanvas.getWidth()); 159 assertEquals(31, mCanvas.getHeight()); 168 assertFalse(mCanvas.isOpaque()); 179 mCanvas.restore(); 186 mCanvas.save() [all...] |
SweepGradientTest.java | 38 private Canvas mCanvas; 53 mCanvas = new Canvas(mBitmap); 66 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 80 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 96 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint);
|
/frameworks/base/core/java/android/view/ |
GLES20DisplayList.java | 31 private GLES20RecordingCanvas mCanvas; 47 if (mCanvas != null) { 52 mCanvas = GLES20RecordingCanvas.obtain(this); 53 mCanvas.start(); 54 return mCanvas; 59 if (mCanvas != null) { 60 mCanvas.recycle(); 61 mCanvas = null; 73 if (mCanvas != null) { 75 mCanvas.end(mFinalizer.mNativeDisplayList) [all...] |
GLES20RenderLayer.java | 31 private final GLES20Canvas mCanvas; 42 mCanvas = new GLES20Canvas(mLayer, !isOpaque); 45 mCanvas = null; 74 return mCanvas;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewPerformanceTest.java | 34 private Canvas mCanvas; 44 mCanvas = new Canvas(mBitmap); 53 mLabelView.myDraw(mCanvas); 56 mCanvas.save(); 66 mTextView.myDraw(mCanvas); 67 mTextView.myDraw(mCanvas); 68 mTextView.myDraw(mCanvas); 69 mTextView.myDraw(mCanvas); 70 mTextView.myDraw(mCanvas); 71 mTextView.myDraw(mCanvas); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CanvasTexture.java | 27 protected Canvas mCanvas; 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap);
|
GLRootView.java | 66 private GLCanvasImpl mCanvas; 221 mCanvas = new GLCanvasImpl(gl); 243 mCanvas.setSize(width, height); 285 mCanvas.deleteRecycledResources(); 303 mCanvas.setCurrentAnimationTimeMillis(SystemClock.uptimeMillis()); 305 mContentView.render(mCanvas); 327 mCanvas.fillRect(10, 10, 5, 5, mInvalidateColor); 332 mCanvas.dumpStatisticsAndClear(); 369 return mCanvas; 387 if (!listener.onGLIdle(GLRootView.this, mCanvas)) return [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
LayoutCanvasViewer.java | 48 private LayoutCanvas mCanvas; 56 mCanvas = new LayoutCanvas(layoutEditor, rulesEngine, parent, style); 58 mCanvas.getSelectionManager().addSelectionChangedListener(mSelectionListener); 70 return mCanvas; 82 return mCanvas; 106 return mCanvas.getSelectionManager().getSelection(); 116 mCanvas.getSelectionManager().setSelection(selection); 127 mCanvas.getSelectionManager().removeSelectionChangedListener(mSelectionListener); 129 if (mCanvas != null) { 130 mCanvas.dispose() [all...] |
ResizeGesture.java | 43 private LayoutCanvas mCanvas; 63 mCanvas = canvas; 77 mCanvas.getSelectionOverlay().setHidden(true); 79 RulesEngine rulesEngine = mCanvas.getRulesEngine(); 81 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); 89 mCanvas.getGestureManager().updateMessage(mFeedback); 94 update(mCanvas.getGestureManager().getCurrentControlPoint()); 95 mCanvas.redraw(); 101 update(mCanvas.getGestureManager().getCurrentControlPoint()); 102 mCanvas.redraw() [all...] |
ControlPoint.java | 34 private final LayoutCanvas mCanvas; 135 this.mCanvas = canvas; 148 int lx = mCanvas.getHorizontalTransform().inverseTranslate(x); 149 int ly = mCanvas.getVerticalTransform().inverseTranslate(y); 151 return LayoutPoint.create(mCanvas, lx, ly); 181 if (mCanvas != other.mCanvas) { 193 return mCanvas.toDisplay(x, y);
|
LayoutPoint.java | 33 private final LayoutCanvas mCanvas; 99 this.mCanvas = canvas; 112 int cx = mCanvas.getHorizontalTransform().translate(x); 113 int cy = mCanvas.getVerticalTransform().translate(y); 115 return ControlPoint.create(mCanvas, cx, cy);
|
MoveGesture.java | 48 private LayoutCanvas mCanvas; 116 this.mCanvas = canvas; 131 mCanvas.getSelectionOverlay().setHidden(true); 138 mCanvas.getSelectionOverlay().setHidden(false); 142 mCanvas.getSelectionManager().syncOutlineSelection(); 149 update(mCanvas.getGestureManager().getCurrentControlPoint()); 150 mCanvas.redraw(); 156 update(mCanvas.getGestureManager().getCurrentControlPoint()); 157 mCanvas.redraw(); 228 if (mGlobalDragInfo.getSourceCanvas() == mCanvas & [all...] |
ClipboardSupport.java | 56 private LayoutCanvas mCanvas; 66 this.mCanvas = canvas; 101 GraphicalEditorPart graphicalEditor = mCanvas.getLayoutEditor().getGraphicalEditor(); 119 message != null ? message : SelectionItem.getAsText(mCanvas, selection) 146 mCanvas.getCutLabel(), 190 boolean multiple = mCanvas.getSelectionManager().hasMultiSelection(); 205 mCanvas.getLayoutEditor().wrapUndoEditXmlModel(title, new Runnable() { 224 RulesEngine rulesEngine = mCanvas.getRulesEngine(); 225 LayoutEditor editor = mCanvas.getLayoutEditor(); 265 CanvasViewInfo lastRoot = mCanvas.getViewHierarchy().getRoot() [all...] |
ListViewTypeMenu.java | 50 private final LayoutCanvas mCanvas; 66 mCanvas = canvas; 73 GraphicalEditorPart graphicalEditor = mCanvas.getLayoutEditor().getGraphicalEditor(); 169 LayoutEditor editor = mCanvas.getLayoutEditor(); 174 Shell shell = mCanvas.getShell(); 208 LayoutEditor editor = mCanvas.getLayoutEditor(); 210 SelectionManager selectionManager = mCanvas.getSelectionManager(); 224 LayoutEditor editor = mCanvas.getLayoutEditor(); 227 SelectionManager selectionManager = mCanvas.getSelectionManager(); 237 mCanvas.redraw() [all...] |
CanvasTransform.java | 36 private final LayoutCanvas mCanvas; 57 mCanvas = layoutCanvas; 67 CanvasTransform.this.mCanvas.redraw();
|
IncludeOverlay.java | 41 private LayoutCanvas mCanvas; 49 this.mCanvas = canvas; 54 ViewHierarchy viewHierarchy = mCanvas.getViewHierarchy(); 63 Image image = mCanvas.getImageOverlay().getImage(); 79 ControlPoint topLeft = LayoutPoint.create(mCanvas, mask.x, mask.y).toControl(); 80 ControlPoint bottomRight = LayoutPoint.create(mCanvas, mask.x + mask.width,
|
MarqueeGesture.java | 40 private LayoutCanvas mCanvas; 53 this.mCanvas = canvas; 80 LayoutPoint topLeft = ControlPoint.create(mCanvas, x, y).toLayout(); 81 LayoutPoint bottomRight = ControlPoint.create(mCanvas, x + w, y + h).toLayout(); 82 mCanvas.getSelectionManager().selectWithin(topLeft, bottomRight, mInitialSelection);
|
SelectionItem.java | 37 private LayoutCanvas mCanvas; 62 mCanvas = canvas; 71 mNodeProxy = mCanvas.getNodeFactory().create(canvasViewInfo); 120 return mCanvas;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
NodeFactory.java | 37 private LayoutCanvas mCanvas; 40 mCanvas = canvas; 65 return mCanvas;
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
PlatformGraphicsContext.h | 152 SkCanvas* mCanvas; 157 // mCanvas
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
FingerPaint.java | 64 private Canvas mCanvas; 79 mCanvas = new Canvas(mBitmap); 112 mCanvas.drawPath(mPath, mPaint);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
GraphicsPerformanceTests.java | 83 protected Canvas mCanvas; 95 mCanvas = new Canvas(mDestBitmap); 187 mCanvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); 193 mCanvas.drawBitmap(mBitmap, 1.0f, 0.0f, mPaint);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 62 private final Canvas mCanvas = new Canvas(); 85 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, 150 final Canvas canvas = mCanvas;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
StrokedTextView.java | 37 private final Canvas mCanvas = new Canvas(); 102 mCanvas.setBitmap(mCache); 103 mCanvas.drawColor(0, PorterDuff.Mode.CLEAR); 114 drawables[i].draw(mCanvas); 125 mCanvas.drawText(text, left, bottom, mPaint); 130 mCanvas.drawText(text, left, bottom, mPaint);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
PointTestCases.java | 33 LayoutCanvas mCanvas = new TestLayoutCanvas(); 40 event.widget = mCanvas;
|