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

1 2 3 4 5 6 7 8

  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
BitSetTest.java 32 BitSet bs = new BitSet(); local
33 assertEquals("Create BitSet of incorrect size", 64, bs.size());
35 bs.toString());
42 BitSet bs = new BitSet(128); local
43 assertEquals("Create BitSet of incorrect size", 128, bs.size());
45 + bs.toString(), "{}", bs.toString());
47 bs = new BitSet(89);
48 assertEquals("Failed to round BitSet element size", 128, bs.size());
51 bs = new BitSet(-9)
62 BitSet bs; local
71 BitSet bs; local
93 BitSet bs = (BitSet) eightbs.clone(); local
112 BitSet bs = new BitSet(3400); local
145 BitSet bs = new BitSet(0); local
187 BitSet bs = new BitSet(16); local
364 BitSet bs = new BitSet(); local
406 BitSet bs, resultbs, correctbs; local
541 BitSet bs = new BitSet(); local
622 BitSet bs = new BitSet(16); local
764 BitSet bs = new BitSet(); local
819 BitSet bs = new BitSet(16); local
955 BitSet bs = new BitSet(500); local
1031 BitSet bs = new BitSet(128); local
1053 BitSet bs = (BitSet) eightbs.clone(); local
1072 BitSet bs = new BitSet(128); local
1096 BitSet bs = (BitSet) eightbs.clone(); local
1145 BitSet bs = new BitSet(); local
1162 BitSet bs = new BitSet(500); local
1244 BitSet bs = new BitSet(500); local
1336 BitSet bs = new BitSet(500); local
1368 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...]
  /libcore/luni/src/test/java/tests/api/java/util/
BitSetTest.java 43 BitSet bs = new BitSet(); local
46 assertEquals("Created BitSet of incorrect size", 64, bs.size());
47 assertEquals("New BitSet had invalid string representation", "{}", bs
62 BitSet bs = new BitSet(128); local
65 assertEquals("Created BitSet of incorrect size", 128, bs.size());
67 + bs.toString(), bs.toString().equals("{}"));
71 bs = new BitSet(89);
72 assertEquals("Failed to round BitSet element size", 128, bs.size());
75 bs = new BitSet(-9)
94 BitSet bs; local
111 BitSet bs; local
140 BitSet bs = (BitSet) eightbs.clone(); local
166 BitSet bs = new BitSet(3400); local
206 BitSet bs = new BitSet(0); local
224 BitSet bs = new BitSet(16); local
367 BitSet bs = new BitSet(); local
400 BitSet bs, resultbs, correctbs; local
533 BitSet bs = new BitSet(); local
605 BitSet bs = new BitSet(16); local
763 BitSet bs = new BitSet(); local
843 BitSet bs = new BitSet(16); local
1029 BitSet bs = new BitSet(500); local
1111 BitSet bs = new BitSet(128); local
1138 BitSet bs = (BitSet) eightbs.clone(); local
1163 BitSet bs = new BitSet(128); local
1191 BitSet bs = (BitSet) eightbs.clone(); local
1255 BitSet bs = new BitSet(); local
1283 BitSet bs = new BitSet(500); local
1370 BitSet bs = new BitSet(500); local
1466 BitSet bs = new BitSet(500); local
1509 BitSet bs = new BitSet(500); local
    [all...]
  /external/qemu/
