Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 157) sorted by relevance

1234567

/frameworks/base/libs/hwui/
DPatchCache.cpp101 BufferBlock* block = mFreeBlocks; in clearCache() local
102 while (block) { in clearCache()
103 BufferBlock* next = block->next; in clearCache()
104 delete block; in clearCache()
105 block = next; in clearCache()
159 BufferBlock* block = new BufferBlock(patch->offset, patch->getSize()); in clearGarbage() local
160 block->next = mFreeBlocks; in clearGarbage()
161 mFreeBlocks = block; in clearGarbage()
200 BufferBlock* block = mFreeBlocks; in setupMesh() local
201 while (block) { in setupMesh()
[all …]
/frameworks/av/media/libnbaio/
DNBAIO.cpp64 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) in writeVia() argument
73 if (block == 0 || block > maxBlock) { in writeVia()
74 block = maxBlock; in writeVia()
76 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in writeVia()
80 if (count > block) { in writeVia()
81 count = block; in writeVia()
101 int64_t readPTS, size_t block) in readVia() argument
110 if (block == 0 || block > maxBlock) { in readVia()
111 block = maxBlock; in readVia()
113 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in readVia()
[all …]
DAudioBufferProviderSource.cpp85 int64_t readPTS, size_t block) in readVia() argument
90 if (CC_UNLIKELY(block == 0)) { in readVia()
91 block = ~0; in readVia()
99 if (CC_LIKELY(count > block)) { in readVia()
100 count = block; in readVia()
/frameworks/base/tools/aapt/
DResourceTable.cpp266 ResXMLTree& block, bool _appendComment) in PendingAttribute()
268 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
310 ResXMLTree& block, in compileAttribute() argument
316 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute()
329 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
331 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
341 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute()
343 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute()
345 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
361 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute()
[all …]
DResource.cpp221 ResXMLTree block; in parsePackage() local
222 status_t err = parseXMLResource(file, &block); in parsePackage()
229 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
237 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
240 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage()
242 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage()
243 String8(block.getElementName(&len)).string()); in parsePackage()
247 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage()
250 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
254 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_image.c183 u32 block; in h264bsdWriteOutputBlocks() local
209 for (block = 0; block < 16; block++) in h264bsdWriteOutputBlocks()
211 x = h264bsdBlockX[block]; in h264bsdWriteOutputBlocks()
212 y = h264bsdBlockY[block]; in h264bsdWriteOutputBlocks()
214 pRes = residual[block]; in h264bsdWriteOutputBlocks()
274 for (block = 16; block <= 23; block++) in h264bsdWriteOutputBlocks()
276 x = h264bsdBlockX[block & 0x3]; in h264bsdWriteOutputBlocks()
277 y = h264bsdBlockY[block & 0x3]; in h264bsdWriteOutputBlocks()
279 pRes = residual[block]; in h264bsdWriteOutputBlocks()
286 if (block >= 20) in h264bsdWriteOutputBlocks()
Dh264bsd_intra_prediction.c264 u32 constrainedIntraPred, u32 block) in h264bsdIntra4x4Prediction() argument
281 ASSERT(pMb->intra4x4PredMode[block] < 9); in h264bsdIntra4x4Prediction()
283 neighbour = *h264bsdNeighbour4x4BlockA(block); in h264bsdIntra4x4Prediction()
292 neighbourB = *h264bsdNeighbour4x4BlockB(block); in h264bsdIntra4x4Prediction()
303 &neighbour, &neighbourB, block, nMb, nMb2); in h264bsdIntra4x4Prediction()
304 pMb->intra4x4PredMode[block] = (u8)mode; in h264bsdIntra4x4Prediction()
306 neighbour = *h264bsdNeighbour4x4BlockC(block); in h264bsdIntra4x4Prediction()
315 neighbour = *h264bsdNeighbour4x4BlockD(block); in h264bsdIntra4x4Prediction()
324 x = h264bsdBlockX[block]; in h264bsdIntra4x4Prediction()
325 y = h264bsdBlockY[block]; in h264bsdIntra4x4Prediction()
[all …]
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp52 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG); in TEST() local
54 ASSERT_GE(block, 0); in TEST()
57 const ResStringPool* pool = table.getTableStringBlock(block); in TEST()
135 ssize_t block = table.getResource(base::R::integer::number2, &val, MAY_NOT_BE_BAG); in TEST() local
136 ASSERT_GE(block, 0); in TEST()
140 ssize_t newBlock = table.resolveReference(&val, block); in TEST()
141 EXPECT_EQ(block, newBlock); in TEST()
151 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST() local
152 ASSERT_GE(block, 0); in TEST()
165 block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
[all …]
DSplit_test.cpp81 … ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); in TEST() local
84 EXPECT_GE(block, 0); in TEST()
104 … ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); in TEST() local
106 EXPECT_GE(block, 0); in TEST()
152 …ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &specFlags, NUL… in TEST() local
153 EXPECT_GE(block, 0); in TEST()
160 block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &frSpecFlags, NULL); in TEST()
161 EXPECT_GE(block, 0); in TEST()
171 ssize_t block = table.getResource(base::R::string::test3, &val, MAY_NOT_BE_BAG); in TEST() local
172 EXPECT_LT(block, 0); in TEST()
[all …]
DIdmap_test.cpp73 ssize_t block = mTargetTable.getResource(base::R::string::test2, &val, false); in TEST_F() local
74 ASSERT_GE(block, 0); in TEST_F()
76 const ResStringPool* pool = mTargetTable.getTableStringBlock(block); in TEST_F()
89 ASSERT_NE(block, newBlock); in TEST_F()
/frameworks/base/core/java/android/content/res/
DAssetManager.java151 int block = loadResourceValue(ident, (short) 0, tmpValue, true); in getResourceText() local
152 if (block >= 0) { in getResourceText()
154 return mStringBlocks[block].get(tmpValue.data); in getResourceText()
169 int block = loadResourceBagValue(ident, bagEntryId, tmpValue, true); in getResourceBagText() local
170 if (block >= 0) { in getResourceBagText()
172 return mStringBlocks[block].get(tmpValue.data); in getResourceBagText()
196 int block = loadResourceValue(ident, (short) density, outValue, resolveRefs); in getResourceValue() local
197 if (block >= 0) { in getResourceValue()
201 outValue.string = mStringBlocks[block].get(outValue.data); in getResourceValue()
216 int block; in getResourceTextArray() local
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
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,
Dfastcodemb.cpp86 output = video->outputMB->block[0]; in CodeMB_H263()
317 output = video->outputMB->block[0]; in CodeMB_MPEG()
484 Int getBlockSAV(Short block[]) in getBlockSAV() argument
491 val = *block++; in getBlockSAV()
494 val = *block++; in getBlockSAV()
497 val = *block++; in getBlockSAV()
500 val = *block++; in getBlockSAV()
503 val = *block++; in getBlockSAV()
506 val = *block++; in getBlockSAV()
509 val = *block++; in getBlockSAV()
[all …]
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp98 const Res_value& value, uint32_t ref, ssize_t block,
102 const Res_value& value, uint32_t ref, ssize_t block, in copyValue() argument
107 static_cast<jint>(table->getTableCookie(block))); in copyValue()
116 return block; in copyValue()
805 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); in android_content_AssetManager_loadResourceValue() local
807 if (block == BAD_INDEX) { in android_content_AssetManager_loadResourceValue()
814 block = res.resolveReference(&value, block, &ref, &typeSpecFlags, &config); in android_content_AssetManager_loadResourceValue()
816 if (block == BAD_INDEX) { in android_content_AssetManager_loadResourceValue()
822 if (block >= 0) { in android_content_AssetManager_loadResourceValue()
823 return copyValue(env, outValue, &res, value, ref, block, typeSpecFlags, &config); in android_content_AssetManager_loadResourceValue()
[all …]
/frameworks/base/core/java/android/os/
DConditionVariable.java92 public void block() in block() method in ConditionVariable
117 public boolean block(long timeout) in block() method in ConditionVariable
137 this.block(); in block()
/frameworks/av/services/audioflinger/
DStateQueue.cpp94 template<typename T> bool StateQueue<T>::push(StateQueue<T>::block_t block) in push() argument
103 if (block == BLOCK_UNTIL_ACKED) { in push()
126 if (block == BLOCK_NEVER) { in push()
158 if (block == BLOCK_UNTIL_ACKED) { in push()
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dblock.cpp82 int16 *coef = video->block; in dct_luma()
262 int16 *coef, *coef8 = video->block; in MBInterIdct()
366 int16 *coef = video->block; in dct_luma_16x16()
729 int16 *coef = video->block + 256; in dct_chroma()
1117 int16 *block = video->block; in TransQuantIntra16DC() local
1120 int16 *ptr = block; in TransQuantIntra16DC()
1146 ptr = block; in TransQuantIntra16DC()
1173 data = block[idx]; in TransQuantIntra16DC()
1188 block[idx] = lev; in TransQuantIntra16DC()
1193 block[idx] = -lev; in TransQuantIntra16DC()
[all …]
/frameworks/compile/libbcc/lib/Support/
Dsha1.c115 #define blk0(i) (block->l[i]=(rol(block->l[i],24)&0xFF00FF00) \
116 |(rol(block->l[i],8)&0x00FF00FF))
118 #define blk0(i) block->l[i]
120 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
121 ^block->l[(i+2)&15]^block->l[i&15],1))
141 CHAR64LONG16* block; in SHA1Transform() local
144 block = (CHAR64LONG16*)workspace; in SHA1Transform()
145 memcpy(block, buffer, 64); in SHA1Transform()
147 block = (CHAR64LONG16*)buffer; in SHA1Transform()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_PredictReconCoefIntra_s.s19 ; * Performs adaptive DC/AC coefficient prediction for an intra block. Prior
28 ; * block; must be aligned on a 4-byte boundary. The
35 ; * [in] curQP quantization parameter of the current block. curQP may
36 ; * equal to predQP especially when the current block and
37 ; * the predictor block are in the same macroblock.
38 ; * [in] predQP quantization parameter of the predictor block
47 ; * alpha) of the current block
50 ; * block
/frameworks/base/services/core/java/com/android/server/
DRandomBlock.java37 private byte[] block = new byte[BLOCK_SIZE]; field in RandomBlock
56 int result = in.read(retval.block, total, BLOCK_SIZE - total); in fromStream()
88 out.write(block); in toDataOut()
/frameworks/base/tools/preload/
Dsorttable.js449 Array.forEach = function(array, block, context) { argument
451 block.call(context, array[i], i, array);
457 Function.prototype.forEach = function(object, block, context) { argument
460 block.call(context, object[key], key, object);
466 String.forEach = function(string, block, context) { argument
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);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Didct.cpp538 res = (*pred++ + block[0+(i<<3)]); in idct()
541 res = (*pred++ + block[1+(i<<3)]); in idct()
544 res = (*pred++ + block[2+(i<<3)]); in idct()
547 res = (*pred++ + block[3+(i<<3)]); in idct()
550 res = (*pred++ + block[4+(i<<3)]); in idct()
553 res = (*pred++ + block[5+(i<<3)]); in idct()
556 res = (*pred++ + block[6+(i<<3)]); in idct()
559 res = (*pred++ + block[7+(i<<3)]); in idct()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
DomxVCM4P2_PredictReconCoefIntra_s.s19 ; * Performs adaptive DC/AC coefficient prediction for an intra block. Prior
28 ; * block; must be aligned on a 4-byte boundary. The
35 ; * [in] curQP quantization parameter of the current block. curQP may
36 ; * equal to predQP especially when the current block and
37 ; * the predictor block are in the same macroblock.
38 ; * [in] predQP quantization parameter of the predictor block
47 ; * alpha) of the current block
50 ; * block
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp101 const mkvparser::Block *block() const;
356 } while (!eos() && block()->GetTrackNumber() != mTrackNum); in reset()
378 } while (!eos() && block()->GetTrackNumber() != mTrackNum); in seek()
473 if (isAudio || block()->IsKey()) { in seek()
475 int64_t frameTimeUs = (block()->GetTime(mCluster) + 500LL) / 1000LL; in seek()
486 const mkvparser::Block *BlockIterator::block() const { in block() function in android::BlockIterator
530 const mkvparser::Block *block = mBlockIter.block(); in readBlock() local
534 for (int i = 0; i < block->GetFrameCount(); ++i) { in readBlock()
535 const mkvparser::Block::Frame &frame = block->GetFrame(i); in readBlock()
539 mbuf->meta_data()->setInt32(kKeyIsSyncFrame, block->IsKey()); in readBlock()
[all …]
/frameworks/base/core/java/android/nfc/tech/
DMifareClassic.java641 private static void validateBlock(int block) { in validateBlock() argument
643 if (block < 0 || block >= MAX_BLOCK_COUNT) { in validateBlock()
644 throw new IndexOutOfBoundsException("block out of bounds: " + block); in validateBlock()

1234567