HomeSort by relevance Sort by last modified time
    Searched refs:bs (Results 1 - 25 of 1088) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
BitSetTest.java 29 BitSet bs = new BitSet(); local
31 assertEquals("Created BitSet of incorrect size", 64, bs.size());
32 assertEquals("New BitSet had invalid string representation", "{}", bs
37 BitSet bs = new BitSet(128); local
40 assertEquals("Created BitSet of incorrect size", 128, bs.size());
42 + bs.toString(), "{}", bs.toString());
46 bs = new BitSet(89);
47 assertEquals("Failed to round BitSet element size", 128, bs.size());
50 bs = new BitSet(-9)
57 BitSet bs = (BitSet) eightbs.clone(); local
62 BitSet bs; local
81 BitSet bs = (BitSet) eightbs.clone(); local
97 BitSet bs = new BitSet(3400); local
125 BitSet bs = new BitSet(0); local
171 BitSet bs = new BitSet(16); local
355 BitSet bs = new BitSet(); local
399 BitSet bs, resultbs, correctbs; local
547 BitSet bs = new BitSet(); local
601 BitSet bs = new BitSet(16); local
741 BitSet bs = new BitSet(); local
818 BitSet bs = new BitSet(16); local
969 BitSet bs = new BitSet(500); local
1023 BitSet bs = new BitSet(128); local
1049 BitSet bs = (BitSet) eightbs.clone(); local
1080 BitSet bs = new BitSet(128); local
1097 BitSet bs = (BitSet) eightbs.clone(); local
1130 BitSet bs = new BitSet(); local
1143 BitSet bs = new BitSet(500); local
1195 BitSet bs = new BitSet(500); local
1262 BitSet bs = new BitSet(500); local
1272 BitSet bs = new BitSet(500); local
1282 BitSet bs = new BitSet(500); local
1310 BitSet bs = new BitSet(500); local
1339 BitSet bs = new BitSet(500); local
    [all...]
  /external/aac/libMpegTPDec/src/