block.c 51 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs,
54 static BlockDriverAIOCB *bdrv_aio_writev_em(BlockDriverState *bs,
57 static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
59 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
148 BlockDriverState **pbs, *bs; local
150 bs = qemu_mallocz(sizeof(BlockDriverState));
151 pstrcpy(bs->device_name, sizeof(bs->device_name), device_name);
157 *pbs = bs;
159 return bs;
279 BlockDriverState *bs; local
310 BlockDriverState *bs; local
990 BlockDriverState *bs; local
1001 BlockDriverState *bs; local
1025 BlockDriverState *bs; local
1062 BlockDriverState *bs; local
1102 BlockDriverState *bs; local
    [all...]
block.h 56 void bdrv_delete(BlockDriverState *bs);
58 int bdrv_open(BlockDriverState *bs, const char *filename, int flags);
59 int bdrv_open2(BlockDriverState *bs, const char *filename, int flags,
61 void bdrv_close(BlockDriverState *bs);
62 int bdrv_check(BlockDriverState *bs);
63 int bdrv_read(BlockDriverState *bs, int64_t sector_num,
65 int bdrv_write(BlockDriverState *bs, int64_t sector_num,
67 int bdrv_pread(BlockDriverState *bs, int64_t offset,
69 int bdrv_pwrite(BlockDriverState *bs, int64_t offset,
71 int bdrv_truncate(BlockDriverState *bs, int64_t offset)
    [all...]
block_int.h 53 int (*bdrv_open)(BlockDriverState *bs, const char *filename, int flags);
54 int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
56 int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
58 void (*bdrv_close)(BlockDriverState *bs);
60 void (*bdrv_flush)(BlockDriverState *bs);
61 int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
63 int (*bdrv_set_key)(BlockDriverState *bs, const char *key);
64 int (*bdrv_make_empty)(BlockDriverState *bs);
66 BlockDriverAIOCB *(*bdrv_aio_readv)(BlockDriverState *bs,
69 BlockDriverAIOCB *(*bdrv_aio_writev)(BlockDriverState *bs,
166 BlockDriverState *bs; member in struct:BlockDriverAIOCB
    [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/qemu/block/
qcow2.h 151 int qcow2_backing_read1(BlockDriverState *bs,
155 int qcow2_refcount_init(BlockDriverState *bs);
156 void qcow2_refcount_close(BlockDriverState *bs);
158 int64_t qcow2_alloc_clusters(BlockDriverState *bs, int64_t size);
159 int64_t qcow2_alloc_bytes(BlockDriverState *bs, int size);
160 void qcow2_free_clusters(BlockDriverState *bs,
162 void qcow2_free_any_clusters(BlockDriverState *bs,
167 int qcow2_update_snapshot_refcount(BlockDriverState *bs,
170 int qcow2_check_refcounts(BlockDriverState *bs);
173 int qcow2_grow_l1_table(BlockDriverState *bs, int min_size)
    [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;
114 qcow2_free_snapshots(bs);
119 static int qcow_write_snapshots(BlockDriverState *bs)
121 BDRVQcowState *s = bs->opaque;
140 snapshots_offset = qcow2_alloc_clusters(bs, snapshots_size);
180 qcow2_free_clusters(bs, s->snapshots_offset, s->snapshots_size);
188 static void find_new_snapshot_id(BlockDriverState *bs,
    [all...]
raw-posix.c 119 static int fd_open(BlockDriverState *bs);
122 static int cdrom_reopen(BlockDriverState *bs);
125 static int raw_open_common(BlockDriverState *bs, const char *filename,
128 BDRVRawState *s = bs->opaque;
141 bs->read_only = 1;
162 s->aligned_buf = qemu_blockalign(bs, ALIGNED_BUFFER_SIZE);
172 static int raw_open(BlockDriverState *bs, const char *filename, int flags)
174 BDRVRawState *s = bs->opaque;
181 return raw_open_common(bs, filename, flags, open_flags);
208 static int raw_pread_aligned(BlockDriverState *bs, int64_t offset
    [all...]
nbd.c 42 static int nbd_open(BlockDriverState *bs, const char* filename, int flags)
44 BDRVNBDState *s = bs->opaque;
99 static int nbd_read(BlockDriverState *bs, int64_t sector_num,
102 BDRVNBDState *s = bs->opaque;
107 request.handle = (uint64_t)(intptr_t)bs;
129 static int nbd_write(BlockDriverState *bs, int64_t sector_num,
132 BDRVNBDState *s = bs->opaque;
137 request.handle = (uint64_t)(intptr_t)bs;
159 static void nbd_close(BlockDriverState *bs)
161 BDRVNBDState *s = bs->opaque
    [all...]
qcow2-refcount.c 29 static int64_t alloc_clusters_noref(BlockDriverState *bs, int64_t size);
30 static int update_refcount(BlockDriverState *bs,
37 int qcow2_refcount_init(BlockDriverState *bs)
39 BDRVQcowState *s = bs->opaque;
58 void qcow2_refcount_close(BlockDriverState *bs)
60 BDRVQcowState *s = bs->opaque;
66 static int load_refcount_block(BlockDriverState *bs,
69 BDRVQcowState *s = bs->opaque;
79 static int get_refcount(BlockDriverState *bs, int64_t cluster_index)
81 BDRVQcowState *s = bs->opaque
    [all...]
qcow2.c 75 * read qcow2 extension and fill bs
81 static int qcow_read_extensions(BlockDriverState *bs, uint64_t start_offset,
84 BDRVQcowState *s = bs->opaque;
118 if (ext.len >= sizeof(bs->backing_format)) {
121 ext.len, sizeof(bs->backing_format));
124 if (bdrv_pread(s->hd, offset , bs->backing_format,
127 bs->backing_format[ext.len] = '\0';
129 printf("Qcow2: Got format extension %s\n", bs->backing_format);
145 static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
147 BDRVQcowState *s = bs->opaque
393 BlockDriverState *bs = acb->common.bs; local
534 BlockDriverState *bs = acb->common.bs; local
    [all...]
qcow2-cluster.c 31 int qcow2_grow_l1_table(BlockDriverState *bs, int min_size)
33 BDRVQcowState *s = bs->opaque;
54 new_l1_table_offset = qcow2_alloc_clusters(bs, new_l1_size2);
71 qcow2_free_clusters(bs, s->l1_table_offset, s->l1_size * sizeof(uint64_t));
81 void qcow2_l2_cache_reset(BlockDriverState *bs)
83 BDRVQcowState *s = bs->opaque;
90 static inline int l2_cache_new_entry(BlockDriverState *bs)
92 BDRVQcowState *s = bs->opaque;
148 static uint64_t *l2_load(BlockDriverState *bs, uint64_t l2_offset)
150 BDRVQcowState *s = bs->opaque
    [all...]
cow.c 66 static int cow_open(BlockDriverState *bs, const char *filename, int flags)
68 BDRVCowState *s = bs->opaque;
92 bs->total_sectors = size / 512;
94 pstrcpy(bs->backing_file, sizeof(bs->backing_file),
98 s->cow_bitmap_size = ((bs->total_sectors + 7) >> 3) + sizeof(cow_header);
147 static int cow_is_allocated(BlockDriverState *bs, int64_t sector_num,
150 BDRVCowState *s = bs->opaque;
154 static int cow_read(BlockDriverState *bs, int64_t sector_num,
157 BDRVCowState *s = bs->opaque
    [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...]
  /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;
  /external/openssl/ssl/
bio_ssl.c 106 BIO_SSL *bs; local
108 bs=(BIO_SSL *)OPENSSL_malloc(sizeof(BIO_SSL));
109 if (bs == NULL)
114 memset(bs,0,sizeof(BIO_SSL));
116 bi->ptr=(char *)bs;
123 BIO_SSL *bs; local
126 bs=(BIO_SSL *)a->ptr;
127 if (bs->ssl != NULL) SSL_shutdown(bs->ssl);
130 if (a->init && (bs->ssl != NULL)
233 BIO_SSL *bs; local
299 BIO_SSL *bs; local
486 BIO_SSL *bs; local
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/gcm/
GCMUtil.java 7 static int[] asInts(byte[] bs)
10 us[0] = Pack.bigEndianToInt(bs, 0);
11 us[1] = Pack.bigEndianToInt(bs, 4);
12 us[2] = Pack.bigEndianToInt(bs, 8);
13 us[3] = Pack.bigEndianToInt(bs, 12);

Completed in 260 milliseconds

1 2 3 4 5 6 7 8