Searched defs:size (Results 51 - 75 of 850) sorted by relevance

1234567891011>>

/frameworks/base/core/java/com/android/internal/widget/
H A DDrawingSpace.java48 * If mode is AT_MOST, return the child size instead of the parent size
51 private static int getDefaultSizeNonGreedy(int size, int measureSpec) { argument
52 int result = size;
58 result = size;
61 result = Math.min(size, specSize);
H A DScrollBarUtils.java21 public static int getThumbLength(int size, int thickness, int extent, int range) { argument
24 int length = Math.round((float) size * extent / range);
31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
34 if (thumbOffset > size - thumbLength) {
35 thumbOffset = size - thumbLength;
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DBandwidthTestUtil.java76 * @param size in bytes of the file to download
81 public static String buildDownloadUrl(String server, int size, String deviceId, argument
83 String downloadUrl = server + "/download?size=" + size + "&device_id=" + deviceId +
/frameworks/base/include/androidfw/
H A DByteBucketArray.h27 * Stores a sparsely populated array. Has a fixed size of 256
46 inline size_t size() const { function in class:android::ByteBucketArray
55 if (index >= size()) {
68 ALOG_ASSERT(index < size(), "ByteBucketArray.getOrCreate(index=%u) with size=%u",
69 (uint32_t) index, (uint32_t) size());
80 if (index >= size()) {
/frameworks/base/libs/hwui/tests/unit/
H A DFontRendererTests.cpp24 static bool isZero(uint8_t* data, int size) { argument
25 for (int i = 0; i < size; i++) {
47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(),
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_frame.cpp22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { argument
30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument
31 if (size_ >= (offset + size)) {
32 memcpy(data_ + offset, data, size);
38 bool NativeFrame::SetData(uint8_t* data, int size) { argument
40 size_ = capacity_ = size;
H A Dvertex_frame.cpp28 VertexFrame::VertexFrame(int size) argument
30 size_(size) {
42 bool VertexFrame::WriteData(const uint8_t* data, int size) { argument
55 if (first_upload && size == size_)
56 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
57 else if (!first_upload && size <= size_)
58 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data);
61 "inside the vertex frame (%d bytes)!", size, size_);
69 // Subsequent uploads are now bound to the size given here
70 size_ = size;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppIconDragShadowBuilder.java34 // The Drawable may not be the same size as the ImageView, so use the ImageView size.
41 public void onProvideShadowMetrics(Point size, Point touch) { argument
42 size.set(mIconSize, mIconSize);
51 // to the correct size.
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/
H A DIntArray.java39 public int size() { method in class:IntArray
/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileIntentResolver.java30 protected CrossProfileIntentFilter[] newArray(int size) { argument
31 return new CrossProfileIntentFilter[size];
H A DPreferredIntentResolver.java26 protected PreferredActivity[] newArray(int size) { argument
27 return new PreferredActivity[size];
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp37 uint64_t size = 0; local
40 ret = ioctl(fd, BLKGETSIZE64, &size);
45 return size;
87 const uint64_t size = get_block_device_size(fd); local
91 return size;
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
H A DUtils.java67 * @param size
70 public static int wrapIndex(int i, int size) { argument
71 int m = i % size;
73 m += size;
/frameworks/base/tools/aapt2/flatten/
H A DChunkWriter.h44 mStartSize = mBuffer->size();
65 inline size_t size() { function in class:aapt::ChunkWriter
66 return mBuffer->size() - mStartSize;
71 mHeader->size = util::hostToDevice32(mBuffer->size() - mStartSize);
78 mStartSize = mBuffer->size();
/frameworks/base/tools/aapt2/io/
H A DData.h35 virtual size_t size() const = 0;
51 size_t size() const override {
65 MallocData(std::unique_ptr<const uint8_t[]> data, size_t size) : argument
66 mData(std::move(data)), mSize(size) {
73 size_t size() const override {
92 size_t size() const override {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DStack.java35 public Stack(int size) { argument
36 super(size);
52 if (size() > 0) {
53 return remove(size() - 1);
64 if (size() > 0) {
65 return get(size() - 1);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Din_memory_wrapper_input.cpp22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : argument
23 _buffer(buffer), _pos(0), _size(size) {
/frameworks/compile/mclinker/include/mcld/Fragment/
H A DFillFragment.h37 size_t size() const { return m_Size; } function in class:mcld::FillFragment
43 /// m_ValueSize - The size (in bytes) of \arg Value to use when filling, or 0
/frameworks/compile/mclinker/include/mcld/LD/
H A DELFSegmentFactory.h41 size_t size() const { return m_Segments.size(); } function in class:mcld::ELFSegmentFactory
/frameworks/compile/mclinker/include/mcld/Script/
H A DRpnExpr.h45 size_t size() const { return m_TokenQueue.size(); } function in class:mcld::RpnExpr
/frameworks/compile/mclinker/lib/LD/
H A DLDContext.cpp23 pSection.setIndex(m_SectionTable.size());
29 if (pIdx >= m_SectionTable.size())
35 if (pIdx >= m_SectionTable.size())
60 size_t size = m_SectionTable.size(); local
61 for (; result != size; ++result)
68 if (pIdx >= m_SymTab.size())
74 if (pIdx >= m_SymTab.size())
81 size_t size = m_SymTab.size(); local
90 size_t size = m_SymTab.size(); local
[all...]
/frameworks/compile/mclinker/lib/Script/
H A DScriptReader.cpp46 size_t size = input.memArea()->size(); local
47 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size);
/frameworks/compile/mclinker/lib/Support/
H A DLEB128.cpp18 size_t size = 0; local
25 size++;
28 return size;
68 size_t size = 0; local
82 size++;
85 return size;
181 * version like decode() to save the code size.
H A DMemoryArea.cpp45 size_t MemoryArea::size() const { function in class:mcld::MemoryArea
/frameworks/compile/mclinker/lib/Target/
H A DELFAttributeData.cpp21 size_t size = 0; local
24 leb128::decode<uint64_t>(pBuf, size));
26 if (size > pBufSize)
29 pBuf += size;
30 pBufSize -= size;
40 size_t size = 0; local
41 uint64_t int_value = leb128::decode<uint64_t>(pBuf, size);
44 if (size > pBufSize)
47 pBuf += size;
48 pBufSize -= size;
55 size_t size = pValue.getStringValue().length() + 1 /* '\\0' */; local
[all...]

Completed in 484 milliseconds

1234567891011>>