Home
last modified time | relevance | path

Searched refs:raw (Results 1 – 25 of 2148) sorted by relevance

12345678910>>...86

/external/vboot_reference/firmware/lib/
Dvboot_nvstorage.c63 uint8_t *raw = context->raw; in VbNvSetup() local
70 if ((HEADER_SIGNATURE != (raw[HEADER_OFFSET] & HEADER_MASK)) in VbNvSetup()
71 || (Crc8(raw, CRC_OFFSET) != raw[CRC_OFFSET])) { in VbNvSetup()
73 Memset(raw, 0, VBNV_BLOCK_SIZE); in VbNvSetup()
74 raw[HEADER_OFFSET] = (HEADER_SIGNATURE | in VbNvSetup()
88 context->raw[CRC_OFFSET] = Crc8(context->raw, CRC_OFFSET); in VbNvTeardown()
98 const uint8_t *raw = context->raw; in VbNvGet() local
102 *dest = (raw[HEADER_OFFSET] & HEADER_FIRMWARE_SETTINGS_RESET ? in VbNvGet()
107 *dest = (raw[HEADER_OFFSET] & HEADER_KERNEL_SETTINGS_RESET ? in VbNvGet()
112 *dest = (raw[BOOT_OFFSET] & BOOT_DEBUG_RESET_MODE ? 1 : 0); in VbNvGet()
[all …]
/external/elfutils/tests/
Drun-peel-type.sh25 c raw type base_type
26 i raw type base_type
27 l raw type base_type
28 v raw type pointer_type
29 s raw type structure_type
30 ca raw type array_type
31 ia raw type array_type
32 va raw type array_type
33 sa raw type array_type
37 c raw type base_type
[all …]
/external/eigen/test/
Dbasicstuff.cpp197 Scalar raw[4]; in fixedSizeMatrixConstruction() local
199 raw[k] = internal::random<Scalar>(); in fixedSizeMatrixConstruction()
202 Matrix<Scalar,4,1> m(raw); in fixedSizeMatrixConstruction()
203 Array<Scalar,4,1> a(raw); in fixedSizeMatrixConstruction()
204 for(int k=0; k<4; ++k) VERIFY(m(k) == raw[k]); in fixedSizeMatrixConstruction()
205 for(int k=0; k<4; ++k) VERIFY(a(k) == raw[k]); in fixedSizeMatrixConstruction()
206 VERIFY_IS_EQUAL(m,(Matrix<Scalar,4,1>(raw[0],raw[1],raw[2],raw[3]))); in fixedSizeMatrixConstruction()
207 VERIFY((a==(Array<Scalar,4,1>(raw[0],raw[1],raw[2],raw[3]))).all()); in fixedSizeMatrixConstruction()
210 Matrix<Scalar,3,1> m(raw); in fixedSizeMatrixConstruction()
211 Array<Scalar,3,1> a(raw); in fixedSizeMatrixConstruction()
[all …]
/external/libffi/src/
Djava_raw_api.c76 ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args) in ffi_java_raw_to_ptrarray() argument
89 *args = (void*) ((char*)(raw++) + 3); in ffi_java_raw_to_ptrarray()
94 *args = (void*) ((char*)(raw++) + 2); in ffi_java_raw_to_ptrarray()
101 *args = (void *)raw; in ffi_java_raw_to_ptrarray()
102 raw += 2; in ffi_java_raw_to_ptrarray()
107 *args = (void*) &(raw++)->ptr; in ffi_java_raw_to_ptrarray()
115 *args = raw; in ffi_java_raw_to_ptrarray()
116 raw += in ffi_java_raw_to_ptrarray()
133 *args = (void*) raw; in ffi_java_raw_to_ptrarray()
134 raw += 2; in ffi_java_raw_to_ptrarray()
[all …]
Draw_api.c57 ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args) in ffi_raw_to_ptrarray() argument
70 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 1); in ffi_raw_to_ptrarray()
75 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 2); in ffi_raw_to_ptrarray()
81 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 4); in ffi_raw_to_ptrarray()
87 *args = (raw++)->ptr; in ffi_raw_to_ptrarray()
92 *args = (raw++)->ptr; in ffi_raw_to_ptrarray()
96 *args = (void*) &(raw++)->ptr; in ffi_raw_to_ptrarray()
100 *args = raw; in ffi_raw_to_ptrarray()
101 raw += ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_raw_to_ptrarray()
115 *args = (raw++)->ptr; in ffi_raw_to_ptrarray()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/
Djava_raw_api.c73 ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args) in ffi_java_raw_to_ptrarray() argument
86 *args = (void*) ((char*)(raw++) + 3); in ffi_java_raw_to_ptrarray()
91 *args = (void*) ((char*)(raw++) + 2); in ffi_java_raw_to_ptrarray()
98 *args = (void *)raw; in ffi_java_raw_to_ptrarray()
99 raw += 2; in ffi_java_raw_to_ptrarray()
104 *args = (void*) &(raw++)->ptr; in ffi_java_raw_to_ptrarray()
108 *args = raw; in ffi_java_raw_to_ptrarray()
109 raw += in ffi_java_raw_to_ptrarray()
126 *args = (void*) raw; in ffi_java_raw_to_ptrarray()
127 raw += 2; in ffi_java_raw_to_ptrarray()
[all …]
Draw_api.c57 ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args) in ffi_raw_to_ptrarray() argument
70 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 1); in ffi_raw_to_ptrarray()
75 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 2); in ffi_raw_to_ptrarray()
81 *args = (void*) ((char*)(raw++) + FFI_SIZEOF_ARG - 4); in ffi_raw_to_ptrarray()
87 *args = (raw++)->ptr; in ffi_raw_to_ptrarray()
92 *args = (void*) &(raw++)->ptr; in ffi_raw_to_ptrarray()
96 *args = raw; in ffi_raw_to_ptrarray()
97 raw += ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG; in ffi_raw_to_ptrarray()
111 *args = (raw++)->ptr; in ffi_raw_to_ptrarray()
116 *args = (void*) raw; in ffi_raw_to_ptrarray()
[all …]
/external/chromium-trace/catapult/devil/devil/utils/
Dmarkdown_test.py21 raw = 'foo'
22 self.assertEquals('**foo**', markdown.md_bold(raw))
25 raw = '*foo*'
26 self.assertEquals('**\\*foo\\***', markdown.md_bold(raw))
29 raw = textwrap.dedent("""\
41 actual = markdown.md_code(raw, language='python')
45 raw = textwrap.dedent("""\
65 actual = markdown.md_code(raw, language=None)
69 raw = 'text_with_underscores *and stars*'
71 actual = markdown.md_escape(raw)
[all …]
/external/google-breakpad/src/processor/
Dfast_source_line_resolver_types.h58 const char *raw = reinterpret_cast<const char*>(line_ptr); in CopyFrom() local
59 CopyFrom(raw); in CopyFrom()
63 void CopyFrom(const char *raw) { in CopyFrom()
64 address = *(reinterpret_cast<const MemAddr*>(raw)); in CopyFrom()
65 size = *(reinterpret_cast<const MemAddr*>(raw + sizeof(address))); in CopyFrom()
67 raw + 2 * sizeof(address))); in CopyFrom()
69 raw + 2 * sizeof(address) + sizeof(source_file_id))); in CopyFrom()
76 const char *raw = reinterpret_cast<const char*>(func_ptr); in CopyFrom() local
77 CopyFrom(raw); in CopyFrom()
81 void CopyFrom(const char *raw) { in CopyFrom()
[all …]
/external/grpc-grpc/tools/http2_interop/
Dgoaway.go23 raw := make([]byte, f.Header.Length)
24 if _, err := io.ReadFull(r, raw); err != nil {
27 return f.UnmarshalPayload(raw)
30 func (f *GoAwayFrame) UnmarshalPayload(raw []byte) error {
31 if f.Header.Length != len(raw) {
32 return fmt.Errorf("Invalid Payload length %d != %d", f.Header.Length, len(raw))
38 Reserved: Reserved(raw[0]>>7 == 1),
39 StreamID: StreamID(binary.BigEndian.Uint32(raw[0:4]) & 0x7fffffff),
40 Code: binary.BigEndian.Uint32(raw[4:8]),
41 Data: []byte(string(raw[8:])),
[all …]
Dsettings.go62 raw := make([]byte, f.Header.Length)
63 if _, err := io.ReadFull(r, raw); err != nil {
66 return f.UnmarshalPayload(raw)
69 func (f *SettingsFrame) UnmarshalPayload(raw []byte) error {
70 if f.Header.Length != len(raw) {
71 return fmt.Errorf("Invalid Payload length %d != %d", f.Header.Length, len(raw))
79 for i := 0; i < len(raw); i += 6 {
81 Identifier: SettingsIdentifier(binary.BigEndian.Uint16(raw[i : i+2])),
82 Value: binary.BigEndian.Uint32(raw[i+2 : i+6]),
89 raw := make([]byte, len(f.Params)*6)
[all …]
/external/pdfium/core/fpdfapi/font/
Dcfx_cttgsubtable.cpp175 void CFX_CTTGSUBTable::ParseScriptList(FT_Bytes raw) { in ParseScriptList() argument
176 FT_Bytes sp = raw; in ParseScriptList()
180 ParseScript(&raw[GetUInt16(sp)], &scriptRec); in ParseScriptList()
184 void CFX_CTTGSUBTable::ParseScript(FT_Bytes raw, TScriptRecord* rec) { in ParseScript() argument
185 FT_Bytes sp = raw; in ParseScript()
190 ParseLangSys(&raw[GetUInt16(sp)], &sysRecord); in ParseScript()
194 void CFX_CTTGSUBTable::ParseLangSys(FT_Bytes raw, TLangSysRecord* rec) { in ParseLangSys() argument
195 FT_Bytes sp = raw; in ParseLangSys()
203 void CFX_CTTGSUBTable::ParseFeatureList(FT_Bytes raw) { in ParseFeatureList() argument
204 FT_Bytes sp = raw; in ParseFeatureList()
[all …]
/external/apache-http/src/org/apache/commons/codec/binary/
DBinaryCodec.java85 public byte[] encode(byte[] raw) { in encode() argument
86 return toAsciiBytes(raw); in encode()
99 public Object encode(Object raw) throws EncoderException { in encode() argument
100 if (!(raw instanceof byte[])) { in encode()
103 return toAsciiChars((byte[]) raw); in encode()
227 public static byte[] toAsciiBytes(byte[] raw) { in toAsciiBytes() argument
228 if (raw == null || raw.length == 0) { in toAsciiBytes()
232 byte[] l_ascii = new byte[raw.length << 3]; in toAsciiBytes()
237 for (int ii = 0, jj = l_ascii.length - 1; ii < raw.length; ii++, jj -= 8) { in toAsciiBytes()
239 if ((raw[ii] & BITS[bits]) == 0) { in toAsciiBytes()
[all …]
/external/syzkaller/vendor/cloud.google.com/go/storage/
Diam.go20 raw "google.golang.org/api/storage/v1" packageName
26 return iam.InternalNewHandleClient(&iamClient{raw: b.c.raw}, b.name)
31 raw *raw.Service member
35 req := c.raw.Buckets.GetIamPolicy(resource)
37 var rp *raw.Policy
51 req := c.raw.Buckets.SetIamPolicy(resource, rp)
60 req := c.raw.Buckets.TestIamPermissions(resource, perms)
62 var res *raw.TestIamPermissionsResponse
74 func iamToStoragePolicy(ip *iampb.Policy) *raw.Policy {
75 return &raw.Policy{
[all …]
Dbucket.go27 raw "google.golang.org/api/storage/v1" packageName
67 var bkt *raw.Bucket
71 bkt = &raw.Bucket{}
79 req := b.c.raw.Buckets.Insert(projectID, bkt)
93 func (b *BucketHandle) newDeleteCall() (*raw.BucketsDeleteCall, error) {
94 req := b.c.raw.Buckets.Delete(b.name)
147 var resp *raw.Bucket
161 func (b *BucketHandle) newGetCall() (*raw.BucketsGetCall, error) {
162 req := b.c.raw.Buckets.Get(b.name).Projection("full")
186 func (b *BucketHandle) newPatchCall(uattrs *BucketAttrsToUpdate) (*raw.BucketsPatchCall, error) {
[all …]
/external/scapy/scapy/contrib/
Dmodbus.uts9 raw(ModbusADURequest()) == b'\x00\x00\x00\x00\x00\x01\xff'
12 raw(ModbusADURequest() / b'\x00\x01\x02') == b'\x00\x00\x00\x00\x00\x04\xff\x00\x01\x02'
45 assert(raw(ModbusPDU02ReadDiscreteInputsResponse()), b'\x02\x01\x00')
47 assert(raw(ModbusPDU02ReadDiscreteInputsResponse(inputStatus=[0x02, 0x01])), b'\x02\x02\x02\x01')
53 raw(ModbusPDU02ReadDiscreteInputsError()) == b'\x82\x01'
78 raw(ModbusPDU01ReadCoilsRequest()) == b'\x01\x00\x00\x00\x01'
80 raw(ModbusPDU01ReadCoilsRequest(startAddr=16, quantity=2)) == b'\x01\x00\x10\x00\x02'
87 raw(ModbusPDU01ReadCoilsResponse()) == b'\x01\x01\x00'
89 raw(ModbusPDU01ReadCoilsResponse(coilStatus=[0x10]*3)) == b'\x01\x03\x10\x10\x10'
96 raw(ModbusPDU01ReadCoilsError()) == b'\x81\x01'
[all …]
/external/icu/icu4c/source/i18n/
Dcollationruleparser.cpp291 UnicodeString empty, raw; in parseStarredCharacters() local
292 i = parseString(skipWhiteSpace(i), raw, errorCode); in parseStarredCharacters()
294 if(raw.isEmpty()) { in parseStarredCharacters()
301 while(j < raw.length()) { in parseStarredCharacters()
302 UChar32 c = raw.char32At(j); in parseStarredCharacters()
322 i = parseString(i + 1, raw, errorCode); in parseStarredCharacters()
324 if(raw.isEmpty()) { in parseStarredCharacters()
328 UChar32 c = raw.char32At(0); in parseStarredCharacters()
362 CollationRuleParser::parseTailoringString(int32_t i, UnicodeString &raw, UErrorCode &errorCode) { in parseTailoringString() argument
363 i = parseString(skipWhiteSpace(i), raw, errorCode); in parseTailoringString()
[all …]
/external/u-boot/drivers/net/
Dpic32_mdio.c24 wait_for_bit_le32(&mii_regs->mind.raw, MIIMIND_BUSY, in pic32_mdio_write()
29 writel(v, &mii_regs->madr.raw); in pic32_mdio_write()
32 writel(value, &mii_regs->mwtd.raw); in pic32_mdio_write()
38 wait_for_bit_le32(&mii_regs->mind.raw, MIIMIND_BUSY, in pic32_mdio_write()
50 wait_for_bit_le32(&mii_regs->mind.raw, MIIMIND_BUSY, in pic32_mdio_read()
55 writel(v, &mii_regs->madr.raw); in pic32_mdio_read()
58 writel(MIIMCMD_READ, &mii_regs->mcmd.raw); in pic32_mdio_read()
64 wait_for_bit_le32(&mii_regs->mind.raw, in pic32_mdio_read()
69 writel(0, &mii_regs->mcmd.raw); in pic32_mdio_read()
72 v = readl(&mii_regs->mrdd.raw); in pic32_mdio_read()
[all …]
/external/libaom/libaom/aom_ports/
Dmem_ops_aligned.h31 #define swap_endian_16(val, raw) \ argument
33 val = (uint16_t)(((raw >> 8) & 0x00ff) | ((raw << 8) & 0xff00)); \
35 #define swap_endian_32(val, raw) \ argument
37 val = ((raw >> 24) & 0x000000ff) | ((raw >> 8) & 0x0000ff00) | \
38 ((raw << 8) & 0x00ff0000) | ((raw << 24) & 0xff000000); \
40 #define swap_endian_16_se(val, raw) \ argument
42 swap_endian_16(val, raw); \
45 #define swap_endian_32_se(val, raw) swap_endian_32(val, raw) argument
65 unsigned MEM_VALUE_T val, raw = *mem; \
66 swap_endian_##sz(val, raw); \
[all …]
/external/libvpx/libvpx/vpx_ports/
Dmem_ops_aligned.h30 #define swap_endian_16(val, raw) \ argument
32 val = (uint16_t)(((raw >> 8) & 0x00ff) | ((raw << 8) & 0xff00)); \
34 #define swap_endian_32(val, raw) \ argument
36 val = ((raw >> 24) & 0x000000ff) | ((raw >> 8) & 0x0000ff00) | \
37 ((raw << 8) & 0x00ff0000) | ((raw << 24) & 0xff000000); \
39 #define swap_endian_16_se(val, raw) \ argument
41 swap_endian_16(val, raw); \
44 #define swap_endian_32_se(val, raw) swap_endian_32(val, raw) argument
64 unsigned MEM_VALUE_T val, raw = *mem; \
65 swap_endian_##sz(val, raw); \
[all …]
/external/python/cpython3/Lib/ctypes/test/
Dtest_strings.py11 self.assertEqual(buf.raw, b"abc\000")
15 self.assertEqual(buf.raw, b"ABCD")
19 self.assertEqual(buf.raw, b"x\000CD")
23 self.assertEqual(buf.raw, b"xZCD")
41 buf.raw = memoryview(b"Hello, World")
61 del buf.raw
102 self.assertEqual(cs.raw, "abcdef\000")
103 self.assertEqual(c_string("abc\000def").raw, "abc\000def\000")
108 self.assertEqual(cs.raw, "ab\000\000\000\000\000")
110 cs.raw = "XY"
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationRuleParser.java400 private int parseTailoringString(int i, StringBuilder raw) throws ParseException { in parseTailoringString() argument
401 i = parseString(skipWhiteSpace(i), raw); in parseTailoringString()
402 if(raw.length() == 0) { in parseTailoringString()
408 private int parseString(int i, StringBuilder raw) throws ParseException { in parseString() argument
409 raw.setLength(0); in parseString()
416 raw.append((char)0x27); in parseString()
436 raw.append(c); in parseString()
444 raw.appendCodePoint(cp); in parseString()
456 raw.append(c); in parseString()
459 for(int j = 0; j < raw.length();) { in parseString()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationRuleParser.java396 private int parseTailoringString(int i, StringBuilder raw) throws ParseException { in parseTailoringString() argument
397 i = parseString(skipWhiteSpace(i), raw); in parseTailoringString()
398 if(raw.length() == 0) { in parseTailoringString()
404 private int parseString(int i, StringBuilder raw) throws ParseException { in parseString() argument
405 raw.setLength(0); in parseString()
412 raw.append((char)0x27); in parseString()
432 raw.append(c); in parseString()
440 raw.appendCodePoint(cp); in parseString()
452 raw.append(c); in parseString()
455 for(int j = 0; j < raw.length();) { in parseString()
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_strings.py12 self.assertEqual(buf.raw, "abc\000")
16 self.assertEqual(buf.raw, "ABCD")
20 self.assertEqual(buf.raw, "x\000CD")
24 self.assertEqual(buf.raw, "xZCD")
42 buf.raw = memoryview("Hello, World")
95 self.assertEqual(cs.raw, "abcdef\000")
96 self.assertEqual(c_string("abc\000def").raw, "abc\000def\000")
101 self.assertEqual(cs.raw, "ab\000\000\000\000\000")
103 cs.raw = "XY"
105 self.assertEqual(cs.raw, "XY\000\000\000\000\000")
[all …]
/external/libaom/libaom/examples/
Dnoise_model.c177 static void print_variance_y(FILE *debug_file, aom_image_t *raw, in print_variance_y() argument
183 aom_img_alloc(&renoised, raw->fmt, raw->w, raw->h, 1); in print_variance_y()
191 const int num_blocks_w = (raw->w + block_size - 1) / block_size; in print_variance_y()
192 const int num_blocks_h = (raw->h + block_size - 1) / block_size; in print_variance_y()
203 const double noise_v = (raw->planes[0][y * raw->stride[0] + x] - in print_variance_y()
204 denoised->planes[0][y * raw->stride[0] + x]); in print_variance_y()
208 block_mean += raw->planes[0][y * raw->stride[0] + x]; in print_variance_y()
211 (renoised.planes[0][y * raw->stride[0] + x] - in print_variance_y()
212 denoised->planes[0][y * raw->stride[0] + x]); in print_variance_y()
231 if (raw->fmt & AOM_IMG_FMT_HIGHBITDEPTH) { in print_variance_y()
[all …]

12345678910>>...86