Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
DASCIICharsetEncoderTest.java85 ByteBuffer out = ByteBuffer.allocate(10); in testMultiStepEncode()
90 out = ByteBuffer.allocate(10); in testMultiStepEncode()
121 ByteBuffer bb = ByteBuffer.allocate(0x10); in testEncodeMapping()
134 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState()
156 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Reset()
164 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Reset()
171 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Reset()
183 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Encoding()
190 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Encoding()
198 ByteBuffer out = ByteBuffer.allocate(0x10); in testInternalState_Encoding()
[all …]
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DSSLEngineTest.java96 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap01()
124 ByteBuffer[] bbA = { null, ByteBuffer.allocate(10), null }; in testWrap02()
126 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap02()
139 bbA[0] = ByteBuffer.allocate(100); in testWrap02()
140 bbA[2] = ByteBuffer.allocate(20); in testWrap02()
156 ByteBuffer bbs = ByteBuffer.allocate(100); in testWrap03()
157 ByteBuffer bbd = ByteBuffer.allocate(10); in testWrap03()
187 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap04()
190 SSLEngineResult res = e.wrap(bb, ByteBuffer.allocate(10)); in testWrap04()
204 ByteBuffer bb = ByteBuffer.allocate(10); in testWrap05()
[all …]
/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/
DCharsetDecoderTest.java214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); in implTestDecodeByteBuffer()
309 CharBuffer out = CharBuffer.allocate(100); in implTestDecodeByteBufferCharBuffer()
363 out = CharBuffer.allocate(4); in implTestDecodeByteBufferCharBuffer()
370 out = CharBuffer.allocate(100); in implTestDecodeByteBufferCharBuffer()
374 out = CharBuffer.allocate(100); in implTestDecodeByteBufferCharBuffer()
409 CharBuffer out = CharBuffer.allocate(50); in implTestDecodeCharBufferByteBufferUnmappedException()
463 CharBuffer out = CharBuffer.allocate(getString().length() * 3); in implTestDecodeCharBufferByteBufferMalformedException()
512 CharBuffer out = CharBuffer.allocate(50); in implTestDecodeCharBufferByteBufferException()
572 CharBuffer out = CharBuffer.allocate(10); in testFlush()
581 .flush(CharBuffer.allocate(10))); in testFlush()
[all …]
DCharsetEncoderTest.java278 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); in testResetIllegalState()
280 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); in testResetIllegalState()
286 ByteBuffer out = ByteBuffer.allocate(5); in testFlushIllegalState()
314 ByteBuffer out = ByteBuffer.allocate(5); in testFlushAfterConstructing()
351 ByteBuffer.allocate(30), true); in testEncodeFacadeIllegalState()
358 ByteBuffer.allocate(30), false); in testEncodeFacadeIllegalState()
365 ByteBuffer.allocate(30), true); in testEncodeFacadeIllegalState()
366 encoder.flush(ByteBuffer.allocate(10)); in testEncodeFacadeIllegalState()
374 ByteBuffer out = ByteBuffer.allocate(5); in testEncodeTrueIllegalState()
386 ByteBuffer.allocate(30), true); in testEncodeTrueIllegalState()
[all …]
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/
DPoolAlloc.h146 void* allocate(size_t numBytes);
267 void* allocate(size_type n) { in allocate() function
268 return getAllocator().allocate(n); in allocate()
270 void* allocate(size_type n, const void*) { in allocate() function
271 return getAllocator().allocate(n); in allocate()
275 pointer allocate(size_type n) { in allocate() function
276 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
278 pointer allocate(size_type n, const void*) { in allocate() function
279 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
/external/stlport/stlport/stl/
D_alloc.h67 static void* _STLP_CALL allocate(size_t __n)
92 static void* _STLP_CALL allocate(size_t __n) { return __stl_new(__n); } in allocate() function
133 static void* _STLP_CALL allocate(size_t);
157 static void* _STLP_CALL allocate(size_t& __n) in allocate() function
301 _Tp* allocate(size_type __n, const void* = 0) {
307 _Tp* __ret = __REINTERPRET_CAST(_Tp*, __sgi_alloc::allocate(__buf_size));
348 _Tp* __ret = __REINTERPRET_CAST(_Tp*, __sgi_alloc::allocate(__buf_size)); in _M_allocate()
525 _Tp* allocate(size_type __n, size_type& __allocated_n) {
531 return allocate(__n, __allocated_n, _STLportAlloc());
538 _Tp* allocate(size_type __n)
[all …]
D_pthread_alloc.h76 static void * _STLP_CALL allocate(size_t& __n);
83 static void * _STLP_CALL allocate(size_t& __n, __state_type* __a);
129 _Tp* allocate(size_type __n, const void* = 0) {
135 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size));
168 _Tp* allocate(size_type __n, size_type& __allocated_n) { in allocate() function
174 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size)); in allocate()
312 _Tp* allocate(size_type __n, const void* = 0) {
318 _Tp* __ret = __REINTERPRET_CAST(_Tp*, _S_Alloc::allocate(__buf_size, _M_state));
354 _Tp* allocate(size_type __n, size_type& __allocated_n) {
360 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size, _M_state));
/external/replicaisland/src/com/replica/replicaisland/
DPhysicsComponent.java75 Vector2 newVelocity = vectorPool.allocate(currentVelocity); in update()
135 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision()
139 Vector2 relativeVelocity = vectorPool.allocate(velocity); in resolveCollision()
154 Vector2 entity1Adjust = vectorPool.allocate(collisionNormal); in resolveCollision()
174 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision()
177 Vector2 entity1Velocity = vectorPool.allocate(velocity); in resolveCollision()
180 Vector2 entity2Velocity = vectorPool.allocate(otherVelocity); in resolveCollision()
183 Vector2 relativeVelocity = vectorPool.allocate(entity1Velocity); in resolveCollision()
199 Vector2 entity1Adjust = vectorPool.allocate(collisionNormal); in resolveCollision()
DDrawableFactory.java45 return mBitmapPool.allocate(); in allocateDrawableBitmap()
49 return mTiledBackgroundVertexGridPool.allocate(); in allocateTiledBackgroundVertexGrid()
53 return mScrollableBitmapPool.allocate(); in allocateScrollableBitmap()
91 public DrawableBitmap allocate() { in allocate() method in DrawableFactory.DrawableBitmapPool
92 DrawableBitmap result = super.allocate(); in allocate()
DTObjectPool.java35 public T allocate() { in allocate() method in TObjectPool
36 T object = (T)super.allocate(); in allocate()
/external/clang/test/Rewriter/
Dobjc-modern-metadata-visibility.mm27 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_…
28 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long OBJC_IVAR_$_Sub$PrivateIvar;
29 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_…
31 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O…
32 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllexport) unsigned long int O…
33 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long int OBJC_IVAR_$_Sub$Private…
/external/valgrind/main/memcheck/tests/
Dmempool.c99 char *allocate(pool *p, int size) in allocate() function
121 x1 = allocate(p, 10); in test()
122 x2 = allocate(p, 20); in test()
124 x3 = allocate(p, 10); in test()
125 x4 = allocate(p, 20); in test()
141 x5 = allocate(p, 10); in test()
Dmempool.stderr.exp5 at 0x........: allocate (mempool.c:105)
13 at 0x........: allocate (mempool.c:105)
36 at 0x........: allocate (mempool.c:105)
41 at 0x........: allocate (mempool.c:105)
46 at 0x........: allocate (mempool.c:105)
Dmempool2.stderr.exp8 at 0x........: allocate (mempool2.c:108)
16 at 0x........: allocate (mempool2.c:108)
27 at 0x........: allocate (mempool2.c:108)
35 at 0x........: allocate (mempool2.c:108)
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
DSourceChannelTest.java68 sink.write(ByteBuffer.allocate(1)); in test_read_LByteBuffer_DataAvailable()
69 int count = source.read(ByteBuffer.allocate(10)); in test_read_LByteBuffer_DataAvailable()
90 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SinkClosed()
108 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_LByteBuffer_SourceClosed()
172 ByteBuffer[] readBufArray = { ByteBuffer.allocate(BUFFER_SIZE), in test_read_$LByteBuffer()
173 ByteBuffer.allocate(BUFFER_SIZE) }; in test_read_$LByteBuffer()
236 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_$LByteBuffer_SinkClosed()
256 ByteBuffer readBuf = ByteBuffer.allocate(BUFFER_SIZE); in test_read_$LByteBuffer_SourceClosed()
315 ByteBuffer[] readBufArray = { ByteBuffer.allocate(BUFFER_SIZE), in test_read_$LByteBufferII()
316 ByteBuffer.allocate(BUFFER_SIZE) }; in test_read_$LByteBufferII()
[all …]
DFileChannelTest.java287 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_position_ReadOnly()
346 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_position_ReadWrite()
447 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_positionJ_ReadOnly()
517 ByteBuffer buf = ByteBuffer.allocate(8); in test_size()
519 ByteBuffer[] bufs = { ByteBuffer.allocate(8) }; in test_size()
1098 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_Closed()
1135 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_WriteOnly()
1153 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_EmptyFile()
1165 ByteBuffer readBuffer = ByteBuffer.allocate(LIMITED_CAPACITY); in test_readLByteBuffer_LimitedCapacity()
1178 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_AS_BYTES_LENGTH); in test_readLByteBuffer()
[all …]
DSocketChannelTest.java1520 .allocate(CAPACITY_NORMAL); in testCFII_Data_ConnectWithServer()
1522 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_ConnectWithServer()
1553 .allocate(CAPACITY_NORMAL); in testCFII_Data_ConnectWithServer_nonBlocking()
1555 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_ConnectWithServer_nonBlocking()
1591 .allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_nonBlocking()
1593 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_nonBlocking()
1628 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_AddrSetServerStartLater()
1698 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_ServerStartLater()
1756 .allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_Blocking()
1758 writeBufArr[0] = java.nio.ByteBuffer.allocate(CAPACITY_NORMAL); in testCFII_Data_FinishConnect_Blocking()
[all …]
/external/webkit/Source/WebCore/platform/graphics/gpu/
DPODArena.h51 virtual void* allocate(size_t size) = 0;
67 virtual void* allocate(size_t size) { return fastMalloc(size); } in allocate() function
141 ptr = m_current->allocate(roundedSize); in allocateBase()
148 ptr = m_current->allocate(roundedSize); in allocateBase()
171 m_base = static_cast<uint8_t*>(m_allocator->allocate(size)); in Chunk()
183 void* allocate(size_t size) in allocate() function
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DSSLEngineImplTest.java372 engine.wrap(ByteBuffer.allocate(0), ByteBuffer.allocate( in testSetGetUseClientMode()
446 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseOutbound()
447 ByteBuffer.allocate(20000)); in testCloseOutbound()
467 SSLEngineResult result = engine.wrap(ByteBuffer.allocate(0), in testCloseInbound()
468 ByteBuffer.allocate(20000)); in testCloseInbound()
495 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testCloseInbound2()
496 ByteBuffer app_data_buffer = ByteBuffer.allocate(applicationBufferSize); in testCloseInbound2()
528 print(result = server.wrap(ByteBuffer.allocate(0), buffer)); in testCloseInbound2()
588 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize); in testErrorProcessing()
589 ByteBuffer app_data_buffer = ByteBuffer.allocate(applicationBufferSize); in testErrorProcessing()
[all …]
/external/webkit/Source/JavaScriptCore/dfg/
DDFGJITCodeGenerator.cpp44 GPRReg gpr = allocate(); in fillInteger()
115 GPRReg gpr = allocate(); in fillDouble()
165 …GPRReg tempGpr = allocate(); // FIXME: can we skip this allocation on the last use of the virtual … in fillDouble()
242 GPRReg gpr = allocate(); in fillJSValue()
277 GPRReg result = allocate(); in fillJSValue()
441 m_gpr = m_jit->allocate(); in GPRTemporary()
453 m_gpr = m_jit->allocate(); in GPRTemporary()
468 m_gpr = m_jit->allocate(); in GPRTemporary()
480 m_gpr = m_jit->allocate(); in GPRTemporary()
495 m_gpr = m_jit->allocate(); in GPRTemporary()
[all …]
/external/webkit/Source/WebCore/platform/text/
DLineEnding.cpp42 virtual char* allocate(size_t size) = 0;
55 virtual char* allocate(size_t size) in allocate() function in __anon468432d60111::CStringBuffer
81 virtual char* allocate(size_t size) in allocate() function in __anon468432d60111::VectorCharAppendBuffer
126 char* q = buffer.allocate(newLen); in internalNormalizeLineEndingsToCRLF()
/external/clang/test/Sema/
Dfreemain.c5 void* allocate(long size);
8 if (context) return allocate(size); in main()
/external/stlport/src/
Dallocators.cpp131 void* _STLP_CALL __malloc_alloc::allocate(size_t __n) in allocate() function in __malloc_alloc
835 static void * allocate(size_t& __n);
842 static void * allocate(size_t& __n, __state_type* __a);
974 _S_start_free = (char *)__malloc_alloc::allocate(__bytes_to_get); in _S_chunk_alloc()
978 _S_start_free = (char *)__malloc_alloc::allocate(__bytes_to_get); in _S_chunk_alloc()
990 void *_Pthread_alloc_impl::allocate(size_t& __n) { in allocate() function in _Pthread_alloc_impl
997 return __malloc_alloc::allocate(__n); in allocate()
1034 void *_Pthread_alloc_impl::allocate(size_t& __n, __state_type* __a) { in allocate() function in _Pthread_alloc_impl
1040 return __malloc_alloc::allocate(__n); in allocate()
1087 __result = allocate(__new_sz); in reallocate()
[all …]
/external/v8/src/
Dstring-stream.h39 virtual char* allocate(unsigned bytes) = 0;
52 char* allocate(unsigned bytes);
65 char* allocate(unsigned bytes) { return space_; } in allocate() function
119 buffer_(allocator_->allocate(kInitialCapacity)) { in StringStream()
/external/valgrind/main/none/tests/linux/
Dmremap.stderr.exp-glibc272 mremap(grow, fixed): Cannot allocate memory
5 mremap(grow, nomove, constrained): Cannot allocate memory

12345678910>>...19