Home
last modified time | relevance | path

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

12

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DNinePatch_Delegate.java69 private byte[] chunk; field in NinePatch_Delegate
79 public static byte[] serialize(NinePatchChunk chunk) { in serialize() argument
85 oos.writeObject(chunk); in serialize()
100 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); in serialize()
115 NinePatchChunk chunk = chunkRef.get(); in getChunk() local
116 if (chunk == null) { in getChunk()
121 chunk = (NinePatchChunk) ois.readObject(); in getChunk()
124 if (chunk != null) { in getChunk()
125 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); in getChunk()
145 return chunk; in getChunk()
[all …]
DBitmapFactory_Delegate.java75 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream() local
78 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream()
81 int[] paddingarray = chunk.getPadding(); in nativeDecodeStream()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp33 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
56 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); in isNinePatchChunk() local
57 int8_t wasDeserialized = chunk->wasDeserialized; in isNinePatchChunk()
90 Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) { in draw() argument
95 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw()
112 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw()
119 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, in drawF() argument
124 SkASSERT(chunk); in drawF()
130 draw(env, canvas, bounds, bitmap, chunk, paint, destDensity, srcDensity); in drawF()
134 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, in drawI() argument
[all …]
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.cpp104 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { in scaleNinePatchChunk() argument
105 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in scaleNinePatchChunk()
106 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in scaleNinePatchChunk()
107 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in scaleNinePatchChunk()
108 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in scaleNinePatchChunk()
110 for (int i = 0; i < chunk->numXDivs; i++) { in scaleNinePatchChunk()
111 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in scaleNinePatchChunk()
112 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) { in scaleNinePatchChunk()
113 chunk->xDivs[i]++; in scaleNinePatchChunk()
117 for (int i = 0; i < chunk->numYDivs; i++) { in scaleNinePatchChunk()
[all …]
/frameworks/rs/cpu_ref/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/graphics/java/android/graphics/
DNinePatch.java54 public NinePatch(Bitmap bitmap, byte[] chunk) { in NinePatch() argument
55 this(bitmap, chunk, null); in NinePatch()
66 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() argument
69 mNativeChunk = validateNinePatchChunk(mBitmap.ni(), chunk); in NinePatch()
232 public native static boolean isNinePatchChunk(byte[] chunk); in isNinePatchChunk() argument
239 private static native int validateNinePatchChunk(int bitmap, byte[] chunk); in validateNinePatchChunk() argument
240 private static native void nativeFinalize(int chunk); in nativeFinalize() argument
245 private static native int nativeGetTransparentRegion(int bitmap, int chunk, Rect location); in nativeGetTransparentRegion() argument
/frameworks/base/libs/androidfw/
DCursorWindow.cpp225 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in getRowSlot() local
228 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in getRowSlot()
231 return &chunk->slots[chunkPos]; in getRowSlot()
236 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( in allocRowSlot() local
239 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
243 if (!chunk->nextChunkOffset) { in allocRowSlot()
244 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); in allocRowSlot()
245 if (!chunk->nextChunkOffset) { in allocRowSlot()
249 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); in allocRowSlot()
250 chunk->nextChunkOffset = 0; in allocRowSlot()
[all …]
DResourceTypes.cpp95 static status_t validate_chunk(const ResChunk_header* chunk, in validate_chunk() argument
100 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk()
101 const uint32_t size = dtohl(chunk->size); in validate_chunk()
106 if ((ssize_t)size <= (dataEnd-((const uint8_t*)chunk))) { in validate_chunk()
111 (void*)(dataEnd-((const uint8_t*)chunk))); in validate_chunk()
1380 const ResChunk_header* chunk = in setTo() local
1382 const ResChunk_header* lastChunk = chunk; in setTo()
1383 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1384 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk->size))) { in setTo()
1385 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
[all …]
/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.cpp1535 void MPEG4Writer::bufferChunk(const Chunk& chunk) { in bufferChunk() argument
1536 ALOGV("bufferChunk: %p", chunk.mTrack); in bufferChunk()
1543 if (chunk.mTrack == it->mTrack) { // Found owner in bufferChunk()
1544 it->mChunks.push_back(chunk); in bufferChunk()
1553 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { in writeChunkToFile() argument
1555 chunk->mTimeStampUs, chunk->mTrack->isAudio()? "audio": "video"); in writeChunkToFile()
1558 while (!chunk->mSamples.empty()) { in writeChunkToFile()
1559 List<MediaBuffer *>::iterator it = chunk->mSamples.begin(); in writeChunkToFile()
1561 off64_t offset = chunk->mTrack->isAvc() in writeChunkToFile()
1566 chunk->mTrack->addChunkOffset(offset); in writeChunkToFile()
[all …]
/frameworks/rs/cpu_ref/linkloader/include/impl/
DELFSectionBits.hxx45 out() << " Start Address: " << (void *)chunk.getBuffer() << '\n'; in print()
48 chunk.print(); in print()
65 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.hxx33 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.java102 Chunk chunk = new Chunk(CHUNK_APNM, out); in sendAPNM() local
103 DdmServer.sendChunk(chunk); in sendAPNM()
/frameworks/av/include/media/stagefright/
DMPEG4Writer.h150 void bufferChunk(const Chunk& chunk);
157 bool findChunkToWrite(Chunk *chunk);
160 void writeChunkToFile(Chunk* chunk);
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java79 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() argument
80 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
87 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument
89 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
99 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument
101 … this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), res); in NinePatchDrawable()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegCompressor.cpp119 JSAMPROW chunk[kChunkSize]; in threadLoop() local
121 chunk[i] = (JSAMPROW) in threadLoop()
124 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize); in threadLoop()
/frameworks/base/services/java/com/android/server/updates/
DSELinuxPolicyInstallReceiver.java90 byte[] chunk = new byte[length]; in installFile()
91 stream.read(chunk, 0, length); in installFile()
92 writeUpdate(updateDir, destination, Base64.decode(chunk, Base64.DEFAULT)); in installFile()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfDocument.cpp134 jbyteArray chunk) { in nativeWriteTo() argument
136 SkWStream* skWStream = CreateJavaOutputStreamAdaptor(env, out, chunk); in nativeWriteTo()
/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