Home
last modified time | relevance | path

Searched refs:padding (Results 1 – 25 of 123) sorted by relevance

12345

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java129 Rect padding = new Rect(); in startDrag() local
130 mAppWidgetHostViewPreview.getWidgetInset(deviceProfile, padding); in startDrag()
131 mAppWidgetHostViewPreview.setPadding(padding.left, padding.top, padding.right, in startDrag()
132 padding.bottom); in startDrag()
160 int padding = (previewBitmapWidth - previewSizeBeforeScale[0]) / 2; in startDrag() local
162 padding = padding * previewViewWidth / previewBitmapWidth; in startDrag()
165 previewBounds.left += padding; in startDrag()
166 previewBounds.right -= padding; in startDrag()
200 int padding = launcher.getResources() in startDrag() local
202 previewBounds.left += padding; in startDrag()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java158 byte[] padding) { in IkeEncryptedPayloadBody() argument
172 padding); in IkeEncryptedPayloadBody()
189 padding); in IkeEncryptedPayloadBody()
267 byte[] padding) { in normalModeEncrypt() argument
268 byte[] paddedData = getPaddedData(dataToEncrypt, padding); in normalModeEncrypt()
297 byte[] padding) { in combinedModeEncrypt() argument
304 byte[] paddedData = getPaddedData(dataToEncrypt, padding); in combinedModeEncrypt()
349 byte[] padding = new byte[padLength]; in calculatePadding()
352 new SecureRandom().nextBytes(padding); in calculatePadding()
354 return padding; in calculatePadding()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfoTest.java159 Rect padding = new Rect(); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() local
160 AppWidgetHostView.getDefaultPaddingForWidget(mContext, null, padding); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans()
161 int maxPadding = Math.max(Math.max(padding.left, padding.right), in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans()
162 Math.max(padding.top, padding.bottom)); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans()
182 Rect padding = new Rect(); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() local
183 AppWidgetHostView.getDefaultPaddingForWidget(mContext, null, padding); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
184 int maxPadding = Math.max(Math.max(padding.left, padding.right), in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
185 Math.max(padding.top, padding.bottom)); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetSizes.java52 Rect padding = getDefaultPaddingForWidget(context, provider, /* padding= */ null); in getWidgetPaddedSizes() local
61 widgetSizePx = new Size(widgetSizePx.getWidth() - padding.left - padding.right, in getWidgetPaddedSizes()
62 widgetSizePx.getHeight() - padding.top - padding.bottom); in getWidgetPaddedSizes()
84 Rect padding = getDefaultPaddingForWidget(context, component, /* padding= */ null); in getWidgetPaddedSizePx() local
85 return new Size(size.getWidth() - padding.left - padding.right, in getWidgetPaddedSizePx()
86 size.getHeight() - padding.top - padding.bottom); in getWidgetPaddedSizePx()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlBar.java94 int padding = getPaddingLeft(); in onLayout() local
101 mSecondLevelIcon.layout(padding, 0, padding + size, size); in onLayout()
105 mZoomControl.layout(padding + size, 0, width - padding - size, size); in onLayout()
109 mCameraPicker.layout(width - padding - size, 0, width - padding, size); in onLayout()
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java95 public int getWidthMeasureSpec(final int cellWidth, final int padding) { in getWidthMeasureSpec() argument
96 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, in getWidthMeasureSpec()
100 public int getHeightMeasureSpec(final int cellHeight, final int padding) { in getHeightMeasureSpec() argument
101 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2, in getHeightMeasureSpec()
310 final int padding = getResources().getDimensionPixelOffset( in onMeasure() local
315 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
316 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
330 mPlusTextView.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
331 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
342 final int padding = getResources().getDimensionPixelOffset( in onLayout() local
[all …]
/packages/modules/NeuralNetworks/runtime/
DModelArgumentInfo.cpp65 const uint32_t padding = length - rawLength; in createFromPointer() local
67 if (!paddingEnabled && padding > 0) { in createFromPointer()
75 ret.mLocationAndLength = {.poolIndex = 0, .offset = 0, .length = rawLength, .padding = padding}; in createFromPointer()
97 const uint32_t padding = length - rawLength; in createFromMemory() local
99 if (!paddingEnabled && padding > 0) { in createFromMemory()
108 .poolIndex = poolIndex, .offset = offset, .length = rawLength, .padding = padding}; in createFromMemory()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAbstractSlotRenderer.java114 protected static void drawFrame(GLCanvas canvas, Rect padding, Texture frame, in drawFrame() argument
116 frame.draw(canvas, x - padding.left, y - padding.top, width + padding.left + padding.right, in drawFrame()
117 height + padding.top + padding.bottom); in drawFrame()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dmax_pool_quant8_signed.mod.py49 padding = Int32Scalar("padding", pad) variable
58 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(output)
88 padding = Int32Scalar("padding", pad) variable
97 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act2).To(output)
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css6 padding: 0;
41 padding: 0px;
80 padding-top: 10px;
81 padding-right: 10px !important;
94 padding: 0;
102 padding: 0;
156 padding: 6px 10px;
173 padding: 2px 0px;
182 padding: 2px;
189 padding: 10px 0px 20px 20px;
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackKeyboardView.java263 final Rect padding = mPadding; in createKeyImageView() local
298 final int drawableX = (key.width - padding.left - padding.right in createKeyImageView()
299 - key.icon.getIntrinsicWidth()) / 2 + padding.left; in createKeyImageView()
300 final int drawableY = (key.height - padding.top - padding.bottom in createKeyImageView()
301 - key.icon.getIntrinsicHeight()) / 2 + padding.top; in createKeyImageView()
319 (key.width - padding.left - padding.right) / 2 in createKeyImageView()
320 + padding.left, in createKeyImageView()
321 (key.height - padding.top - padding.bottom) / 2 in createKeyImageView()
322 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, in createKeyImageView()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Davg_pool_float_3.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Davg_pool_quant8_3.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Davg_pool_quant8_2.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Davg_pool_float_2.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Davg_pool_float_4.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(ou…
Dmax_pool_float_3.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(output)
Dmax_pool_quant8_3.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act2).To(output)
Dmax_pool_float_2.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(output)
Dmax_pool_quant8_2.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(output)
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Davg_pool_float_3_relaxed.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Davg_pool_float_4_relaxed.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(ou…
Davg_pool_float_2_relaxed.mod.py35 padding = Int32Scalar("padding", pad) variable
44 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
Dmax_pool_float_3_relaxed.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(output)
Dmax_pool_float_2_relaxed.mod.py33 padding = Int32Scalar("padding", pad) variable
42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(output)

12345