/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/common/src/main/java/org/conscrypt/ |
H A D | ArrayUtils.java | 26 * Checks that the range described by {@code offset} and {@code count} 29 static void checkOffsetAndCount(int arrayLength, int offset, int count) { argument 30 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) { 32 + 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 | 29 * filters. Matches a single 16-bit code unit at offset. 33 int[] offset, 37 if (offset[0] < limit && 38 contains(c = text.char32At(offset[0]))) { 39 offset[0] += UTF16.getCharCount(c); 42 if (offset[0] > limit && contains(text.char32At(offset[0]))) { 43 // Backup offset by 1, unless the preceding character is a 44 // surrogate pair -- then backup by 2 (keep offset pointing at 46 --offset[ 32 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 | 34 * filters. Matches a single 16-bit code unit at offset. 39 int[] offset, 43 if (offset[0] < limit && 44 contains(c = text.char32At(offset[0]))) { 45 offset[0] += UTF16.getCharCount(c); 48 if (offset[0] > limit && contains(text.char32At(offset[0]))) { 49 // Backup offset by 1, unless the preceding character is a 50 // surrogate pair -- then backup by 2 (keep offset pointing at 52 --offset[ 38 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/flatbuffers/net/FlatBuffers/ |
H A D | ByteBuffer.cs | 99 protected void WriteLittleEndian(int offset, int count, ulong data) argument 105 _buffer[offset + i] = (byte)(data >> i * 8); 112 _buffer[offset + count - 1 - i] = (byte)(data >> i * 8); 117 protected ulong ReadLittleEndian(int offset, int count) argument 119 AssertOffsetAndLength(offset, count); 125 r |= (ulong)_buffer[offset + i] << i * 8; 132 r |= (ulong)_buffer[offset + count - 1 - i] << i * 8; 140 private void AssertOffsetAndLength(int offset, int length) argument 143 if (offset < 0 || 144 offset > _buffe 149 PutSbyte(int offset, sbyte value) argument 155 PutByte(int offset, byte value) argument 161 PutByte(int offset, byte value, int count) argument 169 Put(int offset, byte value) argument 176 PutShort(int offset, short value) argument 181 PutUshort(int offset, ushort value) argument 192 PutInt(int offset, int value) argument 197 PutUint(int offset, uint value) argument 208 PutLong(int offset, long value) argument 213 PutUlong(int offset, ulong value) argument 224 PutFloat(int offset, float value) argument 240 PutDouble(int offset, double value) argument 258 PutShort(int offset, short value) argument 264 PutUshort(int offset, ushort value) argument 270 PutInt(int offset, int value) argument 276 PutUint(int offset, uint value) argument 282 PutLong(int offset, long value) argument 288 PutUlong(int offset, ulong value) argument 294 PutFloat(int offset, float value) argument 302 PutDouble(int offset, double value) argument 326 GetShort(int offset) argument 331 GetUshort(int offset) argument 342 GetInt(int offset) argument 347 GetUint(int offset) argument 358 GetLong(int offset) argument 363 GetUlong(int offset) argument 374 GetFloat(int offset) argument 391 GetDouble(int offset) argument [all...] |
/external/syslinux/gpxe/src/drivers/bus/ |
H A D | pcibackup.c | 32 * Check PCI configuration space offset against exclusion list 35 * @v offset Offset within PCI configuration space 39 pci_backup_excluded ( struct pci_device *pci, unsigned int offset, argument 45 if ( offset == *exclude ) { 46 DBGC ( pci, "PCI %p skipping configuration offset " 47 "%02x\n", pci, offset ); 63 unsigned int offset; local 66 for ( offset = 0, dword = backup->dwords ; offset < 0x100 ; 67 offset 82 unsigned int offset; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | LocaleIDs.java | 52 int offset = findIndex(_countries, country); 53 if(offset>=0){ 54 return _countries3[offset]; 56 offset = findIndex(_obsoleteCountries, country); 57 if(offset>=0){ 58 return _obsoleteCountries3[offset]; 74 int offset = findIndex(_languages, language); 75 if(offset>=0){ 76 return _languages3[offset]; 78 offset [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | LocaleIDs.java | 53 int offset = findIndex(_countries, country); 54 if(offset>=0){ 55 return _countries3[offset]; 57 offset = findIndex(_obsoleteCountries, country); 58 if(offset>=0){ 59 return _obsoleteCountries3[offset]; 76 int offset = findIndex(_languages, language); 77 if(offset>=0){ 78 return _languages3[offset]; 80 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/swiftshader/third_party/LLVM/unittests/Support/ |
H A D | DataExtractorTest.cpp | 27 uint32_t offset = 0; local 29 EXPECT_EQ(0x80U, DE.getU8(&offset)); 30 EXPECT_EQ(1U, offset); 31 offset = 0; 32 EXPECT_EQ(0x8090U, DE.getU16(&offset)); 33 EXPECT_EQ(2U, offset); 34 offset = 0; 35 EXPECT_EQ(0x8090FFFFU, DE.getU32(&offset)); 36 EXPECT_EQ(4U, offset); 37 offset 75 uint32_t offset = 0; local 92 uint32_t offset = 0; local 102 uint32_t offset = 0; local [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);
|
/external/strace/tests/ |
H A D | set_mempolicy.c | 48 print_nodes(const unsigned long maxnode, unsigned int offset) argument 51 if (nlongs <= offset) 54 nlongs -= offset; 57 tail_alloc(size ? size : (offset ? 1 : 0)); 68 for (i = 0; i < nlongs + offset; ++i) { 95 test_offset(const unsigned int offset) argument 99 print_nodes(maxnode, offset); 100 print_nodes(maxnode + 1, offset); 101 print_nodes(maxnode + 2, offset); 104 print_nodes(0, offset); [all...] |
H A D | lseek.c | 39 const kernel_ulong_t offset = (kernel_ulong_t) 0xfacefeeddeadbeefULL; local 41 if (sizeof(offset) > sizeof(long)) { 46 long long rc = lseek(-1, offset, SEEK_SET); 48 (long long) offset, rc, errno2name()); 50 long rc = syscall(__NR_lseek, -1L, offset, SEEK_SET); 52 (long) offset, rc, errno2name());
|
/external/strace/tests-m32/ |
H A D | set_mempolicy.c | 48 print_nodes(const unsigned long maxnode, unsigned int offset) argument 51 if (nlongs <= offset) 54 nlongs -= offset; 57 tail_alloc(size ? size : (offset ? 1 : 0)); 68 for (i = 0; i < nlongs + offset; ++i) { 95 test_offset(const unsigned int offset) argument 99 print_nodes(maxnode, offset); 100 print_nodes(maxnode + 1, offset); 101 print_nodes(maxnode + 2, offset); 104 print_nodes(0, offset); [all...] |
/external/strace/tests-mx32/ |
H A D | set_mempolicy.c | 48 print_nodes(const unsigned long maxnode, unsigned int offset) argument 51 if (nlongs <= offset) 54 nlongs -= offset; 57 tail_alloc(size ? size : (offset ? 1 : 0)); 68 for (i = 0; i < nlongs + offset; ++i) { 95 test_offset(const unsigned int offset) argument 99 print_nodes(maxnode, offset); 100 print_nodes(maxnode + 1, offset); 101 print_nodes(maxnode + 2, offset); 104 print_nodes(0, offset); [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];
|