Searched refs:len (Results 51 - 75 of 522) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/util/
H A DXmlUtils_Delegate.java44 int len = nm.length();
54 if (index == (len - 1))
/frameworks/native/libs/gui/
H A DBitTube.cpp109 ssize_t err, len; local
111 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL);
113 err = len < 0 ? errno : 0;
115 return err == 0 ? len : -err;
120 ssize_t err, len;
122 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT);
123 err = len < 0 ? errno : 0;
130 return err == 0 ? len : -err;
/frameworks/native/opengl/libs/tools/
H A Dglapigen53 my $len = scalar(@args);
54 for (my $num = 0; $num < $len; $num++) {
/frameworks/base/media/java/android/media/
H A DResampleInputStream.java97 int len = ((mBufCount / 2 - mFirLength) * mRateOut / mRateIn) * 2;
98 if (len > 0) {
99 length = len < length ? len : (length / 2) * 2;
/frameworks/native/cmds/installd/
H A Dglobals.cpp123 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path);
126 android_system_dirs.dirs[1].len = strlen(android_system_dirs.dirs[1].path);
129 android_system_dirs.dirs[2].len = strlen(android_system_dirs.dirs[2].path);
132 android_system_dirs.dirs[3].len = strlen(android_system_dirs.dirs[3].path);
H A Dglobals.h30 size_t len; member in struct:android::installd::dir_rec_t
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java56 int len = str.length();
60 if (len < 1) {
73 if (len < index) {
90 for (; index < len; index++) {
/frameworks/rs/cpp/
H A DScript.cpp25 void Script::invoke(uint32_t slot, const void *v, size_t len) const {
26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
52 void Script::setVar(uint32_t index, const void *v, size_t len) const {
53 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
/frameworks/rs/driver/
H A DrsdMesh.h27 uint32_t primIndex, uint32_t start, uint32_t len);
/frameworks/base/core/java/android/text/util/
H A DRfc822Tokenizer.java179 int len = sb.length();
181 while (i < len) {
185 if (i == 0 || i == len - 1 ||
191 len--;
200 for (i = 0; i < len; i++) {
242 int len = text.length();
245 while (i < len) {
253 while (i < len) {
259 } else if (c == '\\' && i + 1 < len) {
269 while (i < len
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseOutputStream.java64 int len = (mPos >>> 3) + ((mPos & 0x07) > 0 ? 1 : 0); // &7==%8
65 byte[] newBuf = new byte[len];
66 System.arraycopy(mBuf, 0, newBuf, 0, len);
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp115 int len; local
120 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq);
131 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort");
136 if (len >= 0 && len < remainreasonlen) {
137 mergedreasonpos += len;
138 remainreasonlen -= len;
156 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos);
157 if (len >= 0 && len < remainreasonle
[all...]
/frameworks/minikin/app/
H A DHyphTool.cpp44 size_t len = strlen(asciiword); local
45 for (size_t i = 0; i < len; i++) {
54 for (size_t i = 0; i < len; i++) {
/frameworks/minikin/libs/minikin/
H A Dunicode_emoji_h_gen.py85 if len(tmp_line) + len(JOINER) + len(hex_str) >= 100:
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A Dmandelbulb.rs63 float len;
67 len = fast_length(p);
68 if (len > 2.f) return 255 - loop*10;
69 if (len < .3f) return loop*10;
72 len = length(p);
73 return (short) (255 - (len * 255) / 4);
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DByteArrayPool.java87 * @param len the minimum size, in bytes, of the requested buffer. The returned buffer may be
91 public synchronized byte[] getBuf(int len) { argument
94 if (buf.length >= len) {
101 return new byte[len];
H A DPoolingByteArrayOutputStream.java83 public synchronized void write(byte[] buffer, int offset, int len) { argument
84 expand(len);
85 super.write(buffer, offset, len);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { argument
52 int r = in.read(b, off, len);
82 public void readOrThrow(byte[] b, int off, int len) throws IOException { argument
83 int r = read(b, off, len);
84 if (r != len) throw new EOFException();
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A DBCHeaderField.h41 BCHeaderField(Tag ID, size_t len, uint8_t* data) : argument
42 ID_(ID), len_(len), data_(data) {}
90 FixedSubfield len; local
91 ReadFixedSubfield(&len, buf + sizeof(FixedSubfield));
92 return len;
/frameworks/base/packages/Osu/src/com/android/anqp/eap/
H A DEAPMethod.java49 int len = paramPayload.get() & Constants.BYTE_MASK;
50 if (len == 0 || len > paramPayload.remaining()) {
51 throw new ProtocolException("Bad auth method length: " + len);
56 addAuthParam(new ExpandedEAPMethod(authInfoID, len, paramPayload));
59 addAuthParam(new NonEAPInnerAuth(len, paramPayload));
62 addAuthParam(new InnerAuthEAP(len, paramPayload));
65 addAuthParam(new ExpandedEAPMethod(authInfoID, len, paramPayload));
68 addAuthParam(new Credential(authInfoID, len, paramPayload));
71 addAuthParam(new Credential(authInfoID, len, paramPayloa
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/
H A DEAPMethod.java50 int len = paramPayload.get() & Constants.BYTE_MASK;
51 if (len == 0 || len > paramPayload.remaining()) {
52 throw new ProtocolException("Bad auth method length: " + len);
57 addAuthParam(new ExpandedEAPMethod(authInfoID, len, paramPayload));
60 addAuthParam(new NonEAPInnerAuth(len, paramPayload));
63 addAuthParam(new InnerAuthEAP(len, paramPayload));
66 addAuthParam(new ExpandedEAPMethod(authInfoID, len, paramPayload));
69 addAuthParam(new Credential(authInfoID, len, paramPayload));
72 addAuthParam(new Credential(authInfoID, len, paramPayloa
[all...]
/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());
128 memcpy(buffer, mMemory->pointer(), len);
130 return len;
/frameworks/base/core/java/android/text/
H A DAndroidBidi.java58 * @param len the length of the line
62 char[] chars, int cstart, int len) {
63 if (len == 0) {
71 for (int i = lstart + 1, e = lstart + len; i < e; ++i) {
80 int visLen = len;
96 if (visLen != len) {
136 if (visLen < len) {
138 ld[++n] = (len - visLen) | (baseLevel << Layout.RUN_LEVEL_SHIFT);
61 directions(int dir, byte[] levels, int lstart, char[] chars, int cstart, int len) argument
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp469 PV_BitstreamFlushBits(stream, PV_TMNMVtab0[code].len + 1);
477 PV_BitstreamFlushBits(stream, PV_TMNMVtab1[code].len + 1);
490 PV_BitstreamFlushBits(stream, PV_TMNMVtab2[code].len + 1);
523 PV_BitstreamFlushBits(stream, PV_MCBPCtabintra[code].len);
552 PV_BitstreamFlushBits(stream, PV_MCBPCtab[code].len);
574 PV_BitstreamFlushBits(stream, PV_MCBPCtab[code >> 4].len);
579 PV_BitstreamFlushBits(stream, PV_MCBPCtab1[code - 8].len);
609 PV_BitstreamFlushBits(stream, PV_CBPYtab[code].len);
871 PV_BitstreamFlushBits(stream, tab->len + 1);
872 pTcoef->sign = (code >> (12 - tab->len))
1475 int count, len, num[2] = {0, 0} /* 01/30/01 */; local
1558 int count, len, num[2] = {0, 0} /* 01/30/01 */; local
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java93 public final void write(byte b[], int off, int len) { argument
94 ensureFit(len);
95 System.arraycopy(b, off, mBuffer, mOffset, len);
96 mOffset += len;
140 public final int read(byte[] b, int off, int len) { argument
144 if ((mPos + len) > mSize) {
145 len = mSize - mPos;
147 System.arraycopy(mBuffer, mPos, b, off, len);
148 mPos += len;
149 return len;
[all...]

Completed in 977 milliseconds

1234567891011>>