/external/chromium/chrome/browser/ui/gtk/tabs/ |
dragged_tab_controller_gtk.h | 83 const gfx::Rect& initial_pos, 89 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 137 gfx::Rect GetDraggedTabTabStripBounds(const gfx::Point& screen_point); 143 int GetInsertionIndexForDraggedBounds(const gfx::Rect& dragged_bounds, 171 static gfx::Rect GetTabScreenBounds(TabGtk* tab);
|
/frameworks/base/graphics/java/android/graphics/ |
NinePatch.java | 99 public void draw(Canvas canvas, Rect location) { 118 public void draw(Canvas canvas, Rect location, Paint paint) { 149 public final Region getTransparentRegion(Rect location) { 160 private static native void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, 164 int bitmap, byte[] chunk, Rect location);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
Drawable.java | 34 import android.graphics.Rect; 118 private static final Rect ZERO_BOUNDS_RECT = new Rect(); 123 private Rect mBounds = ZERO_BOUNDS_RECT; // lazily becomes a new Rect() 142 Rect oldBounds = mBounds; 145 oldBounds = mBounds = new Rect(); 163 public void setBounds(Rect bounds) { 168 * Return a copy of the drawable's bounds in the specified Rect (allocated 172 * @param bounds Rect to receive the drawable's bounds (allocated by th [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Alpha8BitmapActivity.java | 27 import android.graphics.Rect; 86 Rect src = new Rect(0, 0, mBitmap1.getWidth() / 2, mBitmap1.getHeight() / 2); 87 Rect dst = new Rect(0, mBitmap1.getHeight() * 3, mBitmap1.getWidth(),
|
/frameworks/native/include/ui/ |
GraphicBuffer.h | 25 #include <ui/Rect.h> 89 Rect getBounds() const { return Rect(width, height); } 94 status_t lock(uint32_t usage, const Rect& rect, void** vaddr); 97 status_t lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
LinearLayoutRuleTest.java | 34 import com.android.ide.common.api.Rect; 46 protected void dragIntoEmpty(Rect dragBounds) { 52 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)); 85 "drawRect(Rect[0,0,240,480]), " 104 protected INode dragInto(boolean vertical, Rect dragBounds, Point dragPoint, 108 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)).set(ANDROID_URI, 113 new Rect(0, 0, 100, 80)), 115 new Rect(0, 100, 100, 80)), 117 new Rect(0, 200, 100, 80)), 119 new Rect(0, 300, 100, 80))) [all...] |
TestDragElement.java | 25 import com.android.ide.common.api.Rect; 34 private Rect mRect; 44 public TestDragElement(String mFqcn, Rect mRect, List<TestDragElement> mChildren, 57 public TestDragElement setBounds(Rect bounds) { 91 public static TestDragElement create(String fqn, Rect bounds) { 120 public @NonNull Rect getBounds() { 139 public @NonNull Rect getParentBounds() {
|
/external/chromium/chrome/browser/ui/views/ |
find_bar_host.cc | 110 void FindBarHost::MoveWindowIfNecessary(const gfx::Rect& selection_rect, 121 gfx::Rect new_pos = GetDialogPosition(selection_rect); 209 gfx::Rect window_rect = host()->GetWindowScreenBounds(); 232 gfx::Rect FindBarHost::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { 234 gfx::Rect widget_bounds; 237 return gfx::Rect(); 244 gfx::Rect view_location; 251 // When we get Find results back, we specify a selection rect, which we 253 // selection rect (if one was provided) [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/ |
CameraManager.java | 24 import android.graphics.Rect; 52 private Rect framingRect; 53 private Rect framingRectInPreview; 113 // Make sure to clear these each time we close the camera, so that any scanning rect 173 * Calculates the framing rect which the UI should draw to show the user where to place the 179 public Rect getFramingRect() { 199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); 200 Log.d(TAG, "Calculated framing rect: " + framingRect); 209 public Rect getFramingRectInPreview() { 211 Rect framingRect = getFramingRect() 215 Rect rect = new Rect(framingRect); local 267 Rect rect = getFramingRectInPreview(); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Regions.java | 34 private final Rect mRect1 = new Rect(); 35 private final Rect mRect2 = new Rect(); 74 Rect r = new Rect(); 84 private static void drawCentered(Canvas c, Rect r, Paint p) {
|
/external/chromium/chrome/browser/ui/views/tabs/ |
dragged_tab_controller.h | 19 #include "ui/gfx/rect.h" 141 const gfx::Rect& initial_pos, 148 const gfx::Rect& pos) OVERRIDE; 220 int GetInsertionIndexForDraggedBounds(const gfx::Rect& dragged_bounds) const; 225 gfx::Rect GetDraggedViewTabStripBounds(const gfx::Point& tab_strip_point); 258 const std::vector<gfx::Rect>& renderer_bounds); 264 gfx::Rect GetViewScreenBounds(views::View* tabstrip) const; 341 gfx::Rect restore_bounds_;
|
side_tab.cc | 58 icon_bounds_ = gfx::Rect(); 102 const gfx::Rect& SideTab::GetTitleBounds() const { 106 const gfx::Rect& SideTab::GetIconBounds() const {
|
/frameworks/base/libs/hwui/font/ |
Font.h | 27 #include "../Rect.h" 99 uint32_t, uint32_t, Rect*, const float*); 111 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 114 int numGlyphs, Rect *bounds, const float* positions); 124 Rect* bounds, const float* pos); 127 Rect* bounds, const float* pos); 130 Rect* bounds, const float* pos); 133 Rect* bounds, const float* pos);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapFactory_Delegate.java | 47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { 89 Rect padding, Options opts) { 95 Rect padding, Options opts, boolean applyScale, float scale) { 141 Rect padding, Options opts) { 147 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { 153 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, 167 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowDrawable.java | 6 import android.graphics.Rect; 30 private Rect bounds = new Rect(0, 0, 0, 0); 75 public final Rect getBounds() { 80 public void setBounds(Rect rect) { 81 this.bounds = rect; 86 bounds = new Rect(left, top, right, bottom); 90 public Rect copyBounds() { 91 Rect bounds = new Rect() [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
FloatingChildLayout.java | 24 import android.graphics.Rect; 41 * around {@link #setChildTargetScreen(Rect)}. 48 * The reason for this approach is because target {@link Rect} is in screen 56 private Rect mTargetScreen = new Rect(); 119 * Set {@link Rect} in screen coordinates that {@link #getChild()} should be 122 public void setChildTargetScreen(Rect targetScreen) { 131 private Rect getTargetInWindow() { 132 final Rect windowScreen = new Rect(); [all...] |
/frameworks/base/core/java/android/view/ |
Gravity.java | 18 import android.graphics.Rect; 102 * {@link #apply(int, int, int, Rect, int, int, Rect)}; you must do so 109 * {@link #apply(int, int, int, Rect, int, int, Rect)}; you must do so 138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) { 159 public static void apply(int gravity, int w, int h, Rect container, 160 Rect outRect, int layoutDirection) { 186 public static void apply(int gravity, int w, int h, Rect container [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SimpleElement.java | 23 import com.android.ide.common.api.Rect; 44 private final Rect mBounds; 45 private final Rect mParentBounds; 64 public SimpleElement(String fqcn, String parentFqcn, Rect bounds, Rect parentBounds) { 67 mBounds = bounds == null ? new Rect() : bounds.copy(); 68 mParentBounds = parentBounds == null ? new Rect() : parentBounds.copy(); 86 public @NonNull Rect getBounds() { 105 public @NonNull Rect getParentBounds() { 240 Rect bounds = null [all...] |
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiObject.java | 20 import android.graphics.Rect; 196 Rect srcRect = getVisibleBounds(); 197 Rect dstRect = destObj.getVisibleBounds(); 216 Rect srcRect = getVisibleBounds(); 239 Rect rect = getVisibleBounds(); local 240 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) 242 return getInteractionController().swipe(rect.centerX(), 243 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT 267 Rect rect = getVisibleBounds(); local 295 Rect rect = getVisibleBounds(); local 322 Rect rect = getVisibleBounds(); local 394 Rect rect = getVisibleBounds(node); local 434 Rect rect = getVisibleBounds(node); local 452 Rect rect = getVisibleBounds(node); local 469 Rect rect = getVisibleBounds(node); local 486 Rect rect = getVisibleBounds(node); local 503 Rect rect = getVisibleBounds(node); local 520 Rect rect = getVisibleBounds(node); local 625 Rect rect = getVisibleBounds(node); local 930 Rect rect = getVisibleBounds(node); local 968 Rect rect = getVisibleBounds(node); local [all...] |
/external/chromium/chrome/browser/ui/views/frame/ |
browser_view_layout.cc | 88 gfx::Rect BrowserViewLayout::GetFindBarBoundingBox() const { 100 gfx::Rect bounding_box(contents_container_->bounds()); 171 gfx::Rect bv_bounds = browser_view_->bounds(); 269 gfx::Rect(), true); 297 gfx::Rect tabstrip_bounds( 383 const gfx::Rect& browser_reserved_rect, 385 const gfx::Rect& future_source_bounds, 393 gfx::Rect reserved_rect(resize_corner_origin, browser_reserved_rect.size()); 401 reserved_rect = gfx::Rect(); 419 gfx::Rect sidebar_split_bounds [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
NinePatchTest.java | 29 import android.graphics.Rect; 91 Rect rect = new Rect(0, 0, c.getWidth(), c.getHeight()); local 92 mNinePatch.draw(c, rect); 98 rect = new Rect(0, 0, c.getWidth(), c.getHeight()); 102 mNinePatch.draw(c, rect, p); 165 Rect location = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()) [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
helper.h | 20 class Rect; 55 virtual gfx::Rect CalculateThrobberBounds(views::Throbber* throbber); 81 // The rect is centered within the default monitor and sized accordingly if 83 gfx::Rect CalculateScreenBounds(const gfx::Size& size);
|
/external/chromium/chrome/browser/notifications/ |
balloon_collection_impl.h | 18 #include "ui/gfx/rect.h" 92 static gfx::Size ConstrainToSizeLimits(const gfx::Size& rect); 141 gfx::Rect work_area_; 151 gfx::Rect GetBalloonsBoundingBox() const; 163 static gfx::Rect GetMacWorkArea();
|
/external/chromium/chrome/browser/tab_contents/ |
tab_contents_view_gtk.h | 54 virtual void GetContainerBounds(gfx::Rect* out) const; 63 virtual void GetViewBounds(gfx::Rect* out) const; 67 virtual void ShowPopupMenu(const gfx::Rect& bounds,
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
RequestRectangleVisible.java | 23 import android.graphics.Rect; 43 final Rect rect = new Rect(); local 61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 62 childToMakeVisible.requestRectangleOnScreen(rect, true); 69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); 70 topBlob.requestRectangleOnScreen(rect, true); 77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); 78 childToMakeVisible.requestRectangleOnScreen(rect, true) [all...] |