/device/google/contexthub/util/common/ |
JSONObject.cpp | 52 size_t offset = 0; local 53 while (offset < size && isspace(data[offset])) { 54 ++offset; 57 if (offset == size) { 61 if (data[offset] == '[') { 63 ++offset; 66 while (offset < size && isspace(data[offset])) { 67 ++offset; [all...] |
/external/elfutils/tests/ |
run-readelf-aranges.sh | 116 DWARF section [27] '.debug_aranges' at offset 0x1044: 118 Table at offset 0: 122 CU offset: 0 128 Table at offset 32: 132 CU offset: 136 139 Table at offset 72: 143 CU offset: 1d1 153 DWARF section [27] '.debug_aranges' at offset 0x1044 contains 5 entries: 154 [0] start: 0x080482f0, length: 52, CU DIE offset: 11 155 [1] start: 0x08048330, length: 11, CU DIE offset: 32 [all...] |
/external/ltp/testcases/kernel/fs/doio/ |
databin.c | 44 void databingen(int mode, char *buffer, int bsize, int offset) 60 buffer[ind] = ((offset + ind) % 8 & 0177); 80 * >= 0 : error at byte offset into the file, offset+buffer[0-(bsize-1)] 83 int databinchk(int mode, char *buffer, int bsize, int offset, char **errmsg) 107 expbits = ((offset + cnt) % 8 & 0177); 111 "data mismatch at offset %d, exp:%#lo, act:%#o", 112 offset + cnt, expbits, buffer[cnt]); 113 return offset + cnt; 136 "data mismatch at offset %d, exp:%#lo, act:%#lo" 151 int offset; local [all...] |
/external/xmlrpcpp/test/ |
TestValues.cpp | 19 int offset = 0;
local 20 XmlRpcValue booleanFalseXml("<value><boolean>0</boolean></value>", &offset);
21 offset = 0;
22 XmlRpcValue booleanTrueXml("<value><boolean>1</boolean></value>", &offset);
41 int offset = 0;
local 42 XmlRpcValue int0Xml("<value><int>0</int></value>", &offset);
43 offset = 0;
44 XmlRpcValue int9Xml("<value><i4>9</i4></value>", &offset);
55 int offset = 0;
local 56 XmlRpcValue dXml("<value><double>56.3</double></value>", &offset);
66 int offset = 0; local 93 int offset = 0; local 122 int offset = 0; local 160 int offset = 0; local [all...] |
TestValuesWin32.cpp | 21 int offset = 0;
local 22 XmlRpcValue booleanFalseXml("<value><boolean>0</boolean></value>", &offset);
23 offset = 0;
24 XmlRpcValue booleanTrueXml("<value><boolean>1</boolean></value>", &offset);
44 int offset = 0;
local 45 XmlRpcValue int0Xml("<value><int>0</int></value>", &offset);
46 offset = 0;
47 XmlRpcValue int9Xml("<value><i4>9</i4></value>", &offset);
58 int offset = 0;
local 59 XmlRpcValue dXml("<value><double>56.3</double></value>", &offset);
69 int offset = 0; local 96 int offset = 0; local 125 int offset = 0; local 163 int offset = 0; local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactLookupKey.java | 121 int offset = 0; local 129 while (offset < length) { 134 while (offset < length) { 135 c = string.charAt(offset++); 165 while (offset < length) { 166 c = string.charAt(offset++); 169 if (offset == length) { 173 c = string.charAt(offset); 177 offset++; 187 int start = offset; [all...] |
/external/dtc/tests/ |
stringlist.c | 34 int offset, err; local 36 offset = fdt_path_offset(fdt, "/"); 37 if (offset < 0) 40 err = fdt_stringlist_count(fdt, offset, "#address-cells"); 44 err = fdt_stringlist_search(fdt, offset, "#address-cells", "foo"); 58 err = fdt_stringlist_search(fdt, offset, "#address-cells", ""); 73 int offset, err; local 75 offset = fdt_path_offset(fdt, path); 76 if (offset < 0) 79 err = fdt_stringlist_count(fdt, offset, property) 93 int offset, err; local 111 int offset, len; local [all...] |
set_name.c | 32 int offset; local 41 offset = fdt_path_offset(fdt, path); 42 if (offset < 0) 45 getname = fdt_get_name(fdt, offset, &len); 47 offset, getname, len); 49 FAIL("fdt_get_name(%d): %s", offset, fdt_strerror(len)); 59 err = fdt_set_name(fdt, offset, newname); 61 FAIL("fdt_set_name(%d, \"%s\"): %s", offset, newname, 64 getname = fdt_get_name(fdt, offset, &len); 66 FAIL("fdt_get_name(%d): %s", offset, fdt_strerror(len)) [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_getbits.cpp | 114 uint32 offset; local 127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); 131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); 132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); 162 uint32 offset; local 168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 171 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)) 198 uint32 offset; local 236 uint32 offset; local [all...] |
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
IndexRangeCache.cpp | 23 size_t offset, 31 mIndexRangeCache[IndexRangeKey(type, offset, count, primitiveRestartEnabled)] = r; 35 size_t offset, 42 IndexRangeKey(type, offset, count, primitiveRestartEnabled)); 56 void IndexRangeCache::invalidateRange(size_t offset, size_t size) { 57 size_t invalidateStart = offset; 58 size_t invalidateEnd = offset + size; 63 offset, 68 size_t rangeStart = it->first.offset; 70 it->first.offset [all...] |
IndexRangeCache.h | 48 size_t offset, 54 size_t offset, 59 void invalidateRange(size_t offset, size_t size); 65 offset(0), 73 offset(_offset), 78 size_t start = offset; 79 size_t start_other = rhs.offset; 80 size_t end = offset + count * glSizeof(type); 81 size_t end_other = rhs.offset + rhs.count * glSizeof(rhs.type); 95 size_t offset; member in struct:IndexRangeCache::IndexRangeKey [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 19 * performed based on the natural ordering of the offset field. 24 * The offset at which the range starts. 26 private final long offset; field in class:TypedRange 40 * @param offset the offset at which the range starts 44 public TypedRange(long offset, long length, T metadata) { 45 this.offset = offset; 52 return "offset " + offset + ", length " + length + ", metadata " + metadata [all...] |
/external/brotli/java/org/brotli/dec/ |
DictionaryData.java | 28 int offset = 0; local [all...] |
/external/ltp/include/ |
tst_safe_prw.h | 23 off_t offset) 27 rval = pread(fildes, buf, nbyte, offset); 32 fildes, buf, nbyte, (long long)offset); 37 #define SAFE_PREAD(len_strict, fildes, buf, nbyte, offset) \ 39 (buf), (nbyte), (offset)) 43 off_t offset) 47 rval = pwrite(fildes, buf, nbyte, offset); 51 fildes, buf, nbyte, (long long)offset); 56 #define SAFE_PWRITE(len_strict, fildes, buf, nbyte, offset) \ 58 (buf), (nbyte), (offset)) [all...] |
/frameworks/base/libs/common_time/ |
common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 44 *((type*)(data + offset)) = converter(field_name); \ 45 offset += sizeof(field_name); \ 53 if ((offset + sizeof(field_name)) > length) \ 55 (field_name) = converter(*((type*)(data + offset))); \ 56 offset += sizeof(field_name); \ 80 ssize_t offset = 0; local 87 return offset; 92 ssize_t offset = 0; local 100 return offset; 186 ssize_t offset = serializeHeader(data, length); local 196 ssize_t offset = deserializeHeader(data, length); local 208 ssize_t offset = serializeHeader(data, length); local 218 ssize_t offset = deserializeHeader(data, length); local 230 ssize_t offset = serializeHeader(data, length); local 239 ssize_t offset = deserializeHeader(data, length); local 248 ssize_t offset = serializeHeader(data, length); local 260 ssize_t offset = deserializeHeader(data, length); local 272 ssize_t offset = serializeHeader(data, length); local 282 ssize_t offset = deserializeHeader(data, length); local [all...] |
/external/sfntly/cpp/src/sfntly/data/ |
font_data.cc | 31 void FontData::Bound(int32_t offset, int32_t length) { 33 CHECK(offset >= 0); 37 CHECK(bound_offset_ <= std::numeric_limits<int32_t>::max() - offset); 38 const int32_t new_offset = bound_offset_ + offset; 64 FontData::FontData(FontData* data, int32_t offset, int32_t length) { 66 Bound(data->bound_offset_ + offset, length); 69 FontData::FontData(FontData* data, int32_t offset) { 71 Bound(data->bound_offset_ + offset, 73 ? GROWABLE_SIZE : data->bound_length_ - offset); 84 int32_t FontData::BoundOffset(int32_t offset) { [all...] |
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Charsets.java | 52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { 54 cb.put(chars, offset, length); 62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { 64 cb.put(chars, offset, length); 72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { 74 cb.put(chars, offset, length); 82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { 84 int end = offset + length; 86 for (int i = offset; i < end; ++i) { 102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/arm/ |
group-reloc-ldr-encoding-bad.s | 6 .macro ldrtest load store sym offset 8 \load r0, [r0, #:pc_g0:(\sym \offset)] 9 \load r0, [r0, #:pc_g1:(\sym \offset)] 10 \load r0, [r0, #:pc_g2:(\sym \offset)] 11 \load r0, [r0, #:sb_g0:(\sym \offset)] 12 \load r0, [r0, #:sb_g1:(\sym \offset)] 13 \load r0, [r0, #:sb_g2:(\sym \offset)] 15 \store r0, [r0, #:pc_g0:(\sym \offset)] 16 \store r0, [r0, #:pc_g1:(\sym \offset)] 17 \store r0, [r0, #:pc_g2:(\sym \offset)] [all...] |
group-reloc-ldr.s | 5 .macro ldrtest load store sym offset 7 \load r0, [r0, #:pc_g0:(\sym \offset)] 8 \load r0, [r0, #:pc_g1:(\sym \offset)] 9 \load r0, [r0, #:pc_g2:(\sym \offset)] 10 \load r0, [r0, #:sb_g0:(\sym \offset)] 11 \load r0, [r0, #:sb_g1:(\sym \offset)] 12 \load r0, [r0, #:sb_g2:(\sym \offset)] 14 \store r0, [r0, #:pc_g0:(\sym \offset)] 15 \store r0, [r0, #:pc_g1:(\sym \offset)] 16 \store r0, [r0, #:pc_g2:(\sym \offset)] [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
BOCSU.java | 256 * @param offset to the byte buffer to start appending 257 * @return end offset where the appending stops 259 private static final int writeDiff(int diff, byte buffer[], int offset) 263 buffer[offset ++] = (byte)(SLOPE_MIDDLE_ + diff); 266 buffer[offset ++] = (byte)(SLOPE_START_POS_2_ 268 buffer[offset ++] = (byte)(SLOPE_MIN_ + 272 buffer[offset + 2] = (byte)(SLOPE_MIN_ 275 buffer[offset + 1] = (byte)(SLOPE_MIN_ 277 buffer[offset] = (byte)(SLOPE_START_POS_3_ 279 offset += 3 [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
BOCSU.java | 255 * @param offset to the byte buffer to start appending 256 * @return end offset where the appending stops 258 private static final int writeDiff(int diff, byte buffer[], int offset) 262 buffer[offset ++] = (byte)(SLOPE_MIDDLE_ + diff); 265 buffer[offset ++] = (byte)(SLOPE_START_POS_2_ 267 buffer[offset ++] = (byte)(SLOPE_MIN_ + 271 buffer[offset + 2] = (byte)(SLOPE_MIN_ 274 buffer[offset + 1] = (byte)(SLOPE_MIN_ 276 buffer[offset] = (byte)(SLOPE_START_POS_3_ 278 offset += 3 [all...] |
/external/proguard/src/proguard/optimize/peephole/ |
ReachableCodeMarker.java | 51 * Returns whether the instruction at the given offset is reachable in 54 public boolean isReachable(int offset) 56 return isReachable[offset]; 67 for (int offset = startOffset; offset < endOffset; offset++) 69 if (isReachable[offset]) 115 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 131 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 136 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction [all...] |
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
ChainedDataSource.java | 43 public void feed(long offset, long size, DataSink sink) throws IOException { 44 if (offset + size > mTotalSize) { 49 // Offset is beyond the current source. Skip. 50 if (offset >= src.size()) { 51 offset -= src.size(); 56 long remaining = src.size() - offset; 58 src.feed(offset, size, sink); 63 src.feed(offset, remaining, sink); 65 offset = 0; 70 public ByteBuffer getByteBuffer(long offset, int size) throws IOException [all...] |
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
SuballocatedIntVector.java | 162 int offset=m_firstFree&m_MASK; local 174 block[offset]=value; 179 m_buildCacheStartIndex = m_firstFree-offset; 200 int offset=m_firstFree&m_MASK; local 214 int copied=(m_blocksize-offset < numberOfElements) 215 ? m_blocksize-offset : numberOfElements; 218 block[offset++]=value; 220 ++index;offset=0; 272 int offset=at&m_MASK; local 273 block[offset]=value 281 int offset=at&m_MASK; local 352 int offset=at&m_MASK; local 394 int offset=at&m_MASK; local [all...] |
/libcore/ojluni/src/main/java/java/net/ |
DatagramPacket.java | 68 int offset; field in class:DatagramPacket 76 * length {@code length}, specifying an offset into the buffer. 82 * @param offset the offset for the buffer 87 public DatagramPacket(byte buf[], int offset, int length) { 88 setData(buf, offset, length); 109 * {@code length} with offset {@code ioffset}to the 115 * @param offset the packet data offset. 123 public DatagramPacket(byte buf[], int offset, int length [all...] |