/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
BitSetTest.java | 33 BitSet bs = new BitSet(); local 36 assertEquals("Created BitSet of incorrect size", 64, bs.size()); 37 assertEquals("New BitSet had invalid string representation", "{}", bs 46 BitSet bs = new BitSet(128); local 49 assertEquals("Created BitSet of incorrect size", 128, bs.size()); 51 + bs.toString(), "{}", bs.toString()); 55 bs = new BitSet(89); 56 assertEquals("Failed to round BitSet element size", 128, bs.size()); 59 bs = new BitSet(-9) 78 BitSet bs; local 89 BitSet bs; local 112 BitSet bs = (BitSet) eightbs.clone(); local 131 BitSet bs = new BitSet(3400); local 165 BitSet bs = new BitSet(0); local 214 BitSet bs = new BitSet(16); local 404 BitSet bs = new BitSet(); local 452 BitSet bs, resultbs, correctbs; local 587 BitSet bs = new BitSet(); local 668 BitSet bs = new BitSet(16); local 810 BitSet bs = new BitSet(); local 856 BitSet bs = new BitSet(); local 873 BitSet bs = new BitSet(16); local 1044 BitSet bs = new BitSet(500); local 1120 BitSet bs = new BitSet(128); local 1151 BitSet bs = (BitSet) eightbs.clone(); local 1186 BitSet bs = new BitSet(128); local 1210 BitSet bs = (BitSet) eightbs.clone(); local 1259 BitSet bs = new BitSet(); local 1276 BitSet bs = new BitSet(500); local 1358 BitSet bs = new BitSet(500); local 1449 BitSet bs = new BitSet(500); local 1481 BitSet bs = new BitSet(500); local 1510 BitSet bs = new BitSet(500); local 1523 BitSet bs = new BitSet(500); local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
BitSetTest.java | 27 BitSet bs = new BitSet(); local 29 assertEquals("Created BitSet of incorrect size", 64, bs.size()); 30 assertEquals("New BitSet had invalid string representation", "{}", bs.toString()); 34 BitSet bs = new BitSet(128); local 37 assertEquals("Created BitSet of incorrect size", 128, bs.size()); 39 + bs.toString(), bs.toString().equals("{}")); 43 bs = new BitSet(89); 44 assertEquals("Failed to round BitSet element size", 128, bs.size()); 47 bs = new BitSet(-9) 54 BitSet bs = (BitSet) eightbs.clone(); local 60 BitSet bs; local 76 BitSet bs = (BitSet) eightbs.clone(); local 92 BitSet bs = new BitSet(3400); local 118 BitSet bs = new BitSet(0); local 156 BitSet bs = new BitSet(16); local 322 BitSet bs = new BitSet(); local 359 BitSet bs, resultbs, correctbs; local 507 BitSet bs = new BitSet(); local 559 BitSet bs = new BitSet(16); local 694 BitSet bs = new BitSet(); local 771 BitSet bs = new BitSet(16); local 922 BitSet bs = new BitSet(500); local 976 BitSet bs = new BitSet(128); local 994 BitSet bs = (BitSet) eightbs.clone(); local 1009 BitSet bs = new BitSet(128); local 1026 BitSet bs = (BitSet) eightbs.clone(); local 1059 BitSet bs = new BitSet(); local 1072 BitSet bs = new BitSet(500); local 1124 BitSet bs = new BitSet(500); local 1184 BitSet bs = new BitSet(500); local 1212 BitSet bs = new BitSet(500); local [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/util/ |
Pack.java | 5 public static int bigEndianToInt(byte[] bs, int off) 7 int n = bs[ off] << 24; 8 n |= (bs[++off] & 0xff) << 16; 9 n |= (bs[++off] & 0xff) << 8; 10 n |= (bs[++off] & 0xff); 14 public static void intToBigEndian(int n, byte[] bs, int off) 16 bs[ off] = (byte)(n >>> 24); 17 bs[++off] = (byte)(n >>> 16); 18 bs[++off] = (byte)(n >>> 8); 19 bs[++off] = (byte)(n ) [all...] |
/external/qemu/ |
block.h | 69 void bdrv_delete(BlockDriverState *bs); 71 int bdrv_open(BlockDriverState *bs, const char *filename, int flags, 73 void bdrv_close(BlockDriverState *bs); 74 int bdrv_attach(BlockDriverState *bs, DeviceState *qdev); 75 void bdrv_detach(BlockDriverState *bs, DeviceState *qdev); 76 DeviceState *bdrv_get_attached(BlockDriverState *bs); 77 int bdrv_read(BlockDriverState *bs, int64_t sector_num, 79 int bdrv_write(BlockDriverState *bs, int64_t sector_num, 81 int bdrv_pread(BlockDriverState *bs, int64_t offset, 83 int bdrv_pwrite(BlockDriverState *bs, int64_t offset [all...] |
block.c | 45 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs, 48 static BlockDriverAIOCB *bdrv_aio_writev_em(BlockDriverState *bs, 51 static BlockDriverAIOCB *bdrv_aio_flush_em(BlockDriverState *bs, 53 static BlockDriverAIOCB *bdrv_aio_noop_em(BlockDriverState *bs, 55 static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num, 57 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num, 157 BlockDriverState *bs; local 159 bs = qemu_mallocz(sizeof(BlockDriverState)); 160 pstrcpy(bs->device_name, sizeof(bs->device_name), device_name) 338 BlockDriverState *bs; local 499 BlockDriverState *bs; local 680 BlockDriverState *bs; local 847 BlockDriverState *bs; local 1422 BlockDriverState *bs; local 1442 BlockDriverState *bs; local 1466 BlockDriverState *bs; local 1587 BlockDriverState *bs; local 1694 BlockDriverState *bs; local 1820 BlockDriverState *bs; local [all...] |
block_int.h | 54 int (*bdrv_open)(BlockDriverState *bs, int flags); 55 int (*bdrv_file_open)(BlockDriverState *bs, const char *filename, int flags); 56 int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num, 58 int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num, 60 void (*bdrv_close)(BlockDriverState *bs); 62 void (*bdrv_flush)(BlockDriverState *bs); 63 int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num, 65 int (*bdrv_set_key)(BlockDriverState *bs, const char *key); 66 int (*bdrv_make_empty)(BlockDriverState *bs); 68 BlockDriverAIOCB *(*bdrv_aio_readv)(BlockDriverState *bs, 205 BlockDriverState *bs; member in struct:BlockDriverAIOCB 224 BlockDriverState *bs; member in struct:BlockConf [all...] |
/external/clang/test/CodeGenCXX/ |
default-arguments.cpp | 37 B bs[2]; local 41 B bs[2]; member in struct:C 63 B *bs = new B[2]; local 64 delete bs;
|
/external/qemu/block/ |
raw.c | 6 static int raw_open(BlockDriverState *bs, int flags) 8 bs->sg = bs->file->sg; 15 static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf) 35 static int check_write_unsafe(BlockDriverState *bs, int64_t sector_num, 40 if (!bs->probed) { 45 return check_for_block_signature(bs, buf); 51 static int raw_read(BlockDriverState *bs, int64_t sector_num, 54 return bdrv_read(bs->file, sector_num, buf, nb_sectors); 57 static int raw_write_scrubbed_bootsect(BlockDriverState *bs, [all...] |
raw-posix.c | 123 static int fd_open(BlockDriverState *bs); 124 static int64_t raw_getlength(BlockDriverState *bs); 127 static int cdrom_reopen(BlockDriverState *bs); 130 static int raw_open_common(BlockDriverState *bs, const char *filename, 133 BDRVRawState *s = bs->opaque; 163 s->aligned_buf = qemu_blockalign(bs, ALIGNED_BUFFER_SIZE); 201 static int raw_open(BlockDriverState *bs, const char *filename, int flags) 203 BDRVRawState *s = bs->opaque; 206 return raw_open_common(bs, filename, flags, 0); 233 static int raw_pread_aligned(BlockDriverState *bs, int64_t offset [all...] |
cow.c | 60 static int cow_open(BlockDriverState *bs, int flags) 62 BDRVCowState *s = bs->opaque; 68 if (bdrv_pread(bs->file, 0, &cow_header, sizeof(cow_header)) != 80 bs->total_sectors = size / 512; 82 pstrcpy(bs->backing_file, sizeof(bs->backing_file), 85 bitmap_size = ((bs->total_sectors + 7) >> 3) + sizeof(cow_header); 96 static inline int cow_set_bit(BlockDriverState *bs, int64_t bitnum) 102 ret = bdrv_pread(bs->file, offset, &bitmap, sizeof(bitmap)); 109 ret = bdrv_pwrite_sync(bs->file, offset, &bitmap, sizeof(bitmap)) [all...] |
parallels.c | 70 static int parallels_open(BlockDriverState *bs, int flags) 72 BDRVParallelsState *s = bs->opaque; 76 bs->read_only = 1; // no write support yet 78 if (bdrv_pread(bs->file, 0, &ph, sizeof(ph)) != sizeof(ph)) 86 bs->total_sectors = le32_to_cpu(ph.nb_sectors); 92 if (bdrv_pread(bs->file, 64, s->catalog_bitmap, s->catalog_size * 4) != 105 static int64_t seek_to_sector(BlockDriverState *bs, int64_t sector_num) 107 BDRVParallelsState *s = bs->opaque; 119 static int parallels_read(BlockDriverState *bs, int64_t sector_num, 123 int64_t position = seek_to_sector(bs, sector_num) [all...] |
qcow2-snapshot.c | 49 void qcow2_free_snapshots(BlockDriverState *bs) 51 BDRVQcowState *s = bs->opaque; 63 int qcow2_read_snapshots(BlockDriverState *bs) 65 BDRVQcowState *s = bs->opaque; 82 if (bdrv_pread(bs->file, offset, &h, sizeof(h)) != sizeof(h)) 100 if (bdrv_pread(bs->file, offset, sn->id_str, id_str_size) != id_str_size) 106 if (bdrv_pread(bs->file, offset, sn->name, name_size) != name_size) 114 qcow2_free_snapshots(bs); 119 static int qcow_write_snapshots(BlockDriverState *bs) 121 BDRVQcowState *s = bs->opaque [all...] |
qcow2-refcount.c | 29 static int64_t alloc_clusters_noref(BlockDriverState *bs, int64_t size); 30 static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs, 37 static int write_refcount_block(BlockDriverState *bs) 39 BDRVQcowState *s = bs->opaque; 46 BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_UPDATE); 47 if (bdrv_pwrite_sync(bs->file, s->refcount_block_cache_offset, 59 int qcow2_refcount_init(BlockDriverState *bs) 61 BDRVQcowState *s = bs->opaque; 68 BLKDBG_EVENT(bs->file, BLKDBG_REFTABLE_LOAD); 69 ret = bdrv_pread(bs->file, s->refcount_table_offset [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
BitSetTest.java | 27 BitSet bs = new BitSet(); local 28 assertEquals("{}", bs.toString()); 29 bs.set(2); 30 assertEquals("{2}", bs.toString()); 31 bs.set(4); 32 bs.set(10); 33 assertEquals("{2, 4, 10}", bs.toString()); 36 private static void assertBitSet(BitSet bs, long[] longs, String s) { 38 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs.get(i)) 145 BitSet bs = new BitSet(); local 164 BitSet bs; local [all...] |
/frameworks/base/cmds/servicemanager/ |
bctest.c | 10 void *svcmgr_lookup(struct binder_state *bs, void *target, const char *name) 21 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) 27 binder_acquire(bs, ptr); 29 binder_done(bs, &msg, &reply); 34 int svcmgr_publish(struct binder_state *bs, void *target, const char *name, void *ptr) 46 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE)) 51 binder_done(bs, &msg, &reply); 61 struct binder_state *bs; local 64 bs = binder_open(128*1024); 70 void *ptr = svcmgr_lookup(bs, svcmgr, "alt_svc_mgr") [all...] |
binder.h | 50 void (*func)(struct binder_state *bs, void *ptr); 66 typedef int (*binder_handler)(struct binder_state *bs, 72 void binder_close(struct binder_state *bs); 77 int binder_call(struct binder_state *bs, 86 void binder_done(struct binder_state *bs, 90 void binder_acquire(struct binder_state *bs, void *ptr); 91 void binder_release(struct binder_state *bs, void *ptr); 93 void binder_link_to_death(struct binder_state *bs, void *ptr, struct binder_death *death); 95 void binder_loop(struct binder_state *bs, binder_handler func); 97 int binder_become_context_manager(struct binder_state *bs); [all...] |
/external/libvpx/vpx_mem/memory_manager/ |
hmm_shrink.c | 43 U(size_bau) bs = BLOCK_BAUS(last_block); 52 (PREV_BLOCK_BAUS(last_block) && (n_baus_to_shrink == bs)) || 53 (n_baus_to_shrink <= (U(size_bau))(bs - MIN_BLOCK_BAUS)); 58 (U(size_bau))(bs + DUMMY_END_BLOCK_BAUS)))) 64 bs -= n_baus_to_shrink; 66 if (bs) 71 last_block->block_size = bs; 76 (head_record *) BAUS_FORWARD(last_block, bs); 77 dummy_end_block->previous_block_size = bs;
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/io/ |
Streams.java | 15 byte[] bs = new byte[BUFFER_SIZE]; 16 while (inStr.read(bs, 0, bs.length) >= 0) 62 byte[] bs = new byte[BUFFER_SIZE]; 64 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) 66 outStr.write(bs, 0, numRead); 74 byte[] bs = new byte[BUFFER_SIZE]; 76 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0 [all...] |
/external/openssl/crypto/asn1/ |
t_bitst.c | 64 int ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, 71 if(ASN1_BIT_STRING_get_bit(bs, bnam->bitnum)) { 81 int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, 87 if(bs) { 88 if(!ASN1_BIT_STRING_set_bit(bs, bitnum, value))
|
/packages/experimental/procstatlog/ |
diskload.sh | 22 dd if=/dev/zero bs=65536 of=$1.0 & pid0=$!; echo start $pid0; sleep 2 23 dd if=/dev/zero bs=65536 of=$1.1 & pid1=$!; echo start $pid1; sleep 2 24 dd if=/dev/zero bs=65536 of=$1.2 & pid2=$!; echo start $pid2; sleep 2 25 dd if=/dev/zero bs=65536 of=$1.3 & pid3=$!; echo start $pid3; sleep 2 26 dd if=/dev/zero bs=65536 of=$1.4 & pid4=$!; echo start $pid4; sleep 2 27 dd if=/dev/zero bs=65536 of=$1.5 & pid5=$!; echo start $pid5; sleep 2 28 dd if=/dev/zero bs=65536 of=$1.6 & pid6=$!; echo start $pid6; sleep 2 29 dd if=/dev/zero bs=65536 of=$1.7 & pid7=$!; echo start $pid7; sleep 2 30 dd if=/dev/zero bs=65536 of=$1.8 & pid8=$!; echo start $pid8; sleep 2 31 dd if=/dev/zero bs=65536 of=$1.9 & pid9=$!; echo start $pid9; sleep [all...] |
/external/bzip2/ |
bzip2recover.c | 156 BitStream *bs = malloc ( sizeof(BitStream) ); local 157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); 158 bs->handle = stream; 159 bs->buffer = 0; 160 bs->buffLive = 0; 161 bs->mode = 'r'; 162 return bs; 169 BitStream *bs = malloc ( sizeof(BitStream) ); local 170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); 171 bs->handle = stream [all...] |
/external/e2fsprogs/util/ |
copy_sparse.c | 93 long lb, i, fd, ofd, bs, block, numblocks; local 115 if (ioctl(fd, FIGETBSZ, &bs) < 0) { 120 if (bs < 0) { 121 printf("%s: Invalid block size: %ld\n", src, bs); 125 printf("Blocksize of file %s is %ld\n", src, bs); 126 numblocks = (fileinfo.st_size + (bs-1)) / bs; 132 bs = 1024; 141 buf = malloc(bs); 152 should_be = ((off64_t) lb) * bs; [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
ArrayIndexOutOfBoundsExceptionTest.java | 23 byte[] bs = new byte[1]; 25 bs[2] = 0; 33 byte[] bs = new byte[1]; 35 byte b = bs[2];
|
/external/openssl/crypto/x509v3/ |
v3_bitst.c | 109 ASN1_BIT_STRING *bs; local 112 if(!(bs = M_ASN1_BIT_STRING_new())) { 121 if(!ASN1_BIT_STRING_set_bit(bs, bnam->bitnum, 1)) { 124 M_ASN1_BIT_STRING_free(bs); 134 M_ASN1_BIT_STRING_free(bs); 138 return bs;
|
/system/extras/fatblock/ |
fs.c | 165 struct fat_boot_sector *bs; local 184 bs = &fs->boot; 186 strpadcpy(bs->name, "FATBLOCK", ' ', sizeof(bs->name)); 187 bs->sector_size = htole16(sector_size); 188 bs->sectors_per_cluster = sectors_per_cluster; 189 bs->reserved_sectors = htole16(reserved_sectors); 190 bs->fats = 1; 191 bs->media_desc = FAT_MEDIA_DESC_FIXED; 193 bs->sectors_per_track = htole16(42) [all...] |