/packages/modules/StatsD/statsd/benchmark/ |
D | data_structures_benchmark.cpp | 29 void benchmarkFunctionForVector(std::vector<ContainerType>& vec, int capacity) { in benchmarkFunctionForVector() argument 31 for (int i = 0; i < capacity; i++) { in benchmarkFunctionForVector() 37 for (int i = 0; i < capacity; i++) { in benchmarkFunctionForVector() 47 void benchmarkStdFillForVector(std::vector<ContainerType>& vec, int capacity) { in benchmarkStdFillForVector() argument 50 for (int i = 0; i < capacity; i++) { in benchmarkStdFillForVector() 62 const int capacity = state.range(0); in BM_BasicVectorBoolUsage() local 63 std::vector<bool> vec(capacity); in BM_BasicVectorBoolUsage() 66 benchmarkFunctionForVector<bool>(vec, capacity); in BM_BasicVectorBoolUsage() 72 const int capacity = state.range(0); in BM_VectorBoolStdFill() local 73 std::vector<bool> vec(capacity); in BM_VectorBoolStdFill() [all …]
|
/packages/modules/StatsD/lib/libkll/tests/ |
D | compactor_stack_test.cpp | 37 int capacity; member 43 for (int capacity = 2; capacity < 1030; capacity *= 2) { in GenCompactorsTestParams() local 44 testcases.push_back({num_items, capacity}); in GenCompactorsTestParams() 66 while (sampler.capacity() < params.capacity) { in TEST_P() 72 EXPECT_EQ(compactor_stack.num_stored_items(), params.num_items / sampler.capacity()); in TEST_P() 75 params.num_items % sampler.capacity()); in TEST_P() 77 EXPECT_EQ(0, params.num_items % sampler.capacity()); in TEST_P() 90 while (sampler.capacity() < params.capacity) { in TEST_P() 100 EXPECT_EQ(compactor_stack.num_stored_items(), params.num_items / sampler.capacity()); in TEST_P() 103 params.num_items % sampler.capacity()); in TEST_P() [all …]
|
D | sampler_test.cpp | 86 EXPECT_EQ(sampler.capacity(), 2); in TEST_F() 102 EXPECT_EQ(sampler.capacity(), 4); in TEST_F() 115 EXPECT_EQ(sampler.capacity(), 2); in TEST_F() 133 EXPECT_EQ(sampler.capacity(), 2); in TEST_F() 215 EXPECT_EQ(sampler.capacity(), 4); in TEST_F() 222 EXPECT_EQ(sampler.capacity(), 8); in TEST_F() 251 EXPECT_EQ(sampler.capacity(), 4); in TEST_F() 261 EXPECT_EQ(sampler.capacity(), 2); in TEST_F() 264 EXPECT_EQ(sampler.capacity(), 4); in TEST_F() 297 while (sampler.capacity() <= num_items) { in TEST_P()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 36 final int capacity = 23; in writeBytes() local 37 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in writeBytes() 40 assertEquals(capacity, buffer.freeSize()); in writeBytes() 41 assertEquals(capacity, buffer.getDirectWriteSize()); in writeBytes() 48 assertEquals(capacity - writeBuffer.length, buffer.freeSize()); in writeBytes() 49 assertEquals(capacity - writeBuffer.length, buffer.getDirectWriteSize()); in writeBytes() 54 assertEquals(capacity, buffer.freeSize()); in writeBytes() 55 assertEquals(capacity, buffer.getDirectWriteSize()); in writeBytes() 94 final int capacity, final int writeLen, final int readLen) { in doTestReadWrite() argument 95 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in doTestReadWrite() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_pool.h | 31 explicit DicNodePool(const int capacity) : mDicNodes(), mPooledDicNodes() { in DicNodePool() argument 32 reset(capacity); in DicNodePool() 35 void reset(const int capacity) { in reset() argument 36 if (capacity == static_cast<int>(mDicNodes.size()) in reset() 37 && capacity == static_cast<int>(mPooledDicNodes.size())) { in reset() 41 mDicNodes.resize(capacity); in reset()
|
D | dic_node_priority_queue.h | 32 AK_FORCE_INLINE explicit DicNodePriorityQueue(const int capacity) in DicNodePriorityQueue() argument 33 : mMaxSize(capacity), mDicNodesQueue(), mDicNodePool(capacity) { in DicNodePriorityQueue()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | BytesBufferPool.java | 35 private BytesBuffer(int capacity) { in BytesBuffer() argument 36 this.data = new byte[capacity]; in BytesBuffer() 44 int capacity = data.length; in readFrom() local 46 int step = Math.min(READ_STEP, capacity - length); in readFrom() 51 if (length == capacity) { in readFrom() 55 capacity = data.length; in readFrom()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | SamplePool.java | 40 if (sample.data.capacity() >= size in acquireSample() 42 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample() 47 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | InputBufferPool.java | 42 if (sample.data.capacity() >= size in acquireSample() 44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample() 49 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
D | ManagedImageReader.java | 96 private AllocatingImageStream createUnallocatedStream(int capacity) { in createUnallocatedStream() argument 108 AllocatingImageStream stream = new AllocatingImageStream(capacity, in createUnallocatedStream() 127 public ImageStream createStream(int capacity) { in createStream() argument 128 return createUnallocatedStream(capacity); in createStream() 148 public ImageStream createPreallocatedStream(int capacity) throws InterruptedException, in createPreallocatedStream() argument 150 AllocatingImageStream stream = createUnallocatedStream(capacity); in createPreallocatedStream()
|
/packages/modules/Virtualization/pvmfw/ |
D | platform.dts | 103 capacity-dmips-mhz = <PLACEHOLDER>; 115 capacity-dmips-mhz = <PLACEHOLDER>; 127 capacity-dmips-mhz = <PLACEHOLDER>; 139 capacity-dmips-mhz = <PLACEHOLDER>; 151 capacity-dmips-mhz = <PLACEHOLDER>; 163 capacity-dmips-mhz = <PLACEHOLDER>; 175 capacity-dmips-mhz = <PLACEHOLDER>; 187 capacity-dmips-mhz = <PLACEHOLDER>; 199 capacity-dmips-mhz = <PLACEHOLDER>; 211 capacity-dmips-mhz = <PLACEHOLDER>; [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | Sets.java | 68 int capacity = elements.length * 4 / 3 + 1; in newHashSet() local 69 HashSet<E> set = new HashSet<E>(capacity); in newHashSet() 107 int capacity = elements.length * 4 / 3 + 1; in newArraySet() local 108 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet()
|
D | Lists.java | 67 int capacity = (elements.length * 110) / 100 + 5; in newArrayList() local 68 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SuggestionResults.java | 39 public SuggestionResults(final int capacity, final boolean isBeginningOfSentence, in SuggestionResults() argument 41 this(sSuggestedWordInfoComparator, capacity, isBeginningOfSentence, in SuggestionResults() 45 private SuggestionResults(final Comparator<SuggestedWordInfo> comparator, final int capacity, in SuggestionResults() argument 49 mCapacity = capacity; in SuggestionResults()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/ |
D | ByteArrayBuffer.java | 43 public ByteArrayBuffer(int capacity) { in ByteArrayBuffer() argument 45 if (capacity < 0) { in ByteArrayBuffer() 48 this.buffer = new byte[capacity]; in ByteArrayBuffer() 129 public int capacity() { in capacity() method in ByteArrayBuffer
|
/packages/modules/Bluetooth/system/osi/src/ |
D | fixed_queue.cc | 39 size_t capacity; member 48 fixed_queue_t* fixed_queue_new(size_t capacity) { in fixed_queue_new() argument 53 ret->capacity = capacity; in fixed_queue_new() 58 ret->enqueue_sem = semaphore_new(capacity); in fixed_queue_new() 116 return queue->capacity; in fixed_queue_capacity()
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArray.java | 31 public ResizableIntArray(final int capacity) { in ResizableIntArray() argument 32 reset(capacity); in ResizableIntArray() 91 public void reset(final int capacity) { in reset() argument 93 mArray = new int[capacity]; in reset()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskJpegEncode.java | 84 byte[] dataCopy = new byte[y_buffer.capacity() + u_buffer.capacity() + v_buffer.capacity()]; in convertYUV420ImageToPackedNV21() 110 final int y_size = y_buffer.capacity(); in convertYUV420ImageToPackedNV21() 111 final int u_size = u_buffer.capacity(); in convertYUV420ImageToPackedNV21()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/ |
D | FiniteTicketPool.java | 85 public FiniteTicketPool(int capacity) { in FiniteTicketPool() argument 86 mMaxCapacity = capacity; in FiniteTicketPool() 88 mTickets = capacity; in FiniteTicketPool() 91 mAvailableTicketCount = new ConcurrentState<>(capacity); in FiniteTicketPool()
|
/packages/modules/Bluetooth/system/gd/common/ |
D | bidi_queue.h | 64 explicit BidiQueue(size_t capacity) in BidiQueue() argument 65 : up_queue_(capacity), in BidiQueue() 66 down_queue_(capacity), in BidiQueue()
|
D | lru_cache_test.cc | 421 int capacity = 0xFFFF; // 2^16 = 65535 in TEST() local 422 LruCache<int, int> cache(static_cast<size_t>(capacity)); in TEST() 425 for (int key = 0; key < capacity; key++) { in TEST() 430 for (int key = 0; key < capacity; key++) { in TEST() 435 for (int key = 0; key < capacity; key++) { in TEST() 436 int new_key = key + capacity; in TEST() 444 for (int key = capacity; key < 2 * capacity; key++) { in TEST()
|
/packages/modules/Bluetooth/system/common/ |
D | leaky_bonded_queue.h | 45 LeakyBondedQueue(size_t capacity); 95 LeakyBondedQueue<T>::LeakyBondedQueue(size_t capacity) { in LeakyBondedQueue() argument 96 capacity_ = capacity; in LeakyBondedQueue()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/ |
D | CircularByteBuffer.java | 33 public CircularByteBuffer(int capacity) { in CircularByteBuffer() argument 34 mCapacity = capacity; in CircularByteBuffer() 47 public int capacity() { in capacity() method in CircularByteBuffer
|
/packages/modules/Virtualization/vmbase/example/src/ |
D | pci.rs | 75 info!("Found {} KiB block device.", blk.capacity() * SECTOR_SIZE_BYTES as u64 / 1024); in check_virtio_block_device() 78 assert_eq!(blk.capacity(), EXPECTED_SECTOR_COUNT as u64); in check_virtio_block_device() 90 assert_eq!(blk.capacity(), 0); in check_virtio_block_device()
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | packet_builder_test.cc | 47 ASSERT_EQ(packet->GetData().capacity(), 0u); in TEST() 52 ASSERT_GE(packet->GetData().capacity(), test_l2cap_data.size()); in TEST()
|