Home
last modified time | relevance | path

Searched refs:insets (Results 1 – 9 of 9) sorted by relevance

/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/
DThemedNavBarKeyboard.java141 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
142 if (insets.isConsumed() in onApplyWindowInsets()
147 return insets; in onApplyWindowInsets()
155 insets.getSystemWindowInsetBottom())) { in onApplyWindowInsets()
158 return insets; in onApplyWindowInsets()
161 final int possibleNavBarHeight = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets()
164 ? insets in onApplyWindowInsets()
165 : insets.replaceSystemWindowInsets( in onApplyWindowInsets()
166 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets()
167 insets.getSystemWindowInsetTop(), in onApplyWindowInsets()
[all …]
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DMainActivity.java38 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onCreate()
42 final boolean round = insets.isRound(); in onCreate()
51 pager.onApplyWindowInsets(insets); in onCreate()
52 return insets; in onCreate()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsActivity.java92 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onCreate()
94 insets = topFrameLayout.onApplyWindowInsets(insets); in onCreate()
96 boolean round = insets.isRound(); in onCreate()
99 mInsets.set(insets.getSystemWindowInsetLeft(), in onCreate()
100 insets.getSystemWindowInsetTop(), in onCreate()
101 insets.getSystemWindowInsetRight(), in onCreate()
102 insets.getSystemWindowInsetBottom()); in onCreate()
121 return insets; in onCreate()
DAttractionsGridPagerAdapter.java85 public void setInsets(Rect insets) { in setInsets() argument
86 mInsets = insets; in setInsets()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DInteractiveWatchFaceService.java108 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
110 Log.d(TAG, "onApplyWindowInsets: " + (insets.isRound() ? "round" : "square")); in onApplyWindowInsets()
112 super.onApplyWindowInsets(insets); in onApplyWindowInsets()
116 boolean isRound = insets.isRound(); in onApplyWindowInsets()
DDigitalWatchFaceWearableConfigActivity.java65 public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { in onCreate()
66 if (!insets.isRound()) { in onCreate()
73 return v.onApplyWindowInsets(insets); in onCreate()
DFitStepsWatchFaceService.java286 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
288 Log.d(TAG, "onApplyWindowInsets: " + (insets.isRound() ? "round" : "square")); in onApplyWindowInsets()
290 super.onApplyWindowInsets(insets); in onApplyWindowInsets()
294 boolean isRound = insets.isRound(); in onApplyWindowInsets()
DFitDistanceWatchFaceService.java288 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
289 Log.d(TAG, "onApplyWindowInsets: " + (insets.isRound() ? "round" : "square")); in onApplyWindowInsets()
291 super.onApplyWindowInsets(insets); in onApplyWindowInsets()
295 boolean isRound = insets.isRound(); in onApplyWindowInsets()
DDigitalWatchFaceService.java292 public void onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
294 Log.d(TAG, "onApplyWindowInsets: " + (insets.isRound() ? "round" : "square")); in onApplyWindowInsets()
296 super.onApplyWindowInsets(insets); in onApplyWindowInsets()
300 boolean isRound = insets.isRound(); in onApplyWindowInsets()