/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | TypefaceCompatUtil.java | 121 public int read(byte[] bytes, int off, int len) { argument 125 len = Math.min(len, mBuf.remaining()); 126 mBuf.get(bytes, off, len); 127 return len;
|
/frameworks/base/cmds/idmap/ |
H A D | scan.cpp | 107 size_t len; local 108 String16 key(parser.getAttributeName(i, &len)); 110 const char16_t *p = parser.getAttributeStringValue(i, &len); 112 target = String16(p, len); 128 const char16_t *p = parser.getAttributeStringValue(i, &len); 130 propName = String16(p, len); 133 const char16_t *p = parser.getAttributeStringValue(i, &len); 135 propValue = String16(p, len); 170 size_t len; local 171 String16 tag(parser.getElementName(&len)); [all...] |
/frameworks/base/core/java/android/net/ |
H A D | LocalSocketImpl.java | 101 public int read(byte[] b, int off, int len) throws IOException { argument 106 if (off < 0 || len < 0 || (off + len) > b.length ) { 110 int ret = readba_native(b, off, len, myFd); 136 public void write (byte[] b, int off, int len) throws IOException { argument 141 if (off < 0 || len < 0 || (off + len) > b.length ) { 144 writeba_native(b, off, len, myFd); 194 private native int readba_native(byte[] b, int off, int len, argument 196 private native void writeba_native(byte[] b, int off, int len, argument [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 185 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 D | glGetActiveUniform.cpp | 187 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...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | PhoneNumberWatcherTest.java | 46 int len = number.length(); 50 textWatcher.onTextChanged(number, len, 0, 1); 63 int len = number.length(); 64 textWatcher.beforeTextChanged(number, len - 1, 1, 0); 65 number.delete(len - 1, len); 173 int len = number.length(); 174 textWatcher.beforeTextChanged(number, 0, len, 0); 175 number.delete(0, len); 176 textWatcher.onTextChanged(number, 0, len, [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicConvolve3x3.cpp | 209 int32_t len = (x2 - x1 - 1) >> 1; local 210 if(len > 0) { 211 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->mIp, len); 212 x1 += len << 1; 213 out += len << 1; 255 int32_t len = (x2 - x1 - 1) >> 1; 256 if(len > 0) { 257 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->mIp, len); 258 x1 += len << 1; 259 out += len << [all...] |
H A D | rsCpuIntrinsicYuvToRGB.cpp | 161 int32_t len = x2 - x1; local 164 x1 += len; 165 out += len; 173 x1 += len; 174 out += len; 177 x1 += len; 178 out += len;
|
/frameworks/av/media/mtp/ |
H A D | MtpFfsHandle.cpp | 364 int MtpFfsHandle::writeHandle(int fd, const void* data, int len) { argument 365 LOG(VERBOSE) << "MTP about to write fd = " << fd << ", len=" << len; local 368 while (len > 0) { 369 int write_len = std::min(mMaxWrite, len); 381 len -= n; 387 int MtpFfsHandle::readHandle(int fd, void* data, int len) { argument 388 LOG(VERBOSE) << "MTP about to read fd = " << fd << ", len=" << len; local 391 while (len > 407 spliceReadHandle(int fd, int pipe_out, int len) argument 408 LOG(VERBOSE) << "MTP about to splice read fd = " << fd << ", len=" << len; local 427 read(void* data, int len) argument 431 write(const void* data, int len) argument [all...] |
/frameworks/native/libs/vr/libpdx/ |
H A D | encoder_performance_test.cpp | 421 for (size_t len : {0, 1, 9, 66, 259}) { 423 std::bind(&SerializeBaseTest, _1, _2, _3, _4, len); 425 std::bind(&DeserializeBaseTest, _1, _2, _3, _4, _5, _6, len); 427 std::move(deserialize_base_test), len); 434 for (size_t len : {0, 1, 8, 64, 256}) { 435 test_runner.AddTest(GenerateContainerName("string", len), 436 std::string(len, '*')); 443 for (size_t len : {0, 1, 8, 64, 256}) { 444 std::vector<int32_t> int_vector(len); 446 test_runner.AddTest(GenerateContainerName("vector<int32_t>", len), [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 304 ssize_t len = utf32_to_utf8_length(&code, 1); local 305 if (len < 0) { 310 result_utf8.resize(len); 311 utf32_to_utf8(&code, 1, &*result_utf8.begin(), len + 1); 433 ssize_t len = utf8_to_utf16_length( local 436 if (len < 0) { 440 utf16_len_ += len; 558 size_t len; local 559 const char16_t* str = pool.stringAt(idx, &len); 561 return StringPiece16(str, len); 567 size_t len; local [all...] |
/frameworks/native/cmds/installd/tests/ |
H A D | installd_utils_test.cpp | 58 android_app_dir.len = strlen(TEST_APP_DIR); 61 android_app_private_dir.len = strlen(TEST_APP_PRIVATE_DIR); 64 android_app_ephemeral_dir.len = strlen(TEST_APP_EPHEMERAL_DIR); 67 android_data_dir.len = strlen(TEST_DATA_DIR); 70 android_asec_dir.len = strlen(TEST_ASEC_DIR); 73 android_mnt_expand_dir.len = strlen(TEST_EXPAND_DIR); 79 android_system_dirs.dirs[0].len = strlen(TEST_SYSTEM_DIR1); 82 android_system_dirs.dirs[1].len = strlen(TEST_SYSTEM_DIR2); 85 android_profiles_dir.len = strlen(TEST_PROFILE_DIR); 306 EXPECT_EQ(10, (ssize_t) test1.len) [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 568 int len = n / 2; local 572 if (len > 0) { 573 framedatacopy = new (std::nothrow) char16_t[len]; 577 for (int i = 0; i < len; i++) { 583 id->setTo(framedata, len); 590 int len = n / 2; local 595 if (len <= 1) { 598 framedatacopy = new (std::nothrow) char16_t[len]; 602 for (int i = 0; i < len; i++) { 608 len [all...] |
H A D | testid3.cpp | 141 size_t len = strlen(ent->d_name); local 143 if (len >= 4 144 && !strcasecmp(ent->d_name + len - 4, ".mp3")) {
|
/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/base/tools/localedata/ |
H A D | extract_icu_data.py | 29 if len(parts) == 1: 31 elif len(parts) == 2: 32 if len(parts[1]) == 4: # parts[1] is a script 37 assert len(parts) == 3 86 elif len(inp) == 2: 89 assert len(inp) == 3 171 assert len(all_scripts) <= 256
|
/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) &&
|
/frameworks/base/core/java/android/text/ |
H A D | AlteredCharSequence.java | 116 int len = length(); 118 char[] ret = new char[len]; 119 getChars(0, len, ret, 0);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | StringPiece.h | 48 BasicStringPiece(const TChar* str, size_t len); 51 BasicStringPiece<TChar>& assign(const TChar* str, size_t len); 53 BasicStringPiece<TChar> substr(size_t start, size_t len = npos) const; 108 inline BasicStringPiece<TChar>::BasicStringPiece(const TChar* str, size_t len) argument 109 : data_(str), length_(len) {} 120 inline BasicStringPiece<TChar>& BasicStringPiece<TChar>::assign(const TChar* str, size_t len) { argument 122 length_ = len; 127 inline BasicStringPiece<TChar> BasicStringPiece<TChar>::substr(size_t start, size_t len) const { 128 if (len == npos) { 129 len [all...] |
/frameworks/base/media/tests/players/ |
H A D | invoke_mock_media_player.cpp | 117 const size_t len = request.dataAvail(); local 119 reply->setData(static_cast<const uint8_t*>(request.readInplace(len)), len); local
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | SinkActivity.java | 259 int len = conn.controlTransfer(UsbConstants.USB_DIR_OUT | UsbConstants.USB_TYPE_VENDOR, 261 if (len != 0) { 310 int len = mAccessoryConnection.controlTransfer( 314 if (len != 0) { 322 len = mAccessoryConnection.controlTransfer( 327 if (len != count) { 393 int len = mAccessoryConnection.controlTransfer( 398 if (len != count) { 443 int len = conn.controlTransfer( 446 if (len ! [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestEventHandler.java | 368 * @param len The length of the data 370 public void data(byte[] data, int len) { argument 374 Log.v(LOGTAG, "TestEventHandler: data() " + len + " bytes"); 383 Log.v(LOGTAG, new String(data, 0, len)); 386 if (expectDataLength == len) { 390 expectDataLength+" got:"+len); 396 for (int i = 0; i < len; i++) { 681 public void expectData(int len) { argument 683 expectDataLength = len; 686 public void expectData(byte[] data, int len) { argument [all...] |
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | ToastTest.java | 59 int len; 66 while ((len = f.read(cbuf, 0, cbuf.length)) >= 0) { 67 s += String.valueOf(cbuf, 0, len);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | vlc_encode.cpp | 189 length = DCtab_lum[size].len; 203 length = DCtab_chrom[size].len; 225 length = mvtab[absmv].len; 246 length = mcbpc_intra_tab[ind].len; 261 length = mcbpc_inter_tab[ind].len; 279 length = cbpy_tab[ind].len; 297 length = coeff_tab0[run][level-1].len; 303 length = coeff_tab1[run-2][level-1].len; 317 length = coeff_tab2[run][level-1].len; 323 length = coeff_tab3[run-2].len; [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
H A D | SoftMP3.h | 75 void *memsetSafe(OMX_BUFFERHEADERTYPE *outHeader, int c, size_t len);
|