HomeSort by relevance Sort by last modified time
    Searched refs:insets (Results 1 - 25 of 215) sorted by null

1 2 3 4 5 6 7 8 9

  /external/chromium_org/ui/gfx/geometry/
insets_unittest.cc 5 #include "ui/gfx/geometry/insets.h"
10 gfx::Insets insets; local
11 EXPECT_EQ(0, insets.top());
12 EXPECT_EQ(0, insets.left());
13 EXPECT_EQ(0, insets.bottom());
14 EXPECT_EQ(0, insets.right());
15 EXPECT_EQ(0, insets.width());
16 EXPECT_EQ(0, insets.height());
17 EXPECT_TRUE(insets.empty())
32 gfx::Insets insets; local
41 gfx::Insets insets; local
    [all...]
insets_base.h 12 // An insets represents the borders of a container (the space the container must
22 // Returns the total width taken up by the insets, which is the sum of the
23 // left and right insets.
26 // Returns the total height taken up by the insets, which is the sum of the
27 // top and bottom insets.
30 // Returns true if the insets are empty.
40 bool operator==(const Class& insets) const {
41 return top_ == insets.top_ && left_ == insets.left_ &&
42 bottom_ == insets.bottom_ && right_ == insets.right_
    [all...]
  /frameworks/support/v4/api21/android/support/v4/widget/
DrawerLayoutImpl.java 25 void setChildInsets(Object insets, boolean drawStatusBar);
DrawerLayoutCompatApi21.java 37 public static void dispatchChildInsets(View child, Object insets, int gravity) {
38 WindowInsets wi = (WindowInsets) insets;
49 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets,
51 WindowInsets wi = (WindowInsets) insets;
65 public static int getTopInset(Object insets) {
66 return insets != null ? ((WindowInsets) insets).getSystemWindowInsetTop() : 0;
71 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
73 drawerLayout.setChildInsets(insets, insets.getSystemWindowInsetTop() > 0)
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
Insettable.java 23 void setInsets(Rect insets);
  /external/chromium_org/apps/
app_window_browsertest.cc 30 gfx::Insets insets = native_window->GetFrameInsets(); local
34 EXPECT_GT(insets.top(), insets.bottom());
54 gfx::Insets insets = native_window->GetFrameInsets(); local
58 EXPECT_GT(insets.top(), insets.bottom());
68 gfx::Insets insets = native_window->GetFrameInsets() local
    [all...]
  /external/chromium_org/chrome/browser/ui/webui/options/chromeos/
display_overscan_handler.cc 155 gfx::Insets insets = overscan_calibrator_->insets();
157 insets.Set(insets.top(), insets.left() + length,
158 insets.bottom(), insets.right() - length);
160 insets.Set(insets.top() + length, insets.left()
    [all...]
  /external/chromium_org/chrome/browser/devtools/
devtools_contents_resizing_strategy.cc 13 const gfx::Insets& insets, const gfx::Size& min_size)
14 : insets_(insets),
26 insets_ = strategy.insets();
33 return insets_ == strategy.insets() && min_size_ == strategy.min_size() &&
47 const gfx::Insets& insets = strategy.insets(); local
60 int width = std::max(0, container_size.width() - insets.width());
61 int left = insets.left()
    [all...]
  /frameworks/support/v4/donut/android/support/v4/view/
OnApplyWindowInsetsListener.java 22 * Listener for applying window insets on a view in a custom way.
25 * to the way that window insets are treated for a view. If an OnApplyWindowInsetsListener
38 * @param v The view applying window insets
39 * @param insets The insets to apply
40 * @return The insets supplied, minus any insets that were consumed
42 public WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets);
  /external/chromium_org/chrome/browser/ui/views/toolbar/
back_button.cc 7 #include "ui/gfx/insets.h"
35 gfx::Insets(kFocusRectInset, kFocusRectInset + margin,
45 // Adjust border insets to follow the margin change,
48 const gfx::Insets insets(border->GetInsets());
49 border->set_insets(gfx::Insets(insets.top(), insets.left() + margin_leading_,
50 insets.bottom(), insets.right()))
    [all...]
  /external/chromium_org/chrome/browser/ui/views/apps/
app_window_desktop_window_tree_host_win.cc 30 gfx::Insets* insets) const {
31 // Use the default client insets for an opaque frame or a glass popup/app
44 insets->Set(0, border_thickness, border_thickness, border_thickness);
76 gfx::Insets insets = app_window_->glass_frame_view()->GetGlassInsets(); local
77 margins.cxLeftWidth = insets.left();
78 margins.cxRightWidth = insets.right();
79 margins.cyBottomHeight = insets.bottom();
80 margins.cyTopHeight = insets.top()
    [all...]
glass_app_window_frame_view_win.cc 30 gfx::Insets GlassAppWindowFrameViewWin::GetGlassInsets() const {
33 // Also make sure the insets don't go below 1, as bad things happen when they
38 return gfx::Insets(
46 gfx::Insets insets = GetGlassInsets();
47 return gfx::Rect(insets.left(),
48 insets.top(),
49 std::max(0, width() - insets.left() - insets.right()),
50 std::max(0, height() - insets.top() - insets.bottom()))
55 gfx::Insets insets = GetGlassInsets(); local
    [all...]
  /external/chromium_org/ui/views/controls/button/
blue_button.cc 26 // Inherit STYLE_BUTTON insets, minimum size, alignment, etc.
56 // Insets for splitting the images.
57 const gfx::Insets insets(5, 5, 5, 5);
61 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_NORMAL), insets));
63 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_HOVER), insets));
65 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_PRESSED), insets));
67 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_DISABLED), insets));
69 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_NORMAL), insets));
71 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_HOVER), insets));
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
FitWindowsFrameLayout.java 45 protected boolean fitSystemWindows(Rect insets) {
47 mListener.onFitSystemWindows(insets);
49 return super.fitSystemWindows(insets);
FitWindowsLinearLayout.java 44 protected boolean fitSystemWindows(Rect insets) {
46 mListener.onFitSystemWindows(insets);
48 return super.fitSystemWindows(insets);
FitWindowsViewGroup.java 27 void onFitSystemWindows(Rect insets);
ContentFrameLayout.java 44 public void dispatchFitSystemWindows(Rect insets) {
45 fitSystemWindows(insets);
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/
LayoutRenderer.java 27 import java.awt.Insets;
69 Insets insets = getInsets(); local
70 g.clipRect(insets.left, insets.top,
71 getWidth() - insets.left - insets.right,
72 getHeight() - insets.top - insets.bottom);
83 int x = (getWidth() - insets.left - insets.right - root.width) / 2
144 Insets insets = getInsets(); local
    [all...]
  /frameworks/base/graphics/java/android/graphics/
Insets.java 20 * An Insets instance holds four integer offsets which describe changes to the four
24 * Insets are immutable so may be treated as values.
28 public class Insets {
29 public static final Insets NONE = new Insets(0, 0, 0, 0);
36 private Insets(int left, int top, int right, int bottom) {
46 * Return an Insets instance with the appropriate values.
53 * @return Insets instance with the appropriate values
55 public static Insets of(int left, int top, int right, int bottom) {
59 return new Insets(left, top, right, bottom)
    [all...]
  /external/chromium_org/ui/views/layout/
fill_layout.cc 36 const gfx::Insets insets = host->GetInsets(); local
37 return host->child_at(0)->GetHeightForWidth(width - insets.width()) +
38 insets.height();
  /external/chromium_org/chrome/browser/chromeos/display/
overscan_calibrator.h 12 #include "ui/gfx/insets.h"
26 const gfx::Insets& initial_insets);
29 // Commits the current insets data to the system.
32 // Reset the overscan insets to default value. If the display has
37 // Updates the insets and redraw the visual feedback.
38 void UpdateInsets(const gfx::Insets& insets);
40 const gfx::Insets& insets() const { return insets_; } function in class:chromeos::OverscanCalibrator
51 // The current insets
    [all...]
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
WallpaperRootView.java 35 protected boolean fitSystemWindows(Rect insets) {
36 a.setWallpaperStripYOffset(insets.bottom);
  /developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/gridviewpager/
MainActivity.java 37 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
41 final boolean round = insets.isRound();
47 // GridViewPager relies on insets to properly handle
50 pager.onApplyWindowInsets(insets);
51 return insets;
  /development/samples/wearable/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
MainActivity.java 37 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
41 final boolean round = insets.isRound();
47 // GridViewPager relies on insets to properly handle
50 pager.onApplyWindowInsets(insets);
51 return insets;
  /frameworks/support/v4/api21/android/support/v4/view/
ViewCompatApi21.java 57 // Wrap the framework insets in our wrapper
58 WindowInsetsCompatApi21 insets = new WindowInsetsCompatApi21(windowInsets);
59 // Give the listener a chance to use the wrapped insets
60 insets = (WindowInsetsCompatApi21) listener.onApplyWindowInsets(view, insets);
61 // Return the unwrapped insets
62 return insets.unwrap();

Completed in 1416 milliseconds

1 2 3 4 5 6 7 8 9