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.java755 private void updateAlwaysNeedsToBeRedrawn(int blockIndex) { in updateAlwaysNeedsToBeRedrawn() argument
756 int startLine = blockIndex == 0 ? 0 : (mBlockEndLines[blockIndex - 1] + 1); in updateAlwaysNeedsToBeRedrawn()
757 int endLine = mBlockEndLines[blockIndex]; in updateAlwaysNeedsToBeRedrawn()
763 mBlocksAlwaysNeedToBeRedrawn.add(blockIndex); in updateAlwaysNeedsToBeRedrawn()
768 mBlocksAlwaysNeedToBeRedrawn.remove(blockIndex); in updateAlwaysNeedsToBeRedrawn()
909 int blockIndex = firstBlock; in updateBlocks() local
911 mBlockEndLines[blockIndex] = startLine - 1; in updateBlocks()
912 updateAlwaysNeedsToBeRedrawn(blockIndex); in updateBlocks()
913 mBlockIndices[blockIndex] = INVALID_BLOCK_INDEX; in updateBlocks()
914 blockIndex++; in updateBlocks()
[all …]
/frameworks/base/core/java/android/widget/
DEditor.java1847 final int blockIndex = dynamicLayout.getBlockIndex(blockSet.valueAt(i)); in drawHardwareAccelerated() local
1848 if (blockIndex != DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
1849 && mTextRenderNodes[blockIndex] != null) { in drawHardwareAccelerated()
1850 mTextRenderNodes[blockIndex].needsToBeShifted = true; in drawHardwareAccelerated()
1865 final int blockIndex = blockIndices[i]; in drawHardwareAccelerated() local
1867 && blockIndex != DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
1868 && mTextRenderNodes[blockIndex] != null) { in drawHardwareAccelerated()
1869 mTextRenderNodes[blockIndex].needsToBeShifted = true; in drawHardwareAccelerated()
1887 final int blockIndex = dynamicLayout.getBlockIndex(block); in drawHardwareAccelerated() local
1888 if (blockIndex == DynamicLayout.INVALID_BLOCK_INDEX in drawHardwareAccelerated()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1823 ssize_t blockIndex,
1900 ssize_t blockIndex, uint32_t* outLastRef = NULL,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp3919 ssize_t blockIndex, uint32_t* outLastRef, in resolveAttributeReference() argument
3925 blockIndex = getAttribute(inOutValue->data, inOutValue, &newTypeSpecFlags); in resolveAttributeReference()
3928 (int)blockIndex, (int)inOutValue->dataType, inOutValue->data); in resolveAttributeReference()
3932 if (blockIndex < 0) { in resolveAttributeReference()
3933 return blockIndex; in resolveAttributeReference()
3936 return mTable.resolveReference(inOutValue, blockIndex, outLastRef, in resolveAttributeReference()
4423 ssize_t ResTable::resolveReference(Res_value* value, ssize_t blockIndex, in resolveReference() argument
4428 while (blockIndex >= 0 && value->dataType == Res_value::TYPE_REFERENCE in resolveReference()
4447 return blockIndex; in resolveReference()
4449 blockIndex = newIndex; in resolveReference()
[all …]