Searched refs:len (Results 1 - 25 of 522) sorted by relevance

1234567891011>>

/frameworks/rs/
H A DrsCompatibilityLib.cpp23 int len; local
25 len = __system_property_get(key, value);
27 len = 0;
29 if (len > 0) {
30 return len;
34 len = strlen(default_value);
35 memcpy(value, default_value, len + 1);
37 return 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/base/core/java/com/android/internal/alsa/
H A DLineTokenizer.java33 int len = line.length();
35 for (; offset < len; offset++) {
42 return offset < len ? offset : kTokenNotFound;
46 int len = line.length();
48 for (; offset < len; offset++) {
55 return offset < len ? offset : kTokenNotFound;
/frameworks/minikin/libs/minikin/
H A DLayoutUtils.cpp44 const uint16_t* chars, size_t offset, size_t len) {
46 if (offset > len) offset = len;
59 * Return offset of next word break. It is either > offset or == len.
62 const uint16_t* chars, size_t offset, size_t len) {
63 if (offset >= len) return len;
67 for (size_t i = offset + 1; i < len; i++) {
75 return len;
43 getPrevWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
61 getNextWordBreakForCache( const uint16_t* chars, size_t offset, size_t len) argument
H A DLayoutUtils.h30 const uint16_t* chars, size_t offset, size_t len);
33 * Return offset of next word break. It is either > offset or == len.
40 const uint16_t* chars, size_t offset, size_t len);
/frameworks/base/core/java/android/util/
H A DStringBuilderPrinter.java37 int len = x.length();
38 if (len <= 0 || x.charAt(len-1) != '\n') {
H A DBase64OutputStream.java98 public void write(byte[] b, int off, int len) throws IOException { argument
99 if (len <= 0) return;
101 internalWrite(b, off, len, false);
136 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { argument
137 coder.output = embiggen(coder.output, coder.maxOutputSize(len));
138 if (!coder.process(b, off, len, finish)) {
145 * If b.length is at least len, return b. Otherwise return a new
146 * byte array of length len.
148 private byte[] embiggen(byte[] b, int len) { argument
149 if (b == null || b.length < len) {
[all...]
H A DBase64.java88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); argument
95 public abstract int maxOutputSize(int len); argument
148 * @param len the number of bytes of input to decode
155 public static byte[] decode(byte[] input, int offset, int len, int flags) { argument
158 Decoder decoder = new Decoder(flags, new byte[len*3/4]);
160 if (!decoder.process(input, offset, len, true)) {
251 * len} bytes could decode to.
253 public int maxOutputSize(int len) { argument
254 return len * 3/4 + 10;
263 public boolean process(byte[] input, int offset, int len, boolea argument
475 encodeToString(byte[] input, int offset, int len, int flags) argument
509 encode(byte[] input, int offset, int len, int flags) argument
599 maxOutputSize(int len) argument
603 process(byte[] input, int offset, int len, boolean finish) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { argument
44 len = Math.min(len, mBuf.remaining());
45 mBuf.get(bytes, off, len);
46 return len;
/frameworks/av/media/libstagefright/foundation/
H A DAStringUtils.cpp23 int AStringUtils::Compare(const char *a, const char *b, size_t len, bool ignoreCase) { argument
24 // this method relies on a trailing '\0' if a or b are shorter than len
25 return ignoreCase ? strncasecmp(a, b, len) : strncmp(a, b, len);
38 if (strLen < globIx || Compare(str, glob, globIx /* len */, ignoreCase)) {
50 size_t len = globIx - start; local
55 if (ix + len > strLen) {
58 const char *tail = str + strLen - len;
59 return !Compare(tail, pattern, len, ignoreCase);
62 while (ix + len <
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dstream.c40 int len; local
41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len);
42 pMemOP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, len);
43 stream->set_len -= len;
44 stream->set_ptr += len;
45 stream->framebuffer_len = stream->frame_storelen + len;
47 stream->used_len += len;
/frameworks/wilhelm/tools/mphtogen/
H A Dmphtogen.c31 unsigned len = 0; local
33 if (len > 0) {
35 ++len;
37 if (len > 78) {
39 len = 0;
42 len += 3;
44 if (len > 0) {
/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java118 public void write(char[] buf, int off, int len) { argument
119 while (bufferIndex + len > bufferSize) {
141 len -= nextNewLine + 1;
154 len -= rest;
159 if (len > 0) {
161 appendToBuffer(buf, off, len);
162 for (int i = len - 1; i >= 0; i--) {
164 lastNewline = bufferIndex - len + i;
172 public void write(String s, int off, int len) { argument
173 while (bufferIndex + len > bufferSiz
232 appendToBuffer(char[] buf, int off, int len) argument
247 appendToBuffer(String s, int off, int len) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java25 public static char[] obtain(int len) { argument
33 if (buf == null || buf.length < len) {
34 buf = ArrayUtils.newUnpaddedCharArray(len);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_byte_stream.h50 u32 h264bsdExtractNalUnit(u8 *pByteStream, u32 len, strmData_t *pStrmData,
/frameworks/native/opengl/tests/angeles/
H A Dcams.h43 unsigned char len; // length multiplier member in struct:__anon1512
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlend.cpp149 uint32_t len = (x2 - x1) >> 3; local
150 rsdIntrinsicBlendSrcOver_K(out, in, len);
151 x1 += len << 3;
152 out += len << 3;
153 in += len << 3;
168 uint32_t len = (x2 - x1) >> 3; local
169 rsdIntrinsicBlendDstOver_K(out, in, len);
170 x1 += len << 3;
171 out += len << 3;
172 in += len <<
187 uint32_t len = (x2 - x1) >> 3; local
205 uint32_t len = (x2 - x1) >> 3; local
223 uint32_t len = (x2 - x1) >> 3; local
241 uint32_t len = (x2 - x1) >> 3; local
259 uint32_t len = (x2 - x1) >> 3; local
279 uint32_t len = (x2 - x1) >> 3; local
300 uint32_t len = (x2 - x1) >> 3; local
324 uint32_t len = (x2 - x1) >> 3; local
417 uint32_t len = (x2 - x1) >> 3; local
438 uint32_t len = (x2 - x1) >> 3; local
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DTypedArray_Delegate.java32 /*package*/ static TypedArray obtain(Resources res, int len) { argument
33 return BridgeTypedArray.obtain(res, len);
/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java116 public void addAPPHeader(byte tag, byte len, byte[] value) { argument
117 if ((mLength + len + 2) > mMaxLength) {
118 byte[] array_tmp = new byte[mLength + 4 * len];
121 mMaxLength = mLength + 4 * len;
124 mArray[mLength++] = len;
125 System.arraycopy(value, 0, mArray, mLength, len);
126 mLength += len;
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener_test.cpp82 size_t len;
83 const char16_t* namespacePrefix = tree.getNamespacePrefix(&len);
84 EXPECT_EQ(StringPiece16(namespacePrefix, len), u"test");
86 const char16_t* namespaceUri = tree.getNamespaceUri(&len);
87 ASSERT_EQ(StringPiece16(namespaceUri, len), u"http://com.test");
91 ASSERT_EQ(tree.getElementNamespace(&len), nullptr);
92 const char16_t* tagName = tree.getElementName(&len);
93 EXPECT_EQ(StringPiece16(tagName, len), u"View");
96 ASSERT_EQ(tree.getAttributeNamespace(0, &len), nullptr);
97 const char16_t* attrName = tree.getAttributeName(0, &len);
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_ConsumerIrService.cpp73 int len; local
75 len = dev->get_num_carrier_freqs(dev);
76 if (len <= 0)
79 ranges = new consumerir_freq_range_t[len];
81 len = dev->get_carrier_freqs(dev, len, ranges);
82 if (len <= 0) {
88 ScopedIntArrayRW freqsOut(env, env->NewIntArray(len*2));
94 for (i = 0; i < len; i++) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DATResponseParser.java98 int len = mLine.length();
104 if (mNext >= len) {
117 if (mNext >= len) {
122 while (c != '"' && mNext < len) {
129 if (mNext < len && mLine.charAt(mNext++) != ',') {
139 if (mNext == len) {
155 int len;
156 len = mLine.length();
157 while (mNext < len && Character.isWhitespace(c)) {
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dvlc_encode.cpp151 uint code, len; local
186 len = totCoeffTrailOne[vlcnum][TrailingOnes][TotalCoeff][0];
188 status = BitstreamWriteBits(stream, len, code);
205 uint code, len; local
207 len = totCoeffTrailOneChrom[TrailingOnes][TotalCoeff][0];
209 status = BitstreamWriteBits(stream, len, code);
254 int len, code; local
257 len = lenTotalZeros[TotalCoeff-1][total_zeros];
260 status = BitstreamWriteBits(stream, len, code);
282 int len, cod local
318 int len, code; local
[all...]
/frameworks/minikin/include/minikin/
H A DHyphenator.h42 void hyphenate(std::vector<uint8_t>* result, const uint16_t* word, size_t len);
53 void hyphenateSoft(uint8_t* result, const uint16_t* word, size_t len);
56 // Note that this methor writes len+2 entries into alpha_codes (including start and stop)
57 bool alphabetLookup(uint16_t* alpha_codes, const uint16_t* word, size_t len);
60 void hyphenateFromCodes(uint8_t* result, const uint16_t* codes, size_t len);
/frameworks/wilhelm/src/desktop/
H A DSDL.c24 static void SDLCALL SDL_callback(void *context, Uint8 *stream, int len) argument
26 assert(len > 0);
36 IOutputMixExt_FillBuffer(OutputMixExt, stream, (SLuint32) len);
38 memset(stream, 0, (size_t) len);

Completed in 587 milliseconds

1234567891011>>