HomeSort by relevance Sort by last modified time
    Searched refs:insets (Results 1 - 25 of 218) 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 45 public static void dispatchChildInsets(View child, Object insets, int gravity) {
46 WindowInsets wi = (WindowInsets) insets;
57 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets,
59 WindowInsets wi = (WindowInsets) insets;
73 public static int getTopInset(Object insets) {
74 return insets != null ? ((WindowInsets) insets).getSystemWindowInsetTop() : 0;
88 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
90 drawerLayout.setChildInsets(insets, insets.getSystemWindowInsetTop() > 0)
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
Insettable.java 23 void setInsets(Rect insets);
LauncherRootView.java 13 protected boolean fitSystemWindows(Rect insets) {
14 setInsets(insets);
  /external/chromium_org/extensions/browser/app_window/
app_window_browsertest.cc 28 gfx::Insets insets = native_window->GetFrameInsets(); local
32 EXPECT_GT(insets.top(), insets.bottom());
52 gfx::Insets insets = native_window->GetFrameInsets(); local
56 EXPECT_GT(insets.top(), insets.bottom());
66 gfx::Insets insets = native_window->GetFrameInsets() local
    [all...]
  /external/chromium_org/chrome/browser/ui/webui/options/chromeos/
display_overscan_handler.cc 161 gfx::Insets insets = overscan_calibrator_->insets();
163 insets.Set(insets.top(), insets.left() + length,
164 insets.bottom(), insets.right() - length);
166 insets.Set(insets.top() + length, insets.left()
    [all...]
  /external/chromium_org/chrome/browser/ui/views/apps/
app_window_desktop_window_tree_host_win.cc 29 gfx::Insets* insets) const {
30 // Use the default client insets for an opaque frame or a glass popup/app
43 insets->Set(0, 0, border_thickness, border_thickness);
75 gfx::Insets insets = app_window_->glass_frame_view()->GetGlassInsets(); local
78 insets = insets.Scale(gfx::win::GetDeviceScaleFactor());
79 margins.cxLeftWidth = insets.left();
80 margins.cxRightWidth = insets.right()
    [all...]
glass_app_window_frame_view_win.cc 31 gfx::Insets GlassAppWindowFrameViewWin::GetGlassInsets() const {
34 // Also make sure the insets don't go below 1, as bad things happen when they
41 return gfx::Insets(
49 gfx::Insets insets = GetGlassInsets();
50 return gfx::Rect(insets.left(),
51 insets.top(),
52 std::max(0, width() - insets.left() - insets.right()),
53 std::max(0, height() - insets.top() - insets.bottom()))
58 gfx::Insets insets = GetGlassInsets(); local
    [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"
34 gfx::Insets(kFocusRectInset, kFocusRectInset + margin,
44 // Adjust border insets to follow the margin change,
47 const gfx::Insets insets(border->GetInsets());
48 border->set_insets(gfx::Insets(insets.top(), insets.left() + margin_leading_,
49 insets.bottom(), insets.right()))
    [all...]
  /external/chromium_org/ui/views/controls/button/
blue_button.cc 19 // Inherit STYLE_BUTTON insets, minimum size, alignment, etc.
53 // Insets for splitting the images.
54 const gfx::Insets insets(5, 5, 5, 5);
58 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_NORMAL), insets));
60 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_HOVER), insets));
62 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_PRESSED), insets));
64 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_DISABLED), insets));
66 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_NORMAL), insets));
68 *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();
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
WallpaperRootView.java 35 protected boolean fitSystemWindows(Rect insets) {
36 a.setWallpaperStripYOffset(insets.bottom);
  /developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
MainActivity.java 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
42 final boolean round = insets.isRound();
48 // GridViewPager relies on insets to properly handle
51 pager.onApplyWindowInsets(insets);
52 return insets;
  /developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
MainActivity.java 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
42 final boolean round = insets.isRound();
48 // GridViewPager relies on insets to properly handle
51 pager.onApplyWindowInsets(insets);
52 return insets;
  /development/samples/browseable/GridViewPager/Wearable/src/com.example.android.wearable.gridviewpager/
MainActivity.java 38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
42 final boolean round = insets.isRound();
48 // GridViewPager relies on insets to properly handle
51 pager.onApplyWindowInsets(insets);
52 return insets;
  /external/chromium_org/athena/env/public/
athena_env.h 16 class Insets;
34 // Sets the insets for the primary displays's work area.
35 virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) = 0;

Completed in 792 milliseconds

1 2 3 4 5 6 7 8 9