/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 59 /** Assert that actual equals the first len bytes of expected. */ 60 private void assertEquals(byte[] expected, int len, byte[] actual) { argument 61 assertEquals(len, actual.length); 62 for (int i = 0; i < len; ++i) { 67 /** Assert that actual equals the first len bytes of expected. */ 68 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { argument 69 assertEquals(len, alen); 70 for (int i = 0; i < len; ++i) { 75 /** Assert that actual equals the first len bytes of expected. */
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | Chunk.h | 87 ChunkIterator(const void* data, size_t len) argument 89 len_(len),
|
/frameworks/base/libs/androidfw/tests/ |
H A D | AttributeResolution_bench.cpp | 122 size_t len = 0u; local 124 assetmanager.GetStringPoolForCookie(cookie)->string8At(value.data, &len); 125 if (layout_path == nullptr || len == 0u) { 131 StringPiece(layout_path, len).to_string(), cookie, Asset::ACCESS_BUFFER);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | TypefaceTests.cpp | 41 size_t len = reinterpret_cast<size_t>(context); local 42 munmap(p, len);
|
/frameworks/base/media/native/midi/ |
H A D | midi.h | 50 size_t len; member in struct:__anon1081
|
/frameworks/base/tools/aapt/ |
H A D | AaptXml.cpp | 43 size_t len; local 44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len); 45 return str ? String8(str, len) : String8(); 113 size_t len; local 114 const char16_t* str = tree.getAttributeStringValue(idx, &len); 115 return str ? String8(str, len) : String8(); 134 size_t len; local 135 const char16_t* str = resTable.valueToString(&value, static_cast<size_t>(block), NULL, &len); 136 return str ? String8(str, len) : String8();
|
/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 226 size_t len = 0; local 227 const char16_t* str = test.stringAt(0, &len); 228 EXPECT_THAT(len, Eq(1u)); 281 size_t len; local 282 EXPECT_TRUE(test.stringAt(4, &len) != nullptr || test.string8At(4, &len) != nullptr);
|
/frameworks/base/tools/aapt2/format/ |
H A D | Archive.cpp | 73 bool Write(const void* data, int len) override { 78 if (fwrite(data, 1, len, file_.get()) != static_cast<size_t>(len)) { 100 size_t len = 0; variable 101 while (in->Next(&data, &len)) { 102 if (!Write(data, static_cast<int>(len))) { 161 bool Write(const void* data, int len) override { 162 int32_t result = writer_->WriteBytes(data, len); 186 size_t len = 0; variable 187 while (in->Next(&data, &len)) { [all...] |
/frameworks/base/tools/aapt2/format/binary/ |
H A D | ResChunkPullParser.h | 50 // data, of len bytes. 51 ResChunkPullParser(const void* data, size_t len); 94 inline ResChunkPullParser::ResChunkPullParser(const void* data, size_t len) argument 97 len_(len),
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | DebugString.cpp | 32 size_t len = 0; local 34 ++len; 35 return len; 55 size_t len = string_length(str); local 56 m_StringTable.insertString(llvm::StringRef(str, len)); 57 str = str + len + 1;
|
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/ |
H A D | RemoteInputStreamAdapter.java | 45 public byte[] read(int off, int len) throws IOException, RemoteException { argument 46 byte[] buffer = new byte[len]; 47 if (mDelegate.read(buffer, off, len) == -1) {
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 90 ssize_t err, len; local 92 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); 94 err = len < 0 ? errno : 0; 96 return err == 0 ? len : -err; 100 ssize_t err, len; 102 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); 103 err = len < 0 ? errno : 0; 110 return err == 0 ? len : -err;
|
/frameworks/native/libs/sensor/ |
H A D | BitTube.cpp | 107 ssize_t err, len; local 109 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); 111 err = len < 0 ? errno : 0; 113 return err == 0 ? len : -err; 118 ssize_t err, len; 120 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); 121 err = len < 0 ? errno : 0; 128 return err == 0 ? len : -err;
|
/frameworks/native/opengl/libs/EGL/ |
H A D | FileBlobCache.cpp | 32 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument 35 for (size_t i = 0; i < len; i++) {
|
/frameworks/rs/ |
H A D | rsApiFileA3D.cpp | 71 RsFile rsaFileA3DCreateFromMemory(RsContext con, const void *data, uint32_t len) { argument 81 fa3d->load(data, len);
|
H A D | rsStream.cpp | 47 uint32_t len = loadU32(); local 48 const char *s = rsuCopyString((const char *)&mData[mPos], len); 49 mPos += len; 54 OStream::OStream(uint64_t len, bool use64) { argument 55 mData = (uint8_t*)malloc(len); 56 mLength = len; 93 void OStream::addString(const char *s, size_t len) { argument 94 addU32(len); 95 if (mPos + len*sizeof(char) >= mLength) { 99 memcpy(stringData, s, len); [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
H A D | MimeTypeUtil.cpp | 130 int len; local 147 len = strlen (pMimeType+pGroup->size); 150 (len == pMimeItem->size) &&
|
/frameworks/av/media/libmedia/ |
H A D | IMediaHTTPConnection.cpp | 117 size_t len = lenOrErrorCode; local 119 if (len > size) { 120 ALOGE("requested %zu, got %zu", size, len); 123 if (len > mMemory->size()) { 124 ALOGE("got %zu, but memory has %zu", len, mMemory->size()); 136 memcpy(buffer, mMemory->pointer(), len); 138 return len;
|
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | NuPlayer2Drm.cpp | 43 size_t len = psshsize; local 45 while (len > 0) { 46 if (len < DrmUUID::UUID_SIZE) { 55 len -= DrmUUID::UUID_SIZE; 58 if (len < DATALEN_SIZE) { 65 len -= DATALEN_SIZE; 67 if (len < datalen) { 74 len -= datalen;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerFactory.cpp | 183 size_t len = strlen(url); local 184 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { 192 if ((len >= 4 && !strcasecmp(".sdp", &url[len - 4])) || strstr(url, ".sdp?")) {
|
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
H A D | SoftMP3.cpp | 123 void *SoftMP3::memsetSafe(OMX_BUFFERHEADERTYPE *outHeader, int c, size_t len) { argument 124 if (len > outHeader->nAllocLen) { 125 ALOGE("memset buffer too small: got %u, expected %zu", outHeader->nAllocLen, len); 131 return memset(outHeader->pBuffer, c, len);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ADebug.cpp | 110 const size_t len = strlen(term); local 113 || match[len] == '.' || match[len] == '\0')) { 114 char *src = match + len;
|
H A D | AMessage.cpp | 138 ALOGI("called findItemIx %zu times (for len=%.1f i=%.1f/%.1f mem) dup %zu times (for len=%.1f)", 152 inline size_t AMessage::findItemIndex(const char *name, size_t len) const { 158 if (len != mItems[i].mNameLength) { 164 if (!memcmp(mItems[i].mName, name, len)) { 182 void AMessage::Item::setName(const char *name, size_t len) { argument 183 mNameLength = len; 184 mName = new char[len + 1]; 185 memcpy((void*)mName, name, len + 1); 189 size_t len local [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXMaster.cpp | 43 ssize_t len = read(fd, mProcessName, sizeof(mProcessName)); local 44 if (len < 2) { 49 mProcessName[len - 1] = 0;
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAMRAssembler.cpp | 41 size_t len = local 44 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) { 45 value->setTo(&s[keyLen + 1], len - keyLen - 1); 48 if (len == keyLen && !strncmp(s, key, keyLen)) {
|