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

1234

/frameworks/base/libs/hwui/
H A DPatchCache.cpp101 BufferBlock* block = mFreeBlocks; local
102 while (block) {
103 BufferBlock* next = block->next;
104 delete block;
105 block = next;
159 BufferBlock* block = new BufferBlock(patch->offset, patch->getSize()); local
160 block->next = mFreeBlocks;
161 mFreeBlocks = block;
198 // Find a block where we can fit the mesh
200 BufferBlock* block local
279 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/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;
101 int64_t readPTS, size_t block)
110 if (block == 0 || block > maxBloc
100 readVia(readVia_t via, size_t total, void *user, int64_t readPTS, size_t block) argument
[all...]
H A DAudioBufferProviderSource.cpp85 int64_t readPTS, size_t block)
90 if (CC_UNLIKELY(block == 0)) {
91 block = ~0;
99 if (CC_LIKELY(count > block)) {
100 count = block;
102 // 1 <= count <= block
111 // FIXME simplify logic - does the initial count and block checks again for no reason;
84 readVia(readVia_t via, size_t total, void *user, int64_t readPTS, size_t block) argument
/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/libs/androidfw/tests/
H A DSplit_test.cpp81 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); local
83 // The returned block should tell us which string pool to get the value, if it is a string.
84 EXPECT_GE(block, 0);
104 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, NULL, &config); local
106 EXPECT_GE(block, 0);
152 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &specFlags, NULL); local
153 EXPECT_GE(block, 0);
160 block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG, 0, &frSpecFlags, NULL);
161 EXPECT_GE(block, 0);
171 ssize_t block local
[all...]
H A DResTable_test.cpp52 ssize_t block = table.getResource(base::R::string::test1, &val, MAY_NOT_BE_BAG); local
54 ASSERT_GE(block, 0);
57 const ResStringPool* pool = table.getTableStringBlock(block);
135 ssize_t block = table.getResource(base::R::integer::number2, &val, MAY_NOT_BE_BAG); local
136 ASSERT_GE(block, 0);
140 ssize_t newBlock = table.resolveReference(&val, block);
141 EXPECT_EQ(block, newBlock);
151 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local
152 ASSERT_GE(block, 0);
165 block
179 ssize_t block = table.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/base/core/java/android/content/res/
H A DAssetManager.java151 int block = loadResourceValue(ident, (short) 0, tmpValue, true);
152 if (block >= 0) {
154 return mStringBlocks[block].get(tmpValue.data);
169 int block = loadResourceBagValue(ident, bagEntryId, tmpValue, true);
170 if (block >= 0) {
172 return mStringBlocks[block].get(tmpValue.data);
196 int block = loadResourceValue(ident, (short) density, outValue, resolveRefs);
197 if (block >= 0) {
201 outValue.string = mStringBlocks[block].get(outValue.data);
216 int block;
735 getNativeStringBlock(int block) argument
[all...]
/frameworks/base/tools/aapt/
H A DResourceTable.cpp266 ResXMLTree& block, bool _appendComment)
268 , sourcePos(in->getPrintableSource(), block.getLineNumber())
310 ResXMLTree& block,
316 PendingAttribute attr(myPackage, in, block, inStyleable);
329 ssize_t identIdx = block.indexOfAttribute(NULL, "name");
331 attr.ident = String16(block.getAttributeStringValue(identIdx, &len));
341 block.getComment(&len) ? block.getComment(&len) : nulStr);
343 ssize_t typeIdx = block.indexOfAttribute(NULL, "format");
345 String16 typeStr = String16(block
309 compileAttribute(const sp<AaptFile>& in, ResXMLTree& block, const String16& myPackage, ResourceTable* outTable, String16* outIdent = NULL, bool inStyleable = false) argument
570 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& product, PseudolocalizationMethod pseudolocalize, const bool overwrite, ResourceTable* outTable) argument
665 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
762 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.h47 int64_t readPTS, size_t block);
H A DNBAIO.h164 // WOULD_BLOCK Determining how many frames can be written without blocking would itself block.
189 // block Number of frames per block, that is a suggested value for 'count' in each callback.
211 virtual ssize_t writeVia(writeVia_t via, size_t total, void *user, size_t block = 0);
266 // WOULD_BLOCK Determining how many frames can be read without blocking would itself block.
295 // block Number of frames per block, that is a suggested value for 'count' in each callback.
318 int64_t readPTS, size_t block = 0);
/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/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/core/jni/
H A 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,
107 static_cast<jint>(table->getTableCookie(block)));
116 return block;
805 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); local
807 if (block == BAD_INDEX) {
814 block = res.resolveReference(&value, block, &ref, &typeSpecFlags, &config);
816 if (block == BAD_INDEX) {
822 if (block >
101 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
842 ssize_t block = -1; local
889 android_content_AssetManager_getNativeStringBlock(JNIEnv* env, jobject clazz, jint block) argument
977 ssize_t block = theme->getAttribute(ident, &value, &typeSpecFlags); local
1087 ssize_t block = 0; local
1311 ssize_t block = 0; local
1508 ssize_t block = 0; local
1618 ssize_t block; local
1717 ResXMLTree* block = new ResXMLTree(dynamicRefTable); local
1811 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL); local
1874 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.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/compile/libbcc/lib/Support/
H A 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))
131 /* Hash a single 512-bit block
141 CHAR64LONG16* block; local
[all...]
/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);
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dblock.cpp82 int16 *coef = video->block;
83 uint8 *pred = video->pred_block; // size 16 for a 4x4 block
91 coef += ((blkidx & 0x3) << 2) + ((blkidx >> 2) << 6); /* point to the 4x4 block */
192 if (video->currMB->mb_intra) // only do inverse transform with intra block
262 int16 *coef, *coef8 = video->block;
366 int16 *coef = video->block;
566 /* offset btw 4x4 block */
570 /* offset btw 8x8 block */
729 int16 *coef = video->block + 256;
909 /* offset btw 4x4 block */
1117 int16 *block = video->block; local
1207 TransQuantChromaDC(AVCEncObject *encvid, int16 *block, int slice_type, int cr) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCameraTest.java101 if (!startDone.block(WAIT_FOR_COMMAND_TO_COMPLETE)) {
179 if (!mPreviewDone.block(WAIT_FOR_COMMAND_TO_COMPLETE)) {
186 if (!mSnapshotDone.block(MediaNames.WAIT_SNAPSHOT_TIME)) {
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct.cpp22 This file contains the functions that transform an 8r8 image block from
44 coefficients of type int for an 8r8 image block;
57 blk points to the found IDCT values for an 8r8 image block.
68 This function transforms an 8r8 image block from dequantized DCT coefficients
538 res = (*pred++ + block[0+(i<<3)]);
541 res = (*pred++ + block[1+(i<<3)]);
544 res = (*pred++ + block[2+(i<<3)]);
547 res = (*pred++ + block[3+(i<<3)]);
550 res = (*pred++ + block[4+(i<<3)]);
553 res = (*pred++ + block[
[all...]

Completed in 885 milliseconds

1234