Searched defs:len (Results 176 - 200 of 306) sorted by relevance

1234567891011>>

/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java758 void psWrite(PrintStream ps, byte[] bytes, int len) throws IOException { argument
760 ps.write(bytes, 0, len);
/frameworks/base/tools/aapt/
H A DXMLNode.cpp221 size_t len; local
226 String16 text(inXml->getText(&len));
246 const String16 element16(inXml->getElementName(&len));
295 const char16_t* str = inXml->getAttributeName(ai, &len);
296 span.name.append(str, len);
298 str = inXml->getAttributeStringValue(ai, &len);
299 span.name.append(str, len);
327 if (strcmp16(inXml->getElementName(&len), endTag.string()) != 0) {
330 String8(inXml->getElementName(&len)).string(),
344 if (strcmp16(inXml->getElementName(&len), spanTa
451 size_t len; local
506 size_t len; local
524 size_t len; local
545 size_t len; local
606 ssize_t len; local
[all...]
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp47 static void strcpy16_htod(uint16_t* dst, size_t len, const StringPiece16& src) { argument
48 if (len == 0) {
54 for (i = 0; i < len - 1 && i < src.size(); i++) {
/frameworks/base/tools/aapt2/util/
H A DUtil.cpp413 size_t len; local
414 const char16_t* str = pool.stringAt(idx, &len);
416 return StringPiece16(str, len);
422 size_t len; local
423 const char* str = pool.string8At(idx, &len);
425 return std::string(str, len);
/frameworks/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java83 public BridgeTypedArray(Resources resources, BridgeContext context, int len, argument
89 mResourceId = new int[len];
90 mResourceData = new ResourceValue[len];
91 mNames = new String[len];
92 mIsFramework = new boolean[len];
993 int len = charSeq.length();
1003 if (index == (len - 1))
1028 static TypedArray obtain(Resources res, int len) { argument
1029 return new BridgeTypedArray(res, null, len, true);
/frameworks/minikin/tests/unittest/
H A DFontCollectionItemizeTest.cpp61 size_t len; local
64 ParseUnicode(buf, BUF_SIZE, str, &len, NULL);
69 collection->itemize(buf, len, paint, result);
/frameworks/native/cmds/servicemanager/
H A Dbinder.c26 void hexdump(void *_data, size_t len) argument
31 for (count = 0; count < len; count++) {
152 int binder_write(struct binder_state *bs, void *data, size_t len) argument
157 bwr.write_size = len;
542 size_t len; local
550 len = 0;
551 while (str[len]) len++;
553 if (len >= (MAX_BIO_SIZE / sizeof(uint16_t))) {
559 bio_put_uint32(bio, (uint32_t) len);
569 size_t len; local
619 size_t len; local
[all...]
H A Dservice_manager.c142 size_t len; member in struct:svcinfo
148 struct svcinfo *find_svc(const uint16_t *s16, size_t len) argument
153 if ((len == si->len) &&
154 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
165 ALOGI("service '%s' died\n", str8(si->name, si->len));
178 uint32_t do_find_service(const uint16_t *s, size_t len, uid_t uid, pid_t spid) argument
180 struct svcinfo *si = find_svc(s, len);
195 if (!svc_can_find(s, len, spid, uid)) {
202 int do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_ argument
257 size_t len; local
361 audit_callback(void *data, __unused security_class_t cls, char *buf, size_t len) argument
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp145 uint32_t len = (x2 - x1) >> 3; local
146 rsdIntrinsicBlendSrcOver_K(out, in, len);
147 x1 += len << 3;
148 out += len << 3;
149 in += len << 3;
164 uint32_t len = (x2 - x1) >> 3; local
165 rsdIntrinsicBlendDstOver_K(out, in, len);
166 x1 += len << 3;
167 out += len << 3;
168 in += len <<
183 uint32_t len = (x2 - x1) >> 3; local
201 uint32_t len = (x2 - x1) >> 3; local
219 uint32_t len = (x2 - x1) >> 3; local
237 uint32_t len = (x2 - x1) >> 3; local
255 uint32_t len = (x2 - x1) >> 3; local
275 uint32_t len = (x2 - x1) >> 3; local
296 uint32_t len = (x2 - x1) >> 3; local
320 uint32_t len = (x2 - x1) >> 3; local
413 uint32_t len = (x2 - x1) >> 3; local
434 uint32_t len = (x2 - x1) >> 3; local
[all...]
H A DrsCpuIntrinsicBlur.cpp202 int len = x2 - x1; local
220 len--;
228 len -= t << 2;
234 while(len > 0) {
246 len--;
415 uint32_t len = x2 - (x1 + cp->mIradius); local
416 len &= ~3;
421 if (len > 4) {
422 len -= 4;
424 cp->mIradius * 2 + 1, x1, x1 + len);
[all...]
H A DrsCpuIntrinsicResize.cpp346 int len = x2 - x1; local
355 out, len,
360 out += len;
361 x1 += len;
413 int len = x2 - x1; local
422 out, len,
427 out += len;
428 x1 += len;
480 int len = x2 - x1; local
489 out, len,
[all...]
/frameworks/rs/
H A DrsElement.cpp286 size_t len; local
289 len = lengths[i];
291 len = strlen(nin[i]);
298 (strlen(ee->mFields[i].name) != len) ||
326 size_t len; local
329 len = lengths[ct];
331 len = strlen(nin[ct]);
338 e->mFields[ct].name = rsuCopyString(nin[ct], len);
H A DrsScript.cpp59 void Script::setVar(uint32_t slot, const void *val, size_t len) { argument
60 //ALOGE("setVar %i %p %i", slot, val, len);
67 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len);
70 void Script::getVar(uint32_t slot, const void *val, size_t len) { argument
71 //ALOGE("getVar %i %p %i", slot, val, len);
79 mRSC->mHal.funcs.script.getGlobalVar(mRSC, this, slot, (void *)val, len);
82 void Script::setVar(uint32_t slot, const void *val, size_t len, Element *e, argument
92 (void *)val, len, e, dims, dimLen);
247 void rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { argument
249 s->Invoke(rsc, slot, data, len);
278 rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) argument
283 rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) argument
288 rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len, RsElement ve, const uint32_t *dims, size_t dimLen) argument
[all...]
H A DrsScriptC_LibGL.cpp168 uint32_t start, uint32_t len) {
173 sm->renderPrimitiveRange(rsc, primIndex, start, len);
167 rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, uint32_t start, uint32_t len) argument
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DFieldPacker.java32 public FieldPacker(int len) { argument
34 mLen = len;
35 mData = new byte[len];
903 int len = 0;
905 len += getPackedSize(arg);
907 FieldPacker fp = new FieldPacker(len);
/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeToBuffQueue.cpp264 size_t len = strlen((const char *) path); local
265 char* outputPath = (char*) malloc(len + 4 + 1); // save room to concatenate ".raw"
269 memcpy(outputPath, path, len + 1);
/frameworks/av/media/extractors/mp3/
H A DMP3Extractor.cpp74 size_t len = local
80 len += 10;
82 *inout_pos += len;
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp358 int len = inBuffer->frameCount * 2; local
359 for (int i = 0; i < len; i++) {
/frameworks/av/media/libstagefright/rtsp/
H A DMyTransmitter.h61 size_t len = local
64 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) {
65 value->setTo(&s[keyLen + 1], len - keyLen - 1);
/frameworks/av/media/mtp/
H A DMtpFfsHandle.cpp130 int MtpFfsHandle::doAsync(void* data, size_t len, bool read, bool zero_packet) { argument
134 while (total < len) {
135 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX));
149 if (len % packet_size == 0 && zero_packet) {
162 int MtpFfsHandle::read(void* data, size_t len) { argument
164 return doAsync(data, len, true, false);
167 int MtpFfsHandle::write(const void* data, size_t len) { argument
168 return doAsync(const_cast<void*>(data), len, false, true);
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp275 size_t len = buffer->size(); local
277 while (len > 0) {
280 if (len < 16) {
286 len -= 16;
289 if (len < 4) {
295 len -= 4;
297 if (len < datalen) {
303 len -= datalen;
/frameworks/base/cmds/incident_helper/src/
H A Dih_util.cpp172 int len = (int)line->length(); local
176 if (j >= len || key[i++] != line->at(j++)) {
183 if (j == len || isValidChar(line->at(j))) return false;
252 size_t len = 0; local
253 ssize_t read = getline(&buf, &len, mFile);
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java796 final int len = Math.min(rawMsg.length, buf.length - writePtr);
797 System.arraycopy(rawMsg, 0, buf, writePtr, len);
798 writePtr += len;
941 public int read(byte[] b, int off, int len) throws IOException { argument
942 final int result = super.read(b, off, len);
/frameworks/base/core/jni/
H A Dandroid_os_HwParcel.cpp492 jsize len = env->GetArrayLength(valObj); local
497 (bool *)impl->getStorage()->allocTemporaryStorage(len * sizeof(bool));
499 for (jsize i = 0; i < len; ++i) {
506 vec->setToExternal(dst, len);
743 jsize len = env->GetArrayLength(arrayObj); local
752 hidl_string *strings = impl->getStorage()->allocStringArray(len);
753 vec->setToExternal(strings, len);
755 for (jsize i = 0; i < len; ++i) {
H A Dandroid_os_Parcel.cpp329 int32_t len = parcel->readInt32(); local
332 if (len >= 0 && len <= (int32_t)parcel->dataAvail()) {
333 ret = env->NewByteArray(len);
338 const void* data = parcel->readInplace(len);
339 memcpy(a2, data, len);
358 int32_t len = parcel->readInt32(); local
359 if (len >= 0 && len <= (int32_t)parcel->dataAvail() && len
377 int32_t len = parcel->readInt32(); local
441 size_t len; local
[all...]

Completed in 165 milliseconds

1234567891011>>