Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/frameworks/compile/mclinker/lib/MC/
DMCLDAttribute.cpp114 Attribute *copy = new Attribute(*m_pBase); in setWholeArchive() local
115 copy->setWholeArchive(); in setWholeArchive()
116 ReplaceOrRecord(m_AttrPool, m_pBase, copy); in setWholeArchive()
121 Attribute *copy = new Attribute(*m_pBase); in unsetWholeArchive() local
122 copy->unsetWholeArchive(); in unsetWholeArchive()
123 ReplaceOrRecord(m_AttrPool, m_pBase, copy); in unsetWholeArchive()
128 Attribute *copy = new Attribute(*m_pBase); in setAsNeeded() local
129 copy->setAsNeeded(); in setAsNeeded()
130 ReplaceOrRecord(m_AttrPool, m_pBase, copy); in setAsNeeded()
135 Attribute *copy = new Attribute(*m_pBase); in unsetAsNeeded() local
[all …]
/frameworks/base/libs/hwui/
DSkiaShader.cpp93 SkiaShader* SkiaBitmapShader::copy() { in copy() function in android::uirenderer::SkiaBitmapShader
94 SkiaBitmapShader* copy = new SkiaBitmapShader(); in copy() local
95 copy->copyFrom(*this); in copy()
96 copy->mBitmap = mBitmap; in copy()
97 return copy; in copy()
199 SkiaShader* SkiaLinearGradientShader::copy() { in copy() function in android::uirenderer::SkiaLinearGradientShader
200 SkiaLinearGradientShader* copy = new SkiaLinearGradientShader(); in copy() local
201 copy->copyFrom(*this); in copy()
202 copy->mBounds = new float[4]; in copy()
203 memcpy(copy->mBounds, mBounds, sizeof(float) * 4); in copy()
[all …]
DSkiaShader.h61 virtual SkiaShader* copy() = 0;
146 SkiaShader* copy();
177 SkiaShader* copy();
201 SkiaShader* copy();
226 SkiaShader* copy();
242 SkiaShader* copy();
DGradientCache.h42 copy(colors, positions, count, tileMode); in GradientCacheEntry()
46 copy(entry.colors, entry.positions, entry.count, entry.tileMode); in GradientCacheEntry()
59 copy(entry.colors, entry.positions, entry.count, entry.tileMode);
87 void copy(uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) { in copy() function
/frameworks/av/include/private/media/
DVideoFrame.h60 MediaAlbumArt(const MediaAlbumArt& copy) { in MediaAlbumArt() argument
61 mSize = copy.mSize; in MediaAlbumArt()
63 if (mSize > 0 && copy.mData != NULL) { in MediaAlbumArt()
64 mData = new uint8_t[copy.mSize]; in MediaAlbumArt()
66 memcpy(mData, copy.mData, mSize); in MediaAlbumArt()
93 VideoFrame(const VideoFrame& copy) { in VideoFrame() argument
94 mWidth = copy.mWidth; in VideoFrame()
95 mHeight = copy.mHeight; in VideoFrame()
96 mDisplayWidth = copy.mDisplayWidth; in VideoFrame()
97 mDisplayHeight = copy.mDisplayHeight; in VideoFrame()
[all …]
/frameworks/av/include/media/
DMediaProfiles.h224 VideoCodec(const VideoCodec& copy) { in VideoCodec()
225 mCodec = copy.mCodec; in VideoCodec()
226 mBitRate = copy.mBitRate; in VideoCodec()
227 mFrameWidth = copy.mFrameWidth; in VideoCodec()
228 mFrameHeight = copy.mFrameHeight; in VideoCodec()
229 mFrameRate = copy.mFrameRate; in VideoCodec()
248 AudioCodec(const AudioCodec& copy) { in AudioCodec()
249 mCodec = copy.mCodec; in AudioCodec()
250 mBitRate = copy.mBitRate; in AudioCodec()
251 mSampleRate = copy.mSampleRate; in AudioCodec()
[all …]
/frameworks/native/opengl/tools/glgen/src/
DGenerateGL.java26 static void copy(String filename, PrintStream out) throws IOException { in copy() method in GenerateGL
53 copy("stubs/jsr239/" + fname + in emit()
55 copy("stubs/jsr239/" + fname + ".java-impl", glImplStream); in emit()
56 copy("stubs/jsr239/" + fname + ".cpp", cStream); in emit()
153 copy("stubs/jsr239/GL10Header.java-if", gl10Stream); in main()
154 copy("stubs/jsr239/GL10ExtHeader.java-if", gl10ExtStream); in main()
155 copy("stubs/jsr239/GL11Header.java-if", gl11Stream); in main()
156 copy("stubs/jsr239/GL11ExtHeader.java-if", gl11ExtStream); in main()
157 copy("stubs/jsr239/GL11ExtensionPackHeader.java-if", gl11ExtPackStream); in main()
158 copy("stubs/jsr239/GLImplHeader.java-impl", glImplStream); in main()
[all …]
DGenerateGLES.java26 static void copy(String filename, PrintStream out) throws IOException { in copy() method in GenerateGLES
52 copy(javaPath, glStream); in emit()
53 copy(stubRoot + ".cpp", cStream); in emit()
101 copy("stubs/gles11/" + suffix + "Header.java-if", gl11Stream); in main()
102 copy("stubs/gles11/" + suffix + "cHeader.cpp", gl11cStream); in main()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp142 size_t copy = entry->mSize; in read() local
143 if (copy > size) { in read()
144 copy = size; in read()
150 copy); in read()
152 entry->mOffset += copy; in read()
153 entry->mSize -= copy; in read()
161 return copy; in read()
DNuPlayerRenderer.cpp279 size_t copy = entry->mBuffer->size() - entry->mOffset; in onDrainAudioQueue() local
280 if (copy > numBytesAvailableToWrite) { in onDrainAudioQueue()
281 copy = numBytesAvailableToWrite; in onDrainAudioQueue()
285 entry->mBuffer->data() + entry->mOffset, copy), in onDrainAudioQueue()
286 (ssize_t)copy); in onDrainAudioQueue()
288 entry->mOffset += copy; in onDrainAudioQueue()
296 numBytesAvailableToWrite -= copy; in onDrainAudioQueue()
297 size_t copiedFrames = copy / mAudioSink->frameSize(); in onDrainAudioQueue()
/frameworks/av/media/libstagefright/httplive/
DLiveDataSource.cpp114 size_t copy = size - sizeDone; in readAt_l() local
116 if (copy > buffer->size()) { in readAt_l()
117 copy = buffer->size(); in readAt_l()
120 memcpy((uint8_t *)data + sizeDone, buffer->data(), copy); in readAt_l()
122 sizeDone += copy; in readAt_l()
124 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); in readAt_l()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DCharSequencesTest.java31 String copy = toString(forAsciiBytes(bytes)); in testCharSequences() local
32 assertTrue(s.equals(copy)); in testCharSequences()
34 copy = toString(forAsciiBytes(bytes, 0, s.length())); in testCharSequences()
35 assertTrue(s.equals(copy)); in testCharSequences()
/frameworks/compile/libbcc/runtime/BlocksRuntime/
Druntime.c324 (*aBlock->descriptor->copy)(result, aBlock); // do fixup in _Block_copy_internal()
346 (*aBlock->descriptor->copy)(result, aBlock); // do fixup in _Block_copy_internal()
383 struct Block_byref *copy = (struct Block_byref *)_Block_allocator(src->size, false, isWeak); in _Block_byref_assign_copy() local
384copy->flags = src->flags | _Byref_flag_initial_value; // non-GC one for caller, one for stack in _Block_byref_assign_copy()
385 copy->forwarding = copy; // patch heap copy to point to itself (skip write-barrier) in _Block_byref_assign_copy()
386 src->forwarding = copy; // patch stack to point to heap copy in _Block_byref_assign_copy()
387 copy->size = src->size; in _Block_byref_assign_copy()
389 copy->isa = &_NSConcreteWeakBlockVariable; // mark isa field so it gets weak scanning in _Block_byref_assign_copy()
394 copy->byref_keep = src->byref_keep; in _Block_byref_assign_copy()
395 copy->byref_destroy = src->byref_destroy; in _Block_byref_assign_copy()
[all …]
/frameworks/av/cmds/stagefright/
Dstream.cpp220 size_t copy = size; in writeData() local
221 if (copy + mCurrentBufferOffset > mem->size()) { in writeData()
222 copy = mem->size() - mCurrentBufferOffset; in writeData()
225 memcpy((uint8_t *)mem->pointer() + mCurrentBufferOffset, data, copy); in writeData()
226 mCurrentBufferOffset += copy; in writeData()
233 data = (const uint8_t *)data + copy; in writeData()
234 size -= copy; in writeData()
236 totalWritten += copy; in writeData()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
DSoftAMRNBEncoder.cpp301 size_t copy = numBytesPerInputFrame - mInputSize; in onQueueFilled() local
302 if (copy > inHeader->nFilledLen) { in onQueueFilled()
303 copy = inHeader->nFilledLen; in onQueueFilled()
310 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy); in onQueueFilled()
311 mInputSize += copy; in onQueueFilled()
313 inHeader->nOffset += copy; in onQueueFilled()
314 inHeader->nFilledLen -= copy; in onQueueFilled()
319 (copy * 1000000ll / kSampleRate) / sizeof(int16_t); in onQueueFilled()
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp256 sp<ABuffer> copy = in postAVCFrame() local
258 memcpy(copy->data(), in postAVCFrame()
265 copy->meta()->setInt64("timeUs", timeUs); in postAVCFrame()
270 copy->meta()->setInt32("isSync", true); in postAVCFrame()
273 notify->setBuffer("buffer", copy); in postAVCFrame()
903 size_t copy = accessUnit->size(); in writeAccessUnit() local
904 if (copy > sizeLeft) { in writeAccessUnit()
905 copy = sizeLeft; in writeAccessUnit()
908 memcpy(ptr, accessUnit->data(), copy); in writeAccessUnit()
912 size_t offset = copy; in writeAccessUnit()
[all …]
DNuCachedSource2.cpp50 void copy(size_t from, void *data, size_t size);
137 void PageCache::copy(size_t from, void *data, size_t size) { in copy() function in android::PageCache
167 size_t copy = (*it)->mSize; in copy() local
168 if (copy > size) { in copy()
169 copy = size; in copy()
171 memcpy(data, (*it)->mData, copy); in copy()
172 data = (uint8_t *)data + copy; in copy()
173 size -= copy; in copy()
468 mCache->copy(delta, data, size); in readAt()
564 mCache->copy(delta, data, avail); in readInternal()
[all …]
DAudioPlayer.cpp477 size_t copy = size_remaining; in fillBuffer() local
478 if (copy > mInputBuffer->range_length()) { in fillBuffer()
479 copy = mInputBuffer->range_length(); in fillBuffer()
484 copy); in fillBuffer()
486 mInputBuffer->set_range(mInputBuffer->range_offset() + copy, in fillBuffer()
487 mInputBuffer->range_length() - copy); in fillBuffer()
489 size_done += copy; in fillBuffer()
490 size_remaining -= copy; in fillBuffer()
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp348 size_t copy = numBytesPerInputFrame - mInputSize; in onQueueFilled() local
349 if (copy > inHeader->nFilledLen) { in onQueueFilled()
350 copy = inHeader->nFilledLen; in onQueueFilled()
357 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy); in onQueueFilled()
358 mInputSize += copy; in onQueueFilled()
360 inHeader->nOffset += copy; in onQueueFilled()
361 inHeader->nFilledLen -= copy; in onQueueFilled()
366 (copy * 1000000ll / kSampleRate) / sizeof(int16_t); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp271 size_t copy = (nSamples - mNumInputSamples) * sizeof(int16_t); in read() local
273 if (copy > mInputBuffer->range_length()) { in read()
274 copy = mInputBuffer->range_length(); in read()
280 copy); in read()
283 mInputBuffer->range_offset() + copy, in read()
284 mInputBuffer->range_length() - copy); in read()
290 mNumInputSamples += copy / sizeof(int16_t); in read()
DSoftAACEncoder.cpp437 size_t copy = numBytesPerInputFrame - mInputSize; in onQueueFilled() local
438 if (copy > inHeader->nFilledLen) { in onQueueFilled()
439 copy = inHeader->nFilledLen; in onQueueFilled()
450 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy); in onQueueFilled()
451 mInputSize += copy; in onQueueFilled()
453 inHeader->nOffset += copy; in onQueueFilled()
454 inHeader->nFilledLen -= copy; in onQueueFilled()
459 (copy * 1000000ll / mSampleRate) in onQueueFilled()
DSoftAACEncoder2.cpp415 size_t copy = numBytesPerInputFrame - mInputSize; in onQueueFilled() local
416 if (copy > inHeader->nFilledLen) { in onQueueFilled()
417 copy = inHeader->nFilledLen; in onQueueFilled()
428 memcpy((uint8_t *)mInputFrame + mInputSize, inData, copy); in onQueueFilled()
429 mInputSize += copy; in onQueueFilled()
431 inHeader->nOffset += copy; in onQueueFilled()
432 inHeader->nFilledLen -= copy; in onQueueFilled()
437 (copy * 1000000ll / mSampleRate) in onQueueFilled()
/frameworks/base/tools/aapt/
DFileFinder.cpp63 DirectoryWalker* copy = dw->clone(); in findFiles() local
64 findFiles(fullPath, extensions, fileStore,copy); in findFiles()
65 delete copy; in findFiles()
/frameworks/base/core/java/android/webkit/
DWebViewInputDispatcher.java337 eventToEnqueue = event.copy(); in postPointerEvent()
998 DispatchEvent copy = obtainUninitializedDispatchEventLocked(); in copyDispatchEventLocked() local
1000 copy.mEvent = d.mEvent.copy(); in copyDispatchEventLocked()
1002 copy.mEventType = d.mEventType; in copyDispatchEventLocked()
1003 copy.mFlags = d.mFlags; in copyDispatchEventLocked()
1004 copy.mTimeoutTime = d.mTimeoutTime; in copyDispatchEventLocked()
1005 copy.mWebKitXOffset = d.mWebKitXOffset; in copyDispatchEventLocked()
1006 copy.mWebKitYOffset = d.mWebKitYOffset; in copyDispatchEventLocked()
1007 copy.mWebKitScale = d.mWebKitScale; in copyDispatchEventLocked()
1008 copy.mNext = d.mNext; in copyDispatchEventLocked()
[all …]
/frameworks/base/libs/androidfw/tests/
DInputEvent_test.cpp451 MotionEvent copy; in TEST_F() local
452 copy.copyFrom(&event, true /*keepHistory*/); in TEST_F()
461 MotionEvent copy; in TEST_F() local
462 copy.copyFrom(&event, false /*keepHistory*/); in TEST_F()
464 ASSERT_EQ(event.getPointerCount(), copy.getPointerCount()); in TEST_F()
465 ASSERT_EQ(0U, copy.getHistorySize()); in TEST_F()
467 ASSERT_EQ(event.getPointerId(0), copy.getPointerId(0)); in TEST_F()
468 ASSERT_EQ(event.getPointerId(1), copy.getPointerId(1)); in TEST_F()
470 ASSERT_EQ(event.getEventTime(), copy.getEventTime()); in TEST_F()
472 ASSERT_EQ(event.getX(0), copy.getX(0)); in TEST_F()

12345678910>>...17