Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 1119) sorted by relevance

12345678910>>...45

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DPack.java10 public static short bigEndianToShort(byte[] bs, int off) in bigEndianToShort() argument
12 int n = (bs[ off] & 0xff) << 8; in bigEndianToShort()
13 n |= (bs[++off] & 0xff); in bigEndianToShort()
17 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument
19 int n = bs[ off] << 24; in bigEndianToInt()
20 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt()
21 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt()
22 n |= (bs[++off] & 0xff); in bigEndianToInt()
26 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument
30 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DPack.java8 public static short bigEndianToShort(byte[] bs, int off) in bigEndianToShort() argument
10 int n = (bs[ off] & 0xff) << 8; in bigEndianToShort()
11 n |= (bs[++off] & 0xff); in bigEndianToShort()
15 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument
17 int n = bs[ off] << 24; in bigEndianToInt()
18 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt()
19 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt()
20 n |= (bs[++off] & 0xff); in bigEndianToInt()
24 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument
28 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/util/
DPack.java10 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument
12 int n = bs[ off] << 24; in bigEndianToInt()
13 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt()
14 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt()
15 n |= (bs[++off] & 0xff); in bigEndianToInt()
19 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument
23 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt()
30 byte[] bs = new byte[4]; in intToBigEndian()
31 intToBigEndian(n, bs, 0); in intToBigEndian()
32 return bs; in intToBigEndian()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
DPack.java8 public static int bigEndianToInt(byte[] bs, int off) in bigEndianToInt() argument
10 int n = bs[ off] << 24; in bigEndianToInt()
11 n |= (bs[++off] & 0xff) << 16; in bigEndianToInt()
12 n |= (bs[++off] & 0xff) << 8; in bigEndianToInt()
13 n |= (bs[++off] & 0xff); in bigEndianToInt()
17 public static void bigEndianToInt(byte[] bs, int off, int[] ns) in bigEndianToInt() argument
21 ns[i] = bigEndianToInt(bs, off); in bigEndianToInt()
28 byte[] bs = new byte[4]; in intToBigEndian()
29 intToBigEndian(n, bs, 0); in intToBigEndian()
30 return bs; in intToBigEndian()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_bitstream.c627 motion_vector(struct vl_mpg12_bs *bs, int r, int s, int dmv, short delta[2], short dmvector[2]) in motion_vector() argument
632 int r_size = bs->desc->f_code[s][t]; in motion_vector()
634 vl_vlc_fillbits(&bs->vlc); in motion_vector()
635 motion_code = vl_vlc_get_vlclbf(&bs->vlc, tbl_B10, 11); in motion_vector()
639 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; in motion_vector()
646 dmvector[t] = vl_vlc_get_vlclbf(&bs->vlc, tbl_B11, 2); in motion_vector()
662 motion_vector_frame(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) in motion_vector_frame() argument
668 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_frame()
669 motion_vector(bs, 0, s, dmv, delta, dmvector); in motion_vector_frame()
670 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame()
[all …]
/external/aac/libMpegTPDec/src/
Dtpdec_adts.cpp118 if (pAdts->bs.protection_absent) { in adtsRead_CrcStartReg()
130 if (pAdts->bs.protection_absent == 0) { in adtsRead_CrcEndReg()
139 if (pAdts->bs.protection_absent) return TRANSPORTDEC_OK; in adtsRead_CrcCheck()
176 STRUCT_ADTS_BS bs; in adtsRead_DecodeHeader() local
190 bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id); in adtsRead_DecodeHeader()
191 bs.layer = FDKreadBits(hBs, Adts_Length_Layer); in adtsRead_DecodeHeader()
192 bs.protection_absent = FDKreadBits(hBs, Adts_Length_ProtectionAbsent); in adtsRead_DecodeHeader()
193 bs.profile = FDKreadBits(hBs, Adts_Length_Profile); in adtsRead_DecodeHeader()
194 bs.sample_freq_index = FDKreadBits(hBs, Adts_Length_SamplingFrequencyIndex); in adtsRead_DecodeHeader()
195 bs.private_bit = FDKreadBits(hBs, Adts_Length_PrivateBit); in adtsRead_DecodeHeader()
[all …]
Dtpdec_adif.cpp110 HANDLE_FDK_BITSTREAM bs) { in adifRead_DecodeHeader() argument
113 UINT startAnchor = FDKgetValidBits(bs); in adifRead_DecodeHeader()
119 if (FDKreadBits(bs, 8) != 'A') { in adifRead_DecodeHeader()
122 if (FDKreadBits(bs, 8) != 'D') { in adifRead_DecodeHeader()
125 if (FDKreadBits(bs, 8) != 'I') { in adifRead_DecodeHeader()
128 if (FDKreadBits(bs, 8) != 'F') { in adifRead_DecodeHeader()
132 if ((pAdifHeader->CopyrightIdPresent = FDKreadBits(bs, 1)) != 0) in adifRead_DecodeHeader()
133 FDKpushBiDirectional(bs, 72); /* CopyrightId */ in adifRead_DecodeHeader()
135 pAdifHeader->OriginalCopy = FDKreadBits(bs, 1); in adifRead_DecodeHeader()
136 pAdifHeader->Home = FDKreadBits(bs, 1); in adifRead_DecodeHeader()
[all …]
Dtpdec_latm.cpp109 static UINT CLatmDemux_GetValue(HANDLE_FDK_BITSTREAM bs) { in CLatmDemux_GetValue() argument
113 bytesForValue = (UCHAR)FDKreadBits(bs, 2); in CLatmDemux_GetValue()
117 tmp = (UCHAR)FDKreadBits(bs, 8); in CLatmDemux_GetValue()
125 HANDLE_FDK_BITSTREAM bs, CLatmDemux *pLatmDemux, int m_muxConfigPresent, in CLatmDemux_ReadAudioMuxElement() argument
131 pLatmDemux->m_useSameStreamMux = FDKreadBits(bs, 1); in CLatmDemux_ReadAudioMuxElement()
143 bsAnchorDummyParse = *bs; in CLatmDemux_ReadAudioMuxElement()
149 bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigFound, in CLatmDemux_ReadAudioMuxElement()
164 *bs = bsAnchorDummyParse; in CLatmDemux_ReadAudioMuxElement()
175 bsAnchor = *bs; in CLatmDemux_ReadAudioMuxElement()
178 *bs = bsAnchor; in CLatmDemux_ReadAudioMuxElement()
[all …]
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestCharset.java249 ByteBuffer bs = ByteBuffer.wrap(bytes, 0, limit); in runTestASCIIBasedConverter() local
251 smBufDecode(decoder, converter, bs, us, true); in runTestASCIIBasedConverter()
252 smBufDecode(decoder, converter, bs, us, false); in runTestASCIIBasedConverter()
253 smBufEncode(encoder, converter, us, bs, true); in runTestASCIIBasedConverter()
254 smBufEncode(encoder, converter, us, bs, false); in runTestASCIIBasedConverter()
256 bs = ByteBuffer.wrap(bytes, i, 1).slice(); in runTestASCIIBasedConverter()
261 smBufDecode(decoder, converter, bs, us, true, false, true); in runTestASCIIBasedConverter()
265 smBufDecode(decoder, converter, bs, us, true, false, false); in runTestASCIIBasedConverter()
269 smBufEncode(encoder, converter, us, bs, true, false, true); in runTestASCIIBasedConverter()
273 smBufEncode(encoder, converter, us, bs, true, false, false); in runTestASCIIBasedConverter()
[all …]
/external/antlr/runtime/Perl5/t/classes/Test/ANTLR/Runtime/
DBitSet.pm14 ok my $bs = $class->new();
15 isa_ok $bs, $class;
20 my $bs = $self->class->new({ bits => '001' });
21 ok !$bs->member(0);
22 ok !$bs->member(1);
23 ok $bs->member(2);
24 ok !$bs->member(3);
25 is "$bs", '{2}';
30 my $bs = $self->class->new({ number => 0x10 });
31 ok $bs->member(4);
[all …]
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15TagFactory.java102 BeforeSuite bs = (BeforeSuite) a; in maybeCreateNewConfigurationTag() local
109 bs.alwaysRun(), in maybeCreateNewConfigurationTag()
110 bs.dependsOnGroups(), bs.dependsOnMethods(), in maybeCreateNewConfigurationTag()
111 bs.description(), bs.enabled(), bs.groups(), in maybeCreateNewConfigurationTag()
112 bs.inheritGroups(), null, in maybeCreateNewConfigurationTag()
114 bs.timeOut()); in maybeCreateNewConfigurationTag()
117 AfterSuite bs = (AfterSuite) a; in maybeCreateNewConfigurationTag() local
124 bs.alwaysRun(), in maybeCreateNewConfigurationTag()
125 bs.dependsOnGroups(), bs.dependsOnMethods(), in maybeCreateNewConfigurationTag()
126 bs.description(), bs.enabled(), bs.groups(), in maybeCreateNewConfigurationTag()
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_reconintra.c124 const int bs = 4 << tx_size; in build_intra_predictors_high() local
157 if (y0 + bs <= frame_height) { in build_intra_predictors_high()
158 for (i = 0; i < bs; ++i) left_col[i] = ref[i * ref_stride - 1]; in build_intra_predictors_high()
163 for (; i < bs; ++i) in build_intra_predictors_high()
168 for (i = 0; i < bs; ++i) left_col[i] = ref[i * ref_stride - 1]; in build_intra_predictors_high()
171 vpx_memset16(left_col, base + 1, bs); in build_intra_predictors_high()
181 if (x0 + bs <= frame_width) { in build_intra_predictors_high()
182 memcpy(above_row, above_ref, bs * sizeof(above_row[0])); in build_intra_predictors_high()
186 vpx_memset16(above_row + r, above_row[r - 1], x0 + bs - frame_width); in build_intra_predictors_high()
190 if (bs == 4 && right_available && left_available) { in build_intra_predictors_high()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dintrapred.c21 static INLINE void d207_predictor(uint8_t *dst, ptrdiff_t stride, int bs, in d207_predictor() argument
26 for (r = 0; r < bs - 1; ++r) dst[r * stride] = AVG2(left[r], left[r + 1]); in d207_predictor()
27 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor()
31 for (r = 0; r < bs - 2; ++r) in d207_predictor()
33 dst[(bs - 2) * stride] = AVG3(left[bs - 2], left[bs - 1], left[bs - 1]); in d207_predictor()
34 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor()
38 for (c = 0; c < bs - 2; ++c) dst[(bs - 1) * stride + c] = left[bs - 1]; in d207_predictor()
40 for (r = bs - 2; r >= 0; --r) in d207_predictor()
41 for (c = 0; c < bs - 2; ++c) in d207_predictor()
45 static INLINE void d63_predictor(uint8_t *dst, ptrdiff_t stride, int bs, in d63_predictor() argument
[all …]
/external/bzip2/
Dbzip2recover.c156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() local
157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream()
158 bs->handle = stream; in bsOpenReadStream()
159 bs->buffer = 0; in bsOpenReadStream()
160 bs->buffLive = 0; in bsOpenReadStream()
161 bs->mode = 'r'; in bsOpenReadStream()
162 return bs; in bsOpenReadStream()
169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() local
170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream()
171 bs->handle = stream; in bsOpenWriteStream()
[all …]
/external/python/apitools/apitools/base/py/
Dbuffered_stream_test.py35 bs = buffered_stream.BufferedStream(self.stream, 0, 0)
36 self.assertEqual('', bs.read(0))
37 self.assertEqual(0, bs.stream_end_position)
40 bs = buffered_stream.BufferedStream(self.stream, 50, 100)
41 self.assertEqual(len(self.value), len(bs))
42 self.assertEqual(self.value, bs.read(len(self.value)))
43 self.assertEqual(50 + len(self.value), bs.stream_end_position)
46 bs = buffered_stream.BufferedStream(self.stream, 0, 50)
47 self.assertEqual(50, bs.stream_end_position)
48 self.assertEqual(False, bs.stream_exhausted)
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DByteStringTest.cs78 ByteString bs = ByteString.CopyFrom("AB", Encoding.Unicode); in CopyFromStringWithExplicitEncoding()
79 Assert.AreEqual(4, bs.Length); in CopyFromStringWithExplicitEncoding()
80 Assert.AreEqual(65, bs[0]); in CopyFromStringWithExplicitEncoding()
81 Assert.AreEqual(0, bs[1]); in CopyFromStringWithExplicitEncoding()
82 Assert.AreEqual(66, bs[2]); in CopyFromStringWithExplicitEncoding()
83 Assert.AreEqual(0, bs[3]); in CopyFromStringWithExplicitEncoding()
103 ByteString bs = ByteString.CopyFrom(data); in CopyFromByteArrayCopiesContents()
104 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents()
106 Assert.AreEqual(10, bs[0]); in CopyFromByteArrayCopiesContents()
112 ByteString bs = ByteString.CopyFromUtf8("Hello"); in ToByteArrayCopiesContents()
[all …]
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dto_bytes.pass.cpp40 std::string bs = myconv.to_bytes(ws[0]); in test() local
41 assert(bs == "\xE1\x80\x85\x00"); in test()
42 bs = myconv.to_bytes(ws.c_str()); in test()
43 assert(bs == "\xE1\x80\x85\x00"); in test()
44 bs = myconv.to_bytes(ws); in test()
45 assert(bs == "\xE1\x80\x85\x00"); in test()
46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in test()
47 assert(bs == "\xE1\x80\x85\x00"); in test()
48 bs = myconv.to_bytes(L""); in test()
49 assert(bs.size() == 0); in test()
[all …]
Dfrom_bytes.pass.cpp39 std::string bs("\xE1\x80\x85\x00"); in test() local
42 ws = myconv.from_bytes(bs.c_str()); in test()
44 ws = myconv.from_bytes(bs); in test()
46 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in test()
58 std::string bs("\xF1\x80\x80\x83"); in test() local
61 ws = myconv.from_bytes(bs.c_str()); in test()
63 ws = myconv.from_bytes(bs); in test()
65 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in test()
/external/aac/libAACdec/src/
Daacdec_drc.cpp355 HANDLE_FDK_BITSTREAM bs) { in parseExcludedChannels() argument
361 if (FDKreadBits(bs, 1)) { in parseExcludedChannels()
367 while (FDKreadBits(bs, 1)) { in parseExcludedChannels()
369 if (FDKreadBits(bs, 1)) { in parseExcludedChannels()
390 int aacDecoder_drcMarkPayload(HANDLE_AAC_DRC self, HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcMarkPayload() argument
399 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload()
405 if (FDKreadBits(bs, 1)) { /* pce_tag_present */ in aacDecoder_drcMarkPayload()
406 FDKreadBits(bs, 8); /* pce_instance_tag + drc_tag_reserved_bits */ in aacDecoder_drcMarkPayload()
410 if (FDKreadBits(bs, 1)) { /* excluded_chns_present */ in aacDecoder_drcMarkPayload()
411 FDKreadBits(bs, 7); /* exclude mask [0..7] */ in aacDecoder_drcMarkPayload()
[all …]
/external/vboot_reference/scripts/image_signing/
Dfirmware_boot.sh46 dd if=${input} of=dev.bin bs=1 skip=${rw_a_offset} count=${rw_a_size}
47 dd if=${input} of=nor.bin bs=1 skip=${rw_b_offset} count=${rw_b_size}
52 dd if=/dev/urandom of=bad.bin bs=1 count=${rw_b_size}
53 dd if=nor.bin of=bad.bin conv=notrunc bs=1 count=65536
58 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
59 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
64 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
65 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
70 dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset}
71 dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset}
[all …]
/external/clang/test/CodeGen/
Dobject-size.cpp36 struct C { int i; B bs[1]; } *c; in test2() member
39 gi = __builtin_object_size(&c->bs[0], 0); in test2()
41 gi = __builtin_object_size(&c->bs[0], 1); in test2()
43 gi = __builtin_object_size(&c->bs[0], 2); in test2()
45 gi = __builtin_object_size(&c->bs[0], 3); in test2()
48 gi = __builtin_object_size((A*)&c->bs[0], 0); in test2()
50 gi = __builtin_object_size((A*)&c->bs[0], 1); in test2()
52 gi = __builtin_object_size((A*)&c->bs[0], 2); in test2()
54 gi = __builtin_object_size((A*)&c->bs[0], 3); in test2()
57 gi = __builtin_object_size(&c->bs[0].buf[0], 0); in test2()
[all …]
Dzvector.c10 volatile vector bool short bs, bs2; variable
307 ss = bs + ss2; in test_add()
319 us = bs + us2; in test_add()
495 ss = bs - ss2; in test_sub()
507 us = bs - us2; in test_sub()
931 bs = ~bs2; in test_not()
998 ss = bs & ss2; in test_and()
1010 us = bs & us2; in test_and()
1014 bs = bs & bs2; in test_and()
1119 bs &= bs2; in test_and_assign()
[all …]
/external/autotest/client/site_tests/hardware_StorageFio/
Dvendor_perf_fill_device37 bs=1m
43 bs=16k
52 bs=16k
62 bs=16k
71 bs=16k
80 bs=16k
89 bs=16k
98 bs=1m
103 bs=512k
112 bs=512k
[all …]
/external/e2fsprogs/util/
Dcopy_sparse.c93 long lb, i, fd, ofd, bs, block, numblocks; in copy_sparse_file() local
115 if (ioctl(fd, FIGETBSZ, &bs) < 0) { in copy_sparse_file()
120 if (bs < 0) { in copy_sparse_file()
121 printf("%s: Invalid block size: %ld\n", src, bs); in copy_sparse_file()
125 printf("Blocksize of file %s is %ld\n", src, bs); in copy_sparse_file()
126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file()
132 bs = 1024; in copy_sparse_file()
141 buf = malloc(bs); in copy_sparse_file()
152 should_be = ((off64_t) lb) * bs; in copy_sparse_file()
167 got = full_read(fd, buf, bs); in copy_sparse_file()
[all …]
/external/autotest/client/cros/cellular/
Demulator_config.py57 bs = None
74 bs = _BaseStationFactory(bs_config, technology)
83 with bs.checker_context:
84 bs.SetBsNetmaskV4(c['bs_netmask'])
85 bs.SetBsIpV4(*c['bs_addresses'])
87 bs.SetUeIpV4(*c['ue_rf_addresses'])
88 bs.SetUeDnsV4(*c['ue_dns_addresses'])
90 bs.SetTechnology(technology)
91 bs.SetPower(-40)
92 verifier = bs.GetAirStateVerifier()
[all …]

12345678910>>...45