Home
last modified time | relevance | path

Searched refs:Fs (Results 1 – 25 of 108) sorted by relevance

12345

/external/mtools/
Dmformat.c162 static int comp_fat_bits(Fs_t *Fs, int estimate, in comp_fat_bits() argument
170 TOTAL_DISK_SIZE((bits), Fs->sector_size, (clusters), \ in comp_fat_bits()
171 Fs->num_fat, MAX_BYTES_PER_CLUSTER/Fs->sector_size) in comp_fat_bits()
197 min_fat16_size = DISK_SIZE(16, Fs->sector_size, FAT12, in comp_fat_bits()
198 Fs->num_fat, 1); in comp_fat_bits()
201 else if(Fs->cluster_size == 0 && in comp_fat_bits()
230 static void calc_fat_bits2(Fs_t *Fs, unsigned long tot_sectors, int fat_bits, in calc_fat_bits2() argument
240 rem_sect = tot_sectors - Fs->dir_len - Fs->fat_start; in calc_fat_bits2()
245 DISK_SIZE( (bits), Fs->sector_size, (clusters), \ in calc_fat_bits2()
246 Fs->num_fat, Fs->cluster_size) in calc_fat_bits2()
[all …]
Dmbadblocks.c50 static void mark(Fs_t *Fs, long offset, unsigned int badClus) { in mark() argument
51 unsigned int old = Fs->fat_decode((Fs_t*)Fs, offset); in mark()
53 fatEncode((Fs_t*)Fs, offset, badClus); in mark()
73 static int scan(Fs_t *Fs, Stream_t *dev, in scan() argument
81 if(Fs->fat_decode((Fs_t*)Fs, cluster)) in scan()
84 start = (cluster - 2) * Fs->cluster_size + Fs->clus_start; in scan()
85 pos = sectorsToBytes((Stream_t*)Fs, start); in scan()
106 fatEncode((Fs_t*)Fs, cluster, badClus); in scan()
119 Fs_t *Fs; in mbadblocks() local
171 Fs = (Fs_t *)GetFs(Dir); in mbadblocks()
[all …]
Dfile.c30 struct Fs_t *Fs; /* Filesystem that this fat file belongs to */ member
68 return getUnbufferedFile(Stream)->Fs; in getFs()
87 Fs_t *Fs = This->Fs; in recalcPreallocSize() local
99 clus_size = Fs->cluster_size * Fs->sector_size; in recalcPreallocSize()
106 r = fsPreallocateClusters(Fs, neededPrealloc - This->preallocatedClusters); in recalcPreallocSize()
204 n = fatDecode(This->Fs, n); in printFat()
208 } while (n <= This->Fs->last_fat && n != 1); in printFat()
228 clusSize = This->Fs->cluster_size * This->Fs->sector_size; in printFatWithOffset()
232 n = fatDecode(This->Fs, n); in printFatWithOffset()
236 if(n > This->Fs->last_fat) in printFatWithOffset()
[all …]
Dmdoctorfat.c41 Fs_t *Fs; member
46 Fs_t *Fs = getFs(mp->File); in dos_doctorfat() local
57 arg->Fs = Fs; in dos_doctorfat()
171 arg.Fs->fat_encode(arg.Fs, j+offset, arg.Fs->last_fat ^ 6 ^ 8); in mdoctorfat()
174 arg.Fs->fat_encode(arg.Fs, address, j+offset); in mdoctorfat()
182 arg.Fs->fat_encode(arg.Fs, address, arg.Fs->end_fat); in mdoctorfat()
Dstreamcache.c59 Stream_t *Fs; in open_root_dir() local
67 Fs = fss[drive]; in open_root_dir()
69 Fs = fs_init(drive, flags, isRop); in open_root_dir()
70 if (!Fs){ in open_root_dir()
75 fss[drive] = Fs; in open_root_dir()
78 return OpenRoot(Fs); in open_root_dir()
DfsP.h84 void set_fat12(Fs_t *Fs);
85 void set_fat16(Fs_t *Fs);
86 void set_fat32(Fs_t *Fs);
87 unsigned int get_next_free_cluster(Fs_t *Fs, unsigned int last);
97 int zero_fat(Fs_t *Fs, int media_descriptor);
99 int fsPreallocateClusters(Fs_t *Fs, long);
Dinit.c112 Stream_t *GetFs(Stream_t *Fs) in GetFs() argument
114 while(Fs && Fs->Class != &FsClass) in GetFs()
115 Fs = Fs->Next; in GetFs()
116 return Fs; in GetFs()
433 int fsPreallocateClusters(Fs_t *Fs, long size) in fsPreallocateClusters() argument
435 if(size > 0 && getfreeMinClusters((Stream_t *)Fs, size) != 1) in fsPreallocateClusters()
438 Fs->preallocatedClusters += size; in fsPreallocateClusters()
/external/libopus/celt/dump_modes/
Ddump_modes.c61 fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts); in dump_modes()
80 standard = (mode->Fs == 400*(opus_int32)mode->shortMdctSize); in dump_modes()
81 framerate = mode->Fs/mode->shortMdctSize; in dump_modes()
85 fprintf(file, "#ifndef DEF_EBANDS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
86 fprintf(file, "#define DEF_EBANDS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
87 …fprintf (file, "static const opus_int16 eBands%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands… in dump_modes()
106 fprintf(file, "#ifndef DEF_ALLOC_VECTORS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
107 fprintf(file, "#define DEF_ALLOC_VECTORS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
108 …fprintf (file, "static const unsigned char allocVectors%d_%d[%d] = {\n", mode->Fs, mdctSize, mode-… in dump_modes()
130 fprintf(file, "#ifndef DEF_PULSE_CACHE%d\n", mode->Fs/mdctSize); in dump_modes()
[all …]
/external/libopus/celt/
Dmodes.c90 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands) in compute_ebands() argument
96 if (Fs == 400*(opus_int32)frame_size) in compute_ebands()
106 if (bark_freq[nBark+1]*2 >= Fs) in compute_ebands()
179 if (mode->Fs == 400*(opus_int32)mode->shortMdctSize) in compute_allocation_table()
195 … if (400*(opus_int32)eband5ms[k] > mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize) in compute_allocation_table()
202 … a1 = mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize - 400*(opus_int32)eband5ms[k-1]; in compute_allocation_table()
203 … a0 = 400*(opus_int32)eband5ms[k] - mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize; in compute_allocation_table()
224 CELTMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error) in opus_custom_mode_create() argument
247 if (Fs == static_mode_list[i]->Fs && in opus_custom_mode_create()
266 if (Fs < 8000 || Fs > 96000) in opus_custom_mode_create()
[all …]
/external/libopus/src/
Dopus_encoder.c79 opus_int32 Fs; member
182 int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int application) in opus_encoder_init() argument
189 if((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000)||(channels!=1&&channels!=2)|| in opus_encoder_init()
207 st->Fs = Fs; in opus_encoder_init()
217 st->silk_mode.API_sampleRate = st->Fs; in opus_encoder_init()
232 err = celt_encoder_init(celt_enc, Fs, channels, st->arch); in opus_encoder_init()
242 st->bitrate_bps = 3000+Fs*channels; in opus_encoder_init()
250 st->encoder_buffer = st->Fs/100; in opus_encoder_init()
256 st->delay_compensation = st->Fs/250; in opus_encoder_init()
266 tonality_analysis_init(&st->analysis, st->Fs); in opus_encoder_init()
[all …]
Dopus_decoder.c59 opus_int32 Fs; /** Sampling rate (at the API level) */ member
85 …celt_assert(st->Fs == 48000 || st->Fs == 24000 || st->Fs == 16000 || st->Fs == 12000 || st->Fs == … in validate_opus_decoder()
86 celt_assert(st->DecControl.API_sampleRate == st->Fs); in validate_opus_decoder()
116 int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels) in opus_decoder_init() argument
122 if ((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000) in opus_decoder_init()
139 st->Fs = Fs; in opus_decoder_init()
140 st->DecControl.API_sampleRate = st->Fs; in opus_decoder_init()
148 ret = celt_decoder_init(celt_dec, Fs, channels); in opus_decoder_init()
154 st->frame_size = Fs/400; in opus_decoder_init()
159 OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error) in opus_decoder_create() argument
[all …]
Dopus_multistream_encoder.c431 opus_int32 Fs, in opus_multistream_encoder_init_impl() argument
474 ret = opus_encoder_init((OpusEncoder*)ptr, Fs, 2, application); in opus_multistream_encoder_init_impl()
482 ret = opus_encoder_init((OpusEncoder*)ptr, Fs, 1, application); in opus_multistream_encoder_init_impl()
499 opus_int32 Fs, in opus_multistream_encoder_init() argument
507 return opus_multistream_encoder_init_impl(st, Fs, channels, streams, in opus_multistream_encoder_init()
514 opus_int32 Fs, in opus_multistream_surround_encoder_init() argument
580 return opus_multistream_encoder_init_impl(st, Fs, channels, *streams, in opus_multistream_surround_encoder_init()
586 opus_int32 Fs, in opus_multistream_encoder_create() argument
611 …ret = opus_multistream_encoder_init(st, Fs, channels, streams, coupled_streams, mapping, applicati… in opus_multistream_encoder_create()
623 opus_int32 Fs, in opus_multistream_surround_encoder_create() argument
[all …]
Dopus_multistream_decoder.c68 opus_int32 Fs, in opus_multistream_decoder_init() argument
99 ret=opus_decoder_init((OpusDecoder*)ptr, Fs, 2); in opus_multistream_decoder_init()
105 ret=opus_decoder_init((OpusDecoder*)ptr, Fs, 1); in opus_multistream_decoder_init()
114 opus_int32 Fs, in opus_multistream_decoder_create() argument
138 ret = opus_multistream_decoder_init(st, Fs, channels, streams, coupled_streams, mapping); in opus_multistream_decoder_create()
150 opus_int32 len, int nb_streams, opus_int32 Fs) in opus_multistream_packet_validate() argument
168 tmp_samples = opus_packet_get_nb_samples(data, packet_offset, Fs); in opus_multistream_packet_validate()
190 opus_int32 Fs; in opus_multistream_decode_native() local
206 MUST_SUCCEED(opus_multistream_decoder_ctl(st, OPUS_GET_SAMPLE_RATE(&Fs))); in opus_multistream_decode_native()
207 frame_size = IMIN(frame_size, Fs/25*3); in opus_multistream_decode_native()
[all …]
Danalysis.c163 … void *_x, opus_val32 *y, opus_val32 S[3], int subframe, int offset, int c1, int c2, int C, int Fs) in downmix_and_resample() argument
172 if (Fs == 48000) in downmix_and_resample()
176 } else if (Fs == 16000) { in downmix_and_resample()
194 if (Fs == 48000) in downmix_and_resample()
197 } else if (Fs == 24000) { in downmix_and_resample()
199 } else if (Fs == 16000) { in downmix_and_resample()
217 void tonality_analysis_init(TonalityAnalysisState *tonal, opus_int32 Fs) in tonality_analysis_init() argument
221 tonal->Fs = Fs; in tonality_analysis_init()
254 tonal->read_subframe += len/(tonal->Fs/400); in tonality_get_info()
264 if (len > tonal->Fs/50 && pos != tonal->write_pos) in tonality_get_info()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DManifestFactoryTest.java14 import org.robolectric.res.Fs;
45 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/MergedManifest.xml")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
47 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-resources")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
49 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-assets")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
56 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/MergedManifest.xml")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
58 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-resources")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
60 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-assets")); in whenBuildSystemApiPropertiesFileIsPresent_shouldUseDefaultManifestFactory()
92 .isEqualTo(Fs.fromURL(getClass().getClassLoader().getResource("TestAndroidManifest.xml"))); in whenConfigSpecified_overridesValuesFromFile()
94 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-resources")); in whenConfigSpecified_overridesValuesFromFile()
96 .isEqualTo(Fs.fileFromPath(baseDir + "/path/to/merged-assets")); in whenConfigSpecified_overridesValuesFromFile()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DTypeInference.java101 List<ResolvedType> Fs = formalParameterTypes(methodDeclaration); in instantiationInference() local
109 C = testForApplicabilityByStrictInvocation(Fs, es, theta); in instantiationInference()
115 C = testForApplicabilityByLooseInvocation(Fs, es, theta); in instantiationInference()
121 C = testForApplicabilityByVariableArityInvocation(Fs, es, theta); in instantiationInference()
641 …raintFormulaSet> testForApplicabilityByStrictInvocation(List<ResolvedType> Fs, List<Expression> es, in testForApplicabilityByStrictInvocation() argument
643 int n = Fs.size(); in testForApplicabilityByStrictInvocation()
655 ResolvedType fi = Fs.get(i); in testForApplicabilityByStrictInvocation()
670 return Optional.of(constraintSetFromArgumentsSubstitution(Fs, es, theta, k)); in testForApplicabilityByStrictInvocation()
677 …traintFormulaSet> testForApplicabilityByLooseInvocation(List<ResolvedType> Fs, List<Expression> es, in testForApplicabilityByLooseInvocation() argument
679 int n = Fs.size(); in testForApplicabilityByLooseInvocation()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/util/
DTestUtil.java14 import org.robolectric.res.Fs;
25 return Fs.newFile(resourcesBaseDirFile()); in resourcesBaseDir()
51Fs fs = Fs.fromJar(getDependencyResolver().getLocalArtifactUrl(sdkConfig.getAndroidSdkDependency()… in systemResources()
58Fs sdkResFs = Fs.fromJar(getDependencyResolver().getLocalArtifactUrl(new SdkConfig(apiLevel).getAn… in sdkResources()
/external/libopus/include/
Dopus_multistream.h258 opus_int32 Fs,
268 opus_int32 Fs,
328 opus_int32 Fs,
338 opus_int32 Fs,
505 opus_int32 Fs,
549 opus_int32 Fs,
Dopus.h209 opus_int32 Fs,
230 opus_int32 Fs,
424 opus_int32 Fs,
442 opus_int32 Fs,
556 …nt opus_packet_get_samples_per_frame(const unsigned char *data, opus_int32 Fs) OPUS_ARG_NONNULL(1);
584 …et_get_nb_samples(const unsigned char packet[], opus_int32 len, opus_int32 Fs) OPUS_ARG_NONNULL(1);
Dopus_projection.h162 opus_int32 Fs,
216 opus_int32 Fs,
398 opus_int32 Fs,
449 opus_int32 Fs,
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java58 Fs.JarFs.JarFsFile mockTestFile = mock(Fs.JarFs.JarFsFile.class); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
62 Fs.JarFs.JarFsFile mockTestDir = mock(Fs.JarFs.JarFsFile.class); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
104 Fs.JarFs.JarFsFile mockTestFile = mock(Fs.JarFs.JarFsFile.class); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath()
108 Fs.JarFs.JarFsFile mockTestDir = mock(Fs.JarFs.JarFsFile.class); in shouldFindDrawableResourcesWorkWithWindowsJarFilePath()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DSdkEnvironment.java7 import org.robolectric.res.Fs;
27 Fs.newFile(dependencyResolver.getLocalArtifactUrl(compileTimeJar).getFile()); in getCompileTimeSystemResourcesFile()
43Fs systemResFs = Fs.fromJar(dependencyResolver.getLocalArtifactUrl(sdkConfig.getAndroidSdkDependen… in createRuntimeSdkResourcePath()
DDefaultManifestFactory.java11 import org.robolectric.res.Fs;
65 return Fs.fromURL(manifestUrl); in resolveFile()
82 return Fs.fromURL(url); in getFsFileFromProperty()
87 return Fs.fileFromPath(path); in getFsFileFromProperty()
/external/crosvm/devices/src/virtio/vhost/user/
Dfs.rs25 pub struct Fs { struct
32 impl Fs { argument
33 pub fn new<P: AsRef<Path>>(base_features: u64, socket_path: P, tag: &str) -> Result<Fs> { in new() argument
70 Ok(Fs { in new()
80 impl VirtioDevice for Fs { implementation
181 impl Drop for Fs { implementation
/external/rust/cxx/gen/build/src/
Derror.rs13 Fs(fs::Error), enumerator
39 Error::Fs(err) => err.fmt(f), in fmt()
88 Error::Fs(err) => err.source(), in source()
96 Error::Fs(err) in from()

12345