/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | NinePatch_Delegate.java | 69 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 …]
|
D | BitmapFactory_Delegate.java | 76 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream() local 79 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); in nativeDecodeStream() 83 int[] paddingArray = chunk.getPadding(); in nativeDecodeStream()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeyStoreCryptoOperationChunkedStreamer.java | 100 byte[] chunk; in update() 106 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, in update() 114 chunk = input; in update() 119 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, in update() 128 OperationResult opResult = mKeyStoreStream.update(chunk); in update() 135 if (opResult.inputConsumed == chunk.length) { in update() 147 "Keystore consumed nothing from max-sized chunk: " + chunk.length in update() 150 mBuffered = chunk; in update() 152 mBufferedLength = chunk.length; in update() 153 } else if (opResult.inputConsumed < chunk.length) { in update() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResChunkPullParser.h | 78 inline static const T* convertTo(const android::ResChunk_header* chunk) { in convertTo() argument 79 if (chunk->headerSize < sizeof(T)) { in convertTo() 82 return reinterpret_cast<const T*>(chunk); in convertTo() 85 inline static const uint8_t* getChunkData(const android::ResChunk_header& chunk) { in getChunkData() argument 86 return reinterpret_cast<const uint8_t*>(&chunk) + chunk.headerSize; in getChunkData() 89 inline static size_t getChunkDataLen(const android::ResChunk_header& chunk) { in getChunkDataLen() argument 90 return chunk.size - chunk.headerSize; in getChunkDataLen()
|
D | BinaryResourceParser.h | 63 bool parseTable(const android::ResChunk_header* chunk); 64 bool parseSymbolTable(const android::ResChunk_header* chunk); 69 bool parsePackage(const android::ResChunk_header* chunk); 70 bool parsePublic(const android::ResChunk_header* chunk); 71 bool parseTypeSpec(const android::ResChunk_header* chunk); 72 bool parseType(const android::ResChunk_header* chunk);
|
D | BinaryResourceParser.cpp | 197 bool BinaryResourceParser::parseSymbolTable(const ResChunk_header* chunk) { in parseSymbolTable() argument 198 const SymbolTable_header* symbolTableHeader = convertTo<SymbolTable_header>(chunk); in parseSymbolTable() 247 bool BinaryResourceParser::parseTable(const ResChunk_header* chunk) { in parseTable() argument 248 const ResTable_header* tableHeader = convertTo<ResTable_header>(chunk); in parseTable() 327 bool BinaryResourceParser::parsePackage(const ResChunk_header* chunk) { in parsePackage() argument 335 const ResTable_package* packageHeader = convertTo<ResTable_package>(chunk); in parsePackage() 458 bool BinaryResourceParser::parsePublic(const ResChunk_header* chunk) { in parsePublic() argument 459 const Public_header* header = convertTo<Public_header>(chunk); in parsePublic() 475 const uintptr_t chunkEnd = reinterpret_cast<uintptr_t>(chunk) + chunk->size; in parsePublic() 514 bool BinaryResourceParser::parseTypeSpec(const ResChunk_header* chunk) { in parseTypeSpec() argument [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatch.cpp | 36 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion); 59 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); in isNinePatchChunk() local 60 int8_t wasDeserialized = chunk->wasDeserialized; in isNinePatchChunk() 92 Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) { in draw() argument 97 NinePatch_Draw(canvas, bounds, bitmap, *chunk, paint, NULL); in draw() 114 NinePatch_Draw(canvas, bounds, bitmap, *chunk, paint, NULL); in draw() 124 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in drawF() local 128 SkASSERT(chunk); in drawF() 136 draw(env, canvas, bounds, bitmap, chunk, paint, destDensity, srcDensity); in drawF() 143 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in drawI() local [all …]
|
D | NinePatchImpl.cpp | 101 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, in NinePatch_Draw() argument 114 const int32_t* xDivs = chunk.getXDivs(); in NinePatch_Draw() 115 const int32_t* yDivs = chunk.getYDivs(); in NinePatch_Draw() 120 xDivs, chunk.numXDivs, in NinePatch_Draw() 121 yDivs, chunk.numYDivs, in NinePatch_Draw() 171 const uint8_t numXDivs = chunk.numXDivs; in NinePatch_Draw() 172 const uint8_t numYDivs = chunk.numYDivs; in NinePatch_Draw() 252 const uint32_t* colors = chunk.getColors(); in NinePatch_Draw()
|
D | BitmapFactory.cpp | 110 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk() argument 112 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in scaleNinePatchChunk() 113 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in scaleNinePatchChunk() 114 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in scaleNinePatchChunk() 115 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in scaleNinePatchChunk() 117 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth); in scaleNinePatchChunk() 118 scaleDivRange(chunk->getYDivs(), chunk->numYDivs, scale, scaledHeight); in scaleNinePatchChunk()
|
/frameworks/base/tools/aapt/ |
D | pseudolocalize.cpp | 72 String16 chunk = String16(text, size, lastpos); in text() local 74 chunk = mImpl->text(chunk); in text() 77 chunk = mImpl->placeholder(chunk); in text() 79 out.append(chunk); in text() 274 String16 chunk; in text() local 276 chunk.append(&c, 1); in text() 280 chunk.append(&c, 1); in text() 286 chunk.append(&c, 1); in text() 291 result += ((c == '%') ? chunk : placeholder(chunk)); in text()
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 86 public NinePatch(Bitmap bitmap, byte[] chunk) { in NinePatch() argument 87 this(bitmap, chunk, null); in NinePatch() 98 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() argument 101 mNativeChunk = validateNinePatchChunk(chunk); in NinePatch() 267 public native static boolean isNinePatchChunk(byte[] chunk); in isNinePatchChunk() argument 274 private static native long validateNinePatchChunk(byte[] chunk); in validateNinePatchChunk() argument 275 private static native void nativeFinalize(long chunk); in nativeFinalize() argument 280 private static native long nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location); in nativeGetTransparentRegion() argument
|
/frameworks/base/libs/androidfw/ |
D | CursorWindow.cpp | 225 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 …]
|
D | ResourceTypes.cpp | 104 static status_t validate_chunk(const ResChunk_header* chunk, in validate_chunk() argument 109 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk() 110 const uint32_t size = dtohl(chunk->size); in validate_chunk() 115 if ((size_t)size <= (size_t)(dataEnd-((const uint8_t*)chunk))) { in validate_chunk() 119 name, size, (void*)(dataEnd-((const uint8_t*)chunk))); in validate_chunk() 1602 const ResChunk_header* chunk = in setTo() local 1604 const ResChunk_header* lastChunk = chunk; in setTo() 1605 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo() 1606 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk->size))) { in setTo() 1607 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo() [all …]
|
/frameworks/av/media/libstagefright/ |
D | SampleIterator.cpp | 87 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() 183 status_t SampleIterator::getChunkOffset(uint32_t chunk, off64_t *offset) { in getChunkOffset() argument 186 if (chunk >= mTable->mNumChunkOffsets) { in getChunkOffset() 194 mTable->mChunkOffsetOffset + 8 + 4 * chunk, in getChunkOffset() 206 mTable->mChunkOffsetOffset + 8 + 8 * chunk, in getChunkOffset()
|
D | MPEG4Writer.cpp | 1634 void MPEG4Writer::bufferChunk(const Chunk& chunk) { in bufferChunk() argument 1635 ALOGV("bufferChunk: %p", chunk.mTrack); in bufferChunk() 1642 if (chunk.mTrack == it->mTrack) { // Found owner in bufferChunk() 1643 it->mChunks.push_back(chunk); in bufferChunk() 1652 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { in writeChunkToFile() argument 1654 chunk->mTimeStampUs, chunk->mTrack->isAudio()? "audio": "video"); in writeChunkToFile() 1657 while (!chunk->mSamples.empty()) { in writeChunkToFile() 1658 List<MediaBuffer *>::iterator it = chunk->mSamples.begin(); in writeChunkToFile() 1660 off64_t offset = chunk->mTrack->isAvc() in writeChunkToFile() 1665 chunk->mTrack->addChunkOffset(offset); in writeChunkToFile() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ResourceHelper.java | 287 NinePatchChunk chunk = Bridge.getCached9Patch(cacheKey, in getNinePatchDrawable() local 293 if (chunk == null || bitmap == null) { in getNinePatchDrawable() 298 if (chunk == null) { in getNinePatchDrawable() 299 chunk = ninePatch.getChunk(); in getNinePatchDrawable() 301 Bridge.setCached9Patch(cacheKey, chunk, in getNinePatchDrawable() 319 if (chunk != null && bitmap != null) { in getNinePatchDrawable() 320 int[] padding = chunk.getPadding(); in getNinePatchDrawable() 324 NinePatch_Delegate.serialize(chunk), in getNinePatchDrawable()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleAppName.java | 102 Chunk chunk = new Chunk(CHUNK_APNM, out); in sendAPNM() local 103 DdmServer.sendChunk(chunk); in sendAPNM()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | SELinuxPolicyInstallReceiver.java | 72 byte[] chunk = new byte[length]; in installFile() 73 stream.read(chunk, 0, length); in installFile() 74 writeUpdate(updateDir, destination, Base64.decode(chunk, Base64.DEFAULT)); in installFile()
|
/frameworks/av/include/media/stagefright/ |
D | MPEG4Writer.h | 155 void bufferChunk(const Chunk& chunk); 162 bool findChunkToWrite(Chunk *chunk); 165 void writeChunkToFile(Chunk* chunk);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | JpegCompressor.cpp | 119 JSAMPROW chunk[kChunkSize]; in threadLoop() local 121 chunk[i] = (JSAMPROW) in threadLoop() 124 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize); in threadLoop()
|
/frameworks/base/libs/hwui/ |
D | RenderNode.cpp | 643 void RenderNode::buildZSortedChildList(const DisplayListData::Chunk& chunk, in buildZSortedChildList() argument 645 if (chunk.beginChildIndex == chunk.endChildIndex) return; in buildZSortedChildList() 647 for (unsigned int i = chunk.beginChildIndex; i < chunk.endChildIndex; i++) { in buildZSortedChildList() 652 if (!MathUtils::isZero(childZ) && chunk.reorderChildren) { in buildZSortedChildList() 900 const DisplayListData::Chunk& chunk = mDisplayListData->getChunks()[chunkIndex]; in issueOperations() local 903 buildZSortedChildList(chunk, zTranslatedNodes); in issueOperations() 909 for (size_t opIndex = chunk.beginOpIndex; opIndex < chunk.endOpIndex; opIndex++) { in issueOperations()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 93 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() argument 94 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable() 101 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument 103 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable() 113 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument 115 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), in NinePatchDrawable()
|
/frameworks/base/core/jni/android/graphics/pdf/ |
D | PdfDocument.cpp | 141 jbyteArray chunk) { in nativeWriteTo() argument 143 SkWStream* skWStream = CreateJavaOutputStreamAdaptor(env, out, chunk); in nativeWriteTo()
|
/frameworks/base/tools/velocityplot/ |
D | velocityplot.py | 61 chunk = os.read(self.stream.fileno(), 4096) 66 if len(chunk) == 0: 74 self.buffer += chunk
|
/frameworks/av/media/libstagefright/include/ |
D | SampleIterator.h | 69 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
|