/frameworks/base/core/java/android/net/ |
H A D | InterfaceConfiguration.java | 133 dest.writeInt(mFlags.size()); 147 final int size = in.readInt(); 148 for (int i = 0; i < size; i++) { 154 public InterfaceConfiguration[] newArray(int size) { 155 return new InterfaceConfiguration[size];
|
H A D | LinkCapabilities.java | 220 public int size() { method in class:LinkCapabilities 221 return mCapabilities.size(); 327 dest.writeInt(mCapabilities.size()); 342 int size = in.readInt(); 343 while (size-- != 0) { 351 public LinkCapabilities[] newArray(int size) { 352 return new LinkCapabilities[size];
|
/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.cpp | 46 INIT_LOGD(" Setting render buffer cache size to %sMB", property); 49 INIT_LOGD(" Using default render buffer cache size of %.2fMB", 103 size_t count = mCache.size(); 141 const uint32_t size = buffer->getSize(); local 142 if (size < mMaxSize) { 143 while (mSize + size > mMaxSize) { 154 mSize += size;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ParserFactory.java | 53 private static XmlPullParser create(InputStream stream, String name, long size) argument 57 stream = readAndClose(stream, name, size); 74 private static InputStream readAndClose(InputStream stream, String name, long size) argument 77 if (size > Integer.MAX_VALUE) { 80 int intSize = (int) size; 89 // get the size to read.
|
/frameworks/base/tools/preload/ |
H A D | WritePreloadedClassFile.java | 86 if (names.size() >= MIN_PROCESSES || 87 (loadedClass.medianTimeMicros() > MIN_LOAD_TIME_MICROS && names.size() > 1)) { 92 int initialSize = toPreload.size(); 109 System.out.println("Added " + (toPreload.size() - initialSize) 112 System.out.println(toPreload.size()
|
/frameworks/compile/libbcc/lib/Renderscript/ |
H A D | RSEmbedInfo.cpp | 78 s << "exportVarCount: " << (unsigned int) export_vars.size() << "\n"; 88 s << "exportFuncCount: " << (unsigned int) export_funcs.size() << "\n"; 99 << (unsigned int) export_foreach_funcs.size() << "\n"; 121 s << "objectSlotCount: " << (unsigned int) object_slot_numbers.size() 123 for (i = 0; i < object_slot_numbers.size(); i++) {
|
/frameworks/native/libs/utils/ |
H A D | WorkQueue.cpp | 45 if (mWorkThreads.size() < mMaxThreads 46 && mIdleThreads < mWorkUnits.size() + 1) { 55 while (mWorkUnits.size() >= mMaxThreads * backlog) { 82 size_t count = mWorkUnits.size(); 107 size_t count = mWorkThreads.size();
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.h | 42 ElementArrayBuffer(GLvoid *buf, GLsizeiptr size); 45 void updateSubBuffer(GLintptr offset, const GLvoid* data, GLsizeiptr size); 58 unsigned fbcontentsSize; /* size of fbcontents & fbcompressed buffers */ 78 void bindBuffer(GLuint bufferId, GLvoid *data, GLsizeiptr size); 79 void getBuffer(GLuint bufferId, GLvoid **data, GLsizeiptr *size); 80 void updateBufferSubData(GLuint bufferId, GLintptr offset, GLvoid *data, GLsizeiptr size);
|
/frameworks/av/media/libstagefright/ |
H A D | SampleIterator.cpp | 218 uint32_t sampleIndex, size_t *size) { 219 *size = 0; 226 *size = mTable->mDefaultSampleSize; 235 size, sizeof(*size)) < (ssize_t)sizeof(*size)) { 239 *size = ntohl(*size); 252 *size = ntohs(x); 265 *size [all...] |
H A D | MediaCodecList.cpp | 70 for (size_t i = 0; i < mCodecInfos.size(); ++i) { 75 for (size_t j = 0; j < mTypes.size(); ++j) { 141 for (size_t i = mCodecInfos.size(); i-- > 0;) { 312 CodecInfo *info = &mCodecInfos.editItemAt(mCodecInfos.size() - 1); 348 bit = mCodecQuirks.size(); 360 CodecInfo *info = &mCodecInfos.editItemAt(mCodecInfos.size() - 1); 397 bit = mTypes.size(); 409 CodecInfo *info = &mCodecInfos.editItemAt(mCodecInfos.size() - 1); 423 while (startIndex < mCodecInfos.size()) { 437 for (size_t i = 0; i < mCodecInfos.size(); [all...] |
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | ParsedMessage.cpp | 27 const char *data, size_t size, bool noMoreData, size_t *length) { 29 ssize_t res = msg->parse(data, size, noMoreData); 84 ssize_t ParsedMessage::parse(const char *data, size_t size, bool noMoreData) { argument 85 if (size == 0) { 92 while (offset < size) { 94 while (lineEndOffset + 1 < size 100 if (lineEndOffset + 1 >= size) { 149 for (size_t i = 0; i < mDict.size(); ++i) { 162 if (size < totalLength) { 181 spacePos = line.size(); 26 Parse( const char *data, size_t size, bool noMoreData, size_t *length) argument [all...] |
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
H A D | VisualDiffUtils.java | 72 int size = diffs.size(); 74 for (int j = 0; j < size; j++) { 76 isLastDiff = j == size - 1; 113 int size = diffs.size(); 115 for (int j = 0; j < size; j++) { 117 isLastDiff = j == size - 1; 182 int size = lines1.size(); [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | NBLog.h | 89 Timeline(size_t size, void *shared = NULL); 93 static size_t sharedSize(size_t size); 100 const size_t mSize; // circular buffer size in bytes, must be a power of 2 113 Writer(size_t size, void *shared); 114 Writer(size_t size, const sp<IMemory>& iMemory); 136 const size_t mSize; // circular buffer size in bytes, must be a power of 2 149 LockedWriter(size_t size, void *shared); 168 Reader(size_t size, const void *shared); 169 Reader(size_t size, const sp<IMemory>& iMemory); 176 const size_t mSize; // circular buffer size i [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AH263Assembler.cpp | 91 if (mPackets.size() > 0 && rtpTime != mAccessUnitRTPTime) { 96 // hexdump(buffer->data(), buffer->size()); 98 if (buffer->size() < 2) { 137 buffer->setRange(buffer->offset() + skip, buffer->size() - skip); 156 LOG(VERBOSE) << "Access unit complete (" << mPackets.size() << " packets)"; 164 totalSize += unit->size(); 175 unit->data(), unit->size()); 177 offset += unit->size();
|
H A D | ARTPAssembler.cpp | 81 totalSize += (*it)->size() + 7; 95 unsigned frameLength = nal->size() + 7; 112 memcpy(dst + 7, nal->data(), nal->size()); 113 offset += nal->size() + 7; 127 totalSize += (*it)->size(); 135 memcpy(accessUnit->data() + offset, nal->data(), nal->size()); 136 offset += nal->size();
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | NetworkState.java | 79 } else if (mStateDepository.size() > 1) { 80 for (int i = 0; i < mStateDepository.size(); i++) { 115 State lastState = mStateDepository.get(mStateDepository.size() - 1); 120 for (int i = 1; i < mStateDepository.size() - 1; i++) { 147 State lastState = mStateDepository.get(mStateDepository.size() - 1); 152 for (int i = 1; i < mStateDepository.size(); i++) { 182 for (int i = 0; i < mStateDepository.size(); i++) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | DeadZone.java | 78 Slog.v(TAG, this + " size=[" + mSizeMin + "-" + mSizeMax + "] hold=" + mHold 119 int size = (int) getSize(event.getEventTime()); 120 if ((mVertical && event.getX() < size) || event.getY() < size) { 137 Slog.v(TAG, "poked! size=" + getSize(mLastPokeTime)); 156 final int size = (int) getSize(SystemClock.uptimeMillis()); 157 can.clipRect(0, 0, mVertical ? size : can.getWidth(), mVertical ? can.getHeight() : size); 161 if (DEBUG && size > mSizeMin)
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SimPhoneBookTest.java | 37 int size[] = simPhoneBook.getAdnRecordsSize(IccConstants.EF_ADN); 38 assertNotNull(size); 39 assertEquals(3, size.length); 40 assertEquals(size[0] * size[2], size[1]); 41 assertTrue(size[2] >= 100);
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 187 char localFileName[nativeLibPath.size() + fileNameLen + 2]; 189 if (strlcpy(localFileName, nativeLibPath.c_str(), sizeof(localFileName)) != nativeLibPath.size()) { 194 *(localFileName + nativeLibPath.size()) = '/'; 196 if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName) 197 - nativeLibPath.size() - 1) != fileNameLen) { 208 char localTmpFileName[nativeLibPath.size() + TMP_FILE_PATTERN_LEN + 2]; 210 != nativeLibPath.size()) { 215 *(localFileName + nativeLibPath.size()) = '/'; 217 if (strlcpy(localTmpFileName + nativeLibPath.size(), TMP_FILE_PATTERN, 218 TMP_FILE_PATTERN_LEN - nativeLibPath.size()) ! [all...] |
/frameworks/native/include/binder/ |
H A D | Parcel.h | 55 status_t setDataSize(size_t size); 57 status_t setDataCapacity(size_t size); 252 inline size_t size() const { return mSize; } function in class:android::Parcel::Blob 255 void init(bool mapped, void* data, size_t size); 281 size_t size(val.getSize()); 283 status_t err = writeInt32(size); 288 if (size) { 289 void* buffer = writeInplace(size); 298 size_t size; local 300 size [all...] |
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
H A D | BitcodeReader.cpp | 114 TyInfo.size()); 360 if (Idx > Record.size()) 363 for (unsigned i = Idx, e = Record.size(); i != e; ++i) 527 if (Idx == size()) { 532 if (Idx >= size()) 557 if (Idx >= size()) 572 if (Idx >= size()) 672 if (Idx == size()) { 677 if (Idx >= size()) 696 if (Idx >= size()) [all...] |
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
H A D | RTPSender.cpp | 211 CHECK_LE(packet->size(), kMaxUDPPacketSize - 12); 216 sp<ABuffer> udpPacket = new ABuffer(12 + packet->size()); 240 memcpy(&rtp[12], packet->data(), packet->size()); 251 CHECK_EQ(0, tsPackets->size() % 188); 256 const size_t numTSPackets = tsPackets->size() / 188; 259 while (srcOffset < tsPackets->size()) { 286 size_t numTSPackets = (tsPackets->size() - srcOffset) / 188; 296 bool isLastPacket = (srcOffset == tsPackets->size()); 325 size_t size = accessUnit->size(); local 618 size_t size = buffer->size(); local 689 parseReceiverReport(const uint8_t *data, size_t size) argument 700 parseTSFB(const uint8_t *data, size_t size) argument 769 parseAPP(const uint8_t *data, size_t size) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewTreeObserver.java | 751 if (listeners != null && listeners.size() > 0) { 769 if (listeners != null && listeners.size() > 0) { 785 if (listeners != null && listeners.size() > 0) { 803 if (listeners != null && listeners.size() > 0) { 806 int count = access.size(); 828 if (listeners != null && listeners.size() > 0) { 831 int count = access.size(); 848 int numListeners = listeners.size(); 863 if (listeners != null && listeners.size() > 0) { 879 if (listeners != null && listeners.size() > 956 int size() { method in class:ViewTreeObserver.CopyOnWriteArray.Access 990 int size() { method in class:ViewTreeObserver.CopyOnWriteArray [all...] |
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
H A D | BitcodeReader.cpp | 118 if (Idx > Record.size()) 121 for (unsigned i = Idx, e = Record.size(); i != e; ++i) 247 if (Idx == size()) { 252 if (Idx >= size()) 277 if (Idx >= size()) 292 if (Idx >= size()) 392 if (Idx == size()) { 397 if (Idx >= size()) 416 if (Idx >= size()) 431 // The type table size i [all...] |
/frameworks/native/libs/binder/ |
H A D | IMemory.cpp | 127 virtual sp<IMemoryHeap> getMemory(ssize_t* offset=0, size_t* size=0) const; 155 size_t IMemory::size() const { function in class:android::IMemory 156 size_t size; local 157 getMemory(NULL, &size); 158 return size; 178 sp<IMemoryHeap> BpMemory::getMemory(ssize_t* offset, size_t* size) const 197 if (size) *size = mSize; 218 size_t size; local 219 reply->writeStrongBinder( getMemory(&offset, &size) 295 ssize_t size = reply.readInt32(); local [all...] |