Searched defs:len (Results 51 - 75 of 306) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/util/
H A DBase64Test.java59 /** 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 DChunk.h87 ChunkIterator(const void* data, size_t len) argument
89 len_(len),
/frameworks/base/libs/androidfw/tests/
H A DAttributeResolution_bench.cpp122 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 DTypefaceTests.cpp41 size_t len = reinterpret_cast<size_t>(context); local
42 munmap(p, len);
/frameworks/base/media/native/midi/
H A Dmidi.h50 size_t len; member in struct:__anon1081
/frameworks/base/tools/aapt/
H A DAaptXml.cpp43 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 DStringPool_test.cpp226 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 DArchive.cpp73 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 DResChunkPullParser.h50 // 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 DDebugString.cpp32 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 DRemoteInputStreamAdapter.java45 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 DBitTube.cpp90 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 DBitTube.cpp107 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 DFileBlobCache.cpp32 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 DrsApiFileA3D.cpp71 RsFile rsaFileA3DCreateFromMemory(RsContext con, const void *data, uint32_t len) { argument
81 fa3d->load(data, len);
H A DrsStream.cpp47 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 DMimeTypeUtil.cpp130 int len; local
147 len = strlen (pMimeType+pGroup->size);
150 (len == pMimeItem->size) &&
/frameworks/av/media/libmedia/
H A DIMediaHTTPConnection.cpp117 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 DNuPlayer2Drm.cpp43 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 DMediaPlayerFactory.cpp183 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 DSoftMP3.cpp123 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 DADebug.cpp110 const size_t len = strlen(term); local
113 || match[len] == '.' || match[len] == '\0')) {
114 char *src = match + len;
H A DAMessage.cpp138 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 DOMXMaster.cpp43 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 DAAMRAssembler.cpp41 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)) {

Completed in 115 milliseconds

1234567891011>>