Searched refs:offset (Results 1 - 25 of 4102) sorted by relevance

1234567891011>>

/external/conscrypt/src/main/java/org/conscrypt/util/
H A DArrayUtils.java27 * Checks that the range described by {@code offset} and {@code count}
32 public static final void checkOffsetAndCount(int arrayLength, int offset, int count) { argument
33 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) {
35 + offset + "; regionLength=" + count);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
H A DBaseDexBuffer.java45 public int readSmallUint(int offset) { argument
47 int result = (buf[offset] & 0xff) |
48 ((buf[offset+1] & 0xff) << 8) |
49 ((buf[offset+2] & 0xff) << 16) |
50 ((buf[offset+3]) << 24);
52 throw new ExceptionWithContext("Encountered small uint that is out of range at offset 0x%x", offset);
57 public int readOptionalUint(int offset) { argument
59 int result = (buf[offset] & 0xff) |
60 ((buf[offset
69 readUshort(int offset) argument
75 readUbyte(int offset) argument
79 readLong(int offset) argument
91 readInt(int offset) argument
99 readShort(int offset) argument
105 readByte(int offset) argument
110 readerAt(int offset) argument
[all...]
/external/smali/util/src/main/java/org/jf/util/
H A DAlignmentUtils.java32 public static int alignOffset(int offset, int alignment) { argument
35 return (offset + mask) & ~mask;
38 public static boolean isAligned(int offset, int alignment) { argument
39 return (offset % alignment) == 0;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DUnicodeFilter.java31 * filters. Matches a single 16-bit code unit at offset.
35 int[] offset,
39 if (offset[0] < limit &&
40 contains(c = text.char32At(offset[0]))) {
41 offset[0] += UTF16.getCharCount(c);
44 if (offset[0] > limit && contains(text.char32At(offset[0]))) {
45 // Backup offset by 1, unless the preceding character is a
46 // surrogate pair -- then backup by 2 (keep offset pointing at
48 --offset[
34 matches(Replaceable text, int[] offset, int limit, boolean incremental) argument
[all...]
/external/llvm/unittests/Support/
H A DDataExtractorTest.cpp28 uint32_t offset = 0; local
30 EXPECT_EQ(0x80U, DE.getU8(&offset));
31 EXPECT_EQ(1U, offset);
32 offset = 0;
33 EXPECT_EQ(0x8090U, DE.getU16(&offset));
34 EXPECT_EQ(2U, offset);
35 offset = 0;
36 EXPECT_EQ(0x8090FFFFU, DE.getU32(&offset));
37 EXPECT_EQ(4U, offset);
38 offset
76 uint32_t offset = 0; local
93 uint32_t offset = 0; local
103 uint32_t offset = 0; local
[all...]
/external/valgrind/none/tests/mips64/
H A Dmacro_load_store.h3 #define TEST1(instruction, offset, mem) \
14 : "r" (mem), "r" (offset) \
17 printf("%s :: offset: 0x%x, out: 0x%lx\n", \
18 instruction, offset, out); \
21 #define TEST2(instruction, offset) \
40 : "r" (reg_val2) , "r" (reg_val_zero), "r" (offset) \
43 printf("%s :: offset: 0x%x, out: 0x%lx, outHI: 0x%lx\n", \
44 instruction, offset, out, outHI); \
47 #define TEST3(instruction, offset, mem) \
58 : "r" (mem) , "r" (offset) \
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DLocaleIDs.java51 int offset = findIndex(_countries, country);
52 if(offset>=0){
53 return _countries3[offset];
55 offset = findIndex(_obsoleteCountries, country);
56 if(offset>=0){
57 return _obsoleteCountries3[offset];
74 int offset = findIndex(_languages, language);
75 if(offset>=0){
76 return _languages3[offset];
78 offset
[all...]
/external/proguard/src/proguard/classfile/instruction/
H A DInstruction.java890 * Writes the Instruction at the given offset in the given code attribute.
892 public final void write(CodeAttribute codeAttribute, int offset) argument
894 write(codeAttribute.code, offset);
899 * Writes the Instruction at the given offset in the given code array.
901 public void write(byte[] code, int offset) argument
906 code[offset++] = InstructionConstants.OP_WIDE;
910 code[offset++] = opcode;
913 writeInfo(code, offset);
930 protected abstract void readInfo(byte[] code, int offset); argument
936 protected abstract void writeInfo(byte[] code, int offset); argument
942 length(int offset) argument
948 accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor) argument
954 toString(int offset) argument
1010 readByte(byte[] code, int offset) argument
1015 readShort(byte[] code, int offset) argument
1021 readInt(byte[] code, int offset) argument
1029 readValue(byte[] code, int offset, int valueSize) argument
1041 readSignedByte(byte[] code, int offset) argument
1046 readSignedShort(byte[] code, int offset) argument
1052 readSignedValue(byte[] code, int offset, int valueSize) argument
1064 writeByte(byte[] code, int offset, int value) argument
1074 writeShort(byte[] code, int offset, int value) argument
1085 writeInt(byte[] code, int offset, int value) argument
1093 writeValue(byte[] code, int offset, int value, int valueSize) argument
1105 writeSignedByte(byte[] code, int offset, int value) argument
1115 writeSignedShort(byte[] code, int offset, int value) argument
1126 writeSignedValue(byte[] code, int offset, int value, int valueSize) argument
[all...]
H A DLookUpSwitchInstruction.java83 protected void readInfo(byte[] code, int offset) argument
86 offset += -offset & 3;
89 defaultOffset = readInt(code, offset); offset += 4;
90 int jumpOffsetCount = readInt(code, offset); offset += 4;
92 // Read the matches-offset pairs.
98 cases[index] = readInt(code, offset); offset
104 writeInfo(byte[] code, int offset) argument
125 length(int offset) argument
131 accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor) argument
[all...]
H A DTableSwitchInstruction.java87 protected void readInfo(byte[] code, int offset) argument
90 offset += -offset & 3;
93 defaultOffset = readInt(code, offset); offset += 4;
94 lowCase = readInt(code, offset); offset += 4;
95 highCase = readInt(code, offset); offset += 4;
102 jumpOffsets[index] = readInt(code, offset); offse
107 writeInfo(byte[] code, int offset) argument
129 length(int offset) argument
135 accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor) argument
[all...]
/external/compiler-rt/test/asan/TestCases/
H A Ddebug_mapping.cc1 // Checks that the debugging API returns correct shadow scale and offset.
14 size_t scale, offset; local
15 __asan_get_shadow_mapping(&scale, &offset);
18 fprintf(stderr, "offset: %lx\n", offset);
21 // CHECK: offset: [[OFFSET]]
/external/elfutils/src/libdwfl/
H A Ddwfl_getmodules.c36 ptrdiff_t offset)
42 But continuing from an offset is slow that way. So when
46 choose the style of place-holder when we return an offset,
51 if ((offset & 3) == 1)
53 offset >>= 2;
54 for (ptrdiff_t pos = 0; pos < offset; ++pos)
60 else if (((offset & 3) == 2) && likely (dwfl->lookup_module != NULL))
62 offset >>= 2;
64 if ((size_t) offset - 1 == dwfl->lookup_elts)
67 if (unlikely ((size_t) offset
32 dwfl_getmodules(Dwfl *dwfl, int (*callback) (Dwfl_Module *, void **, const char *, Dwarf_Addr, void *), void *arg, ptrdiff_t offset) argument
[all...]
/external/elfutils/src/tests/
H A Drun-show-abbrev.sh25 abbrev[0]: attr[0]: code = 16, form = 6, offset = 0
26 abbrev[0]: attr[1]: code = 18, form = 1, offset = 2
27 abbrev[0]: attr[2]: code = 17, form = 1, offset = 4
28 abbrev[0]: attr[3]: code = 3, form = 8, offset = 6
29 abbrev[0]: attr[4]: code = 27, form = 8, offset = 8
30 abbrev[0]: attr[5]: code = 37, form = 8, offset = 10
31 abbrev[0]: attr[6]: code = 19, form = 11, offset = 12
33 abbrev[19]: attr[0]: code = 1, form = 19, offset = 19
34 abbrev[19]: attr[1]: code = 63, form = 12, offset = 21
35 abbrev[19]: attr[2]: code = 3, form = 8, offset
[all...]
/external/deqp/framework/delibs/decpp/
H A DdeArrayUtil.hpp34 const Elem& getSizedArrayElement (const Elem (&array)[Size], typename de::meta::EnableIf<int, LastElementIndex==Size>::Type offset)
36 DE_ASSERT(inBounds(offset, 0, Size));
37 return array[offset];
42 const Elem& getArrayElement (const Elem (&array)[Size], int offset)
44 DE_ASSERT(inBounds(offset, 0, Size));
45 return array[offset];
/external/elfutils/src/libelf/
H A Dgelf_offscn.c41 gelf_offscn (elf, offset)
43 GElf_Off offset;
47 if ((Elf32_Off) offset != offset)
53 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset);
56 return INTUSE(elf64_offscn) (elf, offset);
H A Dgelf_getnote.c1 /* Get note information at the supplied offset.
40 gelf_getnote (data, offset, result, name_offset, desc_offset)
42 size_t offset;
64 offset is OK. */
65 if (unlikely (offset > data->d_size
66 || data->d_size - offset < sizeof (GElf_Nhdr)))
69 offset = 0;
73 const GElf_Nhdr *n = data->d_buf + offset;
74 offset += sizeof *n;
80 if (unlikely (offset > dat
[all...]
/external/icu/icu4c/source/common/
H A Dunifilt.cpp37 * filters. Matches a single code point at offset (either one or
41 int32_t& offset,
45 if (offset < limit &&
46 contains(c = text.char32At(offset))) {
47 offset += U16_LENGTH(c);
50 if (offset > limit &&
51 contains(c = text.char32At(offset))) {
52 // Backup offset by 1, unless the preceding character is a
53 // surrogate pair -- then backup by 2 (keep offset pointing at
55 --offset;
40 matches(const Replaceable& text, int32_t& offset, int32_t limit, UBool incremental) argument
[all...]
/external/sfntly/cpp/src/sfntly/data/
H A Dfont_data.cc29 bool FontData::Bound(int32_t offset, int32_t length) { argument
30 if (offset + length > Size() || offset < 0 || length < 0)
33 bound_offset_ += offset;
38 bool FontData::Bound(int32_t offset) { argument
39 if (offset > Size() || offset < 0)
42 bound_offset_ += offset;
54 FontData::FontData(FontData* data, int32_t offset, int32_t length) { argument
56 Bound(data->bound_offset_ + offset, lengt
59 FontData(FontData* data, int32_t offset) argument
74 BoundOffset(int32_t offset) argument
78 BoundLength(int32_t offset, int32_t length) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/common/
H A Dmmio.h41 read_MMIO_LE32( volatile void * base, unsigned long offset )
47 : "b" (base), "r" (offset) );
54 read_MMIO_LE32( volatile void * base, unsigned long offset )
56 volatile uint32_t * p = (volatile uint32_t *) (((volatile char *) base) + offset);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
H A DWriteListener.java4 * The <class>WriteListener</class> is used to get the offset of
6 * later needs an offset.
9 public void beforeWrite(long offset); argument
/external/mesa3d/src/mapi/glapi/gen/
H A Dmesadef.py190 for (name, alias, offset) in records:
192 return offset
199 def EmitEntry(name, returnType, argTypeList, argNameList, alias, offset):
204 if offset < 0:
205 offset = FindOffset(dispatchName)
206 if offset >= 0 and string.find(name, "unused") == -1:
209 records.append((name, dispatchName, offset))
/external/skia/tests/
H A DSkBase64Test.cpp18 for (int offset = 0; offset < 6; ++offset) {
19 size_t length = 256 - offset;
20 size_t encodeLength = SkBase64::Encode(all + offset, length, NULL);
22 SkBase64::Encode(all + offset, length, src.get());
26 REPORTER_ASSERT(reporter, (strcmp((const char*) (all + offset), tryMe.getData()) == 0));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DDESedeParameters.java26 * @param offset offset into the byte array the key starts at
31 int offset,
34 for (int i = offset; i < length; i += DES_KEY_LENGTH)
49 * @param offset offset into the byte array the key starts at
53 int offset)
55 return isWeakKey(key, offset, key.length - offset);
29 isWeakKey( byte[] key, int offset, int length) argument
51 isWeakKey( byte[] key, int offset) argument
/external/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugMacinfo.cpp29 DWARFDebugMacinfo::Dump(Stream *s, const DataExtractor& macinfo_data, lldb::offset_t offset) argument
37 if (offset == LLDB_INVALID_OFFSET)
39 offset = 0;
40 while (maninfo_entry.Extract(macinfo_data, &offset))
45 if (maninfo_entry.Extract(macinfo_data, &offset))
/external/tagsoup/src/org/ccil/cowan/tagsoup/
H A DScanHandler.java29 public void adup(char[] buff, int offset, int length) throws SAXException; argument
35 public void aname(char[] buff, int offset, int length) throws SAXException; argument
41 public void aval(char[] buff, int offset, int length) throws SAXException; argument
46 public void cdsect(char[] buff, int offset, int length) throws SAXException; argument
52 public void decl(char[] buff, int offset, int length) throws SAXException; argument
58 public void entity(char[] buff, int offset, int length) throws SAXException; argument
64 public void eof(char[] buff, int offset, int length) throws SAXException; argument
70 public void etag(char[] buff, int offset, int length) throws SAXException; argument
76 public void gi(char[] buff, int offset, int length) throws SAXException; argument
82 public void pcdata(char[] buff, int offset, in argument
88 pi(char[] buff, int offset, int length) argument
94 pitarget(char[] buff, int offset, int length) argument
100 stagc(char[] buff, int offset, int length) argument
106 stage(char[] buff, int offset, int length) argument
112 cmnt(char[] buff, int offset, int length) argument
[all...]

Completed in 908 milliseconds

1234567891011>>