/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/tools/aapt2/unflatten/ |
H A D | ResChunkPullParser.h | 32 * and size. The pull parser will verify that the chunk's size 34 * over each chunk in the given block of data. 37 * pointing to the data portion of a chunk. 80 inline static const T* convertTo(const android::ResChunk_header* chunk) { argument 81 if (util::deviceToHost16(chunk->headerSize) < sizeof(T)) { 84 return reinterpret_cast<const T*>(chunk); 87 inline static const uint8_t* getChunkData(const android::ResChunk_header* chunk) { argument 88 return reinterpret_cast<const uint8_t*>(chunk) + util::deviceToHost16(chunk->headerSize); 91 inline static uint32_t getChunkDataLen(const android::ResChunk_header* chunk) { argument [all...] |
H A D | BinaryResourceParser.h | 58 bool parseTable(const android::ResChunk_header* chunk); 59 bool parsePackage(const android::ResChunk_header* chunk); 60 bool parseTypeSpec(const android::ResChunk_header* chunk); 61 bool parseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk);
|
H A D | BinaryResourceParser.cpp | 83 << "unknown chunk of type '" 105 bool BinaryResourceParser::parseTable(const ResChunk_header* chunk) { argument 106 const ResTable_header* tableHeader = convertTo<ResTable_header>(chunk); 108 mContext->getDiagnostics()->error(DiagMessage(mSource) << "corrupt ResTable_header chunk"); 144 << "unexpected chunk type " 159 bool BinaryResourceParser::parsePackage(const ResChunk_header* chunk) { argument 160 const ResTable_package* packageHeader = convertTo<ResTable_package>(chunk); 163 << "corrupt ResTable_package chunk"); 240 << "unexpected chunk type " 260 bool BinaryResourceParser::parseTypeSpec(const ResChunk_header* chunk) { argument 282 parseType(const ResourceTablePackage* package, const ResChunk_header* chunk) argument [all...] |
/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/libs/hwui/utils/ |
H A D | NinePatch.h | 32 const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
|
H A D | NinePatchImpl.cpp | 99 const SkBitmap& bitmap, const Res_png_9patch& chunk, 112 const int32_t* xDivs = chunk.getXDivs(); 113 const int32_t* yDivs = chunk.getYDivs(); 118 xDivs, chunk.numXDivs, 119 yDivs, chunk.numYDivs, 169 const uint8_t numXDivs = chunk.numXDivs; 170 const uint8_t numYDivs = chunk.numYDivs; 250 const uint32_t* colors = chunk.getColors(); 98 Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument
|
/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); 102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, ®ion);
|
H A D | BitmapFactory.cpp | 117 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, argument 119 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); 120 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); 121 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); 122 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); 124 scaleDivRange(chunk [all...] |
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 225 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 228 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 231 return &chunk->slots[chunkPos]; 236 RowSlotChunk* chunk = static_cast<RowSlotChunk*>( local 239 chunk = static_cast<RowSlotChunk*>(offsetToPtr(chunk->nextChunkOffset)); 243 if (!chunk->nextChunkOffset) { 244 chunk->nextChunkOffset = alloc(sizeof(RowSlotChunk), true /*aligned*/); 245 if (!chunk [all...] |
/frameworks/base/tools/aapt2/flatten/ |
H A D | ChunkWriter.h | 45 T* chunk = mBuffer->nextBlock<T>(); local 46 mHeader = &chunk->header; 49 return chunk;
|
/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/tools/aapt2/compile/ |
H A D | Pseudolocalizer.cpp | 114 std::u16string chunk = text.substr(lastpos, size).toString(); local 116 chunk = mImpl->text(chunk); 118 chunk = mImpl->placeholder(chunk); 120 out.append(chunk); 280 std::u16string chunk; local 282 chunk.append(&c, 1); 286 chunk.append(&c, 1); 292 chunk [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | MPEG4Writer.h | 135 // Previous chunk timestamp that has been written 155 // Buffer a single chunk to be written out later. 156 void bufferChunk(const Chunk& chunk); 161 // Retrieve the proper chunk to write if there is one 162 // Return true if a chunk is found; otherwise, return false. 163 bool findChunkToWrite(Chunk *chunk); 165 // Actually write the given chunk to the file. 166 void writeChunkToFile(Chunk* 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/base/services/core/java/com/android/server/updates/ |
H A D | SELinuxPolicyInstallReceiver.java | 72 byte[] chunk = new byte[length]; 73 stream.read(chunk, 0, length); 74 writeUpdate(updateDir, destination, Base64.decode(chunk, Base64.DEFAULT));
|
/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 | 140 jbyteArray chunk) { 142 SkWStream* skWStream = CreateJavaOutputStreamAdaptor(env, out, chunk); 139 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 | 371 // see if we still have both the chunk and the bitmap in the caches 372 NinePatchChunk chunk = Bridge.getCached9Patch(cacheKey, 377 // if either chunk or bitmap is null, then we reload the 9-patch file. 378 if (chunk == null || bitmap == null) { 383 if (chunk == null) { 384 chunk = ninePatch.getChunk(); 386 Bridge.setCached9Patch(cacheKey, chunk, 404 if (chunk != null && bitmap != null) { 405 int[] padding = chunk.getPadding(); 409 NinePatch_Delegate.serialize(chunk), [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 100 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { argument 101 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); 108 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument 110 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); 119 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument 121 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets),
|
/frameworks/base/libs/hwui/ |
H A D | FrameBuilder.cpp | 312 const DisplayList& displayList, const DisplayList::Chunk& chunk) { 313 if (chunk.beginChildIndex == chunk.endChildIndex) return; 315 for (size_t i = chunk.beginChildIndex; i < chunk.endChildIndex; i++) { 320 if (!MathUtils::isZero(childZ) && chunk.reorderChildren) { 439 // apply reorder clip to shadow, so it respects clip at beginning of reorderable chunk 517 for (auto& chunk : displayList.getChunks()) { 519 buildZSortedChildList(&zTranslatedNodes, displayList, chunk); 521 defer3dChildren(chunk 311 buildZSortedChildList(V* zTranslatedNodes, const DisplayList& displayList, const DisplayList::Chunk& chunk) argument [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
|