/frameworks/compile/linkloader/include/ |
H A D | ELFSectionBits.h | 30 MemChunk chunk; member in class:ELFSectionBits 41 return chunk.getBuffer(); 45 return chunk.getBuffer(); 49 return chunk[index]; 53 return chunk[index]; 57 return chunk.size();
|
H A D | ELFSectionProgBits.h | 68 MemChunk &chunk = this->chunk; local 72 AR.readBytes(chunk.getBuffer(), sh->getSize());
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 114 // get the bitmap and chunk objects. 117 NinePatchChunk chunk = ninePatch.getChunk(); 119 // put the chunk in the bitmap 120 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); 123 int[] paddingarray = chunk.getPadding(); 167 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { argument 170 return chunk;
|
H A D | NinePatch_Delegate.java | 54 * in the cache, using a {@link SoftReference} for the chunk. The default Java classes 66 * Serializes the given chunk. 68 * @return the serialized data for the chunk. 70 public static byte[] serialize(NinePatchChunk chunk) { argument 71 // serialize the chunk to get a byte[] 76 oos.writeObject(chunk); 91 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); 98 * If the chunk is present in the cache then the object from the cache is returned, otherwise 101 * @param array the serialized representation of the chunk. 106 NinePatchChunk chunk 142 isNinePatchChunk(byte[] chunk) argument 152 validateNinePatchChunk(int bitmap, byte[] chunk) argument 177 nativeGetTransparentRegion(int bitmap, byte[] chunk, Rect location) argument [all...] |
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | JpegCompressor.cpp | 119 JSAMPROW chunk[kChunkSize]; local 121 chunk[i] = (JSAMPROW) 124 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 48 const Res_png_9patch* chunk = local 50 int8_t wasDeserialized = chunk->wasDeserialized; 61 jniThrowRuntimeException(env, "Array too small for chunk."); 77 // need to deserialize the chunk 78 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); local 79 assert(chunkSize == chunk->serializedSize()); 81 Res_png_9patch::deserialize(chunk); 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, pain 159 Res_png_9patch* chunk = static_cast<Res_png_9patch*>(storage); local [all...] |
H A D | NinePatchImpl.cpp | 106 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 123 chunk.xDivs, chunk.numXDivs, 124 chunk.yDivs, chunk.numYDivs, 148 ALOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]); 149 ALOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]); 174 const int32_t x0 = chunk 105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |
H A D | BitmapFactory.cpp | 94 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { argument 95 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); 96 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); 97 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); 98 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); 100 for (int i = 0; i < chunk 122 android::Res_png_9patch* chunk = static_cast<android::Res_png_9patch*>(storage); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 48 * @param chunk The 9-patch data chunk describing how the underlying 52 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { argument 54 mChunk = chunk; 56 validateNinePatchChunk(mBitmap.ni(), chunk); 154 public native static boolean isNinePatchChunk(byte[] chunk); argument 156 private static native void validateNinePatchChunk(int bitmap, byte[] chunk); argument 164 int bitmap, byte[] chunk, Rect location); 163 nativeGetTransparentRegion( int bitmap, byte[] chunk, Rect location) argument
|
H A D | BitmapFactory.java | 660 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); argument
|
H A D | Bitmap.java | 171 * Sets the nine patch chunk. 173 * @param chunk The definition of the nine patch 177 public void setNinePatchChunk(byte[] chunk) { argument 178 mNinePatchChunk = chunk;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { argument 79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); 86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument 88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); 98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument 100 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, layoutInsets), res);
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 224 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 227 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 230 return &chunk->slots[chunkPos]; 235 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 238 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 242 if (!chunk->nextChunkOffset) { 243 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); 244 if (!chunk [all...] |
H A D | ResourceTypes.cpp | 96 static status_t validate_chunk(const ResChunk_header* chunk, argument 101 const uint16_t headerSize = dtohs(chunk->headerSize); 102 const uint32_t size = dtohl(chunk->size); 107 if ((ssize_t)size <= (dataEnd-((const uint8_t*)chunk))) { 112 (void*)(dataEnd-((const uint8_t*)chunk))); 1240 const ResChunk_header* chunk = local 1242 const ResChunk_header* lastChunk = chunk; 1243 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && 1244 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk 2845 const ResChunk_header* chunk = local 5053 const ResChunk_header* chunk = local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Extractor.cpp | 622 // The smallest valid chunk is 16 bytes long in this case. 626 // The smallest valid chunk is 8 bytes long. 630 char chunk[5]; local 631 MakeFourCCString(chunk_type, chunk); 632 ALOGV("chunk: %s @ %lld", chunk, *offset); 637 printf("%sfound chunk '%s' of size %lld\n", indent, chunk, chunk_size); 690 ALOGV("sampleTable chunk is %d bytes long.", (size_t)chunk_size); 956 chunk, num_channel 1572 char chunk[5]; local [all...] |
H A D | MPEG4Writer.cpp | 776 // Fix up the size of the 'mdat' chunk. 1432 void MPEG4Writer::bufferChunk(const Chunk& chunk) { argument 1433 ALOGV("bufferChunk: %p", chunk.mTrack); 1440 if (chunk.mTrack == it->mTrack) { // Found owner 1441 it->mChunks.push_back(chunk); 1447 CHECK(!"Received a chunk for a unknown track"); 1450 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { argument 1452 chunk->mTimeStampUs, chunk->mTrack->isAudio()? "audio": "video"); 1455 while (!chunk 1477 Chunk chunk; local 1489 findChunkToWrite(Chunk *chunk) argument 1541 Chunk chunk; local [all...] |