Home
last modified time | relevance | path

Searched refs:blockCount (Results 1 – 25 of 80) sorted by relevance

1234

/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DHeapDiskTest.java53 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testInitialSettings_basic()
70 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testInitialSettings_fromConfiguration()
79 assertThat(blocks.blockCount()).isEqualTo(1); in testAllocate()
85 assertThat(blocks.blockCount()).isEqualTo(6); in testAllocate()
86 for (int i = 0; i < blocks.blockCount(); i++) { in testAllocate()
90 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testAllocate()
99 assertThat(blocks.blockCount()).isEqualTo(4); in testFree_noCaching()
101 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testFree_noCaching()
105 assertThat(blocks.blockCount()).isEqualTo(0); in testFree_noCaching()
107 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testFree_noCaching()
[all …]
DRegularFileBlocksTest.java48 assertThat(file.blockCount()).isEqualTo(0); in testInitialState()
58 assertThat(file.blockCount()).isEqualTo(1); in testAddAndGet()
64 assertThat(file.blockCount()).isEqualTo(2); in testAddAndGet()
76 assertThat(file.blockCount()).isEqualTo(4); in testTruncate()
80 assertThat(file.blockCount()).isEqualTo(2); in testTruncate()
86 assertThat(file.blockCount()).isEqualTo(0); in testTruncate()
96 assertThat(other.blockCount()).isEqualTo(0); in testCopyTo()
100 assertThat(other.blockCount()).isEqualTo(2); in testCopyTo()
106 assertThat(other.blockCount()).isEqualTo(3); in testCopyTo()
111 assertThat(file.blockCount()).isEqualTo(5); in testCopyTo()
[all …]
/external/dng_sdk/source/
Ddng_memory_stream.cpp98 uint32 blockCount = Min_uint32 (fPageSize - pageOffset, count); in DoRead() local
105 DoCopyBytes (sPtr, dPtr, blockCount); in DoRead()
107 offset += blockCount; in DoRead()
108 count -= blockCount; in DoRead()
202 uint32 blockCount = Min_uint32 (fPageSize - pageOffset, count); in DoWrite() local
209 DoCopyBytes (sPtr, dPtr, blockCount); in DoWrite()
211 offset += blockCount; in DoWrite()
212 count -= blockCount; in DoWrite()
251 uint32 blockCount = (uint32) Min_uint64 (fPageSize - pageOffset, count); in CopyToStream() local
256 dstStream.Put (sPtr, blockCount); in CopyToStream()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowStatFs.java38 return stat.blockCount; in getBlockCount()
98 return stat.blockCount; in getBlockCountLong()
115 public static void registerStats(File path, int blockCount, int freeBlocks, int availableBlocks) { in registerStats() argument
116 registerStats(path.getAbsolutePath(), blockCount, freeBlocks, availableBlocks); in registerStats() local
129 public static void registerStats(String path, int blockCount, int freeBlocks, in registerStats() argument
131 stats.put(path, new Stats(blockCount, freeBlocks, availableBlocks)); in registerStats()
140 Stats(int blockCount, int freeBlocks, int availableBlocks) { in Stats() argument
141 this.blockCount = blockCount; in Stats()
145 int blockCount, freeBlocks, availableBlocks; field in ShadowStatFs.Stats
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowStatFs.java38 return stat.blockCount; in getBlockCount()
98 return stat.blockCount; in getBlockCountLong()
115 public static void registerStats(File path, int blockCount, int freeBlocks, int availableBlocks) { in registerStats() argument
116 registerStats(path.getAbsolutePath(), blockCount, freeBlocks, availableBlocks); in registerStats() local
129 public static void registerStats(String path, int blockCount, int freeBlocks, in registerStats() argument
131 stats.put(path, new Stats(blockCount, freeBlocks, availableBlocks)); in registerStats()
158 Stats(int blockCount, int freeBlocks, int availableBlocks) { in Stats() argument
159 this.blockCount = blockCount; in Stats()
163 int blockCount, freeBlocks, availableBlocks; field in ShadowStatFs.Stats
/external/pdfium/fxbarcode/datamatrix/
DBC_ErrorCorrection.cpp195 size_t blockCount = symbolInfo->GetInterleavedBlockCount(); in EncodeECC200() local
196 if (blockCount == 1) { in EncodeECC200()
202 std::vector<size_t> dataSizes(blockCount); in EncodeECC200()
203 std::vector<size_t> errorSizes(blockCount); in EncodeECC200()
204 std::vector<size_t> startPos(blockCount); in EncodeECC200()
205 for (size_t i = 0; i < blockCount; ++i) { in EncodeECC200()
212 *std::max_element(errorSizes.begin(), errorSizes.end()) * blockCount; in EncodeECC200()
217 for (size_t block = 0; block < blockCount; ++block) { in EncodeECC200()
220 temp.Reserve((symbolInfo->data_capacity() - block / blockCount) + 1); in EncodeECC200()
221 for (size_t d = block; d < symbolInfo->data_capacity(); d += blockCount) in EncodeECC200()
[all …]
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DRegularFile.java51 private int blockCount; field in RegularFile
60 RegularFile(int id, HeapDisk disk, byte[][] blocks, int blockCount, long size) { in RegularFile() argument
64 this.blockCount = blockCount; in RegularFile()
92 int blockCount() { in blockCount() method in RegularFile
93 return blockCount; in blockCount()
98 int start = blockCount - count; in copyBlocksTo()
99 int targetEnd = target.blockCount + count; in copyBlocksTo()
102 System.arraycopy(this.blocks, start, target.blocks, target.blockCount, count); in copyBlocksTo()
103 target.blockCount = targetEnd; in copyBlocksTo()
109 truncateBlocks(blockCount - count); in transferBlocksTo()
[all …]
DHeapDisk.java117 int newBlocksNeeded = Math.max(count - blockCache.blockCount(), 0); in allocate()
132 free(file, file.blockCount()); in free()
137 int remainingCacheSpace = maxCachedBlockCount - blockCache.blockCount(); in free()
141 file.truncateBlocks(file.blockCount() - count); in free()
/external/deqp/framework/delibs/destream/
DdeRingbuffer.c35 deInt32 blockCount; member
52 deRingbuffer* deRingbuffer_create (deInt32 blockSize, deInt32 blockCount) in deRingbuffer_create() argument
57 DE_ASSERT(blockCount > 0); in deRingbuffer_create()
61 ringbuffer->blockCount = blockCount; in deRingbuffer_create()
62 ringbuffer->buffer = (deUint8*)deMalloc(sizeof(deUint8) * (size_t)blockSize * (size_t)blockCount); in deRingbuffer_create()
63 ringbuffer->blockUsage = (deInt32*)deMalloc(sizeof(deUint32) * (size_t)blockCount); in deRingbuffer_create()
64 ringbuffer->emptyCount = deSemaphore_create(ringbuffer->blockCount, DE_NULL); in deRingbuffer_create()
82 memset(ringbuffer->blockUsage, 0, sizeof(deInt32) * (size_t)blockCount); in deRingbuffer_create()
156 if (ringbuffer->inBlock == ringbuffer->blockCount) in producerStream_write()
178 if (ringbuffer->inBlock == ringbuffer->blockCount) in producerStream_flush()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavSeekMap.java28 private final long blockCount; field in WavSeekMap
36 this.blockCount = (dataEndPosition - dataStartPosition) / wavFormat.blockSize; in WavSeekMap()
37 durationUs = blockIndexToTimeUs(blockCount); in WavSeekMap()
54 blockIndex = Util.constrainValue(blockIndex, 0, blockCount - 1); in getSeekPoints()
59 if (seekTimeUs >= timeUs || blockIndex == blockCount - 1) { in getSeekPoints()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavSeekMap.java28 private final long blockCount; field in WavSeekMap
36 this.blockCount = (dataEndPosition - dataStartPosition) / wavFormat.blockSize; in WavSeekMap()
37 durationUs = blockIndexToTimeUs(blockCount); in WavSeekMap()
54 blockIndex = Util.constrainValue(blockIndex, 0, blockCount - 1); in getSeekPoints()
59 if (seekTimeUs >= timeUs || blockIndex == blockCount - 1) { in getSeekPoints()
/external/OpenCL-CTS/test_conformance/half/
DTest_vStoreHalf.cpp700 size_t blockCount = BUFFER_SIZE / elementSize; // elementSize is power of 2 in Test_vStoreHalf_private() local
702 size_t stride = blockCount; in Test_vStoreHalf_private()
705 stride = (uint64_t)blockCount * (uint64_t)gWimpyReductionFactor; in Test_vStoreHalf_private()
723 fref.lim = blockCount; in Test_vStoreHalf_private()
724 fref.count = (blockCount + threadCount - 1) / threadCount; in Test_vStoreHalf_private()
731 fchk.lim = blockCount; in Test_vStoreHalf_private()
732 fchk.count = (blockCount + threadCount - 1) / threadCount; in Test_vStoreHalf_private()
738 dref.lim = blockCount; in Test_vStoreHalf_private()
739 dref.count = (blockCount + threadCount - 1) / threadCount; in Test_vStoreHalf_private()
746 dchk.lim = blockCount; in Test_vStoreHalf_private()
[all …]
DTest_roundTrip.cpp163 size_t blockCount = (size_t)getBufferSize(device) / elementSize; //elementSize is a power of two in test_roundTrip() local
165 size_t stride = blockCount; in test_roundTrip()
174 count = (uint32_t)std::min((uint64_t)blockCount, lastCase - i); in test_roundTrip()
295 if( ((i+blockCount) & ~printMask) == (i+blockCount) ) in test_roundTrip()
DTest_vLoadHalf.cpp436 size_t blockCount = getBufferSize(device) / elementSize; // elementSize is power of 2 in Test_vLoadHalf_private() local
451 for( i = 0; i < (uint64_t)lastCase; i += blockCount ) in Test_vLoadHalf_private()
453 count = (uint32_t)std::min((uint64_t)blockCount, lastCase - i); in Test_vLoadHalf_private()
566 if( ((i+blockCount) & ~printMask) == (i+blockCount) ) in Test_vLoadHalf_private()
/external/emma/core/java12/com/vladium/emma/instr/
DInstrVisitor.java591 final int blockCount = blockCounts [m]; in visit() local
592 if (blockCount > 0) in visit()
605 CodeGen.push_int_value (buf, cls, blockCount); in visit()
943 final int blockCount = leaders.size (); in visit() local
944 if (trace2) m_log.trace2 ("visit", "method contains " + blockCount + " basic blocks"); in visit()
946 final BlockList blocks = new BlockList (blockCount); in visit()
948 final int [] _leaders = new int [blockCount + 1]; // room for end-of-code leader at the end in visit()
950 _leaders [blockCount] = codeSize; in visit()
963 m_methodBlockSizes = new int [blockCount]; in visit()
976 for (int bl = 0, br = 0; bl < blockCount; ++ bl) in visit()
[all …]
/external/emma/core/java12/com/vladium/emma/data/
DMethodDescriptor.java46 final int blockCount = blockSizes.length; in MethodDescriptor() local
48 …if ($assert.ENABLED) $assert.ASSERT (blockCount > 0, "blockCount must be positive: " + blockCount); in MethodDescriptor()
62 …$assert.ASSERT (blockCount == blockMap.length, "blockCount " + blockCount + " != blockMap.length "… in MethodDescriptor()
/external/xz-java/src/org/tukaani/xz/
DSeekableXZInputStream.java126 private int blockCount = 0; field in SeekableXZInputStream
564 blockCount += index.getRecordCount(); in SeekableXZInputStream()
565 if (blockCount < 0) in SeekableXZInputStream()
654 return blockCount; in getBlockCount()
988 if (blockNumber < 0 || blockNumber >= blockCount) in seekToBlock()
1104 if (blockNumber < 0 || blockNumber >= blockCount)
/external/icing/icing/index/iterator/
Ddoc-hit-info-iterator-or.cc251 int32_t blockCount = 0; in GetNumBlocksInspected() local
253 blockCount += iter->GetNumBlocksInspected(); in GetNumBlocksInspected()
255 return blockCount; in GetNumBlocksInspected()
Ddoc-hit-info-iterator-and.cc233 int32_t blockCount = 0; in GetNumBlocksInspected() local
235 blockCount += iter->GetNumBlocksInspected(); in GetNumBlocksInspected()
237 return blockCount; in GetNumBlocksInspected()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp433 unsigned blockCount = currBldrCtx->blockCount(); in VisitCXXNewExpr() local
455 symVal = svalBuilder.getConjuredHeapSymbolVal(CNE, LCtx, blockCount); in VisitCXXNewExpr()
458 blockCount); in VisitCXXNewExpr()
468 State = Call->invalidateRegions(blockCount); in VisitCXXNewExpr()
549 currBldrCtx->blockCount()); in VisitCXXCatchStmt()
DExprEngineC.cpp49 unsigned Count = currBldrCtx->blockCount(); in VisitBinaryOperator()
70 unsigned Count = currBldrCtx->blockCount(); in VisitBinaryOperator()
162 currBldrCtx->blockCount()); in VisitBinaryOperator()
196 currBldrCtx->blockCount()); in VisitBlockExpr()
405 currBldrCtx->blockCount()); in VisitCast()
434 currBldrCtx->blockCount()); in VisitCast()
534 currBldrCtx->blockCount()); in VisitDeclStmt()
724 currBldrCtx->blockCount()); in VisitGuardedExpr()
975 currBldrCtx->blockCount()); in VisitIncrementDecrementOperator()
/external/openthread/src/cli/
Dcli_coap_secure.cpp732 static uint32_t blockCount = 0; in BlockwiseTransmitHook() local
738 OutputLine("send block: Num %i Len %i", blockCount, *aBlockLength); in BlockwiseTransmitHook()
745 if (blockCount == mBlockCount - 1) in BlockwiseTransmitHook()
747 blockCount = 0; in BlockwiseTransmitHook()
753 blockCount++; in BlockwiseTransmitHook()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2Writable.java742 int i, mapIndex, blockCount; in compactData() local
755 blockCount=blockLength>>UTRIE2_SHIFT_2; in compactData()
764 blockCount=1; in compactData()
780 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
801 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
812 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2Writable.java744 int i, mapIndex, blockCount; in compactData() local
757 blockCount=blockLength>>UTRIE2_SHIFT_2; in compactData()
766 blockCount=1; in compactData()
782 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
803 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
814 for(i=blockCount, mapIndex=start>>UTRIE2_SHIFT_2; i>0; --i) { in compactData()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DShadowUtils.java79 int blockCount = totalBytes / ShadowStatFs.BLOCK_SIZE; in setStatFs() local
82 ShadowStatFs.registerStats(dir, blockCount, freeBlocks, availableBlocks); in setStatFs()

1234