/frameworks/base/tools/aapt2/unflatten/ |
H A D | ResChunkPullParser.h | 34 * and size. The pull parser will verify that the chunk's size 36 * over each chunk in the given block of data. 39 * pointing to the data portion of a chunk. 64 const android::ResChunk_header* chunk() const; 82 inline static const T* ConvertTo(const android::ResChunk_header* chunk) { argument 83 if (util::DeviceToHost16(chunk->headerSize) < MinSize) { 86 return reinterpret_cast<const T*>(chunk); 90 const android::ResChunk_header* chunk) { 91 return reinterpret_cast<const uint8_t*>(chunk) + 92 util::DeviceToHost16(chunk 89 GetChunkData( const android::ResChunk_header* chunk) argument 95 GetChunkDataLen(const android::ResChunk_header* chunk) argument 120 inline const android::ResChunk_header* ResChunkPullParser::chunk() const { function in class:aapt::ResChunkPullParser [all...] |
H A D | BinaryResourceParser.h | 59 bool ParseTable(const android::ResChunk_header* chunk); 60 bool ParsePackage(const android::ResChunk_header* chunk); 61 bool ParseTypeSpec(const android::ResChunk_header* chunk); 63 const android::ResChunk_header* chunk); 64 bool ParseLibrary(const android::ResChunk_header* chunk);
|
H A D | BinaryResourceParser.cpp | 99 if (parser.chunk()->type != android::RES_TABLE_TYPE) { 101 << StringPrintf("unknown chunk of type 0x%02x", 102 (int)parser.chunk()->type)); 106 if (!ParseTable(parser.chunk())) { 113 DiagMessage(source_) << "invalid chunk trailing RES_TABLE_TYPE: " << parser.error()); 117 "unexpected chunk of type 0x%02x trailing RES_TABLE_TYPE", 118 (int)parser.chunk()->type)); 128 bool BinaryResourceParser::ParseTable(const ResChunk_header* chunk) { argument 129 const ResTable_header* table_header = ConvertTo<ResTable_header>(chunk); 132 << "corrupt ResTable_header chunk"); 183 ParsePackage(const ResChunk_header* chunk) argument 293 ParseTypeSpec(const ResChunk_header* chunk) argument 316 ParseType(const ResourceTablePackage* package, const ResChunk_header* chunk) argument 417 ParseLibrary(const ResChunk_header* chunk) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | NinePatch_Delegate.java | 59 * in the cache, using a {@link SoftReference} for the chunk. The default Java classes 69 private byte[] chunk; field in class:NinePatch_Delegate 75 * Serializes the given chunk. 77 * @return the serialized data for the chunk. 79 public static byte[] serialize(NinePatchChunk chunk) { argument 80 // serialize the chunk to get a byte[] 85 oos.writeObject(chunk); 100 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk)); 107 * If the chunk is present in the cache then the object from the cache is returned, otherwise 110 * @param array the serialized representation of the chunk 151 isNinePatchChunk(byte[] chunk) argument 158 validateNinePatchChunk(byte[] chunk) argument 168 nativeFinalize(long chunk) argument 174 nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) argument [all...] |
H A D | BitmapFactory_Delegate.java | 74 // get the bitmap and chunk objects. 77 NinePatchChunk chunk = ninePatch.getChunk(); 79 // put the chunk in the bitmap 80 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk)); 84 int[] paddingArray = chunk.getPadding();
|
/frameworks/base/libs/hwui/ |
H A D | NinePatchUtils.h | 22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk, argument 24 lattice->fXCount = chunk.numXDivs; 25 lattice->fYCount = chunk.numYDivs; 26 lattice->fXDivs = chunk.getXDivs(); 27 lattice->fYDivs = chunk.getYDivs(); 57 int numFlags, const Res_png_9patch& chunk) { 81 if (0 == chunk.getColors()[i++]) { 56 SetLatticeFlags(SkCanvas::Lattice* lattice, SkCanvas::Lattice::Flags* flags, int numFlags, const Res_png_9patch& chunk) argument
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | KeyStoreCryptoOperationChunkedStreamer.java | 100 byte[] chunk; 103 // Too much input for one chunk -- extract one max-sized chunk and feed it into the 106 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, 109 // All of available input fits into one chunk. 114 chunk = input; 119 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, 128 OperationResult opResult = mKeyStoreStream.update(chunk); 135 if (opResult.inputConsumed == chunk.length) { 136 // The whole chunk wa [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 96 * @param chunk The 9-patch data chunk describing how the underlying bitmap 99 public NinePatch(Bitmap bitmap, byte[] chunk) { argument 100 this(bitmap, chunk, null); 107 * @param chunk The 9-patch data chunk describing how the underlying 111 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { argument 114 mNativeChunk = validateNinePatchChunk(chunk); 126 // No need to validate the 9patch chunk again, it was done by 264 * Verifies that the specified byte array is a valid 9-patch data chunk 271 isNinePatchChunk(byte[] chunk) argument 278 validateNinePatchChunk(byte[] chunk) argument 279 nativeFinalize(long chunk) argument 280 nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) argument [all...] |
/frameworks/base/tools/aapt2/flatten/ |
H A D | ChunkWriter.h | 37 T* chunk = buffer_->NextBlock<T>(); local 38 header_ = &chunk->header; 41 return chunk;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 42 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch). 58 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); local 59 int8_t wasDeserialized = chunk->wasDeserialized; 69 jniThrowRuntimeException(env, "Array too small for chunk."); 92 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); local 93 SkASSERT(chunk); 104 NinePatchUtils::SetLatticeDivs(&lattice, *chunk, bitmap.width(), bitmap.height()); 110 if (iter.numRectsToDraw() == chunk->numColors) { 115 if (0 == chunk->getColors()[index++] && !iterDst.isEmpty()) {
|
H A D | BitmapFactory.cpp | 122 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, argument 124 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); 125 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); 126 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); 127 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); 129 scaleDivRange(chunk [all...] |
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 230 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 233 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 236 return &chunk->slots[chunkPos]; 241 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 244 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 248 if (!chunk->nextChunkOffset) { 249 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); 250 if (!chunk [all...] |
H A D | LoadedArsc.cpp | 213 static bool VerifyType(const Chunk& chunk) { argument 215 const ResTable_type* header = chunk.header<ResTable_type, kResTableTypeMinSize>(); 224 const size_t offsets_offset = chunk.header_size(); 233 if (entries_offset > chunk.size()) { 234 LOG(ERROR) << "Entry offsets extend beyond chunk."; 263 if (offset > chunk.size() - sizeof(ResTable_entry)) { 277 if (entry_size > chunk.size() || offset > chunk.size() - entry_size) { 294 if (map_entry_count > ((chunk.size() - map_entries_start) / sizeof(ResTable_map))) { 302 if (offset + entry_size > chunk 415 Load(const Chunk& chunk) argument 621 LoadTable(const Chunk& chunk, bool load_as_shared_library) argument 697 const Chunk chunk = iter.Next(); local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | SampleIterator.cpp | 92 uint32_t chunk = 96 if (!mInitialized || chunk != mCurrentChunkIndex) { 98 if ((err = getChunkOffset(chunk, &mCurrentChunkOffset)) != OK) { 107 + mSamplesPerChunk * (chunk - mFirstChunk); 121 mCurrentChunkIndex = chunk; 196 status_t SampleIterator::getChunkOffset(uint32_t chunk, off64_t *offset) { 199 if (chunk >= mTable->mNumChunkOffsets) { 207 mTable->mChunkOffsetOffset + 8 + 4 * chunk, 219 mTable->mChunkOffsetOffset + 8 + 8 * chunk,
|
/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleAppName.java | 59 * Handle a chunk of data. 87 * Send an APNM (APplication NaMe) chunk. 102 Chunk chunk = new Chunk(CHUNK_APNM, out); 103 DdmServer.sendChunk(chunk);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | Chunk.h | 36 // of the chunk. 39 explicit Chunk(const ResChunk_header* chunk) : device_chunk_(chunk) {} argument 41 // Returns the type of the chunk. Caller need not worry about endianness. 44 // Returns the size of the entire chunk. This can be useful for skipping 45 // over the entire chunk. Caller need not worry about endianness. 71 // The caller should check if there was an error during chunk validation 77 // const Chunk chunk = iter.Next();
|
H A D | LoadedArsc.h | 114 static std::unique_ptr<LoadedPackage> Load(const Chunk& chunk); 171 bool LoadTable(const Chunk& chunk, bool load_as_shared_library);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Pseudolocalizer.cpp | 119 std::string chunk = text.substr(lastpos, size).to_string(); local 121 chunk = impl_->Text(chunk); 123 chunk = impl_->Placeholder(chunk); 125 out.append(chunk); 361 std::string chunk; local 363 chunk.append(&c, 1); 367 chunk.append(&c, 1); 373 chunk [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaRecordingCanvas.cpp | 77 // finish off the existing chunk 211 void SkiaRecordingCanvas::drawNinePatch(Bitmap& hwuiBitmap, const Res_png_9patch& chunk, argument 217 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); 221 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { 229 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegCompressor.cpp | 119 JSAMPROW chunk[kChunkSize]; local 121 chunk[i] = (JSAMPROW) 124 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize);
|
/frameworks/av/include/media/stagefright/ |
H A D | SampleIterator.h | 73 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | SampleIterator.h | 73 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
|
/frameworks/av/media/libstagefright/include/ |
H A D | SampleIterator.h | 73 status_t getChunkOffset(uint32_t chunk, off64_t *offset);
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 143 jbyteArray chunk) { 145 SkWStream* skWStream = CreateJavaOutputStreamAdaptor(env, out, chunk); 142 nativeWriteTo(JNIEnv* env, jobject thiz, jlong documentPtr, jobject out, jbyteArray chunk) argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 456 // see if we still have both the chunk and the bitmap in the caches 457 NinePatchChunk chunk = Bridge.getCached9Patch(cacheKey, 462 // if either chunk or bitmap is null, then we reload the 9-patch file. 463 if (chunk == null || bitmap == null) { 468 if (chunk == null) { 469 chunk = ninePatch.getChunk(); 471 Bridge.setCached9Patch(cacheKey, chunk, 489 if (chunk != null && bitmap != null) { 490 int[] padding = chunk.getPadding(); 494 NinePatch_Delegate.serialize(chunk), [all...] |