/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
BaseDexBuffer.java | 45 public BaseDexBuffer(@Nonnull byte[] buf, int offset) { 47 this.baseOffset = offset; 50 public int readSmallUint(int offset) { 52 offset += baseOffset; 53 int result = (buf[offset] & 0xff) | 54 ((buf[offset+1] & 0xff) << 8) | 55 ((buf[offset+2] & 0xff) << 16) | 56 ((buf[offset+3]) << 24); 58 throw new ExceptionWithContext("Encountered small uint that is out of range at offset 0x%x", offset); [all...] |
/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);
|
/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/android_icu4j/src/main/java/android/icu/text/ |
UnicodeFilter.java | 26 * filters. Matches a single 16-bit code unit at offset. 29 int[] offset, 33 if (offset[0] < limit && 34 contains(c = text.char32At(offset[0]))) { 35 offset[0] += UTF16.getCharCount(c); 38 if (offset[0] > limit && contains(text.char32At(offset[0]))) { 39 // Backup offset by 1, unless the preceding character is a 40 // surrogate pair -- then backup by 2 (keep offset pointing at 42 --offset[0] [all...] |
/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/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/android_icu4j/src/main/java/android/icu/impl/ |
LocaleIDs.java | 50 int offset = findIndex(_countries, country); local 51 if(offset>=0){ 52 return _countries3[offset]; 54 offset = findIndex(_obsoleteCountries, country); 55 if(offset>=0){ 56 return _obsoleteCountries3[offset]; 72 int offset = findIndex(_languages, language); local 73 if(offset>=0){ 74 return _languages3[offset]; 76 offset = findIndex(_obsoleteLanguages, language) 87 int offset = findIndex(_languages3, lang); local 103 int offset = findIndex(_countries3, region); local 451 int offset = findIndex(_deprecatedCountries, oldID); local 459 int offset = findIndex(_obsoleteLanguages, oldID); local [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...] |
/external/elfutils/libelf/ |
gelf_offscn.c | 41 gelf_offscn (Elf *elf, GElf_Off offset) 45 if ((Elf32_Off) offset != offset) 51 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset); 54 return INTUSE(elf64_offscn) (elf, offset);
|
/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:0x[0-9a-f]+]] 14 size_t scale, offset; local 15 __asan_get_shadow_mapping(&scale, &offset); 18 fprintf(stderr, "offset: 0x%lx\n", offset); 21 // CHECK: offset: [[OFFSET]]
|
/external/elfutils/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...] |
/frameworks/minikin/libs/minikin/ |
LayoutUtils.cpp | 41 * Return offset of previous word break. It is either < offset or == 0. 44 const uint16_t* chars, size_t offset, size_t len) { 45 if (offset == 0) return 0; 46 if (offset > len) offset = len; 47 if (isWordBreakBefore(chars[offset - 1])) { 48 return offset - 1; 50 for (size_t i = offset - 1; i > 0; i--) { 59 * Return offset of next word break. It is either > offset or == len [all...] |
/external/elfutils/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/ojluni/src/main/java/javax/crypto/spec/ |
DESedeKeySpec.java | 67 * <code>key</code>, beginning at <code>offset</code> inclusive, 71 * <code>key[offset]</code> and <code>key[offset+23]</code> inclusive. 74 * 24 bytes of the buffer beginning at <code>offset</code> inclusive 76 * @param offset the offset in <code>key</code>, where the DES-EDE key 81 * <code>offset</code> inclusive, is shorter than 24 bytes 83 public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException { 84 if (key.length - offset < 24) { 88 System.arraycopy(key, offset, this.key, 0, 24) [all...] |