Searched defs:padding (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java52 @Nullable Rect padding, @Nullable Options opts) {
81 if (padding != null) {
82 // read the padding
84 padding.left = paddingArray[0];
85 padding.top = paddingArray[1];
86 padding.right = paddingArray[2];
87 padding.bottom = paddingArray[3];
102 Rect padding, Options opts) {
108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
51 nativeDecodeStream(InputStream is, byte[] storage, @Nullable Rect padding, @Nullable Options opts) argument
101 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
/frameworks/av/media/libstagefright/foundation/
H A Dbase64.cpp30 size_t padding = 0; local
32 padding = 1;
35 padding = 2;
38 padding = 3;
43 size_t outLen = 3 * s.size() / 4 - padding;
66 if (i < n - padding) {
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c106 * Validates the padding of a decrypted key.
108 * @param[in] pData A reference to the buffer containing the decrypted key and padding.
111 * @return A Boolean value indicating whether the padding was valid.
115 size_t padding = AES_BLOCK_SIZE - (decryptedKeyLength % AES_BLOCK_SIZE); local
117 for (i = 0; i < padding; ++i) {
118 if ((size_t)*pData != padding) {
157 size_t padding = AES_BLOCK_SIZE - (plaintextKeyLength % AES_BLOCK_SIZE); local
160 memset((unsigned char *)pEncryptedKey + plaintextKeyLength, (int)padding, padding);
/frameworks/base/tools/aapt/
H A DZipEntry.cpp198 status_t ZipEntry::addPadding(int padding) argument
200 if (padding <= 0)
204 // padding, mLFH.mExtraFieldLength, mCDE.mFileName);
210 newExtra = new unsigned char[mLFH.mExtraFieldLength + padding];
213 memset(newExtra + mLFH.mExtraFieldLength, 0, padding);
218 mLFH.mExtraFieldLength += padding;
221 mLFH.mExtraField = new unsigned char[padding];
222 memset(mLFH.mExtraField, 0, padding);
223 mLFH.mExtraFieldLength = padding;
318 #if 0 // this seems to be used for padding, no
[all...]
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DRoundRectDrawable.java53 void setPadding(float padding, boolean insetForPadding, boolean insetForRadius) { argument
54 if (padding == mPadding && mInsetForPadding == insetForPadding &&
58 mPadding = padding;
/frameworks/av/media/libstagefright/codecs/avc/common/src/
H A Ddpb.cpp22 AVCStatus InitDPB(AVCHandle *avcHandle, AVCCommonObj *video, int FrameHeightInMbs, int PicWidthInMbs, bool padding) argument
39 if (padding)
108 OSCL_EXPORT_REF AVCStatus AVCConfigureSequence(AVCHandle *avcHandle, AVCCommonObj *video, bool padding) argument
136 if (padding)
147 if (InitDPB(avcHandle, video, FrameHeightInMbs, PicWidthInMbs, padding) != AVC_SUCCESS)
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_dec_defs.h126 int32 padding; member in struct:__anon453
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java581 * @param outPadding If not null, return the padding rect for the bitmap if
582 * it exists, otherwise set padding to [-1,-1,-1,-1]. If
583 * no bitmap is returned (null) then padding is
658 * @param outPadding If not null, return the padding rect for the bitmap if
659 * it exists, otherwise set padding to [-1,-1,-1,-1]. If
660 * no bitmap is returned (null) then padding is
708 Rect padding, Options opts);
710 Rect padding, Options opts);
711 private static native Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, Options opts); argument
707 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
709 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
/frameworks/base/libs/androidfw/
H A DBackupData.cpp81 uint32_t padding = 0xbcbcbcbc; local
82 if (DEBUG) ALOGI("writing %zd padding bytes for %d", paddingSize, n);
83 amt = write(m_fd, &padding, paddingSize);
164 // We don't write padding here, because they're allowed to call this several
375 uint32_t padding; local
376 amt = read(m_fd, &padding, paddingSize);
H A DCursorWindow.cpp202 uint32_t padding; local
205 padding = (~mHeader->freeOffset + 1) & 3;
207 padding = 0;
210 uint32_t offset = mHeader->freeOffset + padding;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java42 // used to calculate content padding
134 public boolean getPadding(Rect padding) { argument
139 padding.set(hOffset, vOffset, hOffset, vOffset);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dqc_data.h75 PADDING padding; member in struct:QC_INIT
133 PADDING padding; member in struct:__anon337
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java134 * Set the AppWidget that will be displayed by this view. This method also adds default padding
136 * and can be overridden in order to add custom padding.
145 // We add padding to the AppWidgetHostView if necessary
146 Rect padding = getDefaultPaddingForWidget(mContext, info.provider, null);
147 setPadding(padding.left, padding.top, padding.right, padding.bottom);
153 * As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting
155 * that widget developers do not add extra padding t
168 getDefaultPaddingForWidget(Context context, ComponentName component, Rect padding) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java211 public boolean getPadding(Rect padding) { argument
212 // XXX need to adjust padding!
213 return mState.mDrawable.getPadding(padding);
H A DScaleDrawable.java229 public boolean getPadding(Rect padding) { argument
230 // XXX need to adjust padding!
231 return mState.mDrawable.getPadding(padding);
H A DAnimatedRotateDrawable.java221 public boolean getPadding(Rect padding) { argument
222 return mState.mDrawable.getPadding(padding);
H A DInsetDrawable.java248 public boolean getPadding(Rect padding) { argument
249 boolean pad = mState.mDrawable.getPadding(padding);
251 padding.left += mState.mInsetLeft;
252 padding.right += mState.mInsetRight;
253 padding.top += mState.mInsetTop;
254 padding.bottom += mState.mInsetBottom;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DMultiPaneChallengeLayout.java332 final Rect padding = mTempRect;
333 padding.left = getPaddingLeft();
334 padding.top = getPaddingTop();
335 padding.right = getPaddingRight();
336 padding.bottom = getPaddingBottom();
342 // local padding during this layout pass
344 layoutWithGravity(width, insetHeight, mUserSwitcherView, padding, true);
363 layoutWithGravity(width, insetHeight, child, padding, false);
367 private void layoutWithGravity(int width, int height, View child, Rect padding, argument
371 final int heightUsed = padding
[all...]
/frameworks/native/include/input/
H A DInputTransport.h58 uint32_t padding; member in struct:android::InputMessage::Header
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DDrawableWrapper.java145 public boolean getPadding(Rect padding) { argument
146 return mDrawable.getPadding(padding);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java36 // used to calculate content padding
157 public boolean getPadding(Rect padding) { argument
162 padding.set(hOffset, vOffset, hOffset, vOffset);
/frameworks/av/media/libstagefright/
H A DMP3Extractor.cpp43 // protection, bitrate, padding, private bits, mode, mode extension,
373 int32_t delay, padding; local
374 if (sscanf(value, " %*x %x %x %*x", &delay, &padding) == 2) {
376 mMeta->setInt32(kKeyEncoderPadding, padding);
413 // while playing a Layer 2, MPEGv2.5 audio stream at 160kbps (with padding).
416 // (8000 samples/sec * 8 bits/byte)) + 1 padding byte/frame = 2881 bytes/frame.
H A DMPEG2TSWriter.cpp890 bool padding = (accessUnit->size() < (188 - 18)); local
904 *ptr++ = (padding ? 0x30 : 0x10) | continuity_counter;
905 if (padding) {
H A DUtils.cpp148 int32_t padding = 0; local
149 if (meta->findInt32(kKeyEncoderPadding, &padding)) {
150 msg->setInt32("encoder-padding", padding);
533 int32_t padding = 0; local
534 if (msg->findInt32("encoder-padding", &padding)) {
535 meta->setInt32(kKeyEncoderPadding, padding);
H A Davc_utils.cpp640 unsigned padding = (header >> 9) & 1; local
664 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
710 *frame_size = 144000 * bitrate / sampling_rate + padding;
714 *frame_size = tmp * bitrate / sampling_rate + padding;

Completed in 617 milliseconds

12