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

12

/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/compile/mclinker/lib/Target/Mips/
H A DMipsLA25Stub.cpp82 size_t MipsLA25Stub::alignment() const { function in class:mcld::MipsLA25Stub
/frameworks/base/core/java/com/android/internal/widget/
H A DImageFloatingTextView.java62 Layout.Alignment alignment, boolean shouldEllipsize,
67 .setAlignment(alignment)
61 makeSingleLayout(int wantWidth, BoringLayout.Metrics boring, int ellipsisWidth, Layout.Alignment alignment, boolean shouldEllipsize, TextUtils.TruncateAt effectiveEllipsize, boolean useSaved) argument
H A DSlidingTab.java166 * Tab alignment - determines which side the tab should be drawn on
185 private int alignment = ALIGN_UNKNOWN; field in class:SlidingTab.Slider
242 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
243 int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
245 int dy = horiz ? 0 : (alignment == ALIGN_TOP ? alignment_value - tab.getBottom()
261 boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
262 int dx = horiz ? (alignment == ALIGN_LEFT ? tab.getWidth() : -tab.getWidth()) : 0;
263 int dy = horiz ? 0: (alignment
341 layout(int l, int t, int r, int b, int alignment) argument
[all...]
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64CA53ErratumStub.cpp145 size_t AArch64CA53ErratumStub::alignment() const { function in class:mcld::AArch64CA53ErratumStub
H A DAArch64LongBranchStub.cpp137 size_t AArch64LongBranchStub::alignment() const { function in class:mcld::AArch64LongBranchStub
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMToARMStub.cpp100 size_t ARMToARMStub::alignment() const { function in class:mcld::ARMToARMStub
H A DARMToTHMStub.cpp108 size_t ARMToTHMStub::alignment() const { function in class:mcld::ARMToTHMStub
H A DTHMToARMStub.cpp121 size_t THMToARMStub::alignment() const { function in class:mcld::THMToARMStub
H A DTHMToTHMStub.cpp118 size_t THMToTHMStub::alignment() const { function in class:mcld::THMToTHMStub
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonAbsoluteStub.cpp104 size_t HexagonAbsoluteStub::alignment() const { function in class:mcld::HexagonAbsoluteStub
H A DHexagonRelocator.cpp426 // Determine the alignment by the symbol value
427 // FIXME: here we use the largest alignment
512 uint32_t alignment = 1; local
531 alignment = 2;
536 alignment = 1;
565 if ((shift != 0) && (result % alignment != 0))
587 uint32_t alignment = 1; local
595 alignment = 4;
602 alignment = 4;
609 alignment
774 uint32_t alignment = 1; local
850 uint32_t alignment = 1; local
919 uint32_t alignment = 1; local
[all...]
H A DHexagonLDBackend.cpp930 // if the align constraint is larger than 1, append an alignment
931 unsigned int alignment = pFrom.getSection().align(); local
932 align = new AlignFragment(/*alignment*/alignment,
935 /*max bytes to emit*/alignment - 1);
997 // if the align constraint is larger than 1, append an alignment
998 unsigned int alignment = pFrom.getSection().align(); local
999 align = new AlignFragment(/*alignment*/alignment,
1002 /*max bytes to emit*/alignment
[all...]
/frameworks/compile/mclinker/lib/Object/
H A DObjectBuilder.cpp110 // force input alignment from ldscript if any
136 // if the align constraint is larger than 1, append an alignment
137 unsigned int alignment = pFrom.getSection().align(); local
138 align = new AlignFragment(/*alignment*/alignment,
141 /*max bytes to emit*/alignment - 1);
165 /// UpdateSectionAlign - update alignment for input section
171 /// UpdateSectionAlign - update alignment for input section
189 // if the align constraint is larger than 1, append an alignment
190 align = new AlignFragment(/*alignment*/pAlignConstrain
[all...]
/frameworks/native/include/binder/
H A DTextOutput.h107 inline HexDump& setAlignment(size_t alignment);
114 inline size_t alignment() const;
178 inline HexDump& HexDump::setAlignment(size_t alignment) { argument
179 mAlignment = alignment; return *this;
189 inline size_t HexDump::alignment() const { return mAlignment; } function in class:android::HexDump
/frameworks/native/libs/binder/
H A DDebug.cpp159 size_t alignment, bool cStyle,
162 if (alignment == 0) {
163 if (bytesPerLine >= 16) alignment = 4;
164 else if (bytesPerLine >= 8) alignment = 2;
165 else alignment = 1;
223 const size_t startIndex = word+(alignment-(alignment?1:0));
225 for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) {
228 if (index == 0 && word > 0 && alignment >
157 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/camera/
H A DCameraMetadata.cpp28 #define ALIGN_TO(val, alignment) \
29 (((uintptr_t)(val) + ((alignment) - 1)) & ~((alignment) - 1))
458 const size_t alignment = get_camera_metadata_alignment(); local
466 if (blobSize <= alignment) {
467 ALOGE("%s: metadata blob is malformed, blobSize(%zu) should be larger than alignment(%zu)",
468 __FUNCTION__, blobSize, alignment);
472 const size_t metadataSize = blobSize - alignment;
496 if (offset >= alignment) {
497 ALOGE("%s: metadata offset(%zu) should be less than alignment(
564 const size_t alignment = get_camera_metadata_alignment(); local
[all...]
/frameworks/av/media/libstagefright/codecs/avcdec/
H A DSoftAVCDec.cpp138 static void *ivd_aligned_malloc(void *ctxt, WORD32 alignment, WORD32 size) { argument
140 return memalign(alignment, size);
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp95 static void *ivd_aligned_malloc(void *ctxt, WORD32 alignment, WORD32 size) { argument
97 return memalign(alignment, size);
/frameworks/base/core/java/android/text/
H A DHtml.java377 final Layout.Alignment alignment = s.getAlignment();
378 if (alignment == Layout.Alignment.ALIGN_NORMAL) {
380 } else if (alignment == Layout.Alignment.ALIGN_CENTER) {
382 } else if (alignment == Layout.Alignment.ALIGN_OPPOSITE) {
977 String alignment = m.group(1);
978 if (alignment.equalsIgnoreCase("start")) {
980 } else if (alignment.equalsIgnoreCase("center")) {
982 } else if (alignment.equalsIgnoreCase("end")) {
1338 public Alignment(Layout.Alignment alignment) { argument
1339 mAlignment = alignment;
[all...]
H A DLayout.java150 * override the alignment.
170 * override the alignment.
290 // Compute the alignment, last alignment style wins.
413 // LineBackgroundSpans know nothing about the alignment, margins, or
521 // alignment of the paragraph.
619 * Return the base alignment of this layout.
738 public int getIndentAdjust(int line, Alignment alignment) { argument
1591 * Get the alignment of the specified paragraph, taking into account
H A DStaticLayout.java176 * Set the alignment. The default is {@link Layout.Alignment#ALIGN_NORMAL}.
178 * @param alignment Alignment for the resulting {@link StaticLayout}
181 public Builder setAlignment(Alignment alignment) { argument
182 mAlignment = alignment;
1215 throw new AssertionError("unhandled alignment " + align);
/frameworks/native/vulkan/libvulkan/
H A Ddriver.cpp434 size_t alignment,
437 // Vulkan requires 'alignment' to be a power of two, but posix_memalign
439 int ret = posix_memalign(&ptr, std::max(alignment, sizeof(void*)), size);
440 ALOGD_CALLSTACK("Allocate: size=%zu align=%zu => (%d) %p", size, alignment,
448 size_t alignment,
466 if (posix_memalign(&new_ptr, std::max(alignment, sizeof(void*)), size) != 0)
432 DefaultAllocate(void*, size_t size, size_t alignment, VkSystemAllocationScope) argument
445 DefaultReallocate(void*, void* ptr, size_t size, size_t alignment, VkSystemAllocationScope) argument
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp1324 // not have additional alignment beyond sample
1326 size_t alignment = audio_bytes_per_sample(mFormat); local
1327 if (alignment & 1) {
1329 alignment = 1;
1332 // More than 2 channels does not require stronger alignment than stereo
1333 alignment <<= 1;
1335 if (((uintptr_t)mSharedBuffer->pointer() & (alignment - 1)) != 0) {
1336 ALOGE("Invalid buffer alignment: address %p, channel count %u",

Completed in 7075 milliseconds

12