Searched defs:alignment (Results 1 - 14 of 14) sorted by relevance

/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.h44 static size_t ALIGN(size_t x, size_t alignment) { argument
45 return (x + alignment - 1) & ~(alignment - 1);
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
46 if (!alignment) {
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
74 (unsigned char *) ((intptr_t) (tmp + alignment - 1) &
75 (~((intptr_t) (alignment - 1))));
78 mem_ptr += alignment;
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dmem_align.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
46 if (!alignment) {
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
74 (unsigned char *) ((intptr_t) (tmp + alignment - 1) &
75 (~((intptr_t) (alignment - 1))));
78 mem_ptr += alignment;
/frameworks/av/libvideoeditor/vss/src/
H A DM4PCMR_CoreReader.c488 M4OSA_UInt32 alignment; local
509 /** check the alignment on sample boundary */
510 alignment = c->m_decoderConfig.nbChannels*c->m_decoderConfig.BitsPerSample/8;
511 if (offset%alignment != 0)
513 offset -= offset%alignment;
/frameworks/native/include/utils/
H A DTextOutput.h102 inline HexDump& setAlignment(size_t alignment);
109 inline size_t alignment() const;
173 inline HexDump& HexDump::setAlignment(size_t alignment) { argument
174 mAlignment = alignment; return *this;
184 inline size_t HexDump::alignment() const { return mAlignment; } function in class:android::HexDump
/frameworks/native/libs/utils/
H A DDebug.cpp173 size_t alignment, bool cStyle,
176 if (alignment == 0) {
177 if (bytesPerLine >= 16) alignment = 4;
178 else if (bytesPerLine >= 8) alignment = 2;
179 else alignment = 1;
238 const size_t startIndex = word+(alignment-(alignment?1:0));
245 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) {
248 if (index == 0 && word > 0 && alignment >
171 printHexData(int32_t indent, const void *buf, size_t length, size_t bytesPerLine, int32_t singleLineBytesCutoff, size_t alignment, bool cStyle, debugPrintFunc func, void* cookie) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp803 // Ensure that buffer alignment matches channelCount
806 size_t alignment = /* format == AUDIO_FORMAT_PCM_8_BIT ? 1 : */ 2; local
808 // More than 2 channels does not require stronger alignment than stereo
809 alignment <<= 1;
811 if (((uint32_t)sharedBuffer->pointer() & (alignment - 1)) != 0) {
812 ALOGE("Invalid buffer alignment: address %p, channelCount %d",
/frameworks/base/core/java/com/android/internal/widget/
H A DSlidingTab.java160 * Tab alignment - determines which side the tab should be drawn on
179 private int alignment = ALIGN_UNKNOWN; field in class:SlidingTab.Slider
236 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
237 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
239 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
255 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
256 int dx = horiz ? (alignment == ALIGN_LEFT ? tab.getWidth() : -tab.getWidth()) : 0;
257 int dy = horiz ? 0: (alignment
335 layout(int l, int t, int r, int b, int alignment) argument
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselController.java294 * @param alignment a bitmask of DetailAlignment flags.
296 public void setDetailTextureAlignment(int alignment) { argument
297 int xBits = alignment & DetailAlignment.HORIZONTAL_ALIGNMENT_MASK;
300 "Must specify exactly one horizontal alignment flag");
302 int yBits = alignment & DetailAlignment.VERTICAL_ALIGNMENT_MASK;
305 "Must specify exactly one vertical alignment flag");
308 mDetailTextureAlignment = alignment;
310 mRenderScript.setDetailTextureAlignment(alignment);
H A DCarouselView.java88 /** Mask that selects those bits that control vertical alignment **/
107 /** Mask that selects those bits that control horizontal alignment **/
296 * @param alignment a bitmask of DetailAlignment flags.
298 public void setDetailTextureAlignment(int alignment) { argument
299 mController.setDetailTextureAlignment(alignment);
H A DCarouselRS.java526 public void setDetailTextureAlignment(int alignment) { argument
527 mScript.set_detailTextureAlignment(alignment);
/frameworks/base/core/java/android/widget/
H A DGridLayout.java105 * A child's ability to stretch is inferred from the alignment properties of
108 * If alignment was defined along a given axis then the component
109 * is taken as <em>flexible</em> in that direction. If no alignment was set,
135 * use {@link #CENTER} alignment (or {@link LayoutParams#setGravity(int) gravity}).
178 * When the {@code alignmentMode} is set to {@link #ALIGN_BOUNDS}, alignment
187 * children that belong to a row group that uses {@link #TOP} alignment will
203 * belong to a row group that uses {@link #TOP} alignment.
452 * Returns the alignment mode.
454 * @return the alignment mode; either {@link #ALIGN_BOUNDS} or {@link #ALIGN_MARGINS}
468 * Sets the alignment mod
1037 getAlignment(Alignment alignment, boolean horizontal) argument
2351 final Alignment alignment; field in class:GridLayout.Spec
2353 Spec(boolean startDefined, Interval span, Alignment alignment) argument
2359 Spec(boolean startDefined, int start, int size, Alignment alignment) argument
2367 copyWriteAlignment(Alignment alignment) argument
2426 spec(int start, int size, Alignment alignment) argument
2440 spec(int start, Alignment alignment) argument
[all...]
H A DTextView.java305 // The alignment to pass to Layout, or null if not resolved.
2679 * Sets the horizontal alignment of the text and the
2720 * Returns the horizontal and vertical alignment of this TextView.
5697 // This should never happen as we have already resolved the text alignment
5731 Layout.Alignment alignment = getLayoutAlignment();
5745 mLayout = makeSingleLayout(wantWidth, boring, ellipsisWidth, alignment, shouldEllipsize,
5750 mSavedMarqueeModeLayout = makeSingleLayout(wantWidth, boring, ellipsisWidth, alignment,
5774 hintWidth, alignment, mSpacingMult, mSpacingAdd,
5778 hintWidth, alignment, mSpacingMult, mSpacingAdd,
5787 hintWidth, alignment, mSpacingMul
5842 makeSingleLayout(int wantWidth, BoringLayout.Metrics boring, int ellipsisWidth, Layout.Alignment alignment, boolean shouldEllipsize, TruncateAt effectiveEllipsize, boolean useSaved) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java105 * A child's ability to stretch is inferred from the alignment properties of
108 * If alignment was defined along a given axis then the component
109 * is taken as <em>flexible</em> in that direction. If no alignment was set,
135 * use {@link #CENTER} alignment (or {@link LayoutParams#setGravity(int) gravity}).
177 * When the {@code alignmentMode} is set to {@link #ALIGN_BOUNDS}, alignment
186 * children that belong to a row group that uses {@link #TOP} alignment will
202 * belong to a row group that uses {@link #TOP} alignment.
432 * Returns the alignment mode.
434 * @return the alignment mode; either {@link #ALIGN_BOUNDS} or {@link #ALIGN_MARGINS}
448 * Sets the alignment mod
976 getAlignment(Alignment alignment, boolean horizontal) argument
2144 getOffset(View c, Alignment alignment, int size) argument
2283 final Alignment alignment; field in class:GridLayout.Spec
2285 Spec(boolean startDefined, Interval span, Alignment alignment) argument
2291 Spec(boolean startDefined, int start, int size, Alignment alignment) argument
2299 copyWriteAlignment(Alignment alignment) argument
2358 spec(int start, int size, Alignment alignment) argument
2372 spec(int start, Alignment alignment) argument
[all...]

Completed in 312 milliseconds