Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/
DUiElementNodeTest.java80 assertEquals(0, ui.getUiChildren().size()); in testInit()
81 assertEquals(0, ui.getAllUiAttributes().size()); in testInit()
92 assertEquals(0, ui.getUiChildren().size()); in testMandatoryOrder()
96 assertEquals(2, ui.getUiChildren().size()); in testMandatoryOrder()
110 assertEquals(2, ui.getUiChildren().size()); in testMandatoryOrder()
121 assertEquals(0, ui.getUiChildren().size()); in testLoadFrom_InvalidRoot()
124 assertEquals(0, ui.getUiChildren().size()); in testLoadFrom_InvalidRoot()
140 assertEquals(1, ui.getUiChildren().size()); in testLoadFrom_NewTree_1_Node()
141 assertEquals(0, ui.getAllUiAttributes().size()); in testLoadFrom_NewTree_1_Node()
147 assertEquals(0, application.getUiChildren().size()); in testLoadFrom_NewTree_1_Node()
[all …]
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
DGLESbuffer.cpp19 bool GLESbuffer::setBuffer(GLuint size,GLuint usage,const GLvoid* data) { in setBuffer() argument
20 m_size = size; in setBuffer()
26 m_data = new unsigned char[size]; in setBuffer()
29 memcpy(m_data,data,size); in setBuffer()
38 bool GLESbuffer::setSubBuffer(GLint offset,GLuint size,const GLvoid* data) { in setSubBuffer() argument
39 if(offset + size > m_size) return false; in setSubBuffer()
40 memcpy(m_data+offset,data,size); in setSubBuffer()
41 m_conversionManager.addRange(Range(offset,size)); in setSubBuffer()
DRangeManip.cpp23 int size = min_end - max_start; in rangeIntersection() local
24 if(size) { in rangeIntersection()
35 int size = max_end - min_start; in rangeUnion() local
36 if(size) { in rangeUnion()
49 for(int i =0; i< rl.size();i++) { in addRanges()
55 for(int i =0; i< rl.size();i++) { in delRanges()
64 int RangeList::size() const{ in size() function in RangeList
65 return list.size(); in size()
72 if(i > list.size()) return; in erase()
82 for (int i=0;i<(int)list.size();i++) { // i must be signed for i-- below in delRange()
[all …]
/sdk/emulator/opengl/host/tools/emugen/
DTypeFactory.cpp38 static VarConverter * getVarConverter(int size) in getVarConverter() argument
42 switch(size) { in getVarConverter()
51 #define ADD_TYPE(name, size, printformat,ispointer) \ argument
52 …g_varMap.insert(std::pair<std::string, VarType>(name, VarType(g_typeId++, name, &g_var##size , pri…
81 if (str.size() == 0 || str.at(0) == '#') { in initFromFile()
87 if (name.size() == 0) { in initFromFile()
92 std::string size; in initFromFile() local
93 size = getNextToken(str, pos, &last, WHITESPACE); in initFromFile()
94 if (size.size() == 0) { in initFromFile()
101 if (printString.size() == 0) { in initFromFile()
[all …]
DEntryPoint.cpp55 if (str.size() == 0) break; in parseTypeField()
70 if (str.size() == 0) { in parseTypeField()
103 if (linestr.size() == 0) return false; in parse()
130 while (pos < linestr.size() - 1) { in parse()
169 for (size_t i = 0; i < m_vars.size(); i++) { in print()
181 for (size_t i = 0; i < m_vars.size(); i++) { in var()
195 for (size_t i = 0; i < m_vars.size(); i++) { in hasPointers()
215 if (varname.size() == 0) { in setAttribute()
232 if (varname.size() == 0) { in setAttribute()
249 if (varname.size() == 0) { in setAttribute()
[all …]
Dmain.cpp85 if (encoderDir.size() == 0 && in main()
86 decoderDir.size() == 0 && in main()
88 wrapperDir.size() == 0) { in main()
122 if (encoderDir.size() != 0) { in main()
136 if (decoderDir.size() != 0) { in main()
145 if (wrapperDir.size() != 0) { in main()
154 printf("%d functions found\n", int(apiEntries.size())); in main()
155 for (int i = 0; i < apiEntries.size(); i++) { in main()
DApiGen.cpp37 size_t n = this->size(); in findEntryByName()
73 for (size_t i = 0; i < size(); i++) { in genProcTypes()
83 size_t n = evars.size(); in genProcTypes()
116 for (size_t i = 0; i < size(); i++) { in genFuncTable()
145 for (size_t i = 0; i < contextHeaders.size(); i++) { in genContext()
151 for (size_t i = 0; i < size(); i++) { in genContext()
158 for (size_t i = 0; i < size(); i++) { in genContext()
214 for (size_t i = 0; i < size(); i++) { in genEntryPoints()
232 for (size_t i = 0; i < size(); i++) { in genEntryPoints()
242 for (size_t j=0; j<e->vars().size(); j++) { in genEntryPoints()
[all …]
/sdk/emulator/opengl/host/libs/GLESv1_dec/
DGLDecoder.cpp92 void GLDecoder::s_glVertexPointerOffset(void *self, GLint size, GLenum type, GLsizei stride, GLuint… in s_glVertexPointerOffset() argument
95 ctx->glVertexPointer(size, type, stride, SafePointerFromUInt(offset)); in s_glVertexPointerOffset()
98 void GLDecoder::s_glColorPointerOffset(void *self, GLint size, GLenum type, GLsizei stride, GLuint … in s_glColorPointerOffset() argument
101 ctx->glColorPointer(size, type, stride, SafePointerFromUInt(offset)); in s_glColorPointerOffset()
104 void GLDecoder::s_glTexCoordPointerOffset(void *self, GLint size, GLenum type, GLsizei stride, GLui… in s_glTexCoordPointerOffset() argument
107 ctx->glTexCoordPointer(size, type, stride, SafePointerFromUInt(offset)); in s_glTexCoordPointerOffset()
122 void GLDecoder::s_glWeightPointerOffset(void * self, GLint size, GLenum type, GLsizei stride, GLuin… in s_glWeightPointerOffset() argument
125 ctx->glWeightPointerOES(size, type, stride, SafePointerFromUInt(offset)); in s_glWeightPointerOffset()
128 void GLDecoder::s_glMatrixIndexPointerOffset(void * self, GLint size, GLenum type, GLsizei stride, … in s_glMatrixIndexPointerOffset() argument
131 ctx->glMatrixIndexPointerOES(size, type, stride, SafePointerFromUInt(offset)); in s_glMatrixIndexPointerOffset()
[all …]
DGLDecoder.h39 …static void gl_APIENTRY s_glVertexPointerData(void *self, GLint size, GLenum type, GLsizei stride,…
40 …static void gl_APIENTRY s_glVertexPointerOffset(void *self, GLint size, GLenum type, GLsizei strid…
42 …static void gl_APIENTRY s_glColorPointerData(void *self, GLint size, GLenum type, GLsizei stride, …
43 …static void gl_APIENTRY s_glColorPointerOffset(void *self, GLint size, GLenum type, GLsizei stride…
45 …static void gl_APIENTRY s_glTexCoordPointerData(void *self, GLint unit, GLint size, GLenum type, G…
46 …static void gl_APIENTRY s_glTexCoordPointerOffset(void *self, GLint size, GLenum type, GLsizei str…
57 …static void gl_APIENTRY s_glWeightPointerData(void * self, GLint size, GLenum type, GLsizei stride…
58 …static void gl_APIENTRY s_glWeightPointerOffset(void * self, GLint size, GLenum type, GLsizei stri…
60 …static void gl_APIENTRY s_glMatrixIndexPointerData(void * self, GLint size, GLenum type, GLsizei s…
61 …static void gl_APIENTRY s_glMatrixIndexPointerOffset(void * self, GLint size, GLenum type, GLsizei…
Dgl.addon1 GL_ENTRY(void, glVertexPointerOffset, GLint size, GLenum type, GLsizei stride, GLuint offset)
2 GL_ENTRY(void, glColorPointerOffset, GLint size, GLenum type, GLsizei stride, GLuint offset)
5 GL_ENTRY(void, glTexCoordPointerOffset, GLint size, GLenum type, GLsizei stride, GLuint offset)
7 GL_ENTRY(void, glVertexPointerData, GLint size, GLenum type, GLsizei stride, void * data, GLuint d…
8 GL_ENTRY(void, glColorPointerData, GLint size, GLenum type, GLsizei stride, void * data, GLuint da…
10 GL_ENTRY(void, glTexCoordPointerData, GLint size, GLenum type, GLsizei stride, void * data, GLuint…
/sdk/emulator/opengl/shared/emugl/common/
Dpod_vector_unittest.cpp28 EXPECT_EQ(0U, v.size()); in TEST()
35 EXPECT_EQ(1U, v.size()); in TEST()
45 EXPECT_EQ(kMaxCount, v.size()); in TEST()
57 EXPECT_EQ(kMaxCount, v.size()); in TEST()
61 EXPECT_EQ(kMaxCount - n - 1U, v.size()) << "At index " << n; in TEST()
71 EXPECT_EQ(kMaxCount, v.size()); in TEST()
84 EXPECT_EQ(kMaxCount, v.size()); in TEST()
86 EXPECT_EQ(kMaxCount2, v.size()); in TEST()
99 EXPECT_EQ(kMaxCount, v.size()); in TEST()
101 EXPECT_EQ(kMaxCount2, v.size()); in TEST()
[all …]
Did_to_object_map_unittest.cpp41 EXPECT_EQ(0U, map.size()); in TEST()
54 EXPECT_EQ(static_cast<size_t>(kMax), map.size()); in TEST()
76 EXPECT_EQ(static_cast<size_t>(kMax), map.size()); in TEST()
81 EXPECT_EQ(0U, map.size()); in TEST()
93 EXPECT_EQ(static_cast<size_t>(kMax), map.size()); in TEST()
100 EXPECT_EQ(static_cast<size_t>(kMax / 2), map.size()); in TEST()
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/
DRangeManip.h25 Range(int start,int size):m_start(start),m_end(start+size),m_size(size){}; in Range() argument
27 void setRange(int start,int size){m_start = start; m_end = start+size; m_size = size;}; in setRange() argument
58 int size() const;
/sdk/emulator/opengl/shared/OpenglCodecCommon/
DGLSharedGroup.cpp25 BufferData::BufferData(GLsizeiptr size, void * data) : m_size(size) in BufferData() argument
29 if (size > 0) { in BufferData()
30 buffer = m_fixedBuffer.alloc(size); in BufferData()
32 memcpy(buffer, data, size); in BufferData()
65 void ProgramData::setIndexInfo(GLuint index, GLint base, GLint size, GLenum type) in setIndexInfo() argument
70 m_Indexes[index].size = size; in setIndexInfo()
74 m_Indexes[index-1].size; in setIndexInfo()
151 if (elemIndex >= 0 && elemIndex < m_Indexes[i].size) { in locationWARAppToHost()
181 if (elemIndex >= 0 && elemIndex < m_Indexes[i].size) { in setSamplerUniform()
200 size_t n = m_shaders.size(); in attachShader()
[all …]
DGLSharedGroup.h42 BufferData(GLsizeiptr size, void * data);
51 GLint size; member
75 void setIndexInfo(GLuint index, GLint base, GLint size, GLenum type);
90 size_t getNumShaders() const { return m_shaders.size(); } in getNumShaders()
116 void addBufferData(GLuint bufferId, GLsizeiptr size, void * data);
117 void updateBufferData(GLuint bufferId, GLsizeiptr size, void * data);
118 GLenum subUpdateBufferData(GLuint bufferId, GLintptr offset, GLsizeiptr size, void * data);
128 …void setProgramIndexInfo(GLuint program, GLuint index, GLint base, GLint size, GLenum type, con…
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
DGLListProperty.java37 public GLListProperty(GLStateType type, IGLProperty template, int size) { in GLListProperty() argument
41 mList = new ArrayList<IGLProperty>(size); in GLListProperty()
42 for (int i = 0; i < size; i++) { in GLListProperty()
83 for (int i = mList.size(); i < capactiy; i++) { in ensureCapacity()
91 mList.size()); in clone()
167 public int size() { in size() method in GLListProperty
168 return mList.size(); in size()
175 for (int i = 0; i < mList.size(); i++) { in prettyPrint()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSelectionManagerTest.java37 assertEquals(0, manager.getSelections().size()); in testEmpty()
61 assertEquals(3, manager.getSelections().size()); in testBasic()
74 assertEquals(0, manager.getSelections().size()); in testBasic()
78 assertEquals(1, manager.getSelections().size()); in testBasic()
84 assertEquals(3, manager.getSelections().size()); in testBasic()
87 assertEquals(2, manager.getSelections().size()); in testBasic()
89 assertEquals(1, manager.getSelections().size()); in testBasic()
111 assertEquals(1, manager.getSelections().size()); in testSelectParent()
116 assertEquals(1, manager.getSelections().size()); in testSelectParent()
DCanvasViewInfoTest.java96 assertEquals(2, rootView.getChildren().size()); in normal()
142 assertEquals(1, rootView.getChildren().size()); in showIn()
181 assertEquals(2, rootView.getChildren().size()); in testIncludeTag()
197 assertEquals(0, includedView.getChildren().size()); in testIncludeTag()
223 assertEquals(2, rootView.getChildren().size()); in testNoIncludeTag()
239 assertEquals(0, includedView.getChildren().size()); in testNoIncludeTag()
268 assertEquals(3, rootView.getChildren().size()); in testMergeMatching()
295 assertEquals(0, includedView1.getChildren().size()); in testMergeMatching()
296 assertEquals(0, includedView2.getChildren().size()); in testMergeMatching()
323 assertEquals(2, rootView.getChildren().size()); in testMerge()
[all …]
/sdk/emulator/opengl/host/libs/Translator/GLES_CM/
DGLEScmValidate.cpp63 bool GLEScmValidate::vertexPointerParams(GLint size,GLsizei stride) { in vertexPointerParams() argument
64 return ((size >=2) && (size <= 4)) && (stride >=0) ; in vertexPointerParams()
67 bool GLEScmValidate::colorPointerParams(GLint size,GLsizei stride) { in colorPointerParams() argument
68 return ((size >=3) && (size <= 4)) && (stride >=0) ; in colorPointerParams()
71 bool GLEScmValidate::texCoordPointerParams(GLint size,GLsizei stride) { in texCoordPointerParams() argument
72 return ((size >=2) && (size <= 4)) && (stride >=0) ; in texCoordPointerParams()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/sdk/
DAndroidJarLoaderTest.java58 assertEquals(0, map.size()); in testPreLoadClasses()
64 assertEquals(4, data.size()); in testPreLoadClasses()
71 assertEquals(0, map.size()); in testPreLoadClasses_classNotFound()
73 assertEquals(0, data.size()); in testPreLoadClasses_classNotFound()
83 assertEquals(2, map.size()); in testFindClass_classFound()
121 assertEquals(2, found.size()); in testFindClassesDerivingFrom()
127 assertEquals(1, found.get("jar.example.Class1").size()); //$NON-NLS-1$ in testFindClassesDerivingFrom()
128 assertEquals(0, found.get("jar.example.Class2").size()); //$NON-NLS-1$ in testFindClassesDerivingFrom()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcompletion1-expected-completion4.txt3 …nt Pixels</b> - this is like the dp unit, but it is also scaled by the user's font size preference.
4 50pt : <b>Points</b> - 1/72 of an inch based on the physical size of the screen.
5 50mm : <b>Millimeters</b> - based on the physical size of the screen.
6 50in : <b>Inches</b> - based on the physical size of the screen.
Dcompletionvalues1-expected-completion66.txt3 …nt Pixels</b> - this is like the dp unit, but it is also scaled by the user's font size preference.
4 17pt : <b>Points</b> - 1/72 of an inch based on the physical size of the screen.
5 17mm : <b>Millimeters</b> - based on the physical size of the screen.
6 17in : <b>Inches</b> - based on the physical size of the screen.
Dcompletionvalues1-expected-completion67.txt3 …nt Pixels</b> - this is like the dp unit, but it is also scaled by the user's font size preference.
4 17pt : <b>Points</b> - 1/72 of an inch based on the physical size of the screen.
5 17mm : <b>Millimeters</b> - based on the physical size of the screen.
6 17in : <b>Inches</b> - based on the physical size of the screen.
Dcompletionvalues1-expected-completion24.txt3 …nt Pixels</b> - this is like the dp unit, but it is also scaled by the user's font size preference.
4 17pt : <b>Points</b> - 1/72 of an inch based on the physical size of the screen.
5 17mm : <b>Millimeters</b> - based on the physical size of the screen.
6 17in : <b>Inches</b> - based on the physical size of the screen.
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DDynamicContextMenu.java162 if (selections.size() == 0) { in populateDynamicContextMenu()
165 List<INode> nodes = new ArrayList<INode>(selections.size()); in populateDynamicContextMenu()
197 List<IContributionItem> items = new ArrayList<IContributionItem>(availableIds.size() + 10); in getMenuItems()
222 if (selection.size() == 1) { in insertParentItems()
246 if (selection.size() == 0) { in insertVisualRefactorings()
252 if (selection.size() == 1 && selection.get(0).getViewInfo() != null in insertVisualRefactorings()
256 if (children.size() == 2) { in insertVisualRefactorings()
269 if (selection.size() == 1 && !(selection.get(0).isRoot())) { in insertVisualRefactorings()
272 if (selection.size() == 1 && (selection.get(0).isLayout() || in insertVisualRefactorings()
285 if (selection.size() == 0) { in insertTagSpecificMenus()
[all …]

12345678910>>...17