/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 206 int len = 0; 209 len = data[offset + 1] & 0xFF; 210 if (len > length - 3) 211 len = length - 3; 217 len = data[offset + 1] & 0xFF; 218 if (len > length - 4) 219 len = length - 4; 230 while (len > 0) { 236 len--; 242 while (count < len [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccUtils.java | 206 int len = 0; 209 len = data[offset + 1] & 0xFF; 210 if (len > length - 3) 211 len = length - 3; 217 len = data[offset + 1] & 0xFF; 218 if (len > length - 4) 219 len = length - 4; 230 while (len > 0) { 236 len--; 242 while (count < len [all...] |
/frameworks/base/core/java/com/google/android/util/ |
H A D | SmileyParser.java | 65 int len = tokens.size(); 66 for (int i = 0; i < len; i++) {
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreSignatureSpiBase.java | 254 protected final void engineUpdate(byte[] b, int off, int len) throws SignatureException { argument 265 if (len == 0) { 271 output = mMessageStreamer.update(b, off, len); 291 int len = input.remaining(); 297 b = new byte[len]; 303 engineUpdate(b, off, len); 380 protected final boolean engineVerify(byte[] sigBytes, int offset, int len) argument 382 return engineVerify(ArrayUtils.subarray(sigBytes, offset, len));
|
/frameworks/native/libs/binder/ |
H A D | BufferedTextOutput.cpp | 50 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/rs/driver/ |
H A D | rsdMesh.cpp | 41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { argument 49 drv->renderPrimitiveRange(rsc, primIndex, start, len);
|
/frameworks/rs/ |
H A D | rsScriptC_Lib.cpp | 209 uint32_t rsrToClient(Context *rsc, int cmdID, const void *data, int len) { argument 210 //ALOGE("SC_toClient %i %i %i", cmdID, len); 211 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, false); 214 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, const void *data, int len) { argument 215 //ALOGE("SC_toClientBlocking %i %i", cmdID, len); 216 return rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, cmdID, len, true); 221 uint32_t rsrToClient(Context *rsc, int cmdID, void *data, int len) { argument 222 return rsrToClient(rsc, cmdID, (const void *)data, len); 225 uint32_t rsrToClientBlocking(Context *rsc, int cmdID, void *data, int len) { argument 226 return rsrToClientBlocking(rsc, cmdID, (const void *)data, len); [all...] |
H A D | rsFileA3D.cpp | 159 size_t len; local 162 len = fread(magicString, 1, 12, f); 163 if ((len != 12) || 170 len = fread(&headerSize, 1, sizeof(headerSize), f); 171 if (len != sizeof(headerSize) || headerSize == 0) { 180 len = fread(headerData, 1, headerSize, f); 181 if (len != headerSize) { 192 len = fread(&mDataSize, 1, sizeof(mDataSize), f); 193 if (len != sizeof(mDataSize) || mDataSize == 0) { 205 len 439 rsaFileA3DCreateFromMemory(RsContext con, const void *data, uint32_t len) argument [all...] |
/frameworks/native/include/binder/ |
H A D | Parcel.h | 58 status_t setData(const uint8_t* buffer, size_t len); 61 size_t start, size_t len); 94 status_t write(const void* data, size_t len); 95 void* writeInplace(size_t len); 96 status_t writeUnpadded(const void* data, size_t len); 106 status_t writeString16(const char16_t* str, size_t len); 109 status_t writeInt32Array(size_t len, const int32_t *val); 110 status_t writeByteArray(size_t len, const uint8_t *val); 140 status_t writeBlob(size_t len, bool mutableCopy, WritableBlob* outBlob); 156 status_t read(void* outData, size_t len) cons [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SmsMessageBodyTest.java | 266 int len = sSeptetTestLengths[i]; 267 assertTrue(sb.length() <= len); 269 while (sb.length() < len) { 270 int addCount = len - sb.length(); 276 assertEquals(len, sb.length()); 280 values[1] = len; 300 int len = sUnicodeTestLengths[i]; 301 assertTrue(sb.length() <= len); 303 while (sb.length() < len) { 304 int addCount = len [all...] |
H A D | PhoneNumberWatcherTest.java | 42 int len = number.length(); 46 textWatcher.onTextChanged(number, len, 0, 1); 58 int len = number.length(); 59 textWatcher.beforeTextChanged(number, len - 1, 1, 0); 60 number.delete(len - 1, len); 165 int len = number.length(); 166 textWatcher.beforeTextChanged(number, 0, len, 0); 167 number.delete(0, len); 168 textWatcher.onTextChanged(number, 0, len, [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileBridge.java | 52 /** CMD_WRITE [len] [data] */ 101 int len = Memory.peekInt(temp, 4, ByteOrder.BIG_ENDIAN); 102 while (len > 0) { 103 int n = IoBridge.read(mServer, temp, 0, Math.min(temp.length, len)); 106 "Unexpected EOF; still expected " + len + " bytes"); 109 len -= n;
|
/frameworks/base/tools/aapt/ |
H A D | ApkBuilder.cpp | 93 size_t len = packageConfigStr.length(); local 94 if (len > 0) { 95 char* buf = packageConfigStr.lockBuffer(len); 96 for (char* end = buf + len; buf < end; ++buf) { 101 packageConfigStr.unlockBuffer(len);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/ |
H A D | ObexAppParameters.java | 44 byte len = raw[i++]; 46 if (raw.length - i - len < 0) { 50 byte[] val = new byte[len]; 52 System.arraycopy(raw, i, val, 0, len); 55 i += len;
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/utils/ |
H A D | ObexAppParameters.java | 44 byte len = raw[i++]; 46 if (raw.length - i - len < 0) { 50 byte[] val = new byte[len]; 52 System.arraycopy(raw, i, val, 0, len); 55 i += len;
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 189 GLint len = 0; local 190 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 191 if (!len) { 194 char* buf = (char*) malloc(len); 237 (GLsizei)len, 285 GLint len = 0; local 286 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 287 if (!len) { 290 char* buf = (char*) malloc(len); 310 (GLsizei)len, [all...] |
H A D | glGetActiveUniform.cpp | 191 GLint len = 0; local 192 glGetProgramiv((GLuint)program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &len); 193 if (!len) { 196 char* buf = (char*) malloc(len); 240 (GLsizei)len, 285 GLint len = 0; local 286 glGetProgramiv((GLuint)program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &len); 287 if (!len) { 290 char* buf = (char*) malloc(len); 311 len, [all...] |
H A D | glGetTransformFeedbackVarying.cpp | 193 GLint len = 0; local 194 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 195 if (!len) { 198 char* buf = (char*) malloc(len); 241 (GLsizei)len, 289 GLint len = 0; local 290 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 291 if (!len) { 294 char* buf = (char*) malloc(len); 314 (GLsizei)len, [all...] |
/frameworks/native/cmds/installd/ |
H A D | utils.cpp | 172 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) 502 static void* _cache_malloc(cache_t* cache, size_t len) argument 504 len = (len+3)&~3; 505 if (len > (CACHE_BLOCK_SIZE/2)) { 509 int8_t* res = (int8_t*)malloc(len+sizeof(void*)); 513 CACHE_NOISY(ALOGI("Allocated large cache mem block: %p size %d", res, len)); 525 int8_t* nextPos = res + len; 536 nextPos = res + len; 539 res, len, cach 544 _cache_realloc(cache_t* cache, void* cur, size_t origLen, size_t len) argument 1094 int len = len_s1 + len_s2 + 1; local 1110 int len = len_s1 + len_s2 + len_s3 + 1; local [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicConvolve3x3.cpp | 216 int32_t len = (x2 - x1 - 1) >> 1; local 217 if(len > 0) { 218 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->mIp, len); 219 x1 += len << 1; 220 out += len << 1; 262 int32_t len = (x2 - x1 - 1) >> 1; 263 if(len > 0) { 264 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->mIp, len); 265 x1 += len << 1; 266 out += len << [all...] |
H A D | rsCpuIntrinsicYuvToRGB.cpp | 167 int32_t len = x2 - x1; local 170 x1 += len; 171 out += len; 179 x1 += len; 180 out += len; 183 x1 += len; 184 out += len;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 191 int[] len = new int[1]; 192 GLES20.glGetProgramiv(program, GLES20.GL_ACTIVE_UNIFORM_MAX_LENGTH, len, 0); 196 byte[] name = new byte[len[0]]; 199 GLES20.glGetActiveUniform(program, index, len[0], ignore, 0, size, 0, type, 0, name, 0); 334 int len = values.length; 337 checkUniformAssignment(uniform, len, 1); 338 GLES20.glUniform1iv(uniform.getLocation(), len, values, 0); 341 checkUniformAssignment(uniform, len, 2); 342 GLES20.glUniform2iv(uniform.getLocation(), len / 2, values, 0); 345 checkUniformAssignment(uniform, len, [all...] |
/frameworks/av/media/libstagefright/ |
H A D | DRMExtractor.cpp | 133 size_t len = (*buffer)->range_length(); local 137 DrmBuffer encryptedDrmBuffer(src, len); 139 decryptedDrmBuffer.length = len; 140 decryptedDrmBuffer.data = new char[len]; 163 len = decryptedDrmBuffer.length; 164 while (srcOffset < len) { 165 CHECK(srcOffset + mNALLengthSize <= len); 190 if (end > len || end < srcOffset) { 214 CHECK_EQ(srcOffset, len);
|
/frameworks/av/camera/camera2/ |
H A D | CaptureRequest.cpp | 56 size_t len; local 57 const char16_t* className = parcel->readString16Inplace(&len); 66 const char16_t* name = parcel->readString16Inplace(&len);
|
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
H A D | MimeTypeUtil.cpp | 130 int len; local 147 len = strlen (pMimeType+pGroup->size); 150 (len == pMimeItem->size) &&
|