/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
H A D | BaseDexBuffer.java | 45 public BaseDexBuffer(@Nonnull byte[] buf, int offset) { argument 47 this.baseOffset = offset; 50 public int readSmallUint(int offset) { argument 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); 63 readOptionalUint(int offset) argument 76 readUshort(int offset) argument 83 readUbyte(int offset) argument 87 readLong(int offset) argument 100 readLongAsSmallUint(int offset) argument 117 readInt(int offset) argument 126 readShort(int offset) argument 133 readByte(int offset) argument 138 readerAt(int offset) argument [all...] |
/external/conscrypt/src/main/java/org/conscrypt/util/ |
H A D | 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) { argument 33 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) { 35 + offset + "; regionLength=" + count);
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | AlignmentUtils.java | 32 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/android_icu4j/src/main/java/android/icu/text/ |
H A D | 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[ 28 matches(Replaceable text, int[] offset, int limit, boolean incremental) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | 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[ 34 matches(Replaceable text, int[] offset, int limit, boolean incremental) argument [all...] |
/external/llvm/unittests/Support/ |
H A D | 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 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 D | 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/ |
H A D | LocaleIDs.java | 50 int offset = findIndex(_countries, country); 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); 73 if(offset>=0){ 74 return _languages3[offset]; 76 offset [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | LocaleIDs.java | 51 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 D | Instruction.java | 890 * 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 D | LookUpSwitchInstruction.java | 83 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 D | TableSwitchInstruction.java | 87 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/elfutils/libelf/ |
H A D | gelf_offscn.c | 41 gelf_offscn (Elf *elf, GElf_Off offset) argument 45 if ((Elf32_Off) offset != offset) 51 return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset); 54 return INTUSE(elf64_offscn) (elf, offset);
|
H A D | gelf_getnote.c | 1 /* Get note information at the supplied offset. 40 gelf_getnote (Elf_Data *data, size_t offset, GElf_Nhdr *result, argument 60 offset is OK. */ 61 if (unlikely (offset > data->d_size 62 || data->d_size - offset < sizeof (GElf_Nhdr))) 65 offset = 0; 69 const GElf_Nhdr *n = data->d_buf + offset; 70 offset += sizeof *n; 76 if (unlikely (offset > data->d_size 77 || data->d_size - offset < names [all...] |
/external/parameter-framework/upstream/parameter/ |
H A D | ParameterBlackboard.cpp | 47 void CParameterBlackboard::writeInteger(const void *pvSrcData, size_t size, size_t offset) argument 49 assertValidAccess(offset, size); 53 auto dest_first = atOffset(offset); 58 void CParameterBlackboard::readInteger(void *pvDstData, size_t size, size_t offset) const 60 assertValidAccess(offset, size); 62 auto first = atOffset(offset); 69 void CParameterBlackboard::writeString(const std::string &input, size_t offset) argument 71 assertValidAccess(offset, input.size() + 1); 73 auto dest_last = std::copy(begin(input), end(input), atOffset(offset)); 77 void CParameterBlackboard::readString(std::string &output, size_t offset) cons 88 writeBuffer(const void *pvSrcData, size_t size, size_t offset) argument 98 writeBytes(const std::vector<uint8_t> &bytes, size_t offset) argument 113 getLocation(size_t offset) argument 120 restoreFrom(const CParameterBlackboard *pFromBlackboard, size_t offset) argument 134 assertValidAccess(size_t offset, size_t size) const argument [all...] |
/external/compiler-rt/test/asan/TestCases/ |
H A D | debug_mapping.cc | 1 // 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: 0x%lx\n", offset); 21 // CHECK: offset: [[OFFSET]]
|
/external/elfutils/libdwfl/ |
H A D | 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 32 dwfl_getmodules(Dwfl *dwfl, int (*callback) (Dwfl_Module *, void **, const char *, Dwarf_Addr, void *), void *arg, ptrdiff_t offset) argument [all...] |
/external/elfutils/tests/ |
H A D | 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 [all...] |
/external/deqp/framework/delibs/decpp/ |
H A D | 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];
|
/external/icu/icu4c/source/common/ |
H A D | 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; 40 matches(const Replaceable& text, int32_t& offset, int32_t limit, UBool incremental) argument [all...] |
/external/sfntly/cpp/src/sfntly/data/ |
H A D | font_data.cc | 29 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/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/ |
H A D | LocaleIDs.java | 54 int offset = findIndex(_countries, country); 55 if(offset>=0){ 56 return _countries3[offset]; 58 offset = findIndex(_obsoleteCountries, country); 59 if(offset>=0){ 60 return _obsoleteCountries3[offset]; 78 int offset = findIndex(_languages, language); 79 if(offset>=0){ 80 return _languages3[offset]; 82 offset [all...] |
/external/autotest/client/site_tests/security_SMMLocked/src/ |
H A D | smm.c | 23 int check_smram(struct pci_dev *northbridge, int offset) argument 28 smram_value = pci_read_byte(northbridge, offset); 50 int offset = 0; local 56 offset = 0x9d; 60 offset = 0x88; 64 offset = 0x88; 68 offset = 0x88; 72 offset = 0x88; 76 offset = 0x88; 83 offset 95 int offset; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/common/ |
H A D | mmio.h | 41 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 D | WriteListener.java | 4 * The <class>WriteListener</class> is used to get the offset of 6 * later needs an offset. 9 public void beforeWrite(long offset); argument
|