Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/compile/linkloader/include/
DELFSectionBits.h30 MemChunk chunk; variable
41 return chunk.getBuffer(); in getBuffer()
45 return chunk.getBuffer(); in getBuffer()
49 return chunk[index];
53 return chunk[index];
57 return chunk.size(); in size()
DELFSectionProgBits.h52 MemChunk &chunk = this->chunk; in serialize() local
56 AR.readBytes(chunk.getBuffer(), sh->getSize()); in serialize()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DNinePatch_Delegate.java70 public static byte[] serialize(NinePatchChunk chunk) { in serialize() argument
76 oos.writeObject(chunk); in serialize()
91 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); in serialize()
106 NinePatchChunk chunk = chunkRef.get(); in getChunk() local
107 if (chunk == null) { in getChunk()
112 chunk = (NinePatchChunk) ois.readObject(); in getChunk()
115 if (chunk != null) { in getChunk()
116 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); in getChunk()
136 return chunk; in getChunk()
142 /*package*/ static boolean isNinePatchChunk(byte[] chunk) { in isNinePatchChunk() argument
[all …]
DBitmapFactory_Delegate.java114 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream() local
117 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
120 int[] paddingarray = chunk.getPadding(); in nativeDecodeStream()
157 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { in nativeScaleNinePatch() argument
160 return chunk; in nativeScaleNinePatch()
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp106 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, in NinePatch_Draw() argument
123 chunk.xDivs, chunk.numXDivs, in NinePatch_Draw()
124 chunk.yDivs, chunk.numYDivs, in NinePatch_Draw()
148 LOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]); in NinePatch_Draw()
149 LOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]); in NinePatch_Draw()
174 const int32_t x0 = chunk.xDivs[0]; in NinePatch_Draw()
175 const int32_t y0 = chunk.yDivs[0]; in NinePatch_Draw()
177 const uint8_t numXDivs = chunk.numXDivs; in NinePatch_Draw()
178 const uint8_t numYDivs = chunk.numYDivs; in NinePatch_Draw()
194 numStretchyXPixelsRemaining += chunk.xDivs[i + 1] - chunk.xDivs[i]; in NinePatch_Draw()
[all …]
DBitmapFactory.cpp405 android::Res_png_9patch* chunk = static_cast<android::Res_png_9patch*>(storage); in nativeScaleNinePatch() local
406 memcpy(chunk, array, chunkSize); in nativeScaleNinePatch()
407 android::Res_png_9patch::deserialize(chunk); in nativeScaleNinePatch()
409 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in nativeScaleNinePatch()
410 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in nativeScaleNinePatch()
411 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in nativeScaleNinePatch()
412 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in nativeScaleNinePatch()
414 for (int i = 0; i < chunk->numXDivs; i++) { in nativeScaleNinePatch()
415 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in nativeScaleNinePatch()
416 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) { in nativeScaleNinePatch()
[all …]
DNinePatch.cpp31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
48 const Res_png_9patch* chunk = in isNinePatchChunk() local
50 int8_t wasDeserialized = chunk->wasDeserialized; in isNinePatchChunk()
78 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); in draw() local
79 assert(chunkSize == chunk->serializedSize()); in draw()
81 Res_png_9patch::deserialize(chunk); in draw()
88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw()
105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw()
159 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); in getTransparentRegion() local
160 assert(chunkSize == chunk->serializedSize()); in getTransparentRegion()
[all …]
/frameworks/base/libs/binder/
DCursorWindow.cpp226 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in getRowSlot() local
229 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in getRowSlot()
232 return &chunk->slots[chunkPos]; in getRowSlot()
237 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in allocRowSlot() local
240 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
244 if (!chunk->nextChunkOffset) { in allocRowSlot()
245 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); in allocRowSlot()
246 if (!chunk->nextChunkOffset) { in allocRowSlot()
250 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
251 chunk->nextChunkOffset = 0; in allocRowSlot()
[all …]
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java52 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() argument
54 mChunk = chunk; in NinePatch()
56 validateNinePatchChunk(mBitmap.ni(), chunk); in NinePatch() local
154 public native static boolean isNinePatchChunk(byte[] chunk); in isNinePatchChunk() argument
156 private static native void validateNinePatchChunk(int bitmap, byte[] chunk); in validateNinePatchChunk() argument
164 int bitmap, byte[] chunk, Rect location); in nativeGetTransparentRegion() argument
DBitmap.java162 public void setNinePatchChunk(byte[] chunk) { in setNinePatchChunk() argument
163 mNinePatchChunk = chunk; in setNinePatchChunk()
DBitmapFactory.java628 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); in nativeScaleNinePatch() argument
/frameworks/base/media/libstagefright/
DSampleIterator.cpp87 uint32_t chunk = in seekTo() local
91 if (!mInitialized || chunk != mCurrentChunkIndex) { in seekTo()
92 mCurrentChunkIndex = chunk; in seekTo()
95 if ((err = getChunkOffset(chunk, &mCurrentChunkOffset)) != OK) { in seekTo()
182 status_t SampleIterator::getChunkOffset(uint32_t chunk, off64_t *offset) { in getChunkOffset() argument
185 if (chunk >= mTable->mNumChunkOffsets) { in getChunkOffset()
193 mTable->mChunkOffsetOffset + 8 + 4 * chunk, in getChunkOffset()
205 mTable->mChunkOffsetOffset + 8 + 8 * chunk, in getChunkOffset()
DMPEG4Writer.cpp110 StscTableEntry(uint32_t chunk, uint32_t samples, uint32_t id) in StscTableEntry()
111 : firstChunk(chunk), in StscTableEntry()
1287 void MPEG4Writer::bufferChunk(const Chunk& chunk) { in bufferChunk() argument
1288 LOGV("bufferChunk: %p", chunk.mTrack); in bufferChunk()
1295 if (chunk.mTrack == it->mTrack) { // Found owner in bufferChunk()
1296 it->mChunks.push_back(chunk); in bufferChunk()
1305 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { in writeChunkToFile() argument
1307 chunk->mTimeStampUs, chunk->mTrack->isAudio()? "audio": "video"); in writeChunkToFile()
1310 while (!chunk->mSamples.empty()) { in writeChunkToFile()
1311 List<MediaBuffer *>::iterator it = chunk->mSamples.begin(); in writeChunkToFile()
[all …]
DMPEG4Extractor.cpp626 char chunk[5]; in parseChunk() local
627 MakeFourCCString(chunk_type, chunk); in parseChunk()
632 printf("%sfound chunk '%s' of size %lld\n", indent, chunk, chunk_size); in parseChunk()
951 chunk, num_channels, sample_size, sample_rate); in parseChunk()
/frameworks/compile/linkloader/include/impl/
DELFSectionBits.hxx41 out() << " Start Address: " << (void *)chunk.getBuffer() << '\n'; in print()
44 chunk.print(); in print()
61 return chunk.protect(prot); in protect()
DELFSectionProgBits.hxx55 if (!result->chunk.allocate(sh->getSize() + stub_size)) { in read()
59 stubs->initStubTable(result->chunk.getBuffer()+sh->getSize(), func_count); in read()
62 if (!result->chunk.allocate(sh->getSize())) { in read()
DELFSectionNoBits.hxx35 if (!result->chunk.allocate(sh->getSize())) { in read()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java265 NinePatchChunk chunk = Bridge.getCached9Patch(cacheKey, in getNinePatchDrawable() local
271 if (chunk == null || bitmap == null) { in getNinePatchDrawable()
276 if (chunk == null) { in getNinePatchDrawable()
277 chunk = ninePatch.getChunk(); in getNinePatchDrawable()
279 Bridge.setCached9Patch(cacheKey, chunk, in getNinePatchDrawable()
297 if (chunk != null && bitmap != null) { in getNinePatchDrawable()
298 int[] padding = chunk.getPadding(); in getNinePatchDrawable()
302 NinePatch_Delegate.serialize(chunk), in getNinePatchDrawable()
/frameworks/base/core/java/android/ddm/
DDdmHandleAppName.java98 Chunk chunk = new Chunk(CHUNK_APNM, out); in sendAPNM() local
99 DdmServer.sendChunk(chunk); in sendAPNM()
/frameworks/base/include/media/stagefright/
DMPEG4Writer.h142 void bufferChunk(const Chunk& chunk);
149 bool findChunkToWrite(Chunk *chunk);
152 void writeChunkToFile(Chunk* chunk);
/frameworks/base/libs/utils/
DResourceTypes.cpp96 static status_t validate_chunk(const ResChunk_header* chunk, in validate_chunk() argument
101 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk()
102 const uint32_t size = dtohl(chunk->size); in validate_chunk()
107 if ((ssize_t)size <= (dataEnd-((const uint8_t*)chunk))) { in validate_chunk()
112 (void*)(dataEnd-((const uint8_t*)chunk))); in validate_chunk()
1218 const ResChunk_header* chunk = in setTo() local
1220 const ResChunk_header* lastChunk = chunk; in setTo()
1221 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1222 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk->size))) { in setTo()
1223 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java68 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() argument
69 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
76 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument
78 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
/frameworks/base/tools/velocityplot/
Dvelocityplot.py61 chunk = os.read(self.stream.fileno(), 4096)
66 if len(chunk) == 0:
74 self.buffer += chunk
/frameworks/base/media/libstagefright/include/
DSampleIterator.h67 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
/frameworks/base/tools/orientationplot/
Dorientationplot.py57 chunk = os.read(self.stream.fileno(), 4096)
62 if len(chunk) == 0:
70 self.buffer += chunk

12