/frameworks/base/core/java/android/os/ |
H A D | ConditionVariable.java | 25 * 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 D | TestHelpers.cpp | 27 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 D | ResTable_test.cpp | 125 ssize_t block = table.getResource(base::R::integer::number2, &val, MAY_NOT_BE_BAG); local 126 ASSERT_GE(block, 0); 130 ssize_t newBlock = table.resolveReference(&val, block); 131 EXPECT_EQ(block, newBlock); 141 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local 142 ASSERT_GE(block, 0); 155 block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); 156 ASSERT_GE(block, 0); 169 ssize_t block = table.getResource(base::R::integer::number1, &val, MAY_NOT_BE_BAG); local 170 ASSERT_GE(block, [all...] |
H A D | Split_test.cpp | 84 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 D | Idmap_test.cpp | 73 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/services/audioflinger/ |
H A D | StateQueue.cpp | 94 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/services/core/java/com/android/server/ |
H A D | RandomBlock.java | 30 * 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/media/libnbaio/ |
H A D | AudioBufferProviderSource.cpp | 85 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
|
H A D | NBAIO.cpp | 64 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...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
H A D | h264bsd_interpolate_chroma_hor.s | 38 block RN 1 label 116 ADD block, sp, #0x1c ;// block 123 ADD block, sp, #0x1c ;// block 125 MLA block, chrPH, tmp8, block;// block + (chromaPH)*(chromaPW+1) 132 ADD ref, sp, #0x1c ;// ref = block
|
H A D | h264bsd_interpolate_chroma_hor_ver.s | 39 block RN 1 label 121 ADD block, sp, #0x1c ;// block 128 ADD block, sp, #0x1c ;// block 130 MLA block, tmp2, tmp1, block;// block + (chromaPW+1)*(chromaPH+1) 137 ADD ref, sp, #0x1c ;// ref = block
|
H A D | h264bsd_interpolate_chroma_ver.s | 37 block RN 1 label 115 ADD block, sp, #0x1c ;// block 122 ADD block, sp, #0x1c ;// block 124 MLA block, chrPW, tmp1, block;// block + (chromaPW)*(chromaPH+1) 131 ADD ref, sp, #0x1c ;// ref = block 175 ;// Process 2x2 block [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_image.c | 47 /* 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...] |
H A D | h264bsd_intra_prediction.c | 84 /* x- and y-coordinates for each block */ 258 block is stored in 'pMb' structure. 264 u32 constrainedIntraPred, u32 block) 281 ASSERT(pMb->intra4x4PredMode[block] < 9); 283 neighbour = *h264bsdNeighbour4x4BlockA(block); 292 neighbourB = *h264bsdNeighbour4x4BlockB(block); 303 &neighbour, &neighbourB, block, nMb, nMb2); 304 pMb->intra4x4PredMode[block] = (u8)mode; 306 neighbour = *h264bsdNeighbour4x4BlockC(block); 315 neighbour = *h264bsdNeighbour4x4BlockD(block); 261 h264bsdIntra4x4Prediction(mbStorage_t *pMb, u8 *data, macroblockLayer_t *mbLayer, u8 *ptr, u32 width, u32 constrainedIntraPred, u32 block) argument 703 u32 block; local 846 u32 i, comp, block; local [all...] |
H A D | h264bsd_reconstruct.c | 127 u8 block[9*8*2]; local 140 h264bsdFillBlock(pRef, block, x0, y0, width, height, 143 h264bsdFillBlock(pRef, block + (chromaPartWidth+1)*chromaPartHeight, 147 pRef = block; 223 u8 block[9*8*2]; local 236 h264bsdFillBlock(pRef, block, x0, y0, width, height, chromaPartWidth, 239 h264bsdFillBlock(pRef, block + chromaPartWidth*(chromaPartHeight+1), 243 pRef = block; 314 u8 block[9*9*2]; local 331 h264bsdFillBlock(ref, block, x [all...] |
/frameworks/base/core/java/android/printservice/ |
H A D | PrintJob.java | 204 * to block the print job. For example, the user has to add some 213 public boolean block(String reason) { method in class:PrintJob
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | fastcodemb.cpp | 86 output = video->outputMB->block[0]; 195 { /* For shortHeader intra block, DC value cannot be zero */ 317 output = video->outputMB->block[0]; 369 {//Y block 385 {// U, V block 478 /* Purpose : Get SAV for one block */ 479 /* In/out : block[64] contain one block data */ 484 Int getBlockSAV(Short block[]) argument 491 val = *block [all...] |
H A D | fastidct.cpp | 1849 /* Modified : 7/31/01, add checking for all-zero and DC-only block. */ 1855 /* 9/4/05, use Chen's IDCT and 16 bit block */ 1857 void BlockIDCTMotionComp(Short *block, UChar *bitmapcol, UChar bitmaprow, argument 1864 Short *ptr = block; 1870 /* all-zero block */ 1914 /* Test for DC only block */ 1917 i = ((block[0] << 3) + 32) >> 6; 1918 block[0] = 0; 2009 (*(idctrowVCAIntra[(Int)(bitmaprow>>4)]))(block, rec, lx); 2011 (*(idctrowVCAzmv[(Int)(bitmaprow>>4)]))(block, re [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 115 /** Size of a MIFARE Classic block (in bytes) */ 127 * <p>Does not cause any RF activity and does not block. 208 * <p>Does not cause any RF activity and does not block. 220 * <p>Does not cause any RF activity and does not block. 239 * <p>Does not cause any RF activity and does not block. 259 * <p>Does not cause any RF activity and does not block. 268 * <p>Does not cause any RF activity and does not block. 284 * Return the sector that contains a given block. 285 * <p>Does not cause any RF activity and does not block. 287 * @param blockIndex index of block t 641 validateBlock(int block) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 101 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/compile/libbcc/bcinfo/Wrap/ |
H A D | bitcode_wrapperer.cpp | 321 size_t block = (buffer_size_ < size) ? buffer_size_ : size; local 322 if (!outfile_->Write(&buffer_[cursor_], block)) return false; 323 size -= block;
|
/frameworks/compile/libbcc/lib/Support/ |
H A D | sha1.c | 115 #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/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | block.cpp | 82 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/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | vlc_decode.cpp | 355 int block, 376 indx = ((mbnum_col << 1) + (block & 1)) + ((mbnum_row << 1) + (block >> 1)) * nMVPerRow - 1; /* left block */ 378 if (block & 1) /* block 1, 3 */ 384 else /* block 0, 2 */ 395 if (block >> 1) 397 indx -= (block & 1); 405 { /* block 353 mv_prediction( VideoDecData *video, int block, MOT *mvx, MOT *mvy ) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | StringPool.cpp | 387 sp<AaptFile> block = createStringBlock(); local 388 if (block == NULL) { 391 ssize_t res = pool->writeData(block->getData(), block->getSize());
|