/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | Pack.java | 8 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Pack.java | 8 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/ |
D | vl_mpeg12_bitstream.c | 627 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/ |
D | tpdec_adts.cpp | 109 if (pAdts->bs.protection_absent) { in adtsRead_CrcStartReg() 123 if (pAdts->bs.protection_absent == 0) in adtsRead_CrcEndReg() 134 if (pAdts->bs.protection_absent) in adtsRead_CrcCheck() 178 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 …]
|
D | tpdec_adif.cpp | 100 HANDLE_FDK_BITSTREAM bs in adifRead_DecodeHeader() argument 105 UINT startAnchor = FDKgetValidBits(bs); in adifRead_DecodeHeader() 111 if (FDKreadBits(bs,8) != 'A') { in adifRead_DecodeHeader() 114 if (FDKreadBits(bs,8) != 'D') { in adifRead_DecodeHeader() 117 if (FDKreadBits(bs,8) != 'I') { in adifRead_DecodeHeader() 120 if (FDKreadBits(bs,8) != 'F') { in adifRead_DecodeHeader() 124 if ( (pAdifHeader->CopyrightIdPresent = FDKreadBits(bs,1)) != 0 ) in adifRead_DecodeHeader() 125 FDKpushBiDirectional(bs,72); /* CopyrightId */ in adifRead_DecodeHeader() 128 pAdifHeader->OriginalCopy = FDKreadBits(bs,1); in adifRead_DecodeHeader() 129 pAdifHeader->Home = FDKreadBits(bs,1); in adifRead_DecodeHeader() [all …]
|
D | tpdec_latm.cpp | 100 UINT CLatmDemux_GetValue(HANDLE_FDK_BITSTREAM bs) in CLatmDemux_GetValue() argument 105 bytesForValue = (UCHAR) FDKreadBits(bs,2); in CLatmDemux_GetValue() 109 tmp = (UCHAR) FDKreadBits(bs,8); in CLatmDemux_GetValue() 119 HANDLE_FDK_BITSTREAM bs, in CLatmDemux_ReadAudioMuxElement() argument 130 pLatmDemux->m_useSameStreamMux = FDKreadBits(bs,1); in CLatmDemux_ReadAudioMuxElement() 133 …if ((ErrorStatus = CLatmDemux_ReadStreamMuxConfig(bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigF… in CLatmDemux_ReadAudioMuxElement() 146 if ((ErrorStatus = CLatmDemux_ReadPayloadLengthInfo(bs,pLatmDemux))) { in CLatmDemux_ReadAudioMuxElement() 158 HANDLE_FDK_BITSTREAM bs, in CLatmDemux_Read() argument 172 cntBits = FDKgetValidBits(bs); in CLatmDemux_Read() 178 …if ((ErrorStatus = CLatmDemux_ReadAudioMuxElement(bs, pLatmDemux, (tt != TT_MP4_LATM_MCP0), pTpDec… in CLatmDemux_Read() [all …]
|
D | tpdec_asc.cpp | 126 HANDLE_FDK_BITSTREAM bs, in CProgramConfig_ReadHeightExt() argument 135 crcReg = FDKcrcStartReg(&crcInfo, bs, 0); in CProgramConfig_ReadHeightExt() 136 UINT startAnchor = FDKgetValidBits(bs); in CProgramConfig_ReadHeightExt() 139 FDK_ASSERT(bs != NULL); in CProgramConfig_ReadHeightExt() 143 && (FDKreadBits(bs,8) == PCE_HEIGHT_EXT_SYNC) ) in CProgramConfig_ReadHeightExt() 149 pPce->FrontElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 153 pPce->SideElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 157 pPce->BackElementHeightInfo[i] = (UCHAR) FDKreadBits(bs,2); in CProgramConfig_ReadHeightExt() 159 FDKbyteAlign(bs, alignmentAnchor); in CProgramConfig_ReadHeightExt() 161 FDKcrcEndReg(&crcInfo, bs, crcReg); in CProgramConfig_ReadHeightExt() [all …]
|
/external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/ |
D | BitSet.pm | 14 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/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 237 ByteBuffer bs = ByteBuffer.wrap(bytes, 0, limit); in runTestASCIIBasedConverter() local 239 smBufDecode(decoder, converter, bs, us, true); in runTestASCIIBasedConverter() 240 smBufDecode(decoder, converter, bs, us, false); in runTestASCIIBasedConverter() 241 smBufEncode(encoder, converter, us, bs, true); in runTestASCIIBasedConverter() 242 smBufEncode(encoder, converter, us, bs, false); in runTestASCIIBasedConverter() 244 bs = ByteBuffer.wrap(bytes, i, 1).slice(); in runTestASCIIBasedConverter() 249 smBufDecode(decoder, converter, bs, us, true, false, true); in runTestASCIIBasedConverter() 253 smBufDecode(decoder, converter, bs, us, true, false, false); in runTestASCIIBasedConverter() 257 smBufEncode(encoder, converter, us, bs, true, false, true); in runTestASCIIBasedConverter() 261 smBufEncode(encoder, converter, us, bs, true, false, false); in runTestASCIIBasedConverter() [all …]
|
/external/testng/src/main/java/org/testng/internal/annotations/ |
D | JDK15TagFactory.java | 102 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/ |
D | vp9_reconintra.c | 132 const int bs = 4 << tx_size; in build_intra_predictors_high() local 160 if (y0 + bs <= frame_height) { in build_intra_predictors_high() 161 for (i = 0; i < bs; ++i) in build_intra_predictors_high() 167 for (; i < bs; ++i) in build_intra_predictors_high() 172 for (i = 0; i < bs; ++i) in build_intra_predictors_high() 177 vpx_memset16(left_col, base + 1, bs); in build_intra_predictors_high() 186 if (x0 + 2 * bs <= frame_width) { in build_intra_predictors_high() 187 if (right_available && bs == 4) { in build_intra_predictors_high() 188 memcpy(above_row, above_ref, 2 * bs * sizeof(above_row[0])); in build_intra_predictors_high() 190 memcpy(above_row, above_ref, bs * sizeof(above_row[0])); in build_intra_predictors_high() [all …]
|
/external/libvpx/libvpx/vpx_dsp/ |
D | intrapred.c | 21 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) in d207_predictor() 28 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor() 32 for (r = 0; r < bs - 2; ++r) in d207_predictor() 34 dst[(bs - 2) * stride] = AVG3(left[bs - 2], left[bs - 1], left[bs - 1]); in d207_predictor() 35 dst[(bs - 1) * stride] = left[bs - 1]; in d207_predictor() 39 for (c = 0; c < bs - 2; ++c) in d207_predictor() 40 dst[(bs - 1) * stride + c] = left[bs - 1]; in d207_predictor() 42 for (r = bs - 2; r >= 0; --r) in d207_predictor() 43 for (c = 0; c < bs - 2; ++c) in d207_predictor() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/ |
D | buffered_stream_test.py | 20 bs = buffered_stream.BufferedStream(self.stream, 0, 0) 21 self.assertEqual('', bs.read(0)) 22 self.assertEqual(0, bs.stream_end_position) 25 bs = buffered_stream.BufferedStream(self.stream, 50, 100) 26 self.assertEqual(len(self.value), len(bs)) 27 self.assertEqual(self.value, bs.read(len(self.value))) 28 self.assertEqual(50 + len(self.value), bs.stream_end_position) 31 bs = buffered_stream.BufferedStream(self.stream, 0, 50) 32 self.assertEqual(50, bs.stream_end_position) 33 self.assertEqual(False, bs.stream_exhausted) [all …]
|
/external/bzip2/ |
D | bzip2recover.c | 156 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/ceres-solver/internal/ceres/ |
D | partitioned_matrix_view_impl.h | 52 const CompressedRowBlockStructure* bs = matrix_.block_structure(); in PartitionedMatrixView() local 53 CHECK_NOTNULL(bs); in PartitionedMatrixView() 55 num_col_blocks_f_ = bs->cols.size() - num_col_blocks_e_; in PartitionedMatrixView() 63 for (int r = 0; r < bs->rows.size(); ++r) { in PartitionedMatrixView() 64 const vector<Cell>& cells = bs->rows[r].cells; in PartitionedMatrixView() 74 for (int c = 0; c < bs->cols.size(); ++c) { in PartitionedMatrixView() 75 const Block& block = bs->cols[c]; in PartitionedMatrixView() 100 const CompressedRowBlockStructure* bs = matrix_.block_structure(); in RightMultiplyE() local 106 const Cell& cell = bs->rows[r].cells[0]; in RightMultiplyE() 107 const int row_block_pos = bs->rows[r].block.position; in RightMultiplyE() [all …]
|
D | visibility_test.cc | 61 CompressedRowBlockStructure bs; in TEST() local 65 bs.rows.push_back(CompressedRow()); in TEST() 66 CompressedRow& row = bs.rows.back(); in TEST() 75 bs.rows.push_back(CompressedRow()); in TEST() 76 CompressedRow& row = bs.rows.back(); in TEST() 85 bs.rows.push_back(CompressedRow()); in TEST() 86 CompressedRow& row = bs.rows.back(); in TEST() 95 bs.rows.push_back(CompressedRow()); in TEST() 96 CompressedRow& row = bs.rows.back(); in TEST() 102 bs.cols.resize(num_cols); in TEST() [all …]
|
D | linear_least_squares_problems.cc | 295 CompressedRowBlockStructure* bs = new CompressedRowBlockStructure; in LinearLeastSquaresProblem2() local 299 bs->cols.push_back(Block()); in LinearLeastSquaresProblem2() 300 bs->cols.back().size = 1; in LinearLeastSquaresProblem2() 301 bs->cols.back().position = c; in LinearLeastSquaresProblem2() 311 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 312 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() 324 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 325 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() 337 bs->rows.push_back(CompressedRow()); in LinearLeastSquaresProblem2() 338 CompressedRow& row = bs->rows.back(); in LinearLeastSquaresProblem2() [all …]
|
/external/aac/libAACdec/src/ |
D | aacdec_drc.cpp | 302 HANDLE_FDK_BITSTREAM bs ) in parseExcludedChannels() argument 309 if (FDKreadBits(bs,1)) { in parseExcludedChannels() 315 while (FDKreadBits(bs,1)) { in parseExcludedChannels() 317 if (FDKreadBits(bs,1)) { in parseExcludedChannels() 341 HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcMarkPayload() argument 351 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload() 358 if (FDKreadBits(bs,1)) { /* pce_tag_present */ in aacDecoder_drcMarkPayload() 359 FDKreadBits(bs,8); /* pce_instance_tag + drc_tag_reserved_bits */ in aacDecoder_drcMarkPayload() 363 if (FDKreadBits(bs,1)) { /* excluded_chns_present */ in aacDecoder_drcMarkPayload() 364 FDKreadBits(bs,7); /* exclude mask [0..7] */ in aacDecoder_drcMarkPayload() [all …]
|
/external/libvpx/libvpx/vp9/encoder/x86/ |
D | vp9_denoiser_sse2.c | 132 int increase_denoising, BLOCK_SIZE bs, int motion_magnitude, int width) { in vp9_denoiser_NxM_sse2_small() argument 152 for (r = 0; r < ((4 << b_height_log2_lookup[bs]) >> shift); ++r) { in vp9_denoiser_NxM_sse2_small() 193 sum_diff_thresh = total_adj_strong_thresh(bs, increase_denoising); in vp9_denoiser_NxM_sse2_small() 206 num_pels_log2_lookup[bs]) + 1; in vp9_denoiser_NxM_sse2_small() 210 running_avg_y -= avg_y_stride * (4 << b_height_log2_lookup[bs]); in vp9_denoiser_NxM_sse2_small() 211 for (r = 0; r < ((4 << b_height_log2_lookup[bs]) >> shift); ++r) { in vp9_denoiser_NxM_sse2_small() 245 int increase_denoising, BLOCK_SIZE bs, in vp9_denoiser_NxM_sse2_big() argument 270 for (r = 0; r < (4 << b_height_log2_lookup[bs]); ++r) { in vp9_denoiser_NxM_sse2_big() 271 for (c = 0; c < (4 << b_width_log2_lookup[bs]); c += 16) { in vp9_denoiser_NxM_sse2_big() 281 if ((r + 1) % 16 == 0 || (bs == BLOCK_16X8 && r == 7)) { in vp9_denoiser_NxM_sse2_big() [all …]
|
/external/vboot_reference/scripts/image_signing/ |
D | firmware_boot.sh | 46 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/ |
D | object-size.cpp | 36 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 …]
|
D | zvector.c | 10 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/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
D | to_bytes.pass.cpp | 28 std::string bs = myconv.to_bytes(ws[0]); in main() local 29 assert(bs == "\xF1\x80\x80\x83"); in main() 30 bs = myconv.to_bytes(ws.c_str()); in main() 31 assert(bs == "\xF1\x80\x80\x83"); in main() 32 bs = myconv.to_bytes(ws); in main() 33 assert(bs == "\xF1\x80\x80\x83"); in main() 34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in main() 35 assert(bs == "\xF1\x80\x80\x83"); in main() 36 bs = myconv.to_bytes(L""); in main() 37 assert(bs.size() == 0); in main()
|
/external/autotest/client/cros/cellular/ |
D | emulator_config.py | 57 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 …]
|
/external/autotest/client/site_tests/hardware_StorageFio/ |
D | vendor_perf_fill_device | 37 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 …]
|