/frameworks/base/core/jni/android/graphics/ |
D | NinePatchImpl.cpp | 106 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 …]
|
D | NinePatch.cpp | 31 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() 79 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); in draw() local 80 assert(chunkSize == chunk->serializedSize()); in draw() 82 Res_png_9patch::deserialize(chunk); in draw() 89 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw() 106 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); in draw() 160 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); in getTransparentRegion() local 161 assert(chunkSize == chunk->serializedSize()); in getTransparentRegion() [all …]
|
D | BitmapFactory.cpp | 613 android::Res_png_9patch* chunk = static_cast<android::Res_png_9patch*>(storage); in nativeScaleNinePatch() local 614 memcpy(chunk, array, chunkSize); in nativeScaleNinePatch() 615 android::Res_png_9patch::deserialize(chunk); in nativeScaleNinePatch() 617 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in nativeScaleNinePatch() 618 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in nativeScaleNinePatch() 619 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in nativeScaleNinePatch() 620 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in nativeScaleNinePatch() 622 for (int i = 0; i < chunk->numXDivs; i++) { in nativeScaleNinePatch() 623 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in nativeScaleNinePatch() 624 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) { in nativeScaleNinePatch() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 46 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() argument 48 mChunk = chunk; in NinePatch() 50 validateNinePatchChunk(mBitmap.ni(), chunk); in NinePatch() local 134 public native static boolean isNinePatchChunk(byte[] chunk); in isNinePatchChunk() argument 141 private static native void validateNinePatchChunk(int bitmap, byte[] chunk); in validateNinePatchChunk() argument 149 int bitmap, byte[] chunk, Rect location); in nativeGetTransparentRegion() argument
|
D | Bitmap.java | 143 public void setNinePatchChunk(byte[] chunk) { in setNinePatchChunk() argument 144 mNinePatchChunk = chunk; in setNinePatchChunk()
|
D | BitmapFactory.java | 568 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); in nativeScaleNinePatch() argument
|
/frameworks/base/awt/org/apache/harmony/awt/gl/image/ |
D | PngDecoderJava.java | 98 PNGChunk chunk = new PNGChunk(typeBytes, data); in readChunks() local 99 chunks.add(chunk); in readChunks() 126 public void add(PNGChunk chunk) { in add() argument 127 mChunks[mNumberOfChunks++] = chunk; in add() 200 PNGChunk chunk = mChunks[i]; in getImageData() local 201 if (chunk.getTypeString().equals("IDAT")) { in getImageData() 202 out.write(chunk.getData()); in getImageData()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleAppName.java | 99 Chunk chunk = new Chunk(CHUNK_APNM, out); in sendAPNM() local 100 DdmServer.sendChunk(chunk); in sendAPNM()
|
/frameworks/base/libs/utils/ |
D | ResourceTypes.cpp | 91 static status_t validate_chunk(const ResChunk_header* chunk, in validate_chunk() argument 96 const uint16_t headerSize = dtohs(chunk->headerSize); in validate_chunk() 97 const uint32_t size = dtohl(chunk->size); in validate_chunk() 102 if ((ssize_t)size <= (dataEnd-((const uint8_t*)chunk))) { in validate_chunk() 107 (void*)(dataEnd-((const uint8_t*)chunk))); in validate_chunk() 981 const ResChunk_header* chunk = in setTo() local 983 const ResChunk_header* lastChunk = chunk; in setTo() 984 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo() 985 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk->size))) { in setTo() 986 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 63 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable() argument 64 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable() 71 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable() argument 73 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
|
/frameworks/base/media/libstagefright/ |
D | MPEG4Extractor.cpp | 245 char chunk[5]; in parseChunk() local 246 MakeFourCCString(chunk_type, chunk); in parseChunk() 251 printf("%sfound chunk '%s' of size %lld\n", indent, chunk, chunk_size); in parseChunk() 515 chunk, num_channels, sample_size, sample_rate); in parseChunk() 557 chunk, width, height); in parseChunk()
|
/frameworks/base/docs/html/guide/basics/ |
D | building-blocks.jd | 28 Activity is a chunk of code that does some work; if necessary, that work
|
/frameworks/base/docs/html/guide/tutorials/notepad/ |
D | notepad-ex1.jd | 516 <p>This is a bigger chunk of code, so let's first take a look at it:</p>
|