/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 | 52 MemChunk &chunk = this->chunk; local 56 AR.readBytes(chunk.getBuffer(), sh->getSize());
|
/frameworks/compile/linkloader/include/impl/ |
H A D | ELFSectionBits.hxx | 41 out() << " Start Address: " << (void *)chunk.getBuffer() << '\n'; 44 chunk.print(); 61 return chunk.protect(prot);
|
H A D | ELFSectionProgBits.hxx | 55 if (!result->chunk.allocate(sh->getSize() + stub_size)) { 59 stubs->initStubTable(result->chunk.getBuffer()+sh->getSize(), func_count); 62 if (!result->chunk.allocate(sh->getSize())) {
|
H A D | ELFSectionNoBits.hxx | 35 if (!result->chunk.allocate(sh->getSize())) {
|
/frameworks/base/core/jni/android/graphics/ |
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 LOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]); 149 LOGV("======== 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 | 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 | BitmapFactory.cpp | 405 android::Res_png_9patch* chunk = static_cast<android::Res_png_9patch*>(storage); local 406 memcpy(chunk, array, chunkSize); 407 android::Res_png_9patch::deserialize(chunk); 409 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); 410 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); 411 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); 412 chunk [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 | 628 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); argument
|
H A D | Bitmap.java | 156 * Sets the nine patch chunk. 158 * @param chunk The definition of the nine patch 162 public void setNinePatchChunk(byte[] chunk) { argument 163 mNinePatchChunk = chunk;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
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...] |
H A D | BitmapFactory_Delegate.java | 111 // get the bitmap and chunk objects. 114 NinePatchChunk chunk = ninePatch.getChunk(); 116 // put the chunk in the bitmap 117 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); 120 int[] paddingarray = chunk.getPadding(); 157 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { argument 160 return chunk;
|
/frameworks/base/libs/binder/ |
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...] |
/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleAppName.java | 59 * Handle a chunk of data. 87 * Send an APNM (APplication NaMe) chunk. 98 Chunk chunk = new Chunk(CHUNK_APNM, out); 99 DdmServer.sendChunk(chunk);
|
/frameworks/base/media/libstagefright/ |
H A D | SampleIterator.cpp | 87 uint32_t chunk = 91 if (!mInitialized || chunk != mCurrentChunkIndex) { 92 mCurrentChunkIndex = chunk; 95 if ((err = getChunkOffset(chunk, &mCurrentChunkOffset)) != OK) { 182 status_t SampleIterator::getChunkOffset(uint32_t chunk, off64_t *offset) { 185 if (chunk >= mTable->mNumChunkOffsets) { 193 mTable->mChunkOffsetOffset + 8 + 4 * chunk, 205 mTable->mChunkOffsetOffset + 8 + 8 * chunk,
|
H A D | MPEG4Writer.cpp | 110 StscTableEntry(uint32_t chunk, uint32_t samples, uint32_t id) argument 111 : firstChunk(chunk), 665 // Fix up the size of the 'mdat' chunk. 1287 void MPEG4Writer::bufferChunk(const Chunk& chunk) { 1288 LOGV("bufferChunk: %p", chunk.mTrack); 1295 if (chunk.mTrack == it->mTrack) { // Found owner 1296 it->mChunks.push_back(chunk); 1302 CHECK("Received a chunk for a unknown track" == 0); 1305 void MPEG4Writer::writeChunkToFile(Chunk* chunk) { 1307 chunk [all...] |
H A D | MPEG4Extractor.cpp | 619 // The smallest valid chunk is 16 bytes long in this case. 623 // The smallest valid chunk is 8 bytes long. 627 char chunk[5]; local 628 MakeFourCCString(chunk_type, chunk); 633 printf("%sfound chunk '%s' of size %lld\n", indent, chunk, chunk_size); 686 LOGV("sampleTable chunk is %d bytes long.", (size_t)chunk_size); 952 chunk, num_channels, sample_size, sample_rate); 1005 // chunk, width, height); 2338 // The smallest valid chunk i [all...] |
/frameworks/base/include/media/stagefright/ |
H A D | MPEG4Writer.h | 121 // Previous chunk timestamp that has been written 141 // Buffer a single chunk to be written out later. 142 void bufferChunk(const Chunk& chunk); 147 // Retrieve the proper chunk to write if there is one 148 // Return true if a chunk is found; otherwise, return false. 149 bool findChunkToWrite(Chunk *chunk); 151 // Actually write the given chunk to the file. 152 void writeChunkToFile(Chunk* chunk);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 264 // see if we still have both the chunk and the bitmap in the caches 265 NinePatchChunk chunk = Bridge.getCached9Patch(cacheKey, 270 // if either chunk or bitmap is null, then we reload the 9-patch file. 271 if (chunk == null || bitmap == null) { 276 if (chunk == null) { 277 chunk = ninePatch.getChunk(); 279 Bridge.setCached9Patch(cacheKey, chunk, 297 if (chunk != null && bitmap != null) { 298 int[] padding = chunk.getPadding(); 302 NinePatch_Delegate.serialize(chunk), [all...] |
/frameworks/base/media/libstagefright/include/ |
H A D | SampleIterator.h | 67 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 68 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { argument 69 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); 76 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument 78 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
|
/frameworks/base/libs/utils/ |
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))); 1218 const ResChunk_header* chunk = local 1220 const ResChunk_header* lastChunk = chunk; 1221 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && 1222 ((const uint8_t*)chunk) < (mDataEnd-dtohl(chunk 1907 const ResChunk_header* chunk = local 4168 const ResChunk_header* chunk = local [all...] |
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 61 chunk = os.read(self.stream.fileno(), 4096) 66 if len(chunk) == 0: 74 self.buffer += chunk
|
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 57 chunk = os.read(self.stream.fileno(), 4096) 62 if len(chunk) == 0: 70 self.buffer += chunk
|