Searched refs:block (Results 1 - 25 of 108) sorted by relevance

12345

/frameworks/base/tools/aapt2/util/
H A DBigBuffer.cpp27 Block& block = mBlocks.back(); local
28 if (block.mBlockSize - block.size >= size) {
29 void* outBuffer = block.buffer.get() + block.size;
30 block.size += size;
38 Block block = {}; local
40 // Zero-allocate the block's buffer.
41 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actualSize]());
42 assert(block
[all...]
/frameworks/base/libs/hwui/
H A DPatchCache.cpp97 BufferBlock* block = mFreeBlocks; local
98 while (block) {
99 BufferBlock* next = block->next;
100 delete block;
101 block = next;
155 BufferBlock* block = new BufferBlock(patch->positionOffset, patch->getSize()); local
156 block->next = mFreeBlocks;
157 mFreeBlocks = block;
194 // Find a block where we can fit the mesh
196 BufferBlock* block local
269 BufferBlock* block = mFreeBlocks; local
[all...]
/frameworks/base/core/java/android/os/
H A DConditionVariable.java25 * open(), close() and block() are sticky. If open() is called before block(),
26 * block() will not block, and instead return immediately.
59 * Any threads that later approach block() will not block unless close()
77 * Any threads that call block() will block until someone calls open.
92 public void block() method in class:ConditionVariable
117 public boolean block(lon method in class:ConditionVariable
[all...]
/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.cpp27 ssize_t block = table.getResource(resourceId, &val, MAY_NOT_BE_BAG); local
28 if (block < 0) {
36 const ResStringPool* pool = table.getTableStringBlock(block);
38 return ::testing::AssertionFailure() << "table has no string pool for block " << block;
H A DAppAsLib_test.cpp36 ssize_t block = table.getResource(appaslib::R::app::integer::number1, &val); local
37 ASSERT_GE(block, 0);
49 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val); local
50 ASSERT_GE(block, 0);
62 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val); local
63 ASSERT_GE(block, 0);
H A DSplit_test.cpp84 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); local
86 // The returned block should tell us which string pool to get the value, if it is a string.
87 EXPECT_GE(block, 0);
107 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); local
109 EXPECT_GE(block, 0);
155 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &specFlags, NULL); local
156 EXPECT_GE(block, 0);
163 block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &frSpecFlags, NULL);
164 EXPECT_GE(block, 0);
201 ssize_t block local
[all...]
H A DResTable_test.cpp146 ssize_t block = table.getResource(base::R::integer::number2, &val, MAY_NOT_BE_BAG); local
147 ASSERT_GE(block, 0);
151 ssize_t newBlock = table.resolveReference(&val, block);
152 EXPECT_EQ(block, newBlock);
162 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local
163 ASSERT_GE(block, 0);
176 block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG);
177 ASSERT_GE(block, 0);
190 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local
191 ASSERT_GE(block,
314 ssize_t block = sharedTable.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local
[all...]
H A DIdmap_test.cpp73 ssize_t block = mTargetTable.getResource(base::R::string::test2, &val, false); local
74 ASSERT_GE(block, 0);
76 const ResStringPool* pool = mTargetTable.getTableStringBlock(block);
89 ASSERT_NE(block, newBlock);
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp64 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) argument
73 if (block == 0 || block > maxBlock) {
74 block = maxBlock;
76 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)];
80 if (count > block) {
81 count = block;
100 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) argument
109 if (block == 0 || block > maxBloc
[all...]
H A DAudioBufferProviderSource.cpp82 ssize_t AudioBufferProviderSource::readVia(readVia_t via, size_t total, void *user, size_t block) argument
87 if (CC_UNLIKELY(block == 0)) {
88 block = ~0;
96 if (CC_LIKELY(count > block)) {
97 count = block;
99 // 1 <= count <= block
108 // FIXME simplify logic - does the initial count and block checks again for no reason;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_image.c47 /* x- and y-coordinates for each block, defined in h264bsd_intra_prediction.c */
183 u32 block; local
209 for (block = 0; block < 16; block++)
211 x = h264bsdBlockX[block];
212 y = h264bsdBlockY[block];
214 pRes = residual[block];
230 /* Residual is zero => copy prediction block to output */
274 for (block
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dfastcodemb.h32 Int(*DCT)(Int block[ ], Int coeff[ ], approxDCT *);
55 Int getBlockSAV(Int block[]);
60 Int AppVCA1_dct(Int block[], Int out[ ], approxDCT *function);
61 Int AppVCA2_dct(Int block[], Int out[ ], approxDCT *function);
62 Int AppVCA3_dct(Int block[], Int out[ ], approxDCT *function);
63 Int AppVCA4_dct(Int block[], Int out[ ], approxDCT *function);
64 Int AppVCA5_dct(Int block[], Int out[ ], approxDCT *function);
97 void BlockIDCTMotionComp(Int *block, UChar *bitmapcol, UChar bitmaprow,
/frameworks/base/tools/aapt/
H A DResourceTable.cpp294 ResXMLTree& block, bool _appendComment)
296 , sourcePos(in->getPrintableSource(), block.getLineNumber())
320 ResXMLTree& block,
326 PendingAttribute attr(myPackage, in, block, inStyleable);
339 ssize_t identIdx = block.indexOfAttribute(NULL, "name");
341 attr.ident = String16(block.getAttributeStringValue(identIdx, &len));
351 block.getComment(&len) ? block.getComment(&len) : nulStr);
353 ssize_t typeIdx = block.indexOfAttribute(NULL, "format");
355 String16 typeStr = String16(block
319 compileAttribute(const sp<AaptFile>& in, ResXMLTree& block, const String16& myPackage, ResourceTable* outTable, String16* outIdent = NULL, bool inStyleable = false) argument
580 parseAndAddBag(Bundle* bundle, const sp<AaptFile>& in, ResXMLTree* block, const ResTable_config& config, const String16& myPackage, const String16& curType, const String16& ident, const String16& parentIdent, const String16& itemIdent, int32_t curFormat, bool isFormatted, const String16& , PseudolocalizationMethod pseudolocalize, const bool overwrite, ResourceTable* outTable) argument
677 parseAndAddEntry(Bundle* bundle, const sp<AaptFile>& in, ResXMLTree* block, const ResTable_config& config, const String16& myPackage, const String16& curType, const String16& ident, const String16& curTag, bool curIsStyled, int32_t curFormat, bool isFormatted, const String16& product, PseudolocalizationMethod pseudolocalize, const bool overwrite, KeyedVector<type_ident_pair_t, bool>* skippedResourceNames, ResourceTable* outTable) argument
776 ResXMLTree block; local
[all...]
H A DResource.cpp234 ResXMLTree block; local
235 status_t err = parseXMLResource(file, &block);
239 //printXMLBlock(&block);
242 while ((code=block.next()) != ResXMLTree::START_TAG
250 file->getPrintableSource().string(), block.getLineNumber());
253 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) {
255 file->getPrintableSource().string(), block.getLineNumber(),
256 String8(block.getElementName(&len)).string());
260 ssize_t nameIndex = block.indexOfAttribute(NULL, "package");
263 file->getPrintableSource().string(), block
1396 ResXMLTree block; local
1528 ResXMLTree block; local
1678 ssize_t block = resTable.getResource(symbol.id, &val, true); local
1758 ResXMLTree block; local
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DRandomBlock.java30 * A block of 512 random {@code byte}s.
37 private byte[] block = new byte[BLOCK_SIZE]; field in class:RandomBlock
56 int result = in.read(retval.block, total, BLOCK_SIZE - total);
88 out.write(block);
/frameworks/av/include/media/nbaio/
H A DAudioBufferProviderSource.h46 virtual ssize_t readVia(readVia_t via, size_t total, void *user, size_t block);
/frameworks/av/services/audioflinger/
H A DStateQueue.cpp94 template<typename T> bool StateQueue<T>::push(StateQueue<T>::block_t block) argument
103 if (block == BLOCK_UNTIL_ACKED) {
126 if (block == BLOCK_NEVER) {
158 if (block == BLOCK_UNTIL_ACKED) {
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java180 final int block = loadResourceBagValue(resId, bagEntryId, outValue, true);
181 if (block < 0) {
185 return mStringBlocks[block].get(outValue.data);
217 final int block = loadResourceValue(resId, (short) densityDpi, outValue, resolveRefs);
218 if (block < 0) {
222 outValue.string = mStringBlocks[block].get(outValue.data);
237 int block;
241 block = rawInfoArray[i];
243 retArray[j] = index >= 0 ? mStringBlocks[block].get(index) : null;
263 final int block
816 getNativeStringBlock(int block) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSilencePlaybackQueueItem.java36 wasStopped = mCondVar.block(mSilenceDurationMs);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DRequestHandlerThread.java53 mStarted.block();
110 mIdle.block();
/frameworks/base/tools/aapt2/proto/
H A DProtoHelpers.cpp29 for (const BigBuffer::Block& block : buffer) {
30 data->insert(data->begin() + offset, block.buffer.get(), block.buffer.get() + block.size);
31 offset += block.size;
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp110 const Res_value& value, uint32_t ref, ssize_t block,
114 const Res_value& value, uint32_t ref, ssize_t block,
119 static_cast<jint>(table->getTableCookie(block)));
128 return block;
899 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); local
901 if (block == BAD_INDEX) {
908 block = res.resolveReference(&value, block, &ref, &typeSpecFlags, &config);
910 if (block == BAD_INDEX) {
916 if (block >
113 copyValue(JNIEnv* env, jobject outValue, const ResTable* table, const Res_value& value, uint32_t ref, ssize_t block, uint32_t typeSpecFlags, ResTable_config* config) argument
936 ssize_t block = -1; local
983 android_content_AssetManager_getNativeStringBlock(JNIEnv* env, jobject clazz, jint block) argument
1080 ssize_t block = theme->getAttribute(ident, &value, &typeSpecFlags); local
1224 ssize_t block = 0; local
1456 ssize_t block = 0; local
1661 ssize_t block = 0; local
1772 ssize_t block; local
1872 ResXMLTree* block = new ResXMLTree(dynamicRefTable); local
1966 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL); local
2030 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL); local
[all...]
/frameworks/base/core/java/com/android/server/
H A DResettableTimeout.java69 mLock.block();
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
H A DomxVCM4P2_PredictReconCoefIntra_s.s33 ; * Performs adaptive DC/AC coefficient prediction for an intra block. Prior
42 ; * block; must be aligned on a 4-byte boundary. The
49 ; * [in] curQP quantization parameter of the current block. curQP may
50 ; * equal to predQP especially when the current block and
51 ; * the predictor block are in the same macroblock.
52 ; * [in] predQP quantization parameter of the predictor block
61 ; * alpha) of the current block
64 ; * block
/frameworks/base/tools/preload/
H A Dsorttable.js449 Array.forEach = function(array, block, context) {
451 block.call(context, array[i], i, array);
457 Function.prototype.forEach = function(object, block, context) {
460 block.call(context, object[key], key, object);
466 String.forEach = function(string, block, context) {
468 block.call(context, chr, index, string);
473 var forEach = function(object, block, context) {
481 object.forEach(block, context);
490 resolve.forEach(object, block, context);

Completed in 1060 milliseconds

12345