/external/e2fsprogs/lib/ext2fs/ |
link.c | 22 ext2_filsys fs; member in struct:link_struct 46 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len); 59 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); 75 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent); 82 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); 111 errcode_t ext2fs_link(ext2_filsys fs, ext2_ino_t dir, const char *name, 118 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 120 if (!(fs->flags & EXT2_FLAG_RW)) 123 ls.fs = fs; [all...] |
dblist.c | 30 errcode_t ext2fs_get_num_dirs(ext2_filsys fs, ext2_ino_t *ret_num_dirs) 35 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); 38 max_dirs = fs->super->s_inodes_per_group; 39 for (i = 0; i < fs->group_desc_count; i++) { 40 if (fs->group_desc[i].bg_used_dirs_count > max_dirs) 43 num_dirs += fs->group_desc[i].bg_used_dirs_count; 45 if (num_dirs > fs->super->s_inodes_count) 46 num_dirs = fs->super->s_inodes_count; 57 static errcode_t make_dblist(ext2_filsys fs, ext2_ino_t size, ext2_ino_t count, 65 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS) [all...] |
block.c | 22 ext2_filsys fs; member in struct:block_context 23 int (*func)(ext2_filsys fs, 66 limit = ctx->fs->blocksize >> 2; 69 ret = (*ctx->func)(ctx->fs, ind_block, 77 if (*ind_block >= ctx->fs->super->s_blocks_count || 78 *ind_block < ctx->fs->super->s_first_data_block) { 83 ctx->errcode = ext2fs_read_ind_block(ctx->fs, *ind_block, 94 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, 108 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, 121 ctx->errcode = ext2fs_write_ind_block(ctx->fs, *ind_block [all...] |
dblist_dir.c | 23 static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry *db_info, 48 retval = ext2fs_get_mem(dblist->fs->blocksize, &ctx.buf); 65 static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry *db_info, 75 ret = ext2fs_process_dir_block(fs, &db_info->blk,
|
/external/webrtc/src/common_audio/vad/main/test/unit_test/ |
unit_test.cc | 48 int fs[3] = {8000, 16000, 32000}; local 71 EXPECT_EQ(-1, WebRtcVad_Process(NULL, fs[0], speech, framelen[0][0])); 77 EXPECT_EQ(-1, WebRtcVad_Process(vad_inst, fs[0], speech, framelen[0][0])); 92 EXPECT_EQ(-1, WebRtcVad_Process(vad_inst, fs[0], NULL, framelen[0][0])); 94 EXPECT_EQ(-1, WebRtcVad_Process(vad_inst, fs[0], speech, framelen[1][1])); 95 EXPECT_EQ(WebRtcVad_Process(vad_inst, fs[0], zeros, framelen[0][0]), 0); 96 for (i = 0; i < sizeof(fs)/sizeof(fs[0]); i++) { 100 // printf("%d\n", WebRtcVad_Process(vad_inst, fs[i], speech, framelen[i][j])); 103 EXPECT_EQ(WebRtcVad_Process(vad_inst, fs[i], speech, framelen[i][j]), 1) [all...] |
/external/e2fsprogs/misc/ |
mke2fs.c | 119 "[-r fs-revision] [-E extended-option[,...]]\n" 120 "\t[-T fs-type] [-U UUID] [-jnqvFKSV] device [blocks-count]\n"), 171 static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) 180 static void read_bb_file(ext2_filsys fs, badblocks_list *bb_list, 192 retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block); 205 static void test_disk(ext2_filsys fs, badblocks_list *bb_list) 211 sprintf(buf, "badblocks -b %d -X %s%s%s %u", fs->blocksize, 213 fs->device_name, fs->super->s_blocks_count-1); 222 retval = ext2fs_read_bb_FILE(fs, f, bb_list, invalid_block) 1978 ext2_filsys fs; local [all...] |
/external/e2fsprogs/e2fsck/ |
pass2.c | 63 static int check_dir_block(ext2_filsys fs, 83 struct ext2_super_block *sb = ctx->fs->super; 85 ext2_filsys fs = ctx->fs; local 98 init_resource_track(&rtrack, ctx->fs->io); 113 cd.pctx.errcode = ext2fs_create_icount2(fs, 122 buf = (char *) e2fsck_allocate_memory(ctx, 2*fs->blocksize, 135 cd.max = ext2fs_dblist_count(fs->dblist); 140 if (fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_DIR_INDEX) 141 ext2fs_dblist_sort(fs->dblist, special_dir_block_cmp) 1174 ext2_filsys fs = ctx->fs; local 1246 ext2_filsys fs = ctx->fs; local 1397 ext2_filsys fs = ctx->fs; local [all...] |
journal.c | 7 * Parts of the code are based on fs/jfs/journal.c by Stephen C. Tweedie 61 retval= ext2fs_bmap(inode->i_ctx->fs, inode->i_ino, 71 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize - 87 bh->b_io = kdev->k_ctx->fs->io; 101 io = kdev->k_ctx->fs->io; 190 ctx->fs->super->s_feature_incompat &= ~EXT3_FEATURE_INCOMPAT_RECOVER; 194 ctx->fs->super->s_state &= ~EXT2_VALID_FS; 195 ext2fs_mark_super_dirty(ctx->fs); 205 static int process_journal_block(ext2_filsys fs, 217 if (blk < fs->super->s_first_data_block | 913 ext2_filsys fs = ctx->fs; local [all...] |
emptydir.c | 52 retval = ext2fs_init_dblist(ctx->fs, &edi->empty_dblist); 56 retval = ext2fs_allocate_block_bitmap(ctx->fs, _("empty dirblocks"), 61 retval = ext2fs_allocate_inode_bitmap(ctx->fs, _("empty dir map"), 119 int empty_pass1(ext2_filsys fs, blk_t *block_nr, e2_blkcnt_t blockcnt, 130 retval = ext2fs_bmap(fs, edi->ino, &edi->inode, 148 static int fix_directory(ext2_filsys fs, 160 retval = ext2fs_read_inode(fs, db->ino, &edi->inode); 164 retval = ext2fs_block_iterate2(fs, db->ino, 0, edi->block_buf, 170 edi->inode.i_size -= edi->freed_blocks * fs->blocksize; 171 ext2fs_iblk_add_blocks(fs, &edi->inode, edi->freed_blocks) [all...] |
rehash.c | 80 static int fill_dir_block(ext2_filsys fs, 97 offset = blockcnt * fs->blocksize; 98 if (offset + fs->blocksize > fd->inode->i_size) { 104 memset(dir, 0, fs->blocksize); 106 (void) ext2fs_set_rec_len(fs, fs->blocksize, dirent); 108 fd->err = ext2fs_read_dir_block(fs, *block_nr, dir); 112 hash_alg = fs->super->s_def_hash_version; 114 (fs->super->s_flags & EXT2_FLAGS_UNSIGNED_HASH)) 118 while (dir_offset < fs->blocksize) 401 ext2_filsys fs = ctx->fs; local 704 ext2_filsys fs = ctx->fs; local [all...] |
unix.c | 106 ext2_filsys fs = ctx->fs; local 117 inodes = fs->super->s_inodes_count; 118 inodes_used = (fs->super->s_inodes_count - 119 fs->super->s_free_inodes_count); 120 blocks = fs->super->s_blocks_count; 121 blocks_used = (fs->super->s_blocks_count - 122 fs->super->s_free_blocks_count); 292 ext2_filsys fs = ctx->fs; local 950 ext2_filsys fs = 0; local [all...] |
message.c | 61 * @C conflicts with some other fs block 116 N_("Cconflicts with some other fs @b"), 194 static void print_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino) 204 retval = ext2fs_get_pathname(fs, dir, ino, &path); 261 static _INLINE_ void expand_inode_expression(ext2_filsys fs, char ch, 295 if (fs->super->s_feature_ro_compat & 357 static _INLINE_ void expand_dirent_expression(ext2_filsys fs, char ch, 377 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && 383 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); 399 static _INLINE_ void expand_percent_expression(ext2_filsys fs, char ch 521 ext2_filsys fs = ctx->fs; local [all...] |
/system/extras/fatblock/ |
read.c | 25 #include "fs.h" 134 static int extent_read(struct fs *fs, struct extent *e, char *buf, 137 assert(fs); 143 return buffer_read((char*)&fs->boot, sizeof(fs->boot), buf, 146 return buffer_read((char*)&fs->info, sizeof(fs->info), buf, 149 return buffer_read((char*)fs->fat, fs->fat_size, buf [all...] |
fatblock.c | 26 #include "fs.h" 29 static struct fs fs; variable in typeref:struct:fs 33 static int fs_import(struct fs *fs, 39 ret = fs_init(fs, cluster_size, data_size, total_size_out); 43 ret = import_tree(fs, "."); 57 result = fs_read(&fs, buf, offset, length); 173 ret = fs_import(&fs, 32768, 1048576LL * mb, &total_size);
|
/bionic/libc/kernel/arch-sh/asm/ |
sfp-machine.h | 37 #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) do { if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) { R##_s = Y##_s; _FP_FRAC_COPY_##wc(R,Y); } else { R##_s = X##_s; _FP_FRAC_COPY_##wc(R,X); } R##_c = FP_CLS_NAN; } while (0)
|
/external/opencv/cxcore/src/ |
cximage.cpp | 147 bool CvImage::read( CvFileStorage* fs, const char* mapname, const char* imgname ) 154 CvFileNode* mapnode = cvGetFileNodeByName( fs, 0, mapname ); 156 obj = cvReadByName( fs, mapnode, imgname ); 159 obj = cvReadByName( fs, 0, imgname ); 167 bool CvImage::read( CvFileStorage* fs, const char* seqname, int idx ) 172 cvGetFileNodeByName( fs, 0, seqname ) : cvGetRootFileNode(fs,0); 175 obj = cvRead( fs, (CvFileNode*)cvGetSeqElem( seqnode->data.seq, idx )); 205 void CvImage::write( CvFileStorage* fs, const char* imgname ) 208 cvWrite( fs, imgname, image ) [all...] |
/frameworks/base/media/libstagefright/codecs/avc/common/src/ |
reflist.cpp | 42 if ((dpb->fs[i]->IsReference == 3) && (!dpb->fs[i]->IsLongTerm)) 45 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num) 47 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum - video->MaxFrameNum; 51 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum; 53 dpb->fs[i]->frame.PicNum = dpb->fs[i]->FrameNumWrap; 66 if ((dpb->fs[i]->IsReference == 3) && (!dpb->fs[i]->IsLongTerm) [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
test_result_writer.py | 117 fs = self._port._filesystem 118 output_filename = fs.join(self._root_output_dir, self._testname) 119 self._port.maybe_make_directory(fs.dirname(output_filename)) 133 fs = self._port._filesystem 134 output_filename = fs.join(self._root_output_dir, self._testname) 135 return fs.splitext(output_filename)[0] + modifier 154 fs = self._port._filesystem 156 fs.write_binary_file(actual_filename, output) 158 fs.write_binary_file(expected_filename, expected) 161 fs = self._port._filesyste [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
test_files_unittest.py | 64 fs = port._filesystem 65 self.assertTrue(test_files._is_test_file(fs, '', 'foo.html')) 66 self.assertTrue(test_files._is_test_file(fs, '', 'foo.shtml')) 67 self.assertFalse(test_files._is_test_file(fs, '', 'foo.png')) 68 self.assertFalse(test_files._is_test_file(fs, '', 'foo-expected.html')) 69 self.assertFalse(test_files._is_test_file(fs, '', 'foo-expected-mismatch.html'))
|
/external/llvm/unittests/Support/ |
Path.cpp | 129 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); 153 fs::unique_file("file-system-test-%%-%%-%%-%%/test-directory.anchor", fd, 164 ASSERT_NO_ERROR(fs::remove_all(TestDirectory.str(), removed)); 173 fs::unique_file("%%-%%-%%-%%.temp", FileDescriptor, TempPath)); 177 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); 183 ASSERT_NO_ERROR(fs::unique_file("%%-%%-%%-%%.temp", FD2, TempPath2)); 188 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); 192 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), 193 fs::copy_option::overwrite_if_exists)); 195 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)) [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldDecimalFormatSymbolsTest.java | 95 DecimalFormatSymbols fs = new DecimalFormatSymbols(Locale.US); local 96 DecimalFormatSymbols fsc = (DecimalFormatSymbols) fs.clone(); 97 assertEquals(fs.getCurrency(), fsc.getCurrency()); 100 fs = new DecimalFormatSymbols(); 101 DecimalFormatSymbols fsc2 = (DecimalFormatSymbols) (fs.clone()); 103 assertTrue("Object's clone isn't equal!", fs.equals(fsc2)); 109 fs.setNaN("not-a-number"); 110 assertTrue("Object's changed clone should not be equal!", !fs.equals(fsc2));
|
/external/opencv/ml/src/ |
mlnbayes.cpp | 397 void CvNormalBayesClassifier::write( CvFileStorage* fs, const char* name ) 407 cvStartWriteStruct( fs, name, CV_NODE_MAP, CV_TYPE_NAME_ML_NBAYES ); 409 CV_CALL( cvWriteInt( fs, "var_count", var_count )); 410 CV_CALL( cvWriteInt( fs, "var_all", var_all )); 413 CV_CALL( cvWrite( fs, "var_idx", var_idx )); 414 CV_CALL( cvWrite( fs, "cls_labels", cls_labels )); 416 CV_CALL( cvStartWriteStruct( fs, "count", CV_NODE_SEQ )); 418 CV_CALL( cvWrite( fs, NULL, count[i] )); 419 CV_CALL( cvEndWriteStruct( fs )); 421 CV_CALL( cvStartWriteStruct( fs, "sum", CV_NODE_SEQ )) [all...] |
/external/webrtc/src/modules/audio_processing/ns/main/interface/ |
noise_suppression.h | 70 * - fs : sampling frequency 78 int WebRtcNs_Init(NsHandle *NS_inst, WebRtc_UWord32 fs); 104 * - fs : sampling frequency
|
noise_suppression_x.h | 70 * - fs : sampling frequency 78 int WebRtcNsx_Init(NsxHandle *nsxInst, WebRtc_UWord32 fs); 103 * - fs : sampling frequency
|
/system/core/libpixelflinger/codeflinger/ |
blending.cpp | 72 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; local 74 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) 75 fs = GGL_ONE; 76 const int blending = blending_codes(fs, fd); 101 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) || 102 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) || 103 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) || 104 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA); 107 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) || 108 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) || [all...] |