HomeSort by relevance Sort by last modified time
    Searched refs:offset (Results 1 - 25 of 9963) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/conscrypt/src/main/java/org/conscrypt/util/
ArrayUtils.java 27 * Checks that the range described by {@code offset} and {@code count}
32 public static final void checkOffsetAndCount(int arrayLength, int offset, int count) {
33 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) {
35 + offset + "; regionLength=" + count);
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
BaseDexBuffer.java 45 public int readSmallUint(int offset) {
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) {
59 int result = (buf[offset] & 0xff) |
60 ((buf[offset+1] & 0xff) << 8)
    [all...]
  /frameworks/base/core/java/com/android/internal/alsa/
LineTokenizer.java 34 int offset = startIndex; local
35 for (; offset < len; offset++) {
36 if (mDelimiters.indexOf(line.charAt(offset)) == -1) {
42 return offset < len ? offset : kTokenNotFound;
47 int offset = startIndex; local
48 for (; offset < len; offset++) {
49 if (mDelimiters.indexOf(line.charAt(offset)) != -1)
    [all...]
  /external/smali/util/src/main/java/org/jf/util/
AlignmentUtils.java 32 public static int alignOffset(int offset, int alignment) {
35 return (offset + mask) & ~mask;
38 public static boolean isAligned(int offset, int alignment) {
39 return (offset % alignment) == 0;
  /frameworks/native/opengl/tools/glgen/stubs/gles11/
glBindVertexBuffer.java 1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride )
6 long offset,
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
UnicodeFilter.java 31 * 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[0]
    [all...]
  /external/llvm/unittests/Support/
DataExtractorTest.cpp 28 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 = 0
76 uint32_t offset = 0; local
93 uint32_t offset = 0; local
103 uint32_t offset = 0; local
    [all...]
  /external/elfutils/src/libelf/
gelf_offscn.c 41 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);
gelf_getnote.c 1 /* 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 > data->d_siz
    [all...]
  /external/valgrind/none/tests/mips64/
macro_load_store.h 3 #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/
LocaleIDs.java 51 int offset = findIndex(_countries, country); local
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); local
75 if(offset>=0){
76 return _languages3[offset];
78 offset = findIndex(_obsoleteLanguages, language)
89 int offset = findIndex(_languages3, lang); local
105 int offset = findIndex(_countries3, region); local
453 int offset = findIndex(_deprecatedCountries, oldID); local
461 int offset = findIndex(_obsoleteLanguages, oldID); local
    [all...]
  /external/proguard/src/proguard/classfile/instruction/
Instruction.java 890 * Writes the Instruction at the given offset in the given code attribute.
892 public final void write(CodeAttribute codeAttribute, int offset)
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)
906 code[offset++] = InstructionConstants.OP_WIDE;
910 code[offset++] = opcode;
913 writeInfo(code, offset);
930 protected abstract void readInfo(byte[] code, int offset);
936 protected abstract void writeInfo(byte[] code, int offset);
    [all...]
LookUpSwitchInstruction.java 83 protected void readInfo(byte[] code, int offset)
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 += 4
    [all...]
TableSwitchInstruction.java 87 protected void readInfo(byte[] code, int offset)
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); offset += 4
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
LittleEndian.java 34 * the given offset.
36 * @param src the byte offset where to read the value from
37 * @param offset the byte array to extract the value from
40 public static int getUInt8(byte[] src, int offset) {
41 return src[offset] & 0xFF;
45 * Gets a 16-bit unsigned integer from the given byte array at the given offset.
48 * @param offset
50 public static int getUInt16(byte[] src, int offset) {
51 final int v0 = src[offset + 0] & 0xFF;
52 final int v1 = src[offset + 1] & 0xFF
    [all...]
Sector.java 32 private final long offset; field in class:Sector
41 protected Sector(BlockDevice device, long offset, int size) {
42 this.offset = offset;
59 device.read(offset, buffer);
85 device.write(offset, buffer);
89 protected int get16(int offset) {
90 return buffer.getShort(offset) & 0xffff;
93 protected long get32(int offset) {
94 return buffer.getInt(offset) & 0xffffffff
    [all...]
  /external/compiler-rt/test/asan/TestCases/
debug_mapping.cc 1 // Checks that the debugging API returns correct shadow scale and offset.
11 // CHECK: SHADOW_OFFSET: [[OFFSET:[0-9]+]]
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/
dwfl_getmodules.c 36 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 - 1 > dwfl->lookup_elts)
    [all...]
  /external/elfutils/src/tests/
run-show-abbrev.sh 25 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 = 2
    [all...]
  /external/deqp/framework/delibs/decpp/
deArrayUtil.hpp 34 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];
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
BrokenInputStream.java 31 private int offset; field in class:BrokenInputStream
33 public BrokenInputStream(InputStream stream, int offset) {
37 this.offset = offset;
42 if (offset == 0) {
46 offset--;
  /libcore/luni/src/main/java/libcore/util/
CharsetUtils.java 29 public static native byte[] toAsciiBytes(String s, int offset, int length);
35 public static native byte[] toIsoLatin1Bytes(String s, int offset, int length);
41 public static native byte[] toUtf8Bytes(String s, int offset, int length);
47 public static byte[] toBigEndianUtf16Bytes(String s, int offset, int length) {
49 int end = offset + length;
51 for (int i = offset; i < end; ++i) {
67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars);
76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars);
  /libcore/luni/src/main/java/libcore/io/
Memory.java 45 public static int peekInt(byte[] src, int offset, ByteOrder order) {
47 return (((src[offset++] & 0xff) << 24) |
48 ((src[offset++] & 0xff) << 16) |
49 ((src[offset++] & 0xff) << 8) |
50 ((src[offset ] & 0xff) << 0));
52 return (((src[offset++] & 0xff) << 0) |
53 ((src[offset++] & 0xff) << 8) |
54 ((src[offset++] & 0xff) << 16) |
55 ((src[offset ] & 0xff) << 24));
59 public static long peekLong(byte[] src, int offset, ByteOrder order)
    [all...]
  /external/icu/icu4c/source/common/
unifilt.cpp 37 * 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;
    [all...]
  /external/sfntly/cpp/src/sfntly/data/
font_data.cc 29 bool FontData::Bound(int32_t offset, int32_t length) {
30 if (offset + length > Size() || offset < 0 || length < 0)
33 bound_offset_ += offset;
38 bool FontData::Bound(int32_t offset) {
39 if (offset > Size() || offset < 0)
42 bound_offset_ += offset;
54 FontData::FontData(FontData* data, int32_t offset, int32_t length) {
56 Bound(data->bound_offset_ + offset, length)
    [all...]

Completed in 583 milliseconds

1 2 3 4 5 6 7 8 91011>>