Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 25 of 1143) sorted by relevance

12345678910>>...46

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DEnumMapTest.java33 enum Size { enum in EnumMapTest
90 new EnumMap(Size.Big.getClass()); in test_ConstructorLjava_lang_Class()
117 EnumMap enumSizeMap = new EnumMap(Size.class); in test_ConstructorLjava_lang_Class()
119 Size.Big, 2)); in test_ConstructorLjava_lang_Class()
121 enumSizeMap.get(Size.Big)); in test_ConstructorLjava_lang_Class()
129 enumSizeMap = new EnumMap(Size.Middle.getClass()); in test_ConstructorLjava_lang_Class()
131 Size.Small, 1)); in test_ConstructorLjava_lang_Class()
133 enumSizeMap.get(Size.Small)); in test_ConstructorLjava_lang_Class()
169 enumMap.put(Size.Middle, 2); in test_ConstructorLjava_util_EnumMap()
216 hashColorMap.put(Size.Big, 3); in test_ConstructorLjava_util_Map()
[all …]
/external/eigen/Eigen/src/Core/
DVectorBlock.h48 template<typename VectorType, int Size>
49 struct traits<VectorBlock<VectorType, Size> >
51 traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
52 traits<VectorType>::Flags & RowMajorBit ? Size : 1> >
57 template<typename VectorType, int Size> class VectorBlock
59 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
60 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1>
63 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
64 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1> Base;
204 template<int Size>
[all …]
/external/llvm/lib/Support/
DAllocator.cpp58 End = ((char*)CurSlab) + CurSlab->Size; in StartNewSlab()
69 sys::Memory::setRangeWritable(Slab + 1, Slab->Size - sizeof(MemSlab)); in DeallocateSlabs()
70 memset(Slab + 1, 0xCD, Slab->Size - sizeof(MemSlab)); in DeallocateSlabs()
85 End = ((char*)CurSlab) + CurSlab->Size; in Reset()
91 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) { in Allocate() argument
96 BytesAllocated += Size; in Allocate()
105 if (Ptr + Size <= End) { in Allocate()
106 CurPtr = Ptr + Size; in Allocate()
110 __msan_allocated_memory(Ptr, Size); in Allocate()
115 size_t PaddedSize = Size + sizeof(MemSlab) + Alignment - 1; in Allocate()
[all …]
Draw_ostream.cpp80 if (size_t Size = preferred_buffer_size()) in SetBuffered() local
81 SetBufferSize(Size); in SetBuffered()
87 void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size, in SetBufferAndMode() argument
89 assert(((Mode == Unbuffered && BufferStart == 0 && Size == 0) || in SetBufferAndMode()
90 (Mode != Unbuffered && BufferStart && Size)) && in SetBufferAndMode()
99 OutBufEnd = OutBufStart+Size; in SetBufferAndMode()
288 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) { in write() argument
290 if (LLVM_UNLIKELY(size_t(OutBufEnd - OutBufCur) < Size)) { in write()
293 write_impl(Ptr, Size); in write()
298 return write(Ptr, Size); in write()
[all …]
DFormattedStream.cpp23 static unsigned CountColumns(unsigned Column, const char *Ptr, size_t Size) { in CountColumns() argument
27 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { in CountColumns()
41 void formatted_raw_ostream::ComputeColumn(const char *Ptr, size_t Size) { in ComputeColumn() argument
45 if (Ptr <= Scanned && Scanned <= Ptr + Size) { in ComputeColumn()
49 Size - (Scanned - Ptr)); in ComputeColumn()
51 ColumnScanned = CountColumns(ColumnScanned, Ptr, Size); in ComputeColumn()
54 Scanned = Ptr + Size; in ComputeColumn()
70 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) { in write_impl() argument
72 ComputeColumn(Ptr, Size); in write_impl()
76 TheStream->write(Ptr, Size); in write_impl()
DFoldingSet.cpp31 return static_cast<unsigned>(hash_combine_range(Data, Data+Size)); in ComputeHash()
35 if (Size != RHS.Size) return false; in operator ==()
36 return memcmp(Data, RHS.Data, Size*sizeof(*Data)) == 0; in operator ==()
42 if (Size != RHS.Size) in operator <()
43 return Size < RHS.Size; in operator <()
44 return memcmp(Data, RHS.Data, Size*sizeof(*Data)) < 0; in operator <()
88 unsigned Size = String.size(); in AddString() local
89 Bits.push_back(Size); in AddString()
90 if (!Size) return; in AddString()
92 unsigned Units = Size / 4; in AddString()
[all …]
/external/llvm/include/llvm/Support/
DAlignOf.h74 template<std::size_t Alignment, std::size_t Size>
76 alignas(Alignment) char buffer[Size];
81 template<std::size_t Alignment, std::size_t Size>
85 template<std::size_t Size> \
86 struct AlignedCharArray<x, Size> { \
87 __attribute__((aligned(x))) char buffer[Size]; \
108 template<std::size_t Alignment, std::size_t Size>
119 template<std::size_t Size>
120 struct AlignedCharArray<1, Size> {
123 char buffer[Size];
[all …]
Draw_ostream.h96 void SetBufferSize(size_t Size) { in SetBufferSize() argument
98 SetBufferAndMode(new char[Size], Size, InternalBuffer); in SetBufferSize()
156 size_t Size = Str.size();
159 if (OutBufCur+Size > OutBufEnd)
160 return write(Str.data(), Size);
162 memcpy(OutBufCur, Str.data(), Size);
163 OutBufCur += Size;
202 raw_ostream &write(const char *Ptr, size_t Size);
260 virtual void write_impl(const char *Ptr, size_t Size) = 0;
274 void SetBuffer(char *BufferStart, size_t Size) { in SetBuffer() argument
[all …]
DAllocator.h36 void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); }
55 size_t Size;
67 virtual MemSlab *Allocate(size_t Size) = 0;
82 virtual MemSlab *Allocate(size_t Size) LLVM_OVERRIDE;
150 void *Allocate(size_t Size, size_t Alignment);
207 (char *)Slab + Slab->Size;
226 inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
236 return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
/external/eigen/test/
Dgeo_homogeneous.cpp13 template<typename Scalar,int Size> void homogeneous(void) in homogeneous()
19 typedef Matrix<Scalar,Size,Size> MatrixType; in homogeneous()
20 typedef Matrix<Scalar,Size,1, ColMajor> VectorType; in homogeneous()
22 typedef Matrix<Scalar,Size+1,Size> HMatrixType; in homogeneous()
23 typedef Matrix<Scalar,Size+1,1> HVectorType; in homogeneous()
25 typedef Matrix<Scalar,Size,Size+1> T1MatrixType; in homogeneous()
26 typedef Matrix<Scalar,Size+1,Size+1> T2MatrixType; in homogeneous()
27 typedef Matrix<Scalar,Size+1,Size> T3MatrixType; in homogeneous()
45 hm0.row(Size-1).setRandom(); in homogeneous()
46 for(int j=0; j<Size; ++j) in homogeneous()
[all …]
/external/eigen/Eigen/src/Eigen2Support/
DVectorBlock.h54 template<int Size>
55 inline VectorBlock<Derived,Size>
59 return VectorBlock<Derived,Size>(derived(), 0); in start()
64 template<int Size>
65 inline const VectorBlock<const Derived,Size>
69 return VectorBlock<const Derived,Size>(derived(), 0); in start()
74 template<int Size>
75 inline VectorBlock<Derived,Size>
79 return VectorBlock<Derived, Size>(derived(), size() - Size); in end()
84 template<int Size>
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutexset_test.cc29 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
32 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
35 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
39 EXPECT_EQ(mset.Size(), (uptr)2); in TEST()
43 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
45 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
51 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
55 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
59 EXPECT_EQ(mset.Size(), (uptr)1); in TEST()
63 EXPECT_EQ(mset.Size(), (uptr)0); in TEST()
[all …]
/external/llvm/lib/Target/ARM/
DARMMachineFunctionInfo.h196 int Size = GPRCS1Frames.size(); in addGPRCalleeSavedArea1Frame() local
197 if (fi >= Size) { in addGPRCalleeSavedArea1Frame()
198 Size *= 2; in addGPRCalleeSavedArea1Frame()
199 if (fi >= Size) in addGPRCalleeSavedArea1Frame()
200 Size = fi+1; in addGPRCalleeSavedArea1Frame()
201 GPRCS1Frames.resize(Size); in addGPRCalleeSavedArea1Frame()
208 int Size = GPRCS2Frames.size(); in addGPRCalleeSavedArea2Frame() local
209 if (fi >= Size) { in addGPRCalleeSavedArea2Frame()
210 Size *= 2; in addGPRCalleeSavedArea2Frame()
211 if (fi >= Size) in addGPRCalleeSavedArea2Frame()
[all …]
/external/llvm/lib/IR/
DIRBuilder.cpp64 CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, in CreateMemSet() argument
67 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemSet()
68 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet()
82 CreateMemCpy(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemCpy() argument
87 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemCpy()
88 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemCpy()
106 CreateMemMove(Value *Dst, Value *Src, Value *Size, unsigned Align, in CreateMemMove() argument
111 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove()
112 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove()
125 CallInst *IRBuilderBase::CreateLifetimeStart(Value *Ptr, ConstantInt *Size) { in CreateLifetimeStart() argument
[all …]
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h114 uint64_t Size; member
121 : Ptr(P), Size(S), TBAATag(N) {} in Ptr()
131 Copy.Size = NewSize; in getWithNewSize()
372 const Value *P, uint64_t Size) { in getModRefInfo() argument
373 return getModRefInfo(I, Location(P, Size)); in getModRefInfo()
383 const Value *P, uint64_t Size) { in getModRefInfo() argument
384 return getModRefInfo(CS, Location(P, Size)); in getModRefInfo()
394 ModRefResult getModRefInfo(const CallInst *C, const Value *P, uint64_t Size) { in getModRefInfo() argument
395 return getModRefInfo(C, Location(P, Size)); in getModRefInfo()
407 const Value *P, uint64_t Size) { in getModRefInfo() argument
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCameraParameters.java28 public Camera.Size getPictureSize() { in getPictureSize()
29 Camera.Size pictureSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPictureSize()
52 public Camera.Size getPreviewSize() { in getPreviewSize()
53 Camera.Size previewSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in getPreviewSize()
60 public List<Camera.Size> getSupportedPictureSizes() { in getSupportedPictureSizes()
61 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPictureSizes()
102 public List<Camera.Size> getSupportedPreviewSizes() { in getSupportedPreviewSizes()
103 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPreviewSizes()
153 private void addSize(List<Camera.Size> sizes, int width, int height) { in addSize()
154 Camera.Size newSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); in addSize()
/external/llvm/tools/llvm-objdump/
DMCFunction.cpp38 uint64_t Size; in createFunctionFromMC() local
52 for (;Index < End; Index += Size) { in createFunctionFromMC()
56 if (DisAsm->getInstruction(Inst, Size, Region, Index, DebugOut, nulls())){ in createFunctionFromMC()
57 Instructions.push_back(MCDecodedInst(Index, Size, Inst)); in createFunctionFromMC()
59 uint64_t targ = Ana->evaluateBranch(Inst, Index, Size); in createFunctionFromMC()
60 if (targ != -1ULL && targ == Index+Size) in createFunctionFromMC()
68 WorkList.push_back(Index+Size); in createFunctionFromMC()
70 Splits.insert(Index+Size); in createFunctionFromMC()
74 Splits.insert(Index+Size); in createFunctionFromMC()
77 uint64_t targ = Ana->evaluateBranch(Inst, Index, Size); in createFunctionFromMC()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DDIE.cpp137 << ", Size: " << Size << "\n"; in print()
144 O << "Size: " << Size << "\n"; in print()
194 unsigned Size = ~0U; in EmitValue() local
204 case dwarf::DW_FORM_data1: Size = 1; break; in EmitValue()
206 case dwarf::DW_FORM_data2: Size = 2; break; in EmitValue()
209 case dwarf::DW_FORM_data4: Size = 4; break; in EmitValue()
211 case dwarf::DW_FORM_data8: Size = 8; break; in EmitValue()
217 Size = Asm->getDataLayout().getPointerSize(); break; in EmitValue()
220 Asm->OutStreamer.EmitIntValue(Integer, Size); in EmitValue()
326 if (!Size) { in ComputeSize()
[all …]
/external/clang/include/clang/Lex/
DLexer.h426 static inline char getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, in getCharAndSizeNoWarn() argument
431 Size = 1; in getCharAndSizeNoWarn()
435 Size = 0; in getCharAndSizeNoWarn()
436 return getCharAndSizeSlowNoWarn(Ptr, Size, LangOpts); in getCharAndSizeNoWarn()
507 unsigned Size = 0; in getAndAdvanceChar() local
508 char C = getCharAndSizeSlow(Ptr, Size, &Tok); in getAndAdvanceChar()
509 Ptr += Size; in getAndAdvanceChar()
517 const char *ConsumeChar(const char *Ptr, unsigned Size, Token &Tok) { in ConsumeChar() argument
519 if (Size == 1) in ConsumeChar()
520 return Ptr+Size; in ConsumeChar()
[all …]
/external/chromium/chrome/browser/notifications/
Dballoon.h42 virtual gfx::Size GetSize() const = 0;
68 const gfx::Size& content_size() const { return content_size_; } in content_size()
69 void set_content_size(const gfx::Size& size) { content_size_ = size; } in set_content_size()
73 const gfx::Size& min_scrollbar_size() const { return min_scrollbar_size_; } in min_scrollbar_size()
74 void set_min_scrollbar_size(const gfx::Size& size) { in set_min_scrollbar_size()
81 void SetContentPreferredSize(const gfx::Size& size);
93 gfx::Size GetViewSize() const { return balloon_view_->GetSize(); } in GetViewSize()
126 gfx::Size content_size_;
133 gfx::Size min_scrollbar_size_;
/external/llvm/tools/lli/
DRemoteTarget.cpp23 bool RemoteTarget::allocateSpace(size_t Size, unsigned Alignment, in allocateSpace() argument
26 sys::MemoryBlock Mem = sys::Memory::AllocateRWX(Size, Prev, &ErrorMsg); in allocateSpace()
37 bool RemoteTarget::loadData(uint64_t Address, const void *Data, size_t Size) { in loadData() argument
38 memcpy ((void*)Address, Data, Size); in loadData()
42 bool RemoteTarget::loadCode(uint64_t Address, const void *Data, size_t Size) { in loadCode() argument
43 memcpy ((void*)Address, Data, Size); in loadCode()
44 sys::MemoryBlock Mem((void*)Address, Size); in loadCode()
/external/llvm/include/llvm/ADT/
DBitVector.h33 unsigned Size; // Size of bitvector in bits. variable
74 BitVector() : Size(0), Capacity(0) { in BitVector()
80 explicit BitVector(unsigned s, bool t = false) : Size(s) { in Size() function
89 BitVector(const BitVector &RHS) : Size(RHS.size()) { in BitVector()
90 if (Size == 0) { in BitVector()
103 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector()
113 bool empty() const { return Size == 0; } in empty()
116 unsigned size() const { return Size; } in size()
168 if (Prev >= Size) in find_next()
199 Size = 0; in clear()
[all …]
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp348 bool llvm::getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout *TD, in getObjectSize() argument
361 Size = 0; in getObjectSize()
363 Size = (ObjSize - Offset).getZExtValue(); in getObjectSize()
371 bool llvm::getUnderlyingObjectSize(const Value *Ptr, uint64_t &Size, in getUnderlyingObjectSize() argument
383 Size = Data.first.getZExtValue(); in getUnderlyingObjectSize()
394 APInt ObjectSizeOffsetVisitor::align(APInt Size, uint64_t Align) { in align() argument
396 return APInt(IntTyBits, RoundUpToAlignment(Size.getZExtValue(), Align)); in align()
397 return Size; in align()
453 APInt Size(IntTyBits, TD->getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst() local
455 return std::make_pair(align(Size, I.getAlignment()), Zero); in visitAllocaInst()
[all …]
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp83 unsigned long long Size = 0; in LayoutOverrideSource() local
84 (void)LineStr.getAsInteger(10, Size); in LayoutOverrideSource()
85 CurrentLayout.Size = Size; in LayoutOverrideSource()
108 unsigned long long Size = 0; in LayoutOverrideSource() local
109 (void)LineStr.getAsInteger(10, Size); in LayoutOverrideSource()
110 CurrentLayout.Size = Size; in LayoutOverrideSource()
157 uint64_t &Size, uint64_t &Alignment, in layoutRecordType() argument
186 Size = Known->second.Size; in layoutRecordType()
197 OS << " Size:" << L->second.Size << '\n'; in dump()
/external/llvm/lib/ExecutionEngine/MCJIT/
DSectionMemoryManager.cpp32 uint8_t *SectionMemoryManager::allocateDataSection(uintptr_t Size, in allocateDataSection() argument
37 return allocateSection(RODataMem, Size, Alignment); in allocateDataSection()
38 return allocateSection(RWDataMem, Size, Alignment); in allocateDataSection()
41 uint8_t *SectionMemoryManager::allocateCodeSection(uintptr_t Size, in allocateCodeSection() argument
44 return allocateSection(CodeMem, Size, Alignment); in allocateCodeSection()
48 uintptr_t Size, in allocateSection() argument
55 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1)/Alignment + 1); in allocateSection()
68 MemGroup.FreeMem[i] = sys::MemoryBlock((void*)(Addr + Size), in allocateSection()
69 EndOfBlock - Addr - Size); in allocateSection()
106 unsigned FreeSize = EndOfBlock-Addr-Size; in allocateSection()
[all …]

12345678910>>...46