/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
H A D | SparseLongArray.kt | 26 inline val SparseLongArray.size get() = size() 39 val new = SparseLongArray(size() + other.size()) 64 inline fun SparseLongArray.isEmpty() = size() == 0 68 inline fun SparseLongArray.isNotEmpty() = size() != 0 88 for (index in 0 until size()) { 97 override fun hasNext() = index < size() 105 override fun hasNext() = index < size()
|
/frameworks/support/media/version-compat-tests/lib/src/main/java/android/support/mediacompat/testlib/util/ |
H A D | TestUtil.java | 36 assertEquals(expected.size(), observed.size());
|
/frameworks/wilhelm/src/android/ |
H A D | BufferQueueSource.cpp | 34 sizeof(SLuint32), // item size 57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument 58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size); 99 if (offset + (off64_t) size <= mStreamToBqOffset + oldFront->mDataSize) { 102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) { 124 memcpy(data, pSrc, size); 125 readSize = size; 165 status_t BufferQueueSource::getSize(off64_t *size) { argument 168 *size [all...] |
H A D | BufferQueueSource.h | 23 // to the item key (SLuint32), the item size (SLuint32), and the item data (mask on SLuint32) 40 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 42 virtual status_t getSize(off64_t *size);
|
/frameworks/base/core/java/android/util/ |
H A D | LruCache.java | 35 * <p>By default, the cache size is measured in the number of entries. Override 36 * {@link #sizeOf} to size the cache in different units. For example, this cache 66 private int size; field in class:LruCache 89 * Sets the size of the cache. 91 * @param maxSize The new maximum size. 145 size += safeSizeOf(key, createdValue); 172 size += safeSizeOf(key, value); 175 size -= safeSizeOf(key, previous); 189 * below the requested size. 191 * @param maxSize the maximum size o 316 public synchronized final int size() { method in class:LruCache [all...] |
H A D | MemoryIntArray.java | 64 * @param size The size of the array in terms of integer slots. Cannot be 68 public MemoryIntArray(int size) throws IOException { argument 69 if (size > MAX_SIZE) { 70 throw new IllegalArgumentException("Max size is " + MAX_SIZE); 74 mFd = nativeCreate(name, size); 128 * Gets the array size. 132 public int size() throws IOException { method in class:MemoryIntArray 214 final int size = size(); 227 nativeCreate(String name, int size) argument [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | CursorWindow.h | 47 * FieldSlot per column, which has the size, offset, and type of the data for that field. 54 void* data, size_t size, bool readOnly); 75 uint32_t size; member in struct:android::CursorWindow::FieldSlot::__anon947::__anon948 84 static status_t create(const String8& name, size_t size, CursorWindow** outCursorWindow); 90 inline size_t size() { return mSize; } function in class:android::CursorWindow 105 status_t putBlob(uint32_t row, uint32_t column, const void* value, size_t size); 131 *outSizeIncludingNull = fieldSlot->data.buffer.size; 133 fieldSlot->data.buffer.offset, fieldSlot->data.buffer.size)); 137 *outSize = fieldSlot->data.buffer.size; 138 return offsetToPtr(fieldSlot->data.buffer.offset, fieldSlot->data.buffer.size); [all...] |
/frameworks/layoutlib/bridge/src/android/util/ |
H A D | LruCache.java | 39 * <p>By default, the cache size is measured in the number of entries. Override 40 * {@link #sizeOf} to size the cache in different units. For example, this cache 70 private int size; field in class:LruCache 93 * Sets the size of the cache. 94 * @param maxSize The new maximum size. 150 size += safeSizeOf(key, createdValue); 177 size += safeSizeOf(key, value); 180 size -= safeSizeOf(key, previous); 193 * @param maxSize the maximum size of the cache before returning. May be -1 201 if (size < 327 public synchronized final int size() { method in class:LruCache [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Call.java | 106 return connections.size() > 0; 148 if (l.size() == 0) { 152 for (int i = 0, s = l.size() ; i < s ; i++) { 174 if (l.size() == 0) { 178 for (int i = 0, s = l.size() ; i < s ; i++) { 195 if (l.size() == 0) { 199 for (int i = 0, s = l.size() ; i < s ; i++) { 229 if (l.size() == 0) { 235 for (int i = 0, s = l.size() ; i < s ; i++) { 265 for (int i = mConnections.size() [all...] |
/frameworks/support/collection/src/main/java/androidx/collection/ |
H A D | LruCache.java | 34 private int size; field in class:LruCache 57 * Sets the size of the cache. 59 * @param maxSize The new maximum size. 113 size += safeSizeOf(key, createdValue); 140 size += safeSizeOf(key, value); 143 size -= safeSizeOf(key, previous); 157 * below the requested size. 159 * @param maxSize the maximum size of the cache before returning. May be -1 167 if (size < 0 || (map.isEmpty() && size ! 280 public synchronized final int size() { method in class:LruCache [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 56 size_t read(void* buffer, size_t size) override { 63 if (0 == size) { 72 size_t amount = this->doSkip(size - amountSkipped, env); 83 } while (amountSkipped < size); 87 return this->doRead(buffer, size, env); 93 size_t doRead(void* buffer, size_t size, JNIEnv* env) { argument 98 if (size > static_cast<size_t>(fCapacity)) { 103 requested = static_cast<jint>(size); 127 size -= n; 129 } while (size ! 134 doSkip(size_t size, JNIEnv* env) argument 226 write(const void* buffer, size_t size) argument [all...] |
/frameworks/compile/mclinker/lib/Target/X86/ |
H A D | X86PLT.cpp | 88 uint64_t size = 0; local 89 // plt0 size 90 size = getPLT0()->size(); 96 // plt1 size 98 size += (m_pSectionData->size() - 1) * plt1->size(); 100 m_Section.setSize(size); 106 offset += frag->size(); [all...] |
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/ |
H A D | ExpressionVisitorTest.java | 62 assertEquals(1, mParser.getModel().size()); 65 assertEquals(0, res.getDependencies().size()); 93 assertEquals(3, mParser.getModel().size()); 96 assertEquals(0, res.getDependencies().size()); 105 assertEquals(2, mParser.mModel.size()); 107 assertEquals(1, expr.getChildren().size()); 112 assertEquals(0, id.getDependencies().size()); 113 assertEquals(1, expr.getDependencies().size()); 119 assertEquals(1, mParser.mModel.size()); 128 assertEquals(6, mParser.getModel().size()); [all...] |
/frameworks/base/core/java/android/transition/ |
H A D | TransitionSet.java | 161 return mTransitions.size(); 172 if (index < 0 || index >= mTransitions.size()) { 189 int numTransitions = mTransitions.size(); 209 for (int i = 0; i < mTransitions.size(); i++) { 217 for (int i = 0; i < mTransitions.size(); i++) { 225 for (int i = 0; i < mTransitions.size(); i++) { 233 for (int i = 0; i < mTransitions.size(); i++) { 246 for (int i = 0; i < mTransitions.size(); i++) { 254 for (int i = 0; i < mTransitions.size(); i++) { 262 for (int i = 0; i < mTransitions.size(); [all...] |
/frameworks/base/core/jni/ |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 47 jfieldID size; member in struct:android::__anon926 63 static jobjectArray get_string_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 71 return env->NewObjectArray(size, gStringClass, NULL); 74 static jintArray get_int_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 82 return env->NewIntArray(size); 85 static jlongArray get_long_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 93 return env->NewLongArray(size); 144 if (limitIfaces.size() > 0) { 147 while (i < (int)limitIfaces.size()) { 153 if (i >= (int)limitIfaces.size()) { 210 int size = lines.size(); local [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/ |
H A D | MenuTest.kt | 52 assertEquals(2, menu.size) 55 assertEquals(1, menu.size) 59 assertEquals(0, menu.size) 62 @Test fun size() { 63 assertEquals(0, menu.size) 66 assertEquals(1, menu.size) 69 assertEquals(2, menu.size) 72 assertEquals(1, menu.size) 112 assertEquals(index, items.size) 142 assertEquals(1, menu.size()) [all...] |
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/ |
H A D | SortedListTest.java | 186 assertEquals("empty", mList.size(), 0); 193 assertEquals(size(), 1); 198 assertEquals(size(), 2); 204 assertEquals(size(), 3); 214 assertEquals(1, size()); 215 assertEquals(1, mAdditions.size()); 216 assertEquals(0, mUpdates.size()); 223 assertEquals(0, mRemovals.size()); 226 assertEquals(1, mRemovals.size()); 228 assertEquals(0, size()); 384 assertIntegrity(int size, String context) argument 1501 private int size() { method in class:SortedListTest [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator_test.cpp | 35 ASSERT_EQ(original_style.spans.size(), new_string->value->spans.size()); 38 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); 39 EXPECT_EQ(std::u16string(u"Hello worl").size(), new_string->value->spans[0].last_char); 42 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); 43 EXPECT_EQ(std::u16string(u"Hel").size(), new_string->value->spans[1].last_char); 46 EXPECT_EQ(std::u16string(u"Hello ").size(), new_string->value->spans[2].first_char); 47 EXPECT_EQ(std::u16string(u"Hello w").size(), new_string->value->spans[2].last_char); 56 ASSERT_EQ(original_style.spans.size(), new_string->value->spans.size()); [all...] |
/frameworks/native/libs/gui/ |
H A D | FrameTimestamps.cpp | 179 *iHint = std::min(*iHint, mFrames.size()); 272 if (CC_UNLIKELY(d.mIndex >= mFrames.size())) { 379 mQueueOffset = (mQueueOffset + 1) % mFrames.size(); 469 delta->mDeltas.reserve(mFramesDirty.size()); 543 status_t FrameEventsDelta::flatten(void*& buffer, size_t& size, int*& fds, 545 if (size < getFlattenedSize() || count < getFdCount()) { 554 FlattenableUtils::write(buffer, size, mFrameNumber); 557 FlattenableUtils::write(buffer, size, static_cast<uint16_t>(mIndex)); 559 buffer, size, static_cast<uint8_t>(mAddPostCompositeCalled)); 561 buffer, size, static_cas [all...] |
/frameworks/av/media/libstagefright/ |
H A D | Utils.cpp | 51 if (((*buffer)->size() + 4 + length) > ((*buffer)->capacity() - (*buffer)->offset())) { 52 sp<ABuffer> tmpBuffer = new (std::nothrow) ABuffer((*buffer)->size() + 4 + length + 1024); 56 memcpy(tmpBuffer->data(), (*buffer)->data(), (*buffer)->size()); 57 tmpBuffer->setRange(0, (*buffer)->size()); 61 memcpy((*buffer)->data() + (*buffer)->size(), "\x00\x00\x00\x01", 4); 62 memcpy((*buffer)->data() + (*buffer)->size() + 4, ptr, length); 63 (*buffer)->setRange((*buffer)->offset(), (*buffer)->size() + 4 + length); 135 if (csd->size() < 2) { 166 static void parseAvcProfileLevelFromAvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) { argument 167 if (size < 224 parseH263ProfileLevelFromD263(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 266 parseHevcProfileLevelFromHvcc(const uint8_t *ptr, size_t size, sp<AMessage> &format) argument 336 parseMpeg2ProfileLevelFromHeader( const uint8_t *data, size_t size, sp<AMessage> &format) argument 591 size_t size; local 709 size_t size; local 1127 int size = i - lastparamoffset; local 1159 int size = i - lastparamoffset; local 1240 size_t size = hvccSize; local [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
H A D | ListRowDataAdapterTest.java | 77 assertEquals(5, listRowDataAdapter.size()); 92 assertEquals(5, listRowDataAdapter.size()); 99 assertEquals(5, listRowDataAdapter.size()); 114 assertEquals(5, listRowDataAdapter.size()); 123 assertEquals(8, listRowDataAdapter.size()); 138 assertEquals(5, listRowDataAdapter.size()); 145 adapter.addAll(adapter.size(), invisibleRows); 147 assertEquals(5, listRowDataAdapter.size()); 151 assertEquals(5, listRowDataAdapter.size()); 155 assertEquals(9, listRowDataAdapter.size()); [all...] |
/frameworks/minikin/tests/unittest/ |
H A D | LayoutTest.cpp | 32 EXPECT_LE(expected.size(), length); 33 for (size_t i = 0; i < expected.size(); ++i) { 38 EXPECT_EQ(UNTOUCHED_MARKER, advances[expected.size()]); 50 Range range(0, utf16.size()); 60 Range range(0, utf16.size()); 81 paint.size = 10.0f; // make 1em = 10px 94 Range range(0, text.size()); 105 expectedValues.resize(text.size()); 106 for (size_t i = 0; i < expectedValues.size(); ++i) { 114 Range range(0, text.size()); [all...] |
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TextDescriptions.cpp | 27 const uint8_t *data, ssize_t size, 33 return extract3GPPGlobalDescriptions(data, size, parcel); 35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel); 39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); 50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { 56 // write the size of the text sample 57 parcel->writeInt32(size); 59 parcel->writeInt32(size); 60 parcel->write(data, size); 71 const uint8_t *data, ssize_t size, 26 getParcelOfDescriptions( const uint8_t *data, ssize_t size, uint32_t flags, int timeMs, Parcel *parcel) argument 49 extractSRTLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 70 extract3GPPLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 374 extract3GPPGlobalDescriptions( const uint8_t *data, ssize_t size, Parcel *parcel) argument [all...] |
/frameworks/base/cmds/statsd/src/metrics/ |
H A D | MetricsManager.cpp | 93 if (mAllowedUid.size() + mAllowedPkg.size() > StatsdStats::kMaxLogSourceCount) { 107 if (mAllMetricProducers.size() > StatsdStats::kMaxMetricCountPerConfig || 108 mAllConditionTrackers.size() > StatsdStats::kMaxConditionCountPerConfig || 109 mAllAtomMatchers.size() > StatsdStats::kMaxMatcherCountPerConfig) { 113 if (mAllAnomalyTrackers.size() > StatsdStats::kMaxAlertCountPerConfig) { 119 key, mAllMetricProducers.size(), mAllConditionTrackers.size(), mAllAtomMatchers.size(), 120 mAllAnomalyTrackers.size(), mAnnotation [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | Split_test.cpp | 69 table.add(basic_contents_.data(), basic_contents_.size())); 80 table.add(basic_contents_.data(), basic_contents_.size())); 109 table.add(basic_contents_.data(), basic_contents_.size())); 111 basic_de_fr_contents_.size())); 133 table.add(basic_contents_.data(), basic_contents_.size())); 139 basic_de_fr_contents_.size())); 160 table.add(basic_contents_.data(), basic_contents_.size())); 171 basic_de_fr_contents_.size())); 191 table.add(basic_contents_.data(), basic_contents_.size())); 193 basic_hdpi_contents_.size())); [all...] |