Searched defs:block (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DAppAsLib_test.cpp38 ssize_t block = table.getResource(app::R::integer::number1, &val); local
39 ASSERT_GE(block, 0);
57 ssize_t block = table.getResource(lib::R::integer::number1, &val); local
58 ASSERT_GE(block, 0);
76 ssize_t block = table.getResource(lib::R::integer::number1, &val); local
77 ASSERT_GE(block, 0);
H A DIdmap_test.cpp64 ssize_t block = target_table_.getResource(R::string::test2, &val, false); local
65 ASSERT_GE(block, 0);
67 const ResStringPool* pool = target_table_.getTableStringBlock(block);
81 ASSERT_NE(block, new_block);
117 ssize_t block = table.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/); local
118 ASSERT_GE(block, 0);
123 block = target_table_.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/);
124 ASSERT_LT(block, 0);
H A DSplit_test.cpp87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, local
90 // The returned block should tell us which string pool to get the value, if it
92 EXPECT_GE(block, 0);
115 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, local
118 EXPECT_GE(block, 0);
164 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, local
166 EXPECT_GE(block, 0);
174 block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0,
176 ASSERT_GE(block, 0);
219 ssize_t block local
[all...]
H A DResTable_test.cpp181 ssize_t block = local
183 ASSERT_GE(block, 0);
187 ssize_t newBlock = table.resolveReference(&val, block);
188 EXPECT_EQ(block, newBlock);
202 ssize_t block = local
204 ASSERT_GE(block, 0);
217 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG);
218 ASSERT_GE(block, 0);
235 ssize_t block = local
237 ASSERT_GE(block,
365 ssize_t block = local
[all...]
H A DTestHelpers.cpp108 ssize_t block = table.getResource(resource_id, &val, MAY_NOT_BE_BAG); local
109 if (block < 0) {
117 const ResStringPool* pool = table.getTableStringBlock(block);
119 return ::testing::AssertionFailure() << "table has no string pool for block " << block;
/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/tools/aapt2/util/
H A DBigBuffer.cpp29 Block& block = blocks_.back(); local
30 if (block.block_size_ - block.size >= size) {
31 void* out_buffer = block.buffer.get() + block.size;
32 block.size += size;
40 Block block = {}; local
42 // Zero-allocate the block's buffer.
43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]());
44 CHECK(block
56 Block& block = blocks_.back(); local
68 Block block = {}; local
[all...]
H A DBigBuffer.h35 * block is allocated and appended to the end of the list.
40 * A contiguous block of allocated memory.
58 * The size of the memory block allocation.
66 * Create a BigBuffer with block allocation sizes
86 * Returns the next block available and puts the size in out_count.
106 * Pads the block with 'bytes' bytes of zero values.
111 * Pads the block so that it aligns on a 4 byte boundary.
157 Block& block = blocks_.back(); local
158 block.size -= count;
/frameworks/av/media/libnbaio/
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;
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...]
/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/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/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_hor.s38 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 Dh264bsd_interpolate_chroma_hor_ver.s39 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 Dh264bsd_interpolate_chroma_ver.s37 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 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/base/libs/hwui/
H A DPatchCache.cpp80 BufferBlock* block = mFreeBlocks; local
81 while (block) {
82 BufferBlock* next = block->next;
83 delete block;
84 block = next;
138 BufferBlock* block = new BufferBlock(patch->positionOffset, patch->getSize()); local
139 block->next = mFreeBlocks;
140 mFreeBlocks = block;
179 // Find a block where we can fit the mesh
181 BufferBlock* block local
254 BufferBlock* block = mFreeBlocks; local
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DNotificationInflaterTest.java201 public static void runThenWaitForInflation(Runnable block, argument
203 runThenWaitForInflation(block, false /* expectingException */, inflater);
206 private static void runThenWaitForInflation(Runnable block, boolean expectingException, argument
230 block.run();
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dfastcodemb.cpp86 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...]
/frameworks/base/core/java/android/nfc/tech/
H A DMifareClassic.java115 /** 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/core/java/android/printservice/
H A DPrintJob.java228 * you need to block the print job. For example, the user has to add some paper to continue
239 public boolean block(@Nullable String reason) { method in class:PrintJob
330 * {@link #setStatus(int)}, {@link #block(String)}, or {@link #fail(String)},
349 * {@link #setStatus(int)}, {@link #block(String)}, or {@link #fail(String)},
/frameworks/base/libs/androidfw/
H A DAttributeResolution.cpp109 ssize_t block = -1; local
131 block = def_style_entry->stringBlock;
144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config);
145 if (new_block >= 0) block = new_block;
158 if (new_block >= 0) block = new_block;
172 block = -1;
183 block != -1 ? static_cast<uint32_t>(res.getTableCookie(block))
292 ssize_t block = kXmlBlock; local
318 block
433 ssize_t block = kXmlBlock; local
[all...]
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dbitcode_wrapperer.cpp322 size_t block = (buffer_size_ < size) ? buffer_size_ : size; local
323 if (!outfile_->Write(&buffer_[cursor_], block)) return false;
324 size -= block;
/frameworks/compile/libbcc/lib/
H A DRSScriptGroupFusion.cpp197 llvm::BasicBlock* block = llvm::BasicBlock::Create(ctxt, "entry", fusedKernel); local
198 llvm::IRBuilder<> builder(block);
336 llvm::BasicBlock* block = llvm::BasicBlock::Create(Context.getLLVMContext(), local
338 llvm::IRBuilder<> builder(block);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp355 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...]

Completed in 1374 milliseconds

12