Home
last modified time | relevance | path

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

12

/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.java117 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream() local
120 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
123 int[] paddingarray = chunk.getPadding(); in nativeDecodeStream()
167 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { in nativeScaleNinePatch() argument
170 return chunk; in nativeScaleNinePatch()
/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.h68 MemChunk &chunk = this->chunk; in serialize() local
72 AR.readBytes(chunk.getBuffer(), sh->getSize()); in serialize()
/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 ALOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]); in NinePatch_Draw()
149 ALOGV("======== 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.cpp94 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { in scaleNinePatchChunk() argument
95 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in scaleNinePatchChunk()
96 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in scaleNinePatchChunk()
97 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in scaleNinePatchChunk()
98 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in scaleNinePatchChunk()
100 for (int i = 0; i < chunk->numXDivs; i++) { in scaleNinePatchChunk()
101 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in scaleNinePatchChunk()
102 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) { in scaleNinePatchChunk()
103 chunk->xDivs[i]++; in scaleNinePatchChunk()
107 for (int i = 0; i < chunk->numYDivs; i++) { in scaleNinePatchChunk()
[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/androidfw/
DCursorWindow.cpp224 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in getRowSlot() local
227 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in getRowSlot()
230 return &chunk->slots[chunkPos]; in getRowSlot()
235 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in allocRowSlot() local
238 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
242 if (!chunk->nextChunkOffset) { in allocRowSlot()
243 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); in allocRowSlot()
244 if (!chunk->nextChunkOffset) { in allocRowSlot()
248 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
249 chunk->nextChunkOffset = 0; in allocRowSlot()
[all …]
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()
1240 const ResChunk_header* chunk = in setTo() local
1242 const ResChunk_header* lastChunk = chunk; in setTo()
1243 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1244 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk->size))) { in setTo()
1245 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
[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.java178 public void setNinePatchChunk(byte[] chunk) { in setNinePatchChunk() argument
179 mNinePatchChunk = chunk; in setNinePatchChunk()
DBitmapFactory.java658 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); in nativeScaleNinePatch() argument
/frameworks/av/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.cpp120 StscTableEntry(uint32_t chunk, uint32_t samples, uint32_t id) in StscTableEntry()
121 : firstChunk(chunk), in StscTableEntry()
1303 void MPEG4Writer::bufferChunk(const Chunk& chunk) { in bufferChunk() argument
1304 ALOGV("bufferChunk: %p", chunk.mTrack); in bufferChunk()
1311 if (chunk.mTrack == it->mTrack) { // Found owner in bufferChunk()
1312 it->mChunks.push_back(chunk); in bufferChunk()
1321 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { in writeChunkToFile() argument
1323 chunk->mTimeStampUs, chunk->mTrack->isAudio()? "audio": "video"); in writeChunkToFile()
1326 while (!chunk->mSamples.empty()) { in writeChunkToFile()
1327 List<MediaBuffer *>::iterator it = chunk->mSamples.begin(); in writeChunkToFile()
[all …]
DMPEG4Extractor.cpp629 char chunk[5]; in parseChunk() local
630 MakeFourCCString(chunk_type, chunk); in parseChunk()
631 ALOGV("chunk: %s @ %lld", chunk, *offset); in parseChunk()
636 printf("%sfound chunk '%s' of size %lld\n", indent, chunk, chunk_size); in parseChunk()
955 chunk, num_channels, sample_size, sample_rate); in parseChunk()
1571 char chunk[5]; in parseMetaData() local
1572 MakeFourCCString(mPath[4], chunk); in parseMetaData()
1573 ALOGV("meta: %s @ %lld", chunk, offset); in parseMetaData()
/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.hxx66 if (!result->chunk.allocate(alloc_size)) { in read()
71 stubs->initStubTable(result->chunk.getBuffer() + section_size, 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/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() argument
79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument
88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument
100 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, layoutInsets), res); in NinePatchDrawable()
/frameworks/av/include/media/stagefright/
DMPEG4Writer.h143 void bufferChunk(const Chunk& chunk);
150 bool findChunkToWrite(Chunk *chunk);
153 void writeChunkToFile(Chunk* chunk);
/frameworks/base/tools/velocityplot/
Dvelocityplot.py61 chunk = os.read(self.stream.fileno(), 4096)
66 if len(chunk) == 0:
74 self.buffer += chunk
/frameworks/av/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