Home
last modified time | relevance | path

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

123

/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/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java94 public int getWidthMeasureSpec(final int cellWidth, final int padding) { in getWidthMeasureSpec() argument
95 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, in getWidthMeasureSpec()
99 public int getHeightMeasureSpec(final int cellHeight, final int padding) { in getHeightMeasureSpec() argument
100 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2, in getHeightMeasureSpec()
305 final int padding = getResources().getDimensionPixelOffset( in onMeasure() local
310 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
311 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
325 mPlusTextView.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
326 imageTile.getHeightMeasureSpec(cellHeight, padding)); in onMeasure()
337 final int padding = getResources().getDimensionPixelOffset( in onLayout() local
[all …]
/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()
DSecondLevelIndicatorControlBar.java179 int padding = getPaddingLeft(); in onLayout() local
182 int offsetX = padding; in onLayout()
190 offsetX = width - iconWidth - 2 * padding; in onLayout()
191 mDivider.layout(offsetX, padding, (offsetX + mDivider.getMeasuredWidth()), in onLayout()
192 (height - padding)); in onLayout()
194 offsetX = width - iconWidth - padding; in onLayout()
/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/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/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java103 int padding = (previewBitmapWidth - previewSizeBeforeScale[0]) / 2; in startDrag() local
105 padding = padding * previewViewWidth / previewBitmapWidth; in startDrag()
108 previewBounds.left += padding; in startDrag()
109 previewBounds.right -= padding; in startDrag()
132 int padding = launcher.getResources() in startDrag() local
134 previewBounds.left += padding; in startDrag()
135 previewBounds.top += padding; in startDrag()
DWidgetHostViewLoader.java157 Rect padding = AppWidgetHostView.getDefaultPaddingForWidget(context, in getDefaultOptionsForWidget() local
161 int xPaddingDips = (int) ((padding.left + padding.right) / density); in getDefaultOptionsForWidget()
162 int yPaddingDips = (int) ((padding.top + padding.bottom) / density); in getDefaultOptionsForWidget()
/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()
DSlotView.java474 int[] padding) { in initLayoutParameters() argument
483 padding[0] = (minorLength - usedMinorLength) / 2; in initLayoutParameters()
491 padding[1] = Math.max(0, (majorLength - mContentLength) / 2); in initLayoutParameters()
511 int[] padding = new int[2]; in initLayoutParameters() local
513 initLayoutParameters(mWidth, mHeight, mSlotWidth, mSlotHeight, padding); in initLayoutParameters()
514 mVerticalPadding.startAnimateTo(padding[0]); in initLayoutParameters()
515 mHorizontalPadding.startAnimateTo(padding[1]); in initLayoutParameters()
517 initLayoutParameters(mHeight, mWidth, mSlotHeight, mSlotWidth, padding); in initLayoutParameters()
518 mVerticalPadding.startAnimateTo(padding[1]); in initLayoutParameters()
519 mHorizontalPadding.startAnimateTo(padding[0]); in initLayoutParameters()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java477 Point padding = getTotalWorkspacePadding(); in getCellSize() local
478 result.x = calculateCellWidth(availableWidthPx - padding.x in getCellSize()
480 result.y = calculateCellHeight(availableHeightPx - padding.y in getCellSize()
496 Rect padding = workspacePadding; in updateWorkspacePadding() local
498 padding.top = 0; in updateWorkspacePadding()
499 padding.bottom = edgeMarginPx; in updateWorkspacePadding()
501 padding.left = hotseatBarSizePx; in updateWorkspacePadding()
502 padding.right = hotseatBarSidePaddingStartPx; in updateWorkspacePadding()
504 padding.left = hotseatBarSidePaddingStartPx; in updateWorkspacePadding()
505 padding.right = hotseatBarSizePx; in updateWorkspacePadding()
[all …]
DHotseat.java109 Rect padding = grid.getHotseatLayoutPadding(); in setInsets() local
110 setPadding(padding.left, padding.top, padding.right, padding.bottom); in setInsets()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DHorizontalBreadcrumb.java177 final int padding = (int) holder.itemView.getResources() in onBindViewHolder() local
188 holder.mTitle.setPadding(isFirst ? padding * 3 : padding, in onBindViewHolder()
189 padding, isLast ? padding * 2 : padding, padding); in onBindViewHolder()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionAdapter.java68 int padding = resources.getDimensionPixelSize(R.dimen.users_checkbox_padding); in createCheckBox() local
69 checkBox.setPadding(padding, padding, padding, padding); in createCheckBox()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DSnackbar.java69 int padding = res.getDimensionPixelSize(R.dimen.snackbar_padding); in show() local
70 snackbar.setPadding(padding, padding, padding, padding); in show()
97 + padding * 2; in show()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java352 mAH[i].padding.bottom = insets.bottom; in setInsets()
353 mAH[i].padding.left = mAH[i].padding.right = leftRightPadding; in setInsets()
538 int padding = mHeader.getMaxTranslation(); in setupHeader() local
540 mAH[i].padding.top = padding; in setupHeader()
623 final Rect padding = new Rect(); field in AllAppsContainerView.AdapterHolder
691 recyclerView.setPadding(padding.left, padding.top, padding.right, in applyPadding()
692 padding.bottom + bottomOffset); in applyPadding()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DMultiTargetSwitchPreference.java57 final int padding = (int) ((holder.itemView.getMeasuredHeight() in onBindViewHolder() local
59 switchView.setPaddingRelative(padding, padding, 0, padding); in onBindViewHolder()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java103 int padding = (int) DpUtil.dpToPx(context, 16); in newTextViewItem() local
104 textView.setPadding(padding, padding, padding, padding); in newTextViewItem()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DPinnedAppsAdapter.java140 int padding = mLauncher.getDeviceProfile().edgeMarginPx; in getView() local
141 icon.setPadding(padding, padding, padding, padding); in getView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPublicVolumeSettings.java140 final int padding = resources.getDimensionPixelSize( in onActivityCreated() local
144 buttonBar.setPadding(padding, padding, padding, padding); in onActivityCreated()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java367 final Rect padding = mKeyBackgroundPadding; in onDrawKeyBackground() local
368 bgWidth = keyWidth + padding.left + padding.right; in onDrawKeyBackground()
369 bgHeight = keyHeight + padding.top + padding.bottom; in onDrawKeyBackground()
370 bgX = -padding.left; in onDrawKeyBackground()
371 bgY = -padding.top; in onDrawKeyBackground()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java742 final Rect padding = mPadding; in onBufferDraw() local
846 (key.width - padding.left - padding.right) / 2 in onBufferDraw()
847 + padding.left, in onBufferDraw()
848 (key.height - padding.top - padding.bottom) / 2 in onBufferDraw()
849 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, in onBufferDraw()
854 final int drawableX = (key.width - padding.left - padding.right in onBufferDraw()
855 - key.icon.getIntrinsicWidth()) / 2 + padding.left; in onBufferDraw()
856 final int drawableY = (key.height - padding.top - padding.bottom in onBufferDraw()
857 - key.icon.getIntrinsicHeight()) / 2 + padding.top; in onBufferDraw()
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java138 final int padding = mLabelStart != null ? mLabelStart.getHeight() / 8 : 0; in onDraw() local
143 canvas.translate(0, height + padding); in onDraw()
151 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw() local
159 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartGridView.java139 final int padding = mLabelStart != null ? mLabelStart.getHeight() / 8 : 0; in onDraw() local
144 canvas.translate(0, height + padding); in onDraw()
152 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw() local
160 canvas.translate(width - end.getWidth(), height + padding); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java264 Rect padding = grid.workspacePadding; in setInsets() local
265 lp.leftMargin = padding.left + grid.workspaceCellPaddingXPx; in setInsets()
266 lp.rightMargin = padding.right + grid.workspaceCellPaddingXPx; in setInsets()
267 lp.bottomMargin = padding.bottom; in setInsets()

123