Home
last modified time | relevance | path

Searched refs:mPadding (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/lowram/
DTaskStackLowRamLayoutAlgorithm.java47 private int mPadding; field in TaskStackLowRamLayoutAlgorithm
59 mPadding = context.getResources() in reloadOnConfigurationChange()
69 int width = Math.min(windowWidth, windowHeight) - mPadding * 2; in initialize()
104 int y = bottomOfCurrentTask + mTaskRect.height() + mPadding * 2; in getFrontOfStackTransform()
118 int y = topOfCurrentTask - (mTaskRect.height() + mPadding) * 2; in getBackOfStackTransform()
134 visible = y + mPadding + getTaskRect().height() > 0; in getTransform()
177 return (float) scroll / (mTaskRect.height() + mPadding); in scrollToPercentage()
186 return (int) (p * (mTaskRect.height() + mPadding)); in percentageToScroll()
246 return taskCount * mTaskRect.height() + (taskCount + 1) * mPadding; in getTotalHeightOfTasks()
/frameworks/base/graphics/java/android/graphics/drawable/
DShapeDrawable.java148 mShapeState.mPadding = null; in setPadding()
150 if (mShapeState.mPadding == null) { in setPadding()
151 mShapeState.mPadding = new Rect(); in setPadding()
153 mShapeState.mPadding.set(left, top, right, bottom); in setPadding()
164 mShapeState.mPadding = null; in setPadding()
166 if (mShapeState.mPadding == null) { in setPadding()
167 mShapeState.mPadding = new Rect(); in setPadding()
169 mShapeState.mPadding.set(padding); in setPadding()
206 if (mShapeState.mPadding != null) { in getPadding()
207 padding.set(mShapeState.mPadding); in getPadding()
[all …]
DNinePatchDrawable.java76 private Rect mPadding; field in NinePatchDrawable
271 if (mPadding != null) { in getPadding()
272 padding.set(mPadding); in getPadding()
461 state.mPadding = padding; in updateStateFromTypedArray()
599 Rect mPadding = null; field in NinePatchDrawable.NinePatchState
623 mPadding = padding; in NinePatchState()
634 mPadding = orig.mPadding; in NinePatchState()
691 final Rect sourcePadding = mNinePatchState.mPadding; in computeBitmapSize()
693 if (mPadding == null) { in computeBitmapSize()
694 mPadding = new Rect(); in computeBitmapSize()
[all …]
DGradientDrawable.java168 private Rect mPadding; field in GradientDrawable
223 if (mPadding != null) { in getPadding()
224 padding.set(mPadding); in getPadding()
984 if (mGradientState.mPadding == null) {
985 mGradientState.mPadding = new Rect();
988 mGradientState.mPadding.set(left, top, right, bottom);
989 mPadding = mGradientState.mPadding;
1603 if (st.mPadding == null) {
1604 st.mPadding = new Rect();
1607 final Rect pad = st.mPadding;
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java89 private final Rect mPadding = new Rect(); field in BatteryMeterDrawableBase
251 mHeight = (bounds.bottom - mPadding.bottom) - (bounds.top + mPadding.top); in updateSize()
252 mWidth = (bounds.right - mPadding.right) - (bounds.left + mPadding.left); in updateSize()
259 if (mPadding.left == 0 in getPadding()
260 && mPadding.top == 0 in getPadding()
261 && mPadding.right == 0 in getPadding()
262 && mPadding.bottom == 0) { in getPadding()
266 padding.set(mPadding); in getPadding()
271 mPadding.left = left; in setPadding()
272 mPadding.top = top; in setPadding()
[all …]
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java61 private int mPadding; field in TestWallpaper.ClockEngine
115 mPadding = (int)(16 * getResources().getDisplayMetrics().density); in onCreate()
228 int x = mStableInsets.left + mPadding; in drawFrame()
229 int y = height - mStableInsets.bottom - mPadding - ascdesc; in drawFrame()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java58 private float mPadding = 0; field in UserIconDrawable
201 mPadding = padding; in setPadding()
352 float radius = mDisplayRadius - mPadding - mFrameWidth * 0.5f; in rebake()
391 final float iconRadius = mDisplayRadius - mFrameWidth - mFramePadding - mPadding; in onBoundsChange()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java972 final Rect mPadding = new Rect(0, 0, 0, 0); field in WallpaperManagerService.DisplayData
1095 mEngine.setDisplayPadding(wpdData.mPadding); in ensureStatusHandled()
1120 wpdData.mPadding, mDisplayId); in connectLocked()
2152 if (!padding.equals(wpdData.mPadding)) { in setDisplayPadding()
2153 wpdData.mPadding.set(padding); in setDisplayPadding()
2926 if (wpdData.mPadding.left != 0) { in writeWallpaperAttributes()
2927 out.attribute(null, "paddingLeft", Integer.toString(wpdData.mPadding.left)); in writeWallpaperAttributes()
2929 if (wpdData.mPadding.top != 0) { in writeWallpaperAttributes()
2930 out.attribute(null, "paddingTop", Integer.toString(wpdData.mPadding.top)); in writeWallpaperAttributes()
2932 if (wpdData.mPadding.right != 0) { in writeWallpaperAttributes()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java199 private Rect mPadding; field in KeyboardView
358 mPadding = new Rect(0, 0, 0, 0); in KeyboardView()
360 mKeyBackground.getPadding(mPadding); in KeyboardView()
682 final Rect padding = mPadding; in onBufferDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java849 private final int mPadding; field in ScreenDecorations.TunablePaddingTagListener
854 mPadding = padding; in TunablePaddingTagListener()
867 mTunablePadding = TunablePadding.addTunablePadding(view, PADDING, mPadding, in onFragmentViewCreated()
/frameworks/wilhelm/src/
Ditfstruct.h56 SLuint8 mPadding; member
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp127 mPadding = padding; in initSkipCutBuffer()
137 int32_t padding = mPadding; in updateSkipCutBuffer()
DCCodecBuffers.h228 int32_t mPadding; variable
/frameworks/native/libs/binder/tests/
DbinderSafeInterfaceTest.cpp78 __attribute__((unused)) uint8_t mPadding[4] = {}; // Avoids a warning from -Wpadded member in android::tests::NoCopyNoMove
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt20072 Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;->mPadding:Landroid/graphics/Rect;
20088 Landroid/graphics/drawable/NinePatchDrawable;->mPadding:Landroid/graphics/Rect;
20275 Landroid/graphics/drawable/ShapeDrawable$ShapeState;->mPadding:Landroid/graphics/Rect;
32853 Landroid/inputmethodservice/KeyboardView;->mPadding:Landroid/graphics/Rect;