/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingItemDragHelper.java | 118 Rect padding = new Rect(); in startDrag() local 119 mAppWidgetHostViewPreview.getWidgetInset(deviceProfile, padding); in startDrag() 120 mAppWidgetHostViewPreview.setPadding(padding.left, padding.top, padding.right, in startDrag() 121 padding.bottom); in startDrag() 124 deviceProfile.cellWidthPx * mAddInfo.spanX + padding.left + padding.right; in startDrag() 126 deviceProfile.cellHeightPx * mAddInfo.spanY + padding.top + padding.bottom; in startDrag() 149 int padding = (previewBitmapWidth - previewSizeBeforeScale[0]) / 2; in startDrag() local 151 padding = padding * previewViewWidth / previewBitmapWidth; in startDrag() 154 previewBounds.left += padding; in startDrag() 155 previewBounds.right -= padding; in startDrag() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/ |
D | PaddingMatcher.java | 47 int padding = 0; in matchesSafely() local 50 padding = item.getPaddingTop(); in matchesSafely() 53 padding = item.getPaddingBottom(); in matchesSafely() 56 padding = item.getPaddingLeft(); in matchesSafely() 59 padding = item.getPaddingRight(); in matchesSafely() 62 padding = item.getPaddingStart(); in matchesSafely() 65 padding = item.getPaddingEnd(); in matchesSafely() 69 if (mMin >= 0 && padding < mMin) { in matchesSafely() 73 return mMax < 0 || padding <= mMax; in matchesSafely()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeEncryptedPayloadBody.java | 158 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/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 156 Rect padding = new Rect(); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() local 157 AppWidgetHostView.getDefaultPaddingForWidget(mContext, null, padding); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 158 int maxPadding = Math.max(Math.max(padding.left, padding.right), in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 159 Math.max(padding.top, padding.bottom)); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 179 Rect padding = new Rect(); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() local 180 AppWidgetHostView.getDefaultPaddingForWidget(mContext, null, padding); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() 181 int maxPadding = Math.max(Math.max(padding.left, padding.right), in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() 182 Math.max(padding.top, padding.bottom)); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/ |
D | WidgetSizes.java | 52 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/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 95 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/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlBar.java | 94 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/modules/NeuralNetworks/runtime/ |
D | ModelArgumentInfo.cpp | 65 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/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/ |
D | LeanbackKeyboardView.java | 263 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/apps/Test/connectivity/sl4n/rapidjson/doc/misc/ |
D | doxygenextra.css | 6 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/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | max_pool_quant8_signed.mod.py | 49 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)
|
D | avg_pool_quant8_signed.mod.py | 52 padding = Int32Scalar("padding", pad) variable 61 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou… 89 padding = Int32Scalar("padding", pad) variable 98 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AbstractSlotRenderer.java | 114 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_0/ |
D | avg_pool_float_4.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(ou…
|
D | avg_pool_float_2.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
D | avg_pool_quant8_3.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
D | avg_pool_quant8_2.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
D | avg_pool_float_3.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
D | max_pool_quant8_3.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act2).To(output)
|
D | max_pool_float_3.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"MAX_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(output)
|
D | max_pool_quant8_2.mod.py | 33 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/ |
D | avg_pool_float_2_relaxed.mod.py | 35 padding = Int32Scalar("padding", pad) variable 44 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
D | avg_pool_float_4_relaxed.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act3).To(ou…
|
D | avg_pool_float_3_relaxed.mod.py | 33 padding = Int32Scalar("padding", pad) variable 42 …"AVERAGE_POOL_2D", i0, padding, padding, padding, padding, stride, stride, filt, filt, act0).To(ou…
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | TemperatureBackgroundAnimator.java | 89 int padding; in setupAnimations() local 94 padding = paddingRect.right; in setupAnimations() 97 padding = paddingRect.left; in setupAnimations() 105 padding = paddingRect.bottom; in setupAnimations() 108 padding = paddingRect.top; in setupAnimations() 118 padding = Math.max(paddingRect.top, paddingRect.bottom); in setupAnimations() 121 padding = Math.max(paddingRect.left, paddingRect.right); in setupAnimations() 124 mRestingRadius = mOvershootRadius - padding; in setupAnimations() 125 mBumpRadius = mOvershootRadius - padding / 3; in setupAnimations()
|