Home
last modified time | relevance | path

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

1234567

/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DDynamicUtilWriter.kt9 block("public class DynamicUtil") { in <lambda>()
11block("public static int getColorFromResource(final android.view.View view, final int resourceId)"… in <lambda>()
13 block("if (VERSION.SDK_INT >= VERSION_CODES.M)") { in <lambda>()
21block("public static android.content.res.ColorStateList getColorStateListFromResource(final androi… in <lambda>()
23 block("if (VERSION.SDK_INT >= VERSION_CODES.M)") { in <lambda>()
31block("public static android.graphics.drawable.Drawable getDrawableFromResource(final android.view… in <lambda>()
33 block("if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP)") { in <lambda>()
40 block("public static boolean parse(String str, boolean fallback)") { in <lambda>()
41 block("if (str == null)") { in <lambda>()
46 block("public static byte parse(String str, byte fallback)") { in <lambda>()
[all …]
DDataBinderWriter.kt23 block("class $className") { in <lambda>()
26 block("public $className()") { in <lambda>()
29block("public android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingCom… in <lambda>()
30 block("switch(layoutId)") { in <lambda>()
42 block("") { in <lambda>()
46 block("if (\"${it.tag}_0\".equals(tag))") { in <lambda>()
63block("android.databinding.ViewDataBinding getDataBinder(android.databinding.DataBindingComponent … in <lambda>()
64 block("switch(layoutId)") { in <lambda>()
67 block("case ${firstVal.modulePackage}.R.layout.${firstVal.layoutname}:") { in <lambda>()
75 block("if (\"${it.tag}_0\".equals(tag))") { in <lambda>()
[all …]
DLayoutBinderWriter.kt362 block("public class $classDeclaration ${buildImplements()}") { in write()
572 block("if(getBuildSdkInt() < ${it.key})") { in <lambda>()
577 block("else") { in <lambda>()
600block("public final ${wrapper.method.returnType.canonicalName} ${wrapper.listenerMethodName}(${wra… in <lambda>()
610 block("switch(${CallbackWrapper.SOURCE_ID})") { in <lambda>()
612 block("case ${lambda.callbackId}:") { in <lambda>()
623 block("default:") { in <lambda>()
645 block("public void invalidateAll()") { in <lambda>()
648 block("synchronized(this)") { in <lambda>()
724block("public void ${it.setterName}(${it.resolvedType.toJavaCode()} ${it.readableName})") { in <lambda>()
[all …]
/frameworks/base/tools/aapt2/util/
DBigBuffer.cpp29 Block& block = blocks_.back(); in NextBlockImpl() local
30 if (block.block_size_ - block.size >= size) { in NextBlockImpl()
31 void* out_buffer = block.buffer.get() + block.size; in NextBlockImpl()
32 block.size += size; in NextBlockImpl()
40 Block block = {}; in NextBlockImpl() local
43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]()); in NextBlockImpl()
44 CHECK(block.buffer); in NextBlockImpl()
46 block.size = size; in NextBlockImpl()
47 block.block_size_ = actual_size; in NextBlockImpl()
49 blocks_.push_back(std::move(block)); in NextBlockImpl()
[all …]
/frameworks/base/libs/hwui/
DPatchCache.cpp80 BufferBlock* block = mFreeBlocks; in clearCache() local
81 while (block) { in clearCache()
82 BufferBlock* next = block->next; in clearCache()
83 delete block; in clearCache()
84 block = next; in clearCache()
138 BufferBlock* block = new BufferBlock(patch->positionOffset, patch->getSize()); in clearGarbage() local
139 block->next = mFreeBlocks; in clearGarbage()
140 mFreeBlocks = block; in clearGarbage()
181 BufferBlock* block = mFreeBlocks; in setupMesh() local
182 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()
100 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument
109 if (block == 0 || block > maxBlock) { in readVia()
110 block = maxBlock; in readVia()
112 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in readVia()
[all …]
DAudioBufferProviderSource.cpp82 ssize_t AudioBufferProviderSource::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument
87 if (CC_UNLIKELY(block == 0)) { in readVia()
88 block = ~0; in readVia()
96 if (CC_LIKELY(count > block)) { in readVia()
97 count = block; in readVia()
/frameworks/av/media/libstagefright/mpeg2ts/
DHlsSampleDecryptor.cpp321 AString HlsSampleDecryptor::aesBlockToStr(uint8_t block[AES_BLOCK_SIZE]) { in aesBlockToStr()
324 if (block == NULL) { in aesBlockToStr()
328 block[0], block[1], block[2], block[3], block[4], block[5], block[6], block[7], in aesBlockToStr()
329 block[8], block[9], block[10], block[11], block[12], block[13], block[14], block[15]); in aesBlockToStr()
/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/
DAttributeResolution.cpp109 ssize_t block = -1; in ResolveAttrs() local
131 block = def_style_entry->stringBlock; in ResolveAttrs()
144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); in ResolveAttrs()
145 if (new_block >= 0) block = new_block; in ResolveAttrs()
158 if (new_block >= 0) block = new_block; in ResolveAttrs()
172 block = -1; in ResolveAttrs()
183 block != -1 ? static_cast<uint32_t>(res.getTableCookie(block)) in ResolveAttrs()
292 ssize_t block = kXmlBlock; in ApplyStyle() local
318 block = style_attr_entry->stringBlock; in ApplyStyle()
332 block = def_style_attr_entry->stringBlock; in ApplyStyle()
[all …]
/frameworks/base/tools/aapt/
DResourceTable.cpp305 ResXMLTree& block, bool _appendComment) in PendingAttribute()
307 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute()
331 ResXMLTree& block, in compileAttribute() argument
337 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute()
350 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute()
352 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute()
362 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute()
364 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute()
366 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute()
382 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute()
[all …]
DResource.cpp230 ResXMLTree block; in parsePackage() local
231 status_t err = parseXMLResource(file, &block); in parsePackage()
238 while ((code=block.next()) != ResXMLTree::START_TAG in parsePackage()
246 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
249 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { in parsePackage()
251 file->getPrintableSource().string(), block.getLineNumber(), in parsePackage()
252 String8(block.getElementName(&len)).string()); in parsePackage()
256 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); in parsePackage()
259 file->getPrintableSource().string(), block.getLineNumber()); in parsePackage()
263 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); in parsePackage()
[all …]
/frameworks/base/libs/androidfw/tests/
DAppAsLib_test.cpp38 ssize_t block = table.getResource(app::R::integer::number1, &val); in TEST() local
39 ASSERT_GE(block, 0); in TEST()
57 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local
58 ASSERT_GE(block, 0); in TEST()
76 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local
77 ASSERT_GE(block, 0); in TEST()
DIdmap_test.cpp64 ssize_t block = target_table_.getResource(R::string::test2, &val, false); in TEST_F() local
65 ASSERT_GE(block, 0); in TEST_F()
67 const ResStringPool* pool = target_table_.getTableStringBlock(block); in TEST_F()
81 ASSERT_NE(block, new_block); in TEST_F()
117 ssize_t block = table.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/); in TEST_F() local
118 ASSERT_GE(block, 0); in TEST_F()
123 block = target_table_.getResource(kNonOverlaidResourceId, &val, false /*mayBeBag*/); in TEST_F()
124 ASSERT_LT(block, 0); in TEST_F()
DSplit_test.cpp87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local
92 EXPECT_GE(block, 0); in TEST_F()
115 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local
118 EXPECT_GE(block, 0); in TEST_F()
164 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local
166 EXPECT_GE(block, 0); in TEST_F()
174 block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F()
176 ASSERT_GE(block, 0); in TEST_F()
219 ssize_t block = table.getResource(R::string::test3, &val, MAY_NOT_BE_BAG); in TEST_F() local
220 EXPECT_LT(block, 0); in TEST_F()
[all …]
DResTable_test.cpp181 ssize_t block = in TEST() local
183 ASSERT_GE(block, 0); in TEST()
187 ssize_t newBlock = table.resolveReference(&val, block); in TEST()
188 EXPECT_EQ(block, newBlock); in TEST()
202 ssize_t block = in TEST() local
204 ASSERT_GE(block, 0); in TEST()
217 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST()
218 ASSERT_GE(block, 0); in TEST()
235 ssize_t block = in TEST() local
237 ASSERT_GE(block, 0); in TEST()
[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,
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DCallbackWrapperWriter.kt48 block("public final class $className $extendsImplements ${klass.canonicalName}") { in <lambda>()
52 block("public $className($listenerInterfaceName listener, int sourceId)") { in <lambda>()
58block("public ${method.returnType.canonicalName} ${method.name}(${wrapper.argsWithTypes()})") { in <lambda>()
67 block("public interface $listenerInterfaceName") { in <lambda>()
/frameworks/base/core/java/android/content/res/
DAssetManager.java183 final int block = loadResourceBagValue(resId, bagEntryId, outValue, true); in getResourceBagText() local
184 if (block < 0) { in getResourceBagText()
193 return mStringBlocks[block].get(outValue.data); in getResourceBagText()
226 final int block = loadResourceValue(resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue() local
227 if (block < 0) { in getResourceValue()
236 outValue.string = mStringBlocks[block].get(outValue.data); in getResourceValue()
256 int block; in getResourceTextArray() local
260 block = rawInfoArray[i]; in getResourceTextArray()
262 retArray[j] = index >= 0 ? mStringBlocks[block].get(index) : null; in getResourceTextArray()
283 final int block = loadThemeAttributeValue(theme, resId, outValue, resolveRefs); in getThemeValue() local
[all …]
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp101 const Res_value& value, uint32_t ref, ssize_t block,
105 const Res_value& value, uint32_t ref, ssize_t block, in copyValue() argument
110 static_cast<jint>(table->getTableCookie(block))); in copyValue()
119 return block; in copyValue()
899 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); in android_content_AssetManager_loadResourceValue() local
901 if (block == BAD_INDEX) { in android_content_AssetManager_loadResourceValue()
908 block = res.resolveReference(&value, block, &ref, &typeSpecFlags, &config); in android_content_AssetManager_loadResourceValue()
910 if (block == BAD_INDEX) { in android_content_AssetManager_loadResourceValue()
916 if (block >= 0) { in android_content_AssetManager_loadResourceValue()
917 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/base/tools/aapt2/proto/
DProtoHelpers.cpp29 for (const BigBuffer::Block& block : buffer) { in SerializeStringPoolToPb() local
30 data->insert(data->begin() + offset, block.buffer.get(), block.buffer.get() + block.size); in SerializeStringPoolToPb()
31 offset += block.size; in SerializeStringPoolToPb()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java102 byte[] block = new byte[512]; in readTarHeaders()
105 boolean gotHeader = readTarHeader(block); in readTarHeaders()
110 info.size = extractRadix(block, in readTarHeaders()
114 info.mtime = extractRadix(block, in readTarHeaders()
118 info.mode = extractRadix(block, in readTarHeaders()
123 info.path = extractString(block, in readTarHeaders()
126 String path = extractString(block, in readTarHeaders()
137 int typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR]; in readTarHeaders()
144 gotHeader = readTarHeader(block); in readTarHeaders()
150 typeChar = block[TAR_HEADER_OFFSET_TYPE_CHAR]; in readTarHeaders()
[all …]

1234567