tpdec_adif.cpp 110 HANDLE_FDK_BITSTREAM bs) {
113 UINT startAnchor = FDKgetValidBits(bs);
119 if (FDKreadBits(bs, 8) != 'A') {
122 if (FDKreadBits(bs, 8) != 'D') {
125 if (FDKreadBits(bs, 8) != 'I') {
128 if (FDKreadBits(bs, 8) != 'F') {
132 if ((pAdifHeader->CopyrightIdPresent = FDKreadBits(bs, 1)) != 0)
133 FDKpushBiDirectional(bs, 72); /* CopyrightId */
135 pAdifHeader->OriginalCopy = FDKreadBits(bs, 1);
136 pAdifHeader->Home = FDKreadBits(bs, 1)
    [all...]
tpdec_adts.cpp 118 if (pAdts->bs.protection_absent) {
130 if (pAdts->bs.protection_absent == 0) {
139 if (pAdts->bs.protection_absent) return TRANSPORTDEC_OK;
176 STRUCT_ADTS_BS bs; local
186 bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id);
187 bs.layer = FDKreadBits(hBs, Adts_Length_Layer);
188 bs.protection_absent = FDKreadBits(hBs, Adts_Length_ProtectionAbsent);
189 bs.profile = FDKreadBits(hBs, Adts_Length_Profile);
190 bs.sample_freq_index = FDKreadBits(hBs, Adts_Length_SamplingFrequencyIndex);
191 bs.private_bit = FDKreadBits(hBs, Adts_Length_PrivateBit)
    [all...]
  /hardware/intel/common/libmix/videoencoder/
bitstream.h 41 static void bitstream_start(bitstream *bs)
43 bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING;
44 bs->buffer = (unsigned int*)calloc(bs->max_size_in_dword * sizeof(int), 1);
45 bs->bit_offset = 0;
48 static void bitstream_end(bitstream *bs)
50 int pos = (bs->bit_offset >> 5);
51 int bit_offset = (bs->bit_offset & 0x1f);
55 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left))
313 bitstream bs; local
327 bitstream bs; local
    [all...]
  /system/bt/embdrv/sbc/decoder/srce/
bitstream-decode.c 41 PRIVATE void OI_BITSTREAM_ReadInit(OI_BITSTREAM* bs, const OI_BYTE* buffer) {
42 bs->value =
44 bs->ptr.r = buffer + 3;
45 bs->bitPtr = 8;
48 PRIVATE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits) {
51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr);
56 PRIVATE uint8_t OI_BITSTREAM_ReadUINT4Aligned(OI_BITSTREAM* bs) {
59 OI_ASSERT(bs->bitPtr < 16)
    [all...]
  /external/aac/libAACdec/src/
rvlcbit.cpp 126 UCHAR rvlcReadBitFromBitstream(HANDLE_FDK_BITSTREAM bs, INT *pPosition,
129 INT readBitOffset = *pPosition - FDKgetBitCnt(bs);
132 FDKpushBiDirectional(bs, readBitOffset);
136 bit = FDKreadBits(bs, 1);
141 bit = FDKreadBits(bs, 1);
142 FDKpushBack(bs, 2);
aacdec_hcr_bit.cpp 135 UINT HcrGetABitFromBitstream(HANDLE_FDK_BITSTREAM bs, INT *pLeftStartOfSegment,
141 readBitOffset = *pLeftStartOfSegment - FDKgetBitCnt(bs);
143 FDKpushBiDirectional(bs, readBitOffset);
146 bit = FDKreadBits(bs, 1);
150 readBitOffset = *pRightStartOfSegment - FDKgetBitCnt(bs);
152 FDKpushBiDirectional(bs, readBitOffset);
156 bit = FDKreadBits(bs, 1);
157 FDKpushBack(bs, 2);
rvlcbit.h 108 UCHAR rvlcReadBitFromBitstream(HANDLE_FDK_BITSTREAM bs, INT *pPosition,
  /external/antlr/antlr-3.4/runtime/Perl5/t/classes/Test/ANTLR/Runtime/
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/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
Pack.java 8 public static short bigEndianToShort(byte[] bs, int off)
10 int n = (bs[ off] & 0xff) << 8;
11 n |= (bs[++off] & 0xff);
15 public static int bigEndianToInt(byte[] bs, int off)
17 int n = bs[ off] << 24;
18 n |= (bs[++off] & 0xff) << 16;
19 n |= (bs[++off] & 0xff) << 8;
20 n |= (bs[++off] & 0xff);
24 public static void bigEndianToInt(byte[] bs, int off, int[] ns)
28 ns[i] = bigEndianToInt(bs, off)
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
FatUtils.java 36 * @param bs
41 public static long getFatOffset(BootSector bs, int fatNr) {
42 long sectSize = bs.getBytesPerSector();
43 long sectsPerFat = bs.getSectorsPerFat();
44 long resSects = bs.getNrReservedSectors();
57 * @param bs
61 public static long getRootDirOffset(BootSector bs) {
62 long sectSize = bs.getBytesPerSector();
63 long sectsPerFat = bs.getSectorsPerFat();
64 int fats = bs.getNrFats()
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
Pack.java 8 public static int bigEndianToInt(byte[] bs, int off)
10 int n = bs[ off] << 24;
11 n |= (bs[++off] & 0xff) << 16;
12 n |= (bs[++off] & 0xff) << 8;
13 n |= (bs[++off] & 0xff);
17 public static void bigEndianToInt(byte[] bs, int off, int[] ns)
21 ns[i] = bigEndianToInt(bs, off);
28 byte[] bs = new byte[4];
29 intToBigEndian(n, bs, 0);
30 return bs;
    [all...]
  /external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
to_bytes.pass.cpp 40 std::string bs = myconv.to_bytes(ws[0]); local
41 assert(bs == "\xE1\x80\x85\x00");
42 bs = myconv.to_bytes(ws.c_str());
43 assert(bs == "\xE1\x80\x85\x00");
44 bs = myconv.to_bytes(ws);
45 assert(bs == "\xE1\x80\x85\x00");
46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
47 assert(bs == "\xE1\x80\x85\x00");
48 bs = myconv.to_bytes(L"");
49 assert(bs.size() == 0)
59 std::string bs = myconv.to_bytes(ws[0]); local
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/localization/locales/locale.convenience/conversions/conversions.string/
to_bytes.pass.cpp 40 std::string bs = myconv.to_bytes(ws[0]); local
41 assert(bs == "\xE1\x80\x85\x00");
42 bs = myconv.to_bytes(ws.c_str());
43 assert(bs == "\xE1\x80\x85\x00");
44 bs = myconv.to_bytes(ws);
45 assert(bs == "\xE1\x80\x85\x00");
46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
47 assert(bs == "\xE1\x80\x85\x00");
48 bs = myconv.to_bytes(L"");
49 assert(bs.size() == 0)
59 std::string bs = myconv.to_bytes(ws[0]); local
    [all...]
  /frameworks/data-binding/compiler/src/test/java/android/databinding/tool/writer/
FlagSetTest.java 28 BitSet bs = new BitSet(); local
29 bs.set(7);
30 FlagSet flagSet = new FlagSet(bs, 3);
39 BitSet bs = new BitSet(); local
40 bs.set(FlagSet.sBucketSize + 2);
41 FlagSet flagSet = new FlagSet(bs, 3);
50 BitSet bs = new BitSet(); local
51 bs.set(5);
52 bs.set(FlagSet.sBucketSize + 2);
53 bs.set(FlagSet.sBucketSize * 2 + 10)
63 BitSet bs = new BitSet(); local
    [all...]
  /external/clang/test/CodeGen/
object-size.cpp 36 struct C { int i; B bs[1]; } *c; member in struct:C
39 gi = __builtin_object_size(&c->bs[0], 0);
41 gi = __builtin_object_size(&c->bs[0], 1);
43 gi = __builtin_object_size(&c->bs[0], 2);
45 gi = __builtin_object_size(&c->bs[0], 3);
48 gi = __builtin_object_size((A*)&c->bs[0], 0);
50 gi = __builtin_object_size((A*)&c->bs[0], 1);
52 gi = __builtin_object_size((A*)&c->bs[0], 2);
54 gi = __builtin_object_size((A*)&c->bs[0], 3);
57 gi = __builtin_object_size(&c->bs[0].buf[0], 0)
    [all...]
  /external/annotation-tools/asmx/test/conform/org/objectweb/asm/
AnnotationTest.class 
  /system/bt/embdrv/sbc/decoder/include/
oi_bitstream.h 43 INLINE void OI_BITSTREAM_ReadInit(OI_BITSTREAM* bs, const OI_BYTE* buffer);
45 INLINE void OI_BITSTREAM_WriteInit(OI_BITSTREAM* bs, OI_BYTE* buffer);
47 INLINE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits);
49 INLINE uint8_t OI_BITSTREAM_ReadUINT4Aligned(OI_BITSTREAM* bs);
51 INLINE uint8_t OI_BITSTREAM_ReadUINT8Aligned(OI_BITSTREAM* bs);
53 INLINE void OI_BITSTREAM_WriteUINT(OI_BITSTREAM* bs, uint16_t value,
59 PRIVATE void OI_BITSTREAM_WriteUINT8Aligned(OI_BITSTREAM* bs, uint8_t datum);
65 PRIVATE void OI_BITSTREAM_Write2xUINT4Aligned(OI_BITSTREAM* bs, uint8_t datum1,
72 #define OI_BITSTREAM_GetWritePtr(bs) ((bs)->ptr.w - 3
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
BitSetBenchmark.java 27 private BitSet bs; field in class:BitSetBenchmark
31 bs = new BitSet(size);
36 if (!bs.isEmpty()) throw new RuntimeException();
41 bs.set(bs.size() - 1);
43 if (bs.isEmpty()) throw new RuntimeException();
49 bs.get(i % size);
55 bs.clear(i % size);
61 bs.set(i % size);
67 bs.set(i % size, true)
    [all...]
  /hardware/intel/common/libva/va/
va_enc.h 82 VAEncBitstream *bs,
132 * @param[in] bs the bitstream writer to destroy
135 va_enc_bitstream_destroy(VAEncBitstream *bs);
143 * @param[in] bs the bitstream writer
149 va_enc_bitstream_write_ui(VAEncBitstream *bs, unsigned int value, int length);
157 * @param[in] bs the bitstream writer
163 va_enc_bitstream_write_si(VAEncBitstream *bs, int value, int length);
168 va_enc_bitstream_skip(VAEncBitstream *bs, unsigned int length);
177 * @param[in] bs the bitstream writer
182 va_enc_bitstream_align(VAEncBitstream *bs, unsigned int value)
    [all...]
  /external/ImageMagick/MagickWand/tests/
script-token-test.sh 19 dd if=/dev/zero bs=80 count=1 2>/dev/null | tr '\0' 'a'; echo ""
20 dd if=/dev/zero bs=500 count=1 2>/dev/null | tr '\0' 'b'; echo ""
21 dd if=/dev/zero bs=4000 count=1 2>/dev/null | tr '\0' 'c'; echo ""
22 dd if=/dev/zero bs=5000 count=1 2>/dev/null | tr '\0' 'd'; echo ""
23 dd if=/dev/zero bs=10k count=1 2>/dev/null | tr '\0' 'e'; echo ""
24 dd if=/dev/zero bs=13k count=1 2>/dev/null | tr '\0' 'f'; echo ""
25 dd if=/dev/zero bs=8k count=1024 2>/dev/null | tr '\0' 'e'; echo ""
  /external/skia/src/core/
Sk4x4f.h 48 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
49 auto b16 = _mm_loadu_si128((const __m128i*)bs);
68 inline void Sk4x4f::transpose(uint8_t bs[16]) const {
73 _mm_storeu_si128((__m128i*)bs, _mm_or_si128(A, _mm_or_si128(B, _mm_or_si128(G, R))));
91 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
92 auto b16 = vreinterpretq_u32_u8(vld1q_u8(bs));
105 inline void Sk4x4f::transpose(uint8_t bs[16]) const {
110 vst1q_u8(bs, vreinterpretq_u8_u32(vorrq_u32(A, vorrq_u32(B, vorrq_u32(G, R)))));
128 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
130 { (float)bs[0], (float)bs[4], (float)bs[ 8], (float)bs[12] }
    [all...]
  /external/skqp/src/core/
Sk4x4f.h 48 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
49 auto b16 = _mm_loadu_si128((const __m128i*)bs);
68 inline void Sk4x4f::transpose(uint8_t bs[16]) const {
73 _mm_storeu_si128((__m128i*)bs, _mm_or_si128(A, _mm_or_si128(B, _mm_or_si128(G, R))));
91 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
92 auto b16 = vreinterpretq_u32_u8(vld1q_u8(bs));
105 inline void Sk4x4f::transpose(uint8_t bs[16]) const {
110 vst1q_u8(bs, vreinterpretq_u8_u32(vorrq_u32(A, vorrq_u32(B, vorrq_u32(G, R)))));
128 inline Sk4x4f Sk4x4f::Transpose(const uint8_t bs[16]) {
130 { (float)bs[0], (float)bs[4], (float)bs[ 8], (float)bs[12] }
    [all...]
  /external/libvpx/libvpx/vp9/common/
vp9_reconintra.c 124 const int bs = 4 << tx_size; local
157 if (y0 + bs <= frame_height) {
158 for (i = 0; i < bs; ++i) left_col[i] = ref[i * ref_stride - 1];
163 for (; i < bs; ++i)
168 for (i = 0; i < bs; ++i) left_col[i] = ref[i * ref_stride - 1];
171 vpx_memset16(left_col, base + 1, bs);
181 if (x0 + bs <= frame_width) {
182 memcpy(above_row, above_ref, bs * sizeof(above_row[0]));
186 vpx_memset16(above_row + r, above_row[r - 1], x0 + bs - frame_width);
190 if (bs == 4 && right_available && left_available)
274 const int bs = 4 << tx_size; local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
BitSetTest.java 28 BitSet bs = new BitSet(); local
29 assertEquals("{}", bs.toString());
30 bs.set(2);
31 assertEquals("{2}", bs.toString());
32 bs.set(4);
33 bs.set(10);
34 assertEquals("{2, 4, 10}", bs.toString());
53 private static void assertBitSet(BitSet bs, long[] longs, String s) {
55 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i))
162 BitSet bs = new BitSet(); local
181 BitSet bs; local
259 BitSet bs = BitSet.valueOf(bytes); local
    [all...]

Completed in 2656 milliseconds

1 2 3 4 5 6 7 8 91011>>