Home
last modified time | relevance | path

Searched refs:blockIndex (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/nfc/tech/
DMifareClassic.java290 public int blockToSector(int blockIndex) { in blockToSector() argument
291 validateBlock(blockIndex); in blockToSector()
293 if (blockIndex < 32 * 4) { in blockToSector()
294 return blockIndex / 4; in blockToSector()
296 return 32 + (blockIndex - 32 * 4) / 16; in blockToSector()
420 public byte[] readBlock(int blockIndex) throws IOException { in readBlock() argument
421 validateBlock(blockIndex); in readBlock()
424 byte[] cmd = { 0x30, (byte) blockIndex }; in readBlock()
442 public void writeBlock(int blockIndex, byte[] data) throws IOException { in writeBlock() argument
443 validateBlock(blockIndex); in writeBlock()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c72 uint64_t blockIndex; member
223 uint64_t blockIndex, in FwdLockFile_CalculateCounter() argument
227 for (; i < sizeof blockIndex; ++i) { in FwdLockFile_CalculateCounter()
228 unsigned char part = pNonce[i] + (unsigned char)(blockIndex >> (i * CHAR_BIT)); in FwdLockFile_CalculateCounter()
246 uint64_t blockIndex = pSession->filePos / AES_BLOCK_SIZE; in FwdLockFile_DecryptByte() local
248 if (blockIndex != pSession->blockIndex) { in FwdLockFile_DecryptByte()
251 FwdLockFile_CalculateCounter(pSession->pEncryptedSessionKey, blockIndex, counter); in FwdLockFile_DecryptByte()
253 pSession->blockIndex = blockIndex; in FwdLockFile_DecryptByte()
290 pSession->blockIndex = INVALID_BLOCK_INDEX; in FwdLockFile_attach()
/frameworks/base/core/java/android/text/
DDynamicLayout.java751 private void updateAlwaysNeedsToBeRedrawn(int blockIndex) { in updateAlwaysNeedsToBeRedrawn() argument
752 int startLine = blockIndex == 0 ? 0 : (mBlockEndLines[blockIndex - 1] + 1); in updateAlwaysNeedsToBeRedrawn()
753 int endLine = mBlockEndLines[blockIndex]; in updateAlwaysNeedsToBeRedrawn()
759 mBlocksAlwaysNeedToBeRedrawn.add(blockIndex); in updateAlwaysNeedsToBeRedrawn()
764 mBlocksAlwaysNeedToBeRedrawn.remove(blockIndex); in updateAlwaysNeedsToBeRedrawn()
905 int blockIndex = firstBlock; in updateBlocks() local
907 mBlockEndLines[blockIndex] = startLine - 1; in updateBlocks()
908 updateAlwaysNeedsToBeRedrawn(blockIndex); in updateBlocks()
909 mBlockIndices[blockIndex] = INVALID_BLOCK_INDEX; in updateBlocks()
910 blockIndex++; in updateBlocks()
[all …]
/frameworks/base/core/java/android/widget/
DEditor.java1825 final int blockIndex = dynamicLayout.getBlockIndex(blockSet.valueAt(i)); in drawHardwareAccelerated() local
1826 if (blockIndex != DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
1827 && mTextRenderNodes[blockIndex] != null) { in drawHardwareAccelerated()
1828 mTextRenderNodes[blockIndex].needsToBeShifted = true; in drawHardwareAccelerated()
1843 final int blockIndex = blockIndices[i]; in drawHardwareAccelerated() local
1845 && blockIndex != DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
1846 && mTextRenderNodes[blockIndex] != null) { in drawHardwareAccelerated()
1847 mTextRenderNodes[blockIndex].needsToBeShifted = true; in drawHardwareAccelerated()
1865 final int blockIndex = dynamicLayout.getBlockIndex(block); in drawHardwareAccelerated() local
1866 if (blockIndex == DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1764 ssize_t blockIndex,
1841 ssize_t blockIndex, uint32_t* outLastRef = NULL,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp3904 ssize_t blockIndex, uint32_t* outLastRef, in resolveAttributeReference() argument
3910 blockIndex = getAttribute(inOutValue->data, inOutValue, &newTypeSpecFlags); in resolveAttributeReference()
3913 (int)blockIndex, (int)inOutValue->dataType, inOutValue->data); in resolveAttributeReference()
3917 if (blockIndex < 0) { in resolveAttributeReference()
3918 return blockIndex; in resolveAttributeReference()
3921 return mTable.resolveReference(inOutValue, blockIndex, outLastRef, in resolveAttributeReference()
4408 ssize_t ResTable::resolveReference(Res_value* value, ssize_t blockIndex, in resolveReference() argument
4413 while (blockIndex >= 0 && value->dataType == Res_value::TYPE_REFERENCE in resolveReference()
4432 return blockIndex; in resolveReference()
4434 blockIndex = newIndex; in resolveReference()
[all …]