/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
simple_interpolate_lsf.c | 41 int16_t length, /* (i) should equate FILTERORDER */ 52 lsf2 = lsf + length; 53 lsfdeq2 = lsfdeq + length; 54 lp_length = length + 1; 63 length); 69 length); 83 length); 89 length); 99 WEBRTC_SPL_MEMCPY_W16(lsfold, lsf2, length); 100 WEBRTC_SPL_MEMCPY_W16(lsfdeqold, lsfdeq2, length); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
BootReceiverFixFsckFsStatTest.java | 55 doTestFsckFsStat(logs, 0x405, 0x5, 0, logs.length); 57 final String[] doubleLogs = new String[logs.length * 2]; 58 System.arraycopy(logs, 0, doubleLogs, 0, logs.length); 59 System.arraycopy(logs, 0, doubleLogs, logs.length, logs.length); 60 doTestFsckFsStat(doubleLogs, 0x401, 0x1, 0, logs.length); 61 doTestFsckFsStat(doubleLogs, 0x402, 0x2, logs.length, logs.length * 2); 83 doTestFsckFsStat(logs, 0x405, 0x405, 0, logs.length); 104 doTestFsckFsStat(logs, 0x405, 0x405, 0, logs.length); [all...] |
/packages/apps/SecureElement/src/com/android/se/ |
CommandApduValidator.java | 54 if (apdu.length < CMD_APDU_LENGTH_CASE1) { 55 throw new IllegalArgumentException("Invalid length for command (" + apdu.length + ")."); 60 if (apdu.length == CMD_APDU_LENGTH_CASE1) { 64 if (apdu.length == CMD_APDU_LENGTH_CASE2) { 71 if (apdu.length == CMD_APDU_LENGTH_CASE3_WITHOUT_DATA + lc) { 74 if (apdu.length == CMD_APDU_LENGTH_CASE4_WITHOUT_DATA + lc) { 75 checkLe((int) 0x0FF & apdu[apdu.length - 1]); 81 if (apdu.length == CMD_APDU_LENGTH_CASE2_EXTENDED) { 87 if (apdu.length <= OFFSET_DATA_EXTENDED) [all...] |
/external/swiftshader/third_party/subzero/crosstest/ |
mem_intrin.cpp | 3 * (fixed length buffers, variable length buffers, etc.) 16 * Reset buf to the sequence of bytes: n, n+1, n+2 ... length - 1 19 reset_buf(uint8_t *buf, uint8_t init, SizeT length) { 22 for (i = 0; i < length; ++i) 31 fletcher_checksum(uint8_t *buf, SizeT length) { 36 for (i = 0; i < length; ++i) { 43 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) { 44 reset_buf(buf, init, length); 45 memcpy((void *)buf2, (void *)buf, length); [all...] |
/external/zopfli/src/zopfli/ |
cache.c | 30 lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize); 35 /* length > 0 and dist 0 is invalid combination, which indicates on purpose 37 for (i = 0; i < blocksize; i++) lmc->length[i] = 1; 43 free(lmc->length); 49 size_t pos, size_t length, 61 if (length < 3) return; 62 for (i = 3; i <= length; i++) { 63 if (i == length || sublen[i] != sublen[i + 1]) { 73 assert(bestlength == length); 76 assert(bestlength <= length); 94 unsigned length = cache[j * 3] + 3; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UResource.java | 39 private int length; field in class:UResource.Key 59 length = keyLength; 75 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} 85 offset = length = 0; 97 bytes = new byte[s.length()]; 99 length = s.length(); 100 for (int i = 0; i < length; ++i) 133 public int length() { method in class:UResource.Key [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
UResource.java | 37 private int length; field in class:UResource.Key 57 length = keyLength; 73 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} 83 offset = length = 0; 95 bytes = new byte[s.length()]; 97 length = s.length(); 98 for (int i = 0; i < length; ++i) 131 public int length() { method in class:UResource.Key [all...] |
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
BerTlv.java | 60 StringBuilder sb = new StringBuilder(digest.length * 2); 69 /** Decodes the byte array into BerTlv Object. Performs checks for length and tag */ 74 /** Decodes the byte array into BerTlv Object. Performs checks for length and tag */ 78 if (data == null || data.length == 0) { 86 if (curIndex < data.length) { 91 if (curIndex < data.length) { 95 "Index " + curIndex + " out of range! [0..[" + data.length); 104 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); 107 /* length */ 108 int length; local [all...] |
/external/v8/src/ |
fixed-dtoa.cc | 104 Vector<char> buffer, int* length) { 106 buffer[(*length) + i] = '0' + number % 10; 109 *length += requested_length; 113 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 119 buffer[(*length) + number_length] = '0' + digit; 123 int i = *length; 124 int j = *length + number_length - 1; 132 *length += number_length; 137 Vector<char> buffer, int* length) { 145 FillDigits32FixedLength(part0, 3, buffer, length); 358 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
unicode-decoder.h | 28 uint16_t* data, size_t length); 42 inline Utf8Decoder(const char* stream, size_t length); 43 inline void Reset(const char* stream, size_t length); 44 inline size_t WriteUtf16(uint16_t* data, size_t length) const; 65 Utf8Decoder<kBufferSize>::Utf8Decoder(const char* stream, size_t length) 67 reinterpret_cast<const uint8_t*>(stream), length) {} 71 void Utf8Decoder<kBufferSize>::Reset(const char* stream, size_t length) { 73 reinterpret_cast<const uint8_t*>(stream), length); 79 size_t length) const { 80 DCHECK(length > 0) [all...] |
allocation.cc | 36 int length = StrLength(str); local 37 char* result = NewArray<char>(length + 1); 38 MemCopy(result, str, length); 39 result[length] = '\0'; 45 int length = StrLength(str); local 46 if (n < length) length = n; 47 char* result = NewArray<char>(length + 1); 48 MemCopy(result, str, length); 49 result[length] = '\0' [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
PKCS12ParametersGenerator.java | 53 * as a BigInteger of length (b.length * 8) bits. The result is 54 * modulo 2^b.length in case of overflow. 61 int x = (b[b.length - 1] & 0xff) + (a[aOff + b.length - 1] & 0xff) + 1; 63 a[aOff + b.length - 1] = (byte)x; 66 for (int i = b.length - 2; i >= 0; i--) 84 for (int i = 0; i != D.length; i++) 91 if ((salt != null) && (salt.length != 0)) 93 S = new byte[v * ((salt.length + v - 1) / v)] [all...] |
/external/webrtc/webrtc/common_audio/signal_processing/ |
min_max_operations_mips.c | 24 int16_t WebRtcSpl_MaxAbsValueW16_mips(const int16_t* vector, size_t length) { 29 assert(length > 0); 33 loop_size = length >> 4; 93 loop_size = length & 0xf; 111 loop_size = length >> 4; 199 loop_size = length & 0xf; 226 int32_t WebRtcSpl_MaxAbsValueW32_mips(const int32_t* vector, size_t length) { 233 assert(length > 0); 242 "addiu %[length], %[length], -1 \n\t [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/polynomials/ |
PolynomialFunctionNewtonForm.java | 32 * Note that the length of a[] is one more than the length of c[]</p> 77 this.a = new double[a.length]; 78 this.c = new double[c.length]; 79 System.arraycopy(a, 0, this.a, 0, a.length); 80 System.arraycopy(c, 0, this.c, 0, c.length); 102 return c.length; 113 double[] out = new double[a.length]; 114 System.arraycopy(a, 0, out, 0, a.length); 126 double[] out = new double[c.length]; [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/ |
AbstractUnivariateStatistic.java | 76 * @param length the number of elements to include 79 public void setData(final double[] values, final int begin, final int length) { 80 storedData = new double[length]; 81 System.arraycopy(values, begin, storedData, 0, length); 100 return evaluate(values, 0, values.length); 106 public abstract double evaluate(final double[] values, final int begin, final int length); 115 * to verify that the input parameters designate a subarray of positive length. 119 * positive length</li> 123 * <code>length</code> is 0. 128 * @param length the number of elements to includ [all...] |
/external/icu/icu4c/source/tools/toolutil/ |
denseranges.cpp | 30 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {} 33 int32_t i=length; 40 // length largest. 41 int32_t j= length<maxLength ? length++ : maxLength-1; 53 if(newLength<length) { 54 length=newLength; 58 int32_t count() const { return length; } 63 if(length==0) { 68 for(int32_t i=0; i<length; ++i) 81 int32_t length; member in class:__anon21813::LargestGaps [all...] |
/dalvik/dx/src/com/android/dex/ |
ClassData.java | 50 Field[] result = new Field[staticFields.length + instanceFields.length]; 51 System.arraycopy(staticFields, 0, result, 0, staticFields.length); 52 System.arraycopy(instanceFields, 0, result, staticFields.length, instanceFields.length); 57 Method[] result = new Method[directMethods.length + virtualMethods.length]; 58 System.arraycopy(directMethods, 0, result, 0, directMethods.length); 59 System.arraycopy(virtualMethods, 0, result, directMethods.length, virtualMethods.length); [all...] |
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
TypedRange.java | 18 * A range, annotated with metadata, that is represented as an offset and a length. Comparison is 29 * The length of the range. 31 private final long length; field in class:TypedRange 41 * @param length the length of the range 44 public TypedRange(long offset, long length, T metadata) { 46 this.length = length; 52 return "offset " + offset + ", length " + length + ", metadata " + metadata [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Arrays.java | 30 if (a.length != b.length) 35 for (int i = 0; i != a.length; i++) 60 if (a.length != b.length) 65 for (int i = 0; i != a.length; i++) 90 if (a.length != b.length) 95 for (int i = 0; i != a.length; i++) 120 if (a.length != b.length 912 int length = a.length; local 926 int length = a.length; local 940 int length = a.length; local 954 int length = a.length; local 1085 int length = a.length; local 1099 int length = a.length; local 1113 int length = a.length; local [all...] |
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
poloutil.cc | 23 size_t length) { 25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); 38 int length = BN_num_bytes(bn); local 39 bytes = new uint8_t[length]; 42 return length; 58 int length = BN_num_bytes(bn); local 59 BN_bn2bin(bn, &bytes[4 - length]); 72 uint8_t* PoloUtil::GenerateRandomBytes(size_t length) { 75 uint8_t* buffer = new uint8_t[length]; 76 if (RAND_bytes(buffer, length)) { [all...] |
/external/strace/tests/ |
madvise.c | 39 const kernel_ulong_t length, 42 long rc = syscall(__NR_madvise, addr, length, advice); 50 const unsigned long length = get_page_size(); local 51 void *const addr = tail_alloc(length); 54 rc = madvise(addr, length, MADV_NORMAL); 56 addr, length, sprintrc(rc)); 60 rc = k_madvise((uintptr_t) addr, length, advice); 62 addr, length, sprintrc(rc)); 71 rc = k_madvise(f8ill_ptr_to_kulong(addr), length, MADV_NORMAL); 74 length, sprintrc(rc)) [all...] |
/external/strace/tests-m32/ |
madvise.c | 39 const kernel_ulong_t length, 42 long rc = syscall(__NR_madvise, addr, length, advice); 50 const unsigned long length = get_page_size(); local 51 void *const addr = tail_alloc(length); 54 rc = madvise(addr, length, MADV_NORMAL); 56 addr, length, sprintrc(rc)); 60 rc = k_madvise((uintptr_t) addr, length, advice); 62 addr, length, sprintrc(rc)); 71 rc = k_madvise(f8ill_ptr_to_kulong(addr), length, MADV_NORMAL); 74 length, sprintrc(rc)) [all...] |
/external/strace/tests-mx32/ |
madvise.c | 39 const kernel_ulong_t length, 42 long rc = syscall(__NR_madvise, addr, length, advice); 50 const unsigned long length = get_page_size(); local 51 void *const addr = tail_alloc(length); 54 rc = madvise(addr, length, MADV_NORMAL); 56 addr, length, sprintrc(rc)); 60 rc = k_madvise((uintptr_t) addr, length, advice); 62 addr, length, sprintrc(rc)); 71 rc = k_madvise(f8ill_ptr_to_kulong(addr), length, MADV_NORMAL); 74 length, sprintrc(rc)) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
CharsetBenchmark.java | 23 private int length; field in class:CharsetBenchmark 42 byte[] bytes = makeBytes(makeString(length)); 49 byte[] bytes = makeBytes(makeString(length)); 51 new String(bytes, 0, bytes.length); 56 byte[] bytes = makeBytes(makeString(length)); 58 new String(bytes, 0, bytes.length, name); 63 String string = makeString(length); 69 private static String makeString(int length) { 70 StringBuilder result = new StringBuilder(length); 71 for (int i = 0; i < length; ++i) [all...] |
/libcore/ojluni/src/main/java/java/io/ |
StringReader.java | 39 private int length; field in class:StringReader 50 this.length = s.length(); 70 if (next >= length) 91 if ((off < 0) || (off > cbuf.length) || (len < 0) || 92 ((off + len) > cbuf.length) || ((off + len) < 0)) { 97 if (next >= length) 99 int n = Math.min(length - next, len); 125 if (next >= length) 128 long n = Math.min(length - next, ns) [all...] |