Searched defs:size (Results 1 - 25 of 70) sorted by relevance

123

/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/
H A DFormatUtils.java27 * Converts a byte size to a human readable string,
30 * @param size The byte size to convert.
31 * @return A new non-null string, with the size expressed in either Bytes
34 public static @NonNull String byteSizeToString(long size) { argument
37 if (size < 1024) {
38 sizeStr = String.format("%d Bytes", size);
39 } else if (size < 1024 * 1024) {
40 sizeStr = String.format("%d KiB", Math.round(size / 1024.0));
41 } else if (size < 102
[all...]
H A DSparseIntArray.java131 public int size() { method in class:SparseIntArray
136 * Given an index in the range <code>0...size()-1</code>, returns
145 * Given an index in the range <code>0...size()-1</code>, returns
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
H A DTraceFileInfo.java24 public TraceFileInfo(String path, long size, long lastModified) { argument
26 mSize = size;
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
H A DGLESbuffer.cpp19 bool GLESbuffer::setBuffer(GLuint size,GLuint usage,const GLvoid* data) { argument
20 m_size = size;
26 m_data = new unsigned char[size];
29 memcpy(m_data,data,size);
38 bool GLESbuffer::setSubBuffer(GLint offset,GLuint size,const GLvoid* data) { argument
39 if(offset + size > m_size) return false;
40 memcpy(m_data+offset,data,size);
41 m_conversionManager.addRange(Range(offset,size));
H A DRangeManip.cpp23 int size = min_end - max_start; local
24 if(size) {
35 int size = max_end - min_start; local
36 if(size) {
48 for(int i =0; i< rl.size();i++) {
54 for(int i =0; i< rl.size();i++) {
63 int RangeList::size() const{ function in class:RangeList
64 return list.size();
71 if(i > list.size()) return;
81 for (int i=0;i<(int)list.size();
[all...]
H A DTextureUtils.cpp64 const size_t size = bpr * height; local
66 etc1_byte* pOut = new etc1_byte[size];
H A DGLESpointer.cpp84 void GLESpointer::setArray(GLint size,GLenum type,GLsizei stride,const GLvoid* data,bool normalize) { argument
85 m_size = size;
95 void GLESpointer::setBuffer(GLint size,GLenum type,GLsizei stride,GLESbuffer* buf,GLuint bufferName,int offset,bool normalize) { argument
96 m_size = size;
/sdk/emulator/opengl/shared/OpenglCodecCommon/
H A DFixedBuffer.h32 void * alloc(size_t size) { argument
33 if (m_bufferLen >= size)
39 m_bufferLen = size;
H A DSocketStream.cpp86 int SocketStream::commitBuffer(size_t size) argument
88 return writeFully(m_buf, size);
91 int SocketStream::writeFully(const void* buffer, size_t size) argument
95 size_t res = size;
99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0);
H A DGLSharedGroup.h42 BufferData(GLsizeiptr size, void * data);
51 GLint size; member in struct:ProgramData::_IndexInfo
75 void setIndexInfo(GLuint index, GLint base, GLint size, GLenum type);
90 size_t getNumShaders() const { return m_shaders.size(); }
114 void addBufferData(GLuint bufferId, GLsizeiptr size, void * data);
115 void updateBufferData(GLuint bufferId, GLsizeiptr size, void * data);
116 GLenum subUpdateBufferData(GLuint bufferId, GLintptr offset, GLsizeiptr size, void * data);
126 void setProgramIndexInfo(GLuint program, GLuint index, GLint base, GLint size, GLenum type, const char* name);
H A DWin32PipeStream.cpp98 4096, // input buffer size
99 4096, // output buffer size
174 int Win32PipeStream::commitBuffer(size_t size) argument
179 size_t res = size;
184 if (! ::WriteFile(m_pipe, (const char *)m_buf + (size - res), res, &written, NULL)) {
H A DglUtils.cpp332 int size, GLenum type, unsigned int stride,
335 unsigned int vsize = size * glSizeof(type);
350 int size, GLenum type, unsigned int stride,
355 unsigned int vsize = size * glSizeof(type);
331 glUtilsPackPointerData(unsigned char *dst, unsigned char *src, int size, GLenum type, unsigned int stride, unsigned int datalen) argument
349 glUtilsWritePackPointerData(void* _stream, unsigned char *src, int size, GLenum type, unsigned int stride, unsigned int datalen) argument
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/
H A DRangeManip.h25 Range(int start,int size):m_start(start),m_end(start+size),m_size(size){}; argument
27 void setRange(int start,int size){m_start = start; m_end = start+size; m_size = size;}; argument
58 int size() const;
/sdk/chimpchat/src/com/android/chimpchat/adb/image/
H A DCaptureRawAndConvertedImage.java38 public int size; field in class:CaptureRawAndConvertedImage.ChimpRawImage
55 size = rawImage.size;
75 rawImage.size = size;
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/
H A DNativeHeapLabelProvider.java88 private String getPercentageString(long size, long total) { argument
93 return String.format("%.1f%%", (float)(size * 100)/(float)total);
105 * Set the total size of the heap dump for use in percentage calculations.
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
H A DLocaleDetector.java209 StringValue(int size, String string) { argument
210 super(size);
/sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/
H A DLabelView.java86 // Must manually scale the desired text size to match screen density
103 * Sets the text size for this label
104 * @param size Font size
106 public void setTextSize(int size) { argument
107 // This text size has been pre-scaled by the getDimensionPixelOffset method
108 mTextPaint.setTextSize(size);
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
H A DNativeAllocationInfo.java28 * <p/>Contains number of allocations, their size and the stack trace.
73 * @param size The size of the allocations.
76 public NativeAllocationInfo(int size, int allocations) { argument
77 this.mSize = size & ~FLAG_MASK;
78 this.mIsZygoteChild = ((size & FLAG_ZYGOTE_CHILD) != 0);
91 * Returns the total size of this allocation.
142 mIsStackCallResolved = mResolvedStackCall.size() != 0;
173 // quick compare of size, alloc, and stackcall size
[all...]
H A DRawImage.java27 public int size; field in class:RawImage
56 this.size = buf.getInt();
71 this.size = buf.getInt();
115 * Returns the size of the header for a specific version of the framebuffer adb protocol.
122 return 3; // size, width, height
124 return 12; // bpp, size, width, height, 4*(length, offset)
138 rotated.size = this.size;
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/
H A DLogCatReceiver.java165 if (newMessages.size() > 0) {
168 deletedMessages = mLogMessages.ensureSpace(newMessages.size());
211 * @param size new size
213 public void resizeFifo(int size) { argument
214 mLogMessages.resize(size);
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
H A DGLListProperty.java33 * Construct a list of properties of given size from the provided template.
35 * @param size size of the list
37 public GLListProperty(GLStateType type, IGLProperty template, int size) { argument
41 mList = new ArrayList<IGLProperty>(size);
42 for (int i = 0; i < size; i++) {
83 for (int i = mList.size(); i < capactiy; i++) {
91 mList.size());
167 public int size() { method in class:GLListProperty
168 return mList.size();
[all...]
/sdk/emulator/opengl/host/libs/GLESv2_dec/
H A DGL2Decoder.cpp102 void GL2Decoder::s_glVertexAttribPointerData(void *self, GLuint indx, GLint size, GLenum type, argument
110 ctx->glVertexAttribPointer(indx, size, type, normalized, 0, ctx->m_contextData->pointerData(indx));
114 void GL2Decoder::s_glVertexAttribPointerOffset(void *self, GLuint indx, GLint size, GLenum type, argument
118 ctx->glVertexAttribPointer(indx, size, type, normalized, stride, (GLvoid *)data);
/sdk/emulator/opengl/host/libs/Translator/GLES_V2/
H A DGLESv2Context.cpp99 unsigned int size = p->getSize(); local
104 setupArr(currentArr.data,array_id,currentArr.type,size,currentArr.stride, p->getNormalized());
108 size,p->getStride(), p->getNormalized());
114 void GLESv2Context::setupArr(const GLvoid* arr,GLenum arrayType,GLenum dataType,GLint size,GLsizei stride,GLboolean normalized, int index){ argument
116 s_glDispatch.glVertexAttribPointer(arrayType,size,dataType,normalized,stride,arr);
/sdk/emulator/opengl/host/tools/emugen/
H A DTypeFactory.cpp38 static VarConverter * getVarConverter(int size) argument
42 switch(size) {
51 #define ADD_TYPE(name, size, printformat,ispointer) \
52 g_varMap.insert(std::pair<std::string, VarType>(name, VarType(g_typeId++, name, &g_var##size , printformat , ispointer)));
81 if (str.size() == 0 || str.at(0) == '#') {
87 if (name.size() == 0) {
92 std::string size; local
93 size = getNextToken(str, pos, &last, WHITESPACE);
94 if (size.size()
[all...]
/sdk/emulator/qtools/
H A Dhash_table.h12 HashTable(int size, T default_value = T());
42 HashTable<T>::HashTable(int size, T default_value) argument
46 // Round up size to a power of two
47 for (pow2 = 2; pow2 < size; pow2 <<= 1)

Completed in 346 milliseconds

123