/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/awt/org/apache/harmony/x/imageio/stream/ |
H A D | RandomAccessMemoryCache.java | 63 byte[] block = blocks.get((int)(pos >> BLOCK_SHIFT)); 64 block[(int)(pos & BLOCK_MASK)] = (byte) oneByte; 81 byte[] block = blocks.get((int)(pos >> BLOCK_SHIFT)); 84 System.arraycopy(buffer, offset, block, blockOffset, toCopy); 96 byte[] block = blocks.get((int)(pos >> BLOCK_SHIFT)); 97 return block[(int)(pos & BLOCK_MASK)] & 0xFF; 115 byte[] block = blocks.get((int)(pos >> BLOCK_SHIFT)); 117 System.arraycopy(block, (int)(pos & BLOCK_MASK), buffer, offset, nbytes); 182 byte[] block = blocks.get(blockIdx); 187 int bytesRead = is.read(block, offse [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | RandomBlock.java | 30 * A 4k block of random {@code byte}s. 36 private byte[] block = new byte[BLOCK_SIZE]; field in class:RandomBlock 55 int result = in.read(retval.block, total, BLOCK_SIZE - total); 87 out.write(block);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 235 ResXMLTree& block, bool _appendComment) 237 , sourcePos(in->getPrintableSource(), block.getLineNumber()) 279 ResXMLTree& block, 285 PendingAttribute attr(myPackage, in, block, inStyleable); 298 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); 300 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); 310 block.getComment(&len) ? block.getComment(&len) : nulStr); 312 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); 314 String16 typeStr = String16(block 278 compileAttribute(const sp<AaptFile>& in, ResXMLTree& block, const String16& myPackage, ResourceTable* outTable, String16* outIdent = NULL, bool inStyleable = false) argument 548 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 pseudolocalize, const bool overwrite, ResourceTable* outTable) argument 591 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 pseudolocalize, const bool overwrite, ResourceTable* outTable) argument 637 ResXMLTree block; local [all...] |
H A D | Resource.cpp | 190 ResXMLTree block; local 191 status_t err = parseXMLResource(file, &block); 195 //printXMLBlock(&block); 198 while ((code=block.next()) != ResXMLTree::START_TAG 206 file->getPrintableSource().string(), block.getLineNumber()); 209 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { 211 file->getPrintableSource().string(), block.getLineNumber(), 212 String8(block.getElementName(&len)).string()); 216 ssize_t nameIndex = block.indexOfAttribute(NULL, "package"); 219 file->getPrintableSource().string(), block 738 ResXMLTree block; local 812 ResXMLTree block; local 836 ResXMLTree block; local [all...] |
H A D | XMLNode.cpp | 293 void printXMLBlock(ResXMLTree* block) argument 295 block->restart(); 301 while ((code=block->next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { 306 const uint16_t* ns16 = block->getElementNamespace(&len); 308 const uint16_t* com16 = block->getComment(&len); 313 String8(block->getElementName(&len)).string(), 314 block->getLineNumber()); 315 int N = block->getAttributeCount(); 319 uint32_t res = block->getAttributeNameResID(i); 320 ns16 = block [all...] |
H A D | StringPool.cpp | 172 sp<AaptFile> block = createStringBlock(); local 173 if (block == NULL) { 176 ssize_t res = pool->writeData(block->getData(), block->getSize());
|
H A D | XMLNode.h | 30 void printXMLBlock(ResXMLTree* block);
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 139 int block = loadResourceValue(ident, tmpValue, true); 140 if (block >= 0) { 142 return mStringBlocks[block].get(tmpValue.data); 157 int block = loadResourceBagValue(ident, bagEntryId, tmpValue, true); 158 if (block >= 0) { 160 return mStringBlocks[block].get(tmpValue.data); 183 int block = loadResourceValue(ident, outValue, resolveRefs); 184 if (block >= 0) { 188 outValue.string = mStringBlocks[block].get(outValue.data); 203 int block; 256 getPooledString(int block, int id) argument 655 getNativeStringBlock(int block) argument [all...] |
H A D | XmlBlock.java | 77 Parser(int parseState, XmlBlock block) { argument 79 mBlock = block; 80 block.mOpenCount++; 473 * Create from an existing xml block native object. This is
|
H A D | Resources.java | 1614 // First see if this block is in our cache. 1886 // First see if this block is in our cache. 1896 // Not in the cache, create a new block and put it at 1898 XmlBlock block = mAssets.openXmlBlockAsset( 1900 if (block != null) { 1909 mCachedXmlBlocks[pos] = block; 1912 return block.newParser();
|
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 87 const Res_value& value, uint32_t ref, ssize_t block, 91 const Res_value& value, uint32_t ref, ssize_t block, 96 (jint)table->getTableCookie(block)); 105 return block; 718 ssize_t block = res.getResource(ident, &value, false, &typeSpecFlags, &config); local 721 block = res.resolveReference(&value, block, &ref); 723 return block >= 0 ? copyValue(env, outValue, &res, value, ref, block, typeSpecFlags, &config) : block; 90 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 739 ssize_t block = -1; local 776 android_content_AssetManager_getNativeStringBlock(JNIEnv* env, jobject clazz, jint block) argument 848 ssize_t block = theme->getAttribute(ident, &value, &typeSpecFlags); local 989 ssize_t block = 0; local 1161 ssize_t block = 0; local 1265 ssize_t block; local 1358 ResXMLTree* block = new ResXMLTree(); local 1453 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL); local 1498 ssize_t block = res.resolveReference(&value, bag->stringBlock, NULL); local [all...] |
/frameworks/base/core/java/com/android/server/ |
H A D | ResettableTimeout.java | 69 mLock.block();
|
/frameworks/base/tools/preload/ |
H A D | sorttable.js | 449 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/base/core/java/com/google/android/net/ |
H A D | UrlRules.java | 86 boolean block = false; 92 } else if (word.equals("block")) { 93 block = true; 102 mBlock = block;
|
/frameworks/base/awt/org/apache/harmony/awt/gl/image/ |
H A D | PngDecoderJava.java | 211 byte[] block = new byte[8192]; 212 while ((readLength = in.read(block)) != -1) 213 inflatedOut.write(block, 0, readLength);
|
/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 512 * @param block Controls whether the monitor should block the activity 519 IntentFilter which, ActivityResult result, boolean block) { 523 mBlock = block; 533 * @param block Controls whether the monitor should block the activity 540 String cls, ActivityResult result, boolean block) { 544 mBlock = block; 687 * @param block Controls whether the monitor should block th 518 ActivityMonitor( IntentFilter which, ActivityResult result, boolean block) argument 539 ActivityMonitor( String cls, ActivityResult result, boolean block) argument 696 addMonitor( IntentFilter filter, ActivityResult result, boolean block) argument 719 addMonitor( String cls, ActivityResult result, boolean block) argument [all...] |
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/ |
H A D | VpnTest.java | 128 assertTrue(cv.block(5000));
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewCore.java | 345 int y, boolean block); 344 nativeSetFinalFocus(int framePtr, int nodePtr, int x, int y, boolean block) argument
|