Searched defs:len (Results 126 - 150 of 306) sorted by relevance

1234567891011>>

/frameworks/base/libs/androidfw/
H A DZipUtils.cpp43 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { argument
55 size_t read = fread(buf, 1, len, mFp);
56 if (read != len) {
74 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { argument
75 return android::base::ReadFullyAtOffset(mFd, buf, len, static_cast<off_t>(offset));
89 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { argument
90 if (offset + len > mInputSize) {
94 memcpy(buf, mInput + offset, len);
197 int len; local
199 len
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A DStringPiece.h49 BasicStringPiece(const TChar* str, size_t len);
52 BasicStringPiece<TChar>& assign(const TChar* str, size_t len);
54 BasicStringPiece<TChar> substr(size_t start, size_t len = npos) const;
109 inline BasicStringPiece<TChar>::BasicStringPiece(const TChar* str, size_t len) argument
110 : data_(str), length_(len) {}
121 inline BasicStringPiece<TChar>& BasicStringPiece<TChar>::assign(const TChar* str, size_t len) { argument
123 length_ = len;
128 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr(size_t start, size_t len) const {
129 if (len == npos) {
130 len
[all...]
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp274 size_t len = std::char_traits<char16_t>::length(str); local
278 std::string s = convert.to_bytes(std::u16string(str, len));
281 ASSERT_EQ(expectSuccess, U16StringToInt(str, len, &out)) << "Failed with "
/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...]
/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java144 public void addAPPHeader(byte tag, byte len, byte[] value) { argument
145 if ((mLength + len + 2) > mMaxLength) {
146 byte[] array_tmp = new byte[mLength + 4 * len];
149 mMaxLength = mLength + 4 * len;
152 mArray[mLength++] = len;
153 System.arraycopy(value, 0, mArray, mLength, len);
154 mLength += len;
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp134 int len; local
139 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq);
150 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort");
155 if (len >= 0 && len < remainreasonlen) {
156 mergedreasonpos += len;
157 remainreasonlen -= len;
175 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos);
176 if (len >= 0 && len < remainreasonle
[all...]
/frameworks/base/tools/aapt2/
H A DDebug.cpp397 void Debug::DumpHex(const void* data, size_t len) { argument
399 for (size_t i = 0; i < len; i++) {
406 if (len - 1 % 8 != 7) {
/frameworks/base/tools/aapt2/cmd/
H A DDump.cpp63 size_t len, Printer* printer) {
76 printer->Println(StringPrintf("Data: offset=%" PRIi64 " length=%zd", offset, len));
62 DumpCompiledFile(const ResourceFile& file, const Source& source, off64_t offset, size_t len, Printer* printer) argument
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp253 const size_t len = section.start - start; variable
254 if (len > 0u) {
255 result += localizer_.Text(original_string.substr(start, len));
265 const size_t len = original_string.size() - start; variable
266 result += localizer_.Text(original_string.substr(start, len));
/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp77 const Source& source, const void* data, size_t len,
79 : diag_(diag), table_(table), source_(source), data_(data), data_len_(len), files_(files) {
179 size_t len = strnlen16((const char16_t*)package_header->name, arraysize(package_header->name)); local
181 package_name.resize(len);
182 for (size_t i = 0; i < len; i++) {
76 BinaryResourceParser(IDiagnostics* diag, ResourceTable* table, const Source& source, const void* data, size_t len, io::IFileCollection* files) argument
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser.cpp250 int len) {
254 parser->depth_, std::string(s, len)});
249 CharacterDataHandler(void* user_data, const char* s, int len) argument
/frameworks/base/tools/split-select/
H A DMain.cpp157 size_t len; local
158 const char16_t* name = xml.getElementName(&len);
159 String16 name16(name, len);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dbitcode_wrapperer.cpp235 uint16_t len; member in struct:IntFieldHelper
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.cpp37 const size_t len = std::max(strlen(default_value) + 1, size_t(PROPERTY_VALUE_MAX)); local
38 memcpy(value, default_value, len);
296 int len = property_get("ro.build.id", buildId, ""); local
299 len != header->mBuildIdLength ||
300 strncmp(buildId, header->mBuildId, len)) {
/frameworks/ml/nn/driver/cache/nnCache/
H A DnnCache.cpp148 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument
151 for (size_t i = 0; i < len; i++) {
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp327 size_t len = 0; local
330 len += strlen(src[i]) + 1;
333 char* result = new char[len+1];
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp50 status_t append(const char* txt, size_t len) { argument
51 if ((len+bufferPos) > bufferSize) {
52 size_t newSize = ((len+bufferPos)*3)/2;
53 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow
59 memcpy(buffer+bufferPos, txt, len);
60 bufferPos += len;
158 status_t BufferedTextOutput::print(const char* txt, size_t len) argument
160 //printf("BufferedTextOutput: printing %d\n", len);
165 const char* const end = txt+len;
/frameworks/native/libs/sensor/
H A DSensor.cpp562 uint32_t len = static_cast<uint32_t>(string8.length()); local
563 FlattenableUtils::write(buffer, size, len);
564 memcpy(static_cast<char*>(buffer), string8.string(), len); local
565 FlattenableUtils::advance(buffer, size, FlattenableUtils::align<4>(len));
569 uint32_t len; local
570 if (size < sizeof(len)) {
573 FlattenableUtils::read(buffer, size, len);
574 if (size < len) {
577 outputString8.setTo(static_cast<char const*>(buffer), len); local
578 FlattenableUtils::advance(buffer, size, FlattenableUtils::align<4>(len));
[all...]
/frameworks/native/opengl/libs/EGL/
H A DBlobCache.cpp242 int len = property_get("ro.build.id", buildId, ""); local
245 len != header->mBuildIdLength ||
246 strncmp(buildId, header->mBuildId, len)) {
H A Degl_display.cpp239 size_t len = strcspn(start, " "); local
240 if (len) {
242 const std::string ext(start, len);
249 if (findExtension(disp.queryString.extensions, ext.c_str(), len)) {
253 start += len;
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetActiveAttrib.cpp185 GLint len = 0; local
186 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len);
187 if (!len) {
190 char* buf = (char*) malloc(len);
233 (GLsizei)len,
281 GLint len = 0; local
282 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len);
283 if (!len) {
286 char* buf = (char*) malloc(len);
306 (GLsizei)len,
[all...]
H A DglGetActiveUniform.cpp187 GLint len = 0; local
188 glGetProgramiv((GLuint)program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &len);
189 if (!len) {
192 char* buf = (char*) malloc(len);
236 (GLsizei)len,
281 GLint len = 0; local
282 glGetProgramiv((GLuint)program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &len);
283 if (!len) {
286 char* buf = (char*) malloc(len);
307 len,
[all...]
H A DglGetTransformFeedbackVarying.cpp205 GLint len = 0; local
206 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len);
207 if (!len) {
210 char* buf = (char*) malloc(len);
253 (GLsizei)len,
301 GLint len = 0; local
302 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len);
303 if (!len) {
306 char* buf = (char*) malloc(len);
326 (GLsizei)len,
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DUtils.java66 int len = (mac & ~EUI48Mask) != 0 ? EUI64Length : EUI48Length;
69 for (int n = (len - 1)*Byte.SIZE; n >= 0; n -= Byte.SIZE) {
88 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length();
89 if (!domain.get(n).regionMatches(0, expect, 0, len)) {
228 public static String bytesToBingoCard(ByteBuffer data, int len) { argument
230 dup.limit(dup.position() + len);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DTelephonyUtil.java316 private static String makeHex(byte[] bytes, int from, int len) { argument
318 for (int i = 0; i < len; i++) {
326 int len = array1.length + array2.length;
328 byte[] result = new byte[len];

Completed in 202 milliseconds

1234567891011>>