Searched defs:padding (Results 1 - 25 of 98) sorted by path

1234

/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/av/drm/mediadrm/plugins/clearkey/hidl/
H A DBase64.cpp34 size_t padding = 0; local
36 padding = 1;
39 padding = 2;
42 padding = 3;
49 size_t outLen = (n / 4) * 3 - padding;
75 if (i < n - padding) {
/frameworks/av/media/extractors/mp3/
H A DMP3Extractor.cpp43 // protection, bitrate, padding, private bits, mode, mode extension,
391 int32_t delay, padding; local
392 if (sscanf(value, " %*x %x %x %*x", &delay, &padding) == 2) {
394 mMeta.setInt32(kKeyEncoderPadding, padding);
436 // while playing a Layer 2, MPEGv2.5 audio stream at 160kbps (with padding).
439 // (8000 samples/sec * 8 bits/byte)) + 1 padding byte/frame = 2881 bytes/frame.
/frameworks/av/media/extractors/mp4/
H A DMPEG4Extractor.cpp485 int64_t padding; local
486 // padding = scaled_duration - ((segment_duration + media_time) * 1000000);
489 __builtin_sub_overflow(scaled_duration, segment_end, &padding)) {
492 ALOGV("segment_end = %" PRId64 ", padding = %" PRId64, segment_end, padding);
494 if (padding < 0) {
497 // padding negative. Clamp to zero.
498 padding = 0;
504 // paddingsamples = ((padding * samplerate) + (halfscale * 1000000))
506 if (__builtin_mul_overflow(padding, samplerat
3070 int32_t delay, padding; local
[all...]
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp848 bool padding = (accessUnit->size() < (188 - 18)); local
862 *ptr++ = (padding ? 0x30 : 0x10) | continuity_counter;
863 if (padding) {
H A DUtils.cpp735 int32_t padding = 0; local
736 if (meta->findInt32(kKeyEncoderPadding, &padding)) {
737 msg->setInt32("encoder-padding", padding);
1421 int32_t padding = 0; local
1422 if (msg->findInt32("encoder-padding", &padding)) {
1423 meta->setInt32(kKeyEncoderPadding, padding);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_dec_defs.h126 int32 padding; member in struct:__anon586
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp99 unsigned padding = (header >> 9) & 1; local
123 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
169 *frame_size = 144000 * bitrate / sampling_rate + padding;
173 *frame_size = tmp * bitrate / sampling_rate + padding;
/frameworks/av/media/libstagefright/foundation/
H A Davc_utils.cpp681 unsigned padding = (header >> 9) & 1; local
705 *frame_size = (12000 * bitrate / sampling_rate + padding) * 4;
751 *frame_size = 144000 * bitrate / sampling_rate + padding;
755 *frame_size = tmp * bitrate / sampling_rate + padding;
H A Dbase64.cpp31 size_t padding = 0; local
33 padding = 1;
36 padding = 2;
39 padding = 3;
46 size_t outLen = (n / 4) * 3 - padding;
71 if (i < n - padding) {
/frameworks/av/media/libstagefright/httplive/
H A DPlaylistFetcher.cpp480 uint8_t padding = 0; local
482 padding = buffer->data()[buffer->size() - 1];
485 if (padding > 16) {
489 for (size_t i = buffer->size() - padding; i < padding; i++) {
490 if (buffer->data()[i] != padding) {
495 buffer->setRange(buffer->offset(), buffer->size() - padding);
1494 ALOGE("Incorrect padding bytes after decryption.");
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java1562 * Specify extra padding that the wallpaper should have outside of the display.
1563 * That is, the given padding supplies additional pixels the wallpaper should extend
1569 * @param padding The number of pixels the wallpaper should extend beyond the display,
1573 public void setDisplayPadding(Rect padding) { argument
1579 sGlobals.mService.setDisplayPadding(padding, mContext.getOpPackageName());
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java126 * Set the AppWidget that will be displayed by this view. This method also adds default padding
128 * and can be overridden in order to add custom padding.
134 // We add padding to the AppWidgetHostView if necessary
135 Rect padding = getDefaultPadding();
136 setPadding(padding.left, padding.top, padding.right, padding.bottom);
151 * As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting
153 * that widget developers do not add extra padding t
166 getDefaultPaddingForWidget(Context context, ComponentName component, Rect padding) argument
177 getDefaultPaddingForWidget(Context context, ApplicationInfo appInfo, Rect padding) argument
[all...]
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java827 final Rect padding = mIWallpaperEngine.mDisplayPadding;
828 w += padding.left + padding.right + mOutsets.left + mOutsets.right;
829 h += padding.top + padding.bottom + mOutsets.top + mOutsets.bottom;
830 mOverscanInsets.left += padding.left;
831 mOverscanInsets.top += padding.top;
832 mOverscanInsets.right += padding.right;
833 mOverscanInsets.bottom += padding.bottom;
834 mContentInsets.left += padding
1056 doDisplayPaddingChanged(Rect padding) argument
1253 IWallpaperEngineWrapper(WallpaperService context, IWallpaperConnection conn, IBinder windowToken, int windowType, boolean isPreview, int reqWidth, int reqHeight, Rect padding) argument
1274 setDisplayPadding(Rect padding) argument
1434 attach(IWallpaperConnection conn, IBinder windowToken, int windowType, boolean isPreview, int reqWidth, int reqHeight, Rect padding) argument
[all...]
/frameworks/base/core/java/android/view/
H A DViewGroup.java249 // When set, ViewGroup excludes the padding area from the invalidate rectangle
265 // If set, this ViewGroup has padding; if unset there is no padding and we don't need
522 * We clip to padding when FLAG_CLIP_TO_PADDING and FLAG_PADDING_NOT_NULL
4340 // If we have padding and we're supposed to clip children to that
4341 // padding, offset the scroll indicators to match our clip bounds.
4387 * Sets whether this ViewGroup will clip its children to its padding and resize (but not
4388 * clip) any EdgeEffect to the padded region, if padding is present.
4390 * By default, children are clipped to the padding of their parent
4391 * ViewGroup. This clipping behavior is only enabled if padding i
6771 getChildMeasureSpec(int spec, int padding, int childDimension) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DLinearLayout.java367 * Set padding displayed on both ends of dividers. For a vertical layout, the padding is applied
368 * to left and right end of dividers. For a horizontal layout, the padding is applied to top and
371 * @param padding Padding value in pixels that will be applied to each end
377 public void setDividerPadding(int padding) { argument
378 if (padding == mDividerPadding) {
381 mDividerPadding = padding;
390 * Get the padding size used to inset dividers in pixels
924 // Add in our padding
1002 // Add in our padding
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java895 * Returns whether this RecyclerView will clip its children to its padding, and resize (but
896 * not clip) any EdgeEffect to the padded region, if padding is present.
898 * By default, children are clipped to the padding of their parent
899 * RecyclerView. This clipping behavior is only enabled if padding is non-zero.
901 * @return true if this RecyclerView clips children to its padding and resizes (but doesn't
1362 * will be nested; a padding added by an earlier decoration will mean further
1393 * will be nested; a padding added by an earlier decoration will mean further
3821 // TODO If padding is not 0 and clipChildrenToPadding is false, to draw glows properly, we
3826 final int padding = mClipToPadding ? getPaddingBottom() : 0;
3828 c.translate(-getHeight() + padding,
8499 getChildMeasureSpec(int parentSize, int padding, int childDimension, boolean canScroll) argument
8542 getChildMeasureSpec(int parentSize, int parentMode, int padding, int childDimension, boolean canScroll) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp182 jobject padding, jobject options) {
477 if (padding) {
478 peeker.getPadding(env, padding);
518 jobject padding, jobject options) {
527 bitmap = doDecode(env, std::move(bufferedStream), padding, options);
533 jobject padding, jobject bitmapFactoryOptions) {
569 return doDecode(env, std::move(fileStream), padding, bitmapFactoryOptions);
578 return doDecode(env, std::move(stream), padding, bitmapFactoryOptions);
582 jobject padding, jobject options) {
587 return doDecode(env, skstd::make_unique<AssetStreamAdaptor>(asset), padding, option
181 doDecode(JNIEnv* env, std::unique_ptr<SkStreamRewindable> stream, jobject padding, jobject options) argument
517 nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options) argument
532 nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, jobject padding, jobject bitmapFactoryOptions) argument
581 nativeDecodeAsset(JNIEnv* env, jobject clazz, jlong native_asset, jobject padding, jobject options) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java693 * @param outPadding If not null, return the padding rect for the bitmap if
694 * it exists, otherwise set padding to [-1,-1,-1,-1]. If
695 * no bitmap is returned (null) then padding is
779 * @param outPadding If not null, return the padding rect for the bitmap if
780 * it exists, otherwise set padding to [-1,-1,-1,-1]. If
781 * no bitmap is returned (null) then padding is
835 Rect padding, Options opts);
837 Rect padding, Options opts);
838 private static native Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, Options opts); argument
834 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
836 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java87 * widget would need to return padding that correctly places the label
1024 * out, including any inherent padding. If the drawable has no intrinsic
1037 * laid out, including any inherent padding. If the drawable has no
1050 * possible.) This value should INCLUDE any padding.
1064 * possible.) This value should INCLUDE any padding.
1075 * Return in padding the insets suggested by this Drawable for placing
1079 * @return true if this drawable actually has a padding, else false. When false is returned,
1080 * the padding is always set to 0.
1082 public boolean getPadding(@NonNull Rect padding) { argument
1083 padding
[all...]
H A DDrawableContainer.java101 public boolean getPadding(Rect padding) { argument
105 padding.set(r);
109 result = mCurrDrawable.getPadding(padding);
111 result = super.getPadding(padding);
115 final int left = padding.left;
116 final int right = padding.right;
117 padding.left = right;
118 padding.right = left;
1038 * A boolean value indicating whether to use the maximum padding value
1039 * of all frames in the set (false), or to use the padding valu
[all...]
H A DDrawableWrapper.java239 public boolean getPadding(@NonNull Rect padding) { argument
240 return mDrawable != null && mDrawable.getPadding(padding);
H A DGradientDrawable.java214 public boolean getPadding(Rect padding) { argument
216 padding.set(mPadding);
219 return super.getPadding(padding);
1437 } else if (name.equals("padding")) {
H A DInsetDrawable.java231 public boolean getPadding(Rect padding) { argument
232 final boolean pad = super.getPadding(padding);
234 padding.left += mTmpInsetRect.left;
235 padding.right += mTmpInsetRect.right;
236 padding.top += mTmpInsetRect.top;
237 padding.bottom += mTmpInsetRect.bottom;
H A DLayerDrawable.java73 * Padding mode used to nest each layer inside the padding of the previous
456 * @param left The left padding of the new layer.
457 * @param top The top padding of the new layer.
458 * @param right The right padding of the new layer.
459 * @param bottom The bottom padding of the new layer.
722 * {@link #setLayerInset(int, int, int, int, int)}) or padding (see
926 * Specifies how layer padding should affect the bounds of subsequent
929 * @param mode padding mode, one of:
932 * padding of the previous layer
947 * @return the current padding mod
1022 getPadding(Rect padding) argument
1226 computeNestedPadding(Rect padding) argument
1245 computeStackedPadding(Rect padding) argument
[all...]

Completed in 6384 milliseconds

1234