Searched defs:sb (Results 1 - 12 of 12) sorted by relevance
/system/core/libpixelflinger/tinyutils/ |
H A D | SharedBuffer.cpp | 22 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); local 23 if (sb) { 24 sb->mRefs = 1; 25 sb->mSize = size; 27 return sb; 43 SharedBuffer* sb = alloc(mSize); local 44 if (sb) { 45 memcpy(sb->data(), data(), size()); 48 return sb; 62 SharedBuffer* sb local 82 SharedBuffer* sb = alloc(new_size); local [all...] |
H A D | VectorImpl.cpp | 89 SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage)->attemptEdit(); local 90 if (sb == 0) { 91 sb = SharedBuffer::alloc(capacity() * mItemSize); 92 if (sb) { 93 _do_copy(sb->data(), mStorage, mCount); 95 mStorage = sb->data(); 250 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); 251 if (sb) { 252 void* array = sb->data(); 265 const SharedBuffer* sb 294 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); variable [all...] |
/system/core/toolbox/ |
H A D | insmod.c | 16 struct stat sb; local 26 if (fstat(fd, &sb) < 0) 28 size = sb.st_size;
|
H A D | dd.c | 289 struct stat sb; local 291 if (fstat(io->fd, &sb)) { 297 if (S_ISCHR(sb.st_mode))
|
H A D | newfs_msdos.c | 258 struct stat sb; local 383 if (fstat(fd, &sb)) 386 if (!S_ISREG(sb.st_mode)) 389 if (!S_ISCHR(sb.st_mode)) 393 check_mounted(fname, sb.st_mode); 504 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) 506 if (!S_ISREG(sb.st_mode) || sb.st_size % bpb.bps || 507 sb.st_size < bpb.bps || sb [all...] |
/system/core/libcutils/ |
H A D | dir_hash.c | 42 struct stat sb; local 52 if (stat(path, &sb) != 0) { 56 if (S_ISLNK(sb.st_mode)) { 68 } else if (S_ISREG(sb.st_mode)) { 92 if (S_ISLNK(sb.st_mode) || S_ISREG(sb.st_mode)) { 101 " %d 0%o %d %d", (int) sb.st_size, sb.st_mode, 102 (int) sb.st_uid, (int) sb 175 struct stat sb; local [all...] |
/system/core/nexus/ |
H A D | Controller.cpp | 124 struct stat sb; local 134 if (fstat(fd, &sb) < 0) 136 size = sb.st_size;
|
/system/extras/ext4_utils/ |
H A D | ext4_utils.c | 93 memcpy(buf + 1024, (u8*)aux_info.sb, 1024); 97 write_data_block(out, 1024, (u8*)aux_info.sb, 1024); 147 aux_info.sb = calloc(info.block_size, 1); 148 if (!aux_info.sb) 158 free(aux_info.sb); 166 struct ext4_super_block *sb = aux_info.sb; local 168 sb->s_inodes_count = info.inodes_per_group * aux_info.groups; 169 sb->s_blocks_count_lo = aux_info.len_blocks; 170 sb [all...] |
H A D | ext4_utils.h | 90 struct ext4_super_block *sb; member in struct:fs_aux_info
|
/system/media/opensles/libopensles/ |
H A D | android_SfPlayer.cpp | 159 struct stat sb; local 160 int ret = fstat(fd, &sb); 167 if (offset >= sb.st_size) { 174 mDataLocator.fdi.length = sb.st_size; 175 } else if (offset + length > sb.st_size) { 176 mDataLocator.fdi.length = sb.st_size - offset;
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 510 struct stat sb; local 518 typecheck(mtime, sb.st_mtime); 527 if (!stat(path, &sb)) { 528 if (sb.st_mtime < mtime) { 530 mtime = sb.st_mtime;
|
/system/vold/ |
H A D | VolumeManager.cpp | 294 struct asec_superblock sb; local 295 memset(&sb, 0, sizeof(sb)); 297 sb.magic = ASEC_SB_MAGIC; 298 sb.ver = ASEC_SB_VER; 357 sb.c_cipher = ASEC_SB_C_CIPHER_TWOFISH; 367 sb.c_cipher = ASEC_SB_C_CIPHER_NONE; 397 if (write(sbfd, &sb, sizeof(sb)) != sizeof(sb)) { 727 struct asec_superblock sb; local [all...] |
Completed in 106 milliseconds