/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaCall.java | 82 return connections.size() > 1; 125 for (int i = 0, s = connections.size() ; i < s; i ++) { 145 if (connections.size() == 0) { 171 return connections.size() == CdmaCallTracker.MAX_CONNECTIONS_PER_CALL; 184 for (int i = 0, s = connections.size(); i < s; i++) { 196 for (int i = connections.size() - 1 ; i >= 0 ; i--) { 204 if (connections.size() == 0) {
|
/frameworks/support/renderscript/v8/rs_support/driver/ |
H A D | rsdScriptGroup.cpp | 57 for (size_t ct=0; ct < sg->mNodes.size(); ct++) { 59 //ALOGE("node %i, order %i, in %i out %i", (int)ct, n->mOrder, (int)n->mInputs.size(), (int)n->mOutputs.size()); 61 for (size_t ct2=0; ct2 < n->mKernels.size(); ct2++) { 66 for (size_t ct3=0; ct3 < n->mInputs.size(); ct3++) { 72 for (size_t ct3=0; ct3 < sg->mInputs.size(); ct3++) { 79 for (size_t ct3=0; ct3 < n->mOutputs.size(); ct3++) { 85 for (size_t ct3=0; ct3 < sg->mOutputs.size(); ct3++) { 101 for (size_t ct=0; ct < ins.size(); ct++) {
|
/frameworks/base/core/java/android/net/ |
H A D | LinkProperties.java | 192 return (sourceAddresses.size() == targetAddresses.size()) ? 204 return (mDnses.size() == targetDnses.size()) ? 216 return (mRoutes.size() == targetRoutes.size()) ? 360 + mLinkAddresses.size() * 31 361 + mDnses.size() * 37 362 + mRoutes.size() * 41 372 dest.writeInt(mLinkAddresses.size()); [all...] |
H A D | NetworkStats.java | 63 private int size; field in class:NetworkStats 142 this.size = 0; 156 size = parcel.readInt(); 171 dest.writeInt(size); 185 final NetworkStats clone = new NetworkStats(elapsedRealtime, size); 187 for (int i = 0; i < size; i++) { 213 if (size >= this.iface.length) { 226 iface[size] = entry.iface; 227 uid[size] = entry.uid; 228 set[size] 269 public int size() { method in class:NetworkStats [all...] |
/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/base/policy/tests/src/com/android/internal/policy/impl/keyguard_obsolete/ |
H A D | LockPatternKeyguardViewTest.java | 219 assertEquals(1, mLPKV.getInjectedLockScreens().size()); 220 assertEquals(1, mLPKV.getInjectedUnlockScreens().size()); 244 assertEquals(1, mLPKV.getInjectedLockScreens().size()); 245 assertEquals(1, mLPKV.getInjectedUnlockScreens().size()); 283 assertEquals(1, mLPKV.getInjectedLockScreens().size()); 284 assertEquals(1, mLPKV.getInjectedUnlockScreens().size()); 297 assertEquals(1, mLPKV.getInjectedLockScreens().size()); 298 assertEquals(1, mLPKV.getInjectedUnlockScreens().size()); 308 assertEquals(2, mLPKV.getInjectedLockScreens().size()); 309 assertEquals(2, mLPKV.getInjectedUnlockScreens().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/av/media/libstagefright/ |
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/compile/libbcc/runtime/BlocksRuntime/ |
H A D | runtime.c | 170 static void *_Block_alloc_default(const unsigned long size, const bool initialCountIsOne, const bool isObject) { argument 171 return malloc(size); 195 static void _Block_memmove_default(void *dst, void *src, unsigned long size) { argument 196 memmove(dst, src, (size_t)size); 199 static void _Block_memmove_gc_broken(void *dest, void *src, unsigned long size) { argument 202 while (size) { 206 size -= sizeof(void *); 221 static void (*_Block_memmove)(void *dest, void *src, unsigned long size) = _Block_memmove_default; 315 struct Block_layout *result = malloc(aBlock->descriptor->size); 317 memmove(result, aBlock, aBlock->descriptor->size); // bitcop [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Sender.cpp | 289 const size_t numTSPackets = tsPackets->size() / 188; 339 fwrite(tsPackets->data(), 1, tsPackets->size(), mLogFile); 495 uint8_t *data = buffer->data() + buffer->size(); 532 buffer->setRange(buffer->offset(), buffer->size() + 28); 536 uint8_t *data = buffer->data() + buffer->size(); 580 buffer->setRange(buffer->offset(), buffer->size() + offset); 609 sendPacket(mRTCPSessionID, buffer->data(), buffer->size()); 617 const uint8_t *data, size_t size) { 627 for (size_t i = 12; i < size; i += 4) { 655 sp<ABuffer> retransRTP = new ABuffer(2 + buffer->size()); 616 parseTSFB( const uint8_t *data, size_t size) argument 699 size_t size = buffer->size(); local 766 sendPacket( int32_t sessionID, const void *data, size_t size) argument [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/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) 297 ssize_t size = reply.readInt32(); local [all...] |
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
H A D | BitcodeReader.cpp | 119 if (Idx > Record.size()) 122 for (unsigned i = Idx, e = Record.size(); i != e; ++i) 248 if (Idx == size()) { 253 if (Idx >= size()) 278 if (Idx >= size()) 293 if (Idx >= size()) 393 if (Idx == size()) { 398 if (Idx >= size()) 417 if (Idx >= size()) 432 // The type table size i [all...] |
/frameworks/av/media/libmedia/ |
H A D | IHDCP.cpp | 87 const void *inData, size_t size, uint32_t streamCTR, 91 data.writeInt32(size); 92 data.write(inData, size); 105 reply.read(outData, size); 177 size_t size = data.readInt32(); local 179 void *inData = malloc(2 * size); 180 void *outData = (uint8_t *)inData + size; 182 data.read(inData, size); 186 status_t err = encrypt(inData, size, streamCTR, &inputCTR, outData); 192 reply->write(outData, size); 86 encrypt( const void *inData, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument [all...] |
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | ChromiumHTTPDataSource.cpp | 165 ssize_t ChromiumHTTPDataSource::readAt(off64_t offset, void *data, size_t size) { argument 199 mDelegate->initiateRead(data, size); 223 void ChromiumHTTPDataSource::onReadCompleted(ssize_t size) { argument 226 mIOResult = size; 234 status_t ChromiumHTTPDataSource::getSize(off64_t *size) { argument 241 *size = mContentSize; 252 ChromiumHTTPDataSource *me, void *data, size_t size) { 253 me->initiateRead(data, size); 256 void ChromiumHTTPDataSource::initiateRead(void *data, size_t size) { argument 257 mDelegate->initiateRead(data, size); 251 InitiateRead( ChromiumHTTPDataSource *me, void *data, size_t size) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ActionMenu.java | 76 final int N = lri != null ? lri.size() : 0; 130 final int itemCount = items.size(); 150 final int itemCount = items.size(); 165 final int itemCount = items.size(); 202 int itemCount = items.size(); 221 final int itemCount = items.size(); 234 final int itemCount = items.size(); 246 final int itemCount = items.size(); 260 public int size() { method in class:ActionMenu 261 return mItems.size(); [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 42 INIT_LOGD(" Setting texture cache size to %sMB", property); 45 INIT_LOGD(" Using default texture cache size of %.2fMB", DEFAULT_TEXTURE_CACHE_SIZE); 110 TEXTURE_LOGD("TextureCache::callback: name, removed size, mSize = %d, %d, %d", 113 ALOGD("Texture deleted, size = %d", texture->bitmapSize); 134 const uint32_t size = bitmap->rowBytes() * bitmap->height(); local 136 if (size < mMaxSize) { 137 while (mSize + size > mMaxSize) { 143 texture->bitmapSize = size; 146 if (size < mMaxSize) { 147 mSize += size; [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | value.cpp | 169 Value MakeBufferValue(const char* buffer, int size) { argument 170 return MakePtrValue<char, BUFFER_VALUE_TYPE>(buffer, size); 173 Value MakeBufferValueNoCopy(const char* buffer, int size) { argument 177 result.count = size; 181 Value MakeMutableBufferValue(const char* buffer, int size) { argument 182 return MakePtrValue<const char, MUTABLE_BUFFER_VALUE_TYPE>(buffer, size); 185 Value MakeMutableBufferValueNoCopy(char* buffer, int size) { argument 189 result.count = size; 213 int SetMutableBufferValue(Value* value, const char* new_data, int size) { argument 214 return SetPtrValue<char, MUTABLE_BUFFER_VALUE_TYPE>(value, new_data, size); [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | TransferPipe.java | 194 int size; 196 while ((size=fis.read(buffer)) > 0) { 197 if (DEBUG) Slog.i(TAG, "Got " + size + " bytes"); 199 fos.write(buffer, 0, size); 202 for (int i=0; i<size; i++) { 214 } while (i<size && buffer[i] != '\n'); 215 if (i < size) { 220 if (size > start) { 221 fos.write(buffer, start, size-start); 225 if (DEBUG) Slog.i(TAG, "End of pipe: size [all...] |
/frameworks/compile/libbcc/bcinfo/Wrap/ |
H A D | bitcode_wrapperer.cpp | 53 // Max size for variable fields. Currently only used for writing them 85 for(size_t i = 0; i < variable_field_data_.size(); i++) { 140 size_t needed = buffer_.size() - buffer_size_; 142 while (buffer_.size() > buffer_size_) { 211 if (buffer_needed > buffer_.size()) { 281 // Make sure that the offset and size (for llvm) is defined. 311 bool BitcodeWrapperer::BufferCopyInToOut(uint32_t size) { argument 312 while (size > 0) { 321 size_t block = (buffer_size_ < size) ? buffer_size_ : size; [all...] |
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
H A D | multiclass_pa.cpp | 70 // CHECK_EQ(inputs.size(), parameters.size()); 72 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 81 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 83 //DCHECK_LT(inputs[i].first, parameters.size()); 91 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 100 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 127 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 160 for (int i = 0; i < static_cast<int>(inputs.size()); ++i) { 173 int num_examples = data.size(); [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 91 CHECK_LT(index, mBuffers.size()); 114 ssize_t n = read(mFd, mem->pointer(), mem->size()); 150 static ssize_t WriteDataWrapper(void *me, const void *data, size_t size); 151 ssize_t writeData(const void *data, size_t size); 200 void *me, const void *data, size_t size) { 201 return static_cast<MyConvertingStreamSource *>(me)->writeData(data, size); 204 ssize_t MyConvertingStreamSource::writeData(const void *data, size_t size) { argument 207 while (size > 0) { 223 size_t copy = size; 224 if (copy + mCurrentBufferOffset > mem->size()) { 199 WriteDataWrapper( void *me, const void *data, size_t size) argument [all...] |
/frameworks/av/libvideoeditor/osal/src/ |
H A D | LVOSA_FileReader_optim.c | 55 * File reader cache buffers parameters (size, number of buffers, etc) 74 M4OSA_FilePosition size; /**< size of the buffer */ member in struct:__anon82 162 apContext->buffer[i].size = 0; 191 M4OSA_FilePosition size, M4OSA_MemAddr8 pData) 197 if(apContext->buffer[i].size == M4OSA_EOF) return M4OSA_EOF; 200 || (pos > (apContext->buffer[i].filepos + apContext->buffer[i].size - 1)) ) 207 copysize = apContext->buffer[i].size - offset; 208 copysize = (size < copysize) ? size 189 M4OSA_FileReader_BufferCopy(M4OSA_FileReader_Context_optim* apContext, M4OSA_Int8 i, M4OSA_FilePosition pos, M4OSA_FilePosition size, M4OSA_MemAddr8 pData) argument 227 M4OSA_FilePosition size; local [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Mesh.java | 197 int size; field in class:Mesh.Builder.Entry 237 return mIndexTypes.size() - 1; 265 * @param size number of elements in the buffer 269 public Builder addVertexType(Element e, int size) throws IllegalStateException { argument 277 mVertexTypes[mVertexTypeCount].size = size; 295 indexType.size = 0; 313 indexType.size = 0; 324 * @param size number of elements in the buffer 329 public Builder addIndexSetType(Element e, int size, Primitiv argument 339 newType(Element e, int size) argument [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerStreamListener.cpp | 55 void NuPlayer::NuPlayerStreamListener::queueBuffer(size_t index, size_t size) { argument 59 entry.mSize = size; 96 void *data, size_t size, sp<AMessage> *extra) { 97 CHECK_GT(size, 0u); 143 if (copy > size) { 144 copy = size; 95 read( void *data, size_t size, sp<AMessage> *extra) argument
|