/cts/tests/tests/graphics/src/android/graphics/cts/ |
CanvasTest.java | 67 private Canvas mCanvas; 84 mCanvas = new Canvas(mMutableBitmap); 117 mCanvas.setBitmap(mImmutableBitmap); 127 mCanvas.setBitmap(mMutableBitmap); 135 mCanvas.setBitmap(mMutableBitmap); 136 assertEquals(BITMAP_WIDTH, mCanvas.getWidth()); 137 assertEquals(31, mCanvas.getHeight()); 141 assertFalse(mCanvas.isOpaque()); 147 mCanvas.restore(); 154 mCanvas.save() [all...] |
SweepGradientTest.java | 34 private Canvas mCanvas; 49 mCanvas = new Canvas(mBitmap); 57 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 66 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 77 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint);
|
/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/glrenderer/ |
CanvasTexture.java | 27 protected Canvas mCanvas; 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap);
|
/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(editorDelegate, rulesEngine, parent, style); 58 mCanvas.getSelectionManager().addSelectionChangedListener(mSelectionListener); 71 return mCanvas; 83 return mCanvas; 107 return mCanvas.getSelectionManager().getSelection(); 120 mCanvas.getSelectionManager().setSelection(selection); 131 mCanvas.getSelectionManager().removeSelectionChangedListener(mSelectionListener); 133 if (mCanvas != null) { 134 mCanvas.dispose() [all...] |
LintTooltipManager.java | 39 private final LayoutCanvas mCanvas; 49 mCanvas = canvas; 53 mCanvas.addListener(SWT.Dispose, this); 54 mCanvas.addListener(SWT.KeyDown, this); 55 mCanvas.addListener(SWT.MouseMove, this); 56 mCanvas.addListener(SWT.MouseHover, this); 60 if (!mCanvas.isDisposed()) { 61 mCanvas.removeListener(SWT.Dispose, this); 62 mCanvas.removeListener(SWT.KeyDown, this); 63 mCanvas.removeListener(SWT.MouseMove, this) [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 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 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 | 50 private LayoutCanvas mCanvas; 118 mCanvas = canvas; 133 mCanvas.getSelectionOverlay().setHidden(true); 140 mCanvas.getSelectionOverlay().setHidden(false); 144 mCanvas.getSelectionManager().syncOutlineSelection(); 151 update(mCanvas.getGestureManager().getCurrentControlPoint()); 152 mCanvas.redraw(); 158 update(mCanvas.getGestureManager().getCurrentControlPoint()); 159 mCanvas.redraw(); 230 if (mGlobalDragInfo.getSourceCanvas() == mCanvas & [all...] |
ClipboardSupport.java | 58 private LayoutCanvas mCanvas; 68 mCanvas = canvas; 103 GraphicalEditorPart graphicalEditor = mCanvas.getEditorDelegate().getGraphicalEditor(); 121 message != null ? message : SelectionItem.getAsText(mCanvas, selection) 147 deleteSelection(mCanvas.getCutLabel(), selection); 192 boolean multiple = mCanvas.getSelectionManager().hasMultiSelection(); 207 mCanvas.getEditorDelegate().getEditor().wrapUndoEditXmlModel(title, new Runnable() { 230 RulesEngine rulesEngine = mCanvas.getRulesEngine(); 270 CanvasViewInfo lastRoot = mCanvas.getViewHierarchy().getRoot(); 289 final NodeProxy targetNode = mCanvas.getNodeFactory().create(target) [all...] |
FragmentMenu.java | 61 private final LayoutCanvas mCanvas; 70 mCanvas = canvas; 78 SelectionManager selectionManager = mCanvas.getSelectionManager(); 103 IProject project = mCanvas.getEditorDelegate().getEditor().getProject(); 117 String self = mCanvas.getLayoutResourceName(); 218 SelectionManager selectionManager = mCanvas.getSelectionManager(); 237 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); 239 SelectionManager selectionManager = mCanvas.getSelectionManager(); 252 mCanvas.redraw(); 288 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate() [all...] |
ListViewTypeMenu.java | 47 private final LayoutCanvas mCanvas; 63 mCanvas = canvas; 70 GraphicalEditorPart graphicalEditor = mCanvas.getEditorDelegate().getGraphicalEditor(); 168 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); 188 SelectionManager selectionManager = mCanvas.getSelectionManager(); 204 LayoutEditorDelegate delegate = mCanvas.getEditorDelegate(); 206 SelectionManager selectionManager = mCanvas.getSelectionManager(); 218 mCanvas.redraw();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
NodeFactory.java | 38 private LayoutCanvas mCanvas; 41 mCanvas = canvas; 66 return mCanvas;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationWebView.java | 41 private Canvas mCanvas; 73 mCanvas = new Canvas(mBitmap); 77 mCanvas = null; 86 mCanvas.save(); 87 mCanvas.translate(-x, -y); 88 super.onDraw(mCanvas); 89 mCanvas.restore(); 110 mCanvas = null;
|
/frameworks/base/core/java/android/view/ |
GLES20RenderLayer.java | 32 private final GLES20Canvas mCanvas; 43 mCanvas = new GLES20Canvas(mLayer, !isOpaque); 46 mCanvas = null; 87 return mCanvas; 126 GLES20Canvas.nUpdateRenderLayer(mLayer, mCanvas.getRenderer(),
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
DividedImageCanvas.java | 54 private Canvas mCanvas; 161 mCanvas.drawRect(sDest, sClearPaint); 162 mCanvas.drawBitmap(b, sSrc, sDest, sPaint); 165 mCanvas.drawRect(left, top, right, bottom, sClearPaint); 357 mCanvas.drawLine(x1, y1, x2, y2, sPaint); 362 mCanvas.drawLine(x1, y1, x2, y2, sPaint); 393 if (mCanvas != null && mDividedBitmap != null) { 422 mCanvas = new Canvas(mDividedBitmap);
|
/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/java/android/graphics/pdf/ |
PdfDocument.java | 385 private Canvas mCanvas; 394 mCanvas = canvas; 431 return mCanvas; 446 return mCanvas == null; 450 if (mCanvas != null) { 451 mCanvas.release(); 452 mCanvas = null;
|
/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/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
RedEyeFilter.java | 55 private final Canvas mCanvas = new Canvas(); 163 mCanvas.setBitmap(redEyeBitmap); 168 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight,
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 64 private final Canvas mCanvas = new Canvas(); 91 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, 156 final Canvas canvas = mCanvas;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
GLRootView.java | 82 private GLCanvas mCanvas; 293 mCanvas = ApiHelper.HAS_GLES20_REQUIRED ? new GLES20Canvas() : new GLES11Canvas(gl); 324 mCanvas.setSize(width, height); 395 mCanvas.deleteRecycledResources(); 408 mCanvas.save(GLCanvas.SAVE_FLAG_ALL); 411 mContentView.render(mCanvas); 414 mCanvas.clearBuffer(); 416 mCanvas.restore(); 435 mCanvas.fillRect(10, 10, 5, 5, mInvalidateColor); 440 mCanvas.dumpStatisticsAndClear() [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
BitmapRegionTileSource.java | 65 private Canvas mCanvas; 175 if (mCanvas == null) { 176 mCanvas = new Canvas(); 178 mCanvas.setBitmap(result); 179 mCanvas.drawBitmap(bitmap, 182 mCanvas.setBitmap(null);
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/ |
MultiTouchView.java | 47 private Canvas mCanvas; 97 mCanvas = new Canvas(mBitmap); 155 if (mCanvas != null) { 161 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint); 176 if (mCanvas != null) { 182 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint);
|