Searched defs:source (Results 1 - 14 of 14) sorted by relevance

/system/core/libcutils/
H A Dpartition_utils.c39 int partition_wiped(char *source) argument
44 if ((fd = open(source, O_RDONLY)) < 0) {
/system/core/toolbox/
H A Dmv.c16 fprintf(stderr,"USAGE: %s <source...> <destination>\n", argv[0]);
32 const char *source = argv[i]; local
34 /* assume we build "dest/source", and let rename() fail on pathsize */
35 if (strlen(dest) + 1 + strlen(source) + 1 > sizeof(fullDest)) {
41 /* if destination is a directory, concat the source file name */
43 const char *fileName = strrchr(source, '/');
47 strcat(fullDest, fileName ? fileName + 1 : source);
51 if (rename(source, fullDest)) {
52 fprintf(stderr, "failed on '%s' - %s\n", source, strerror(errno));
/system/extras/tests/bionic/libc/other/
H A Dtest_zlib.c5 * Redistribution and use in source and binary forms, with or without
8 * * Redistributions of source code must retain the above copyright
45 int def(FILE *source, FILE *dest, int level) argument
63 strm.avail_in = fread(in, 1, CHUNK, source);
64 if (ferror(source)) {
68 flush = feof(source) ? Z_FINISH : Z_NO_FLUSH;
72 compression if all of source has been read in */
93 int inf(FILE *source) argument
113 strm.avail_in = fread(in, 1, CHUNK, source);
114 if (ferror(source)) {
[all...]
/system/media/mca/filterfw/java/android/filterfw/core/
H A DInputPort.java31 public void setSourcePort(OutputPort source) { argument
35 mSourcePort = source;
H A DFilterGraph.java82 public void connect(Filter source, argument
86 if (source == null || target == null) {
88 } else if (!containsFilter(source) || !containsFilter(target)) {
92 OutputPort outPort = source.getOutputPort(outputName);
96 source + "!");
109 Filter source = getFilter(sourceName);
111 if (source == null) {
113 "Attempting to connect unknown source filter '" + sourceName + "'!");
118 connect(source, outputName, target, inputName);
347 if (mLogVerbose) Log.v(TAG, "Found source filte
[all...]
/system/media/mca/filterpacks/videosrc/java/
H A DSurfaceTextureSource.java68 public void onSurfaceTextureSourceReady(SurfaceTexture source); argument
75 * callback will be called again with null as the source.
84 * SurfaceTexture source is known, use it here to minimize resampling. */
89 * SurfaceTexture source is known, use it here to minimize resampling. */
123 // These default source coordinates perform the necessary flip
186 // Connect SurfaceTexture to source
/system/media/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp166 SL_LOGE("AacBqToPcmCbRenderer::onPrepare(): Error no data source");
181 sp<MediaSource> source = extractor->getTrack(kTrackToDecode); local
182 if (source == 0) {
183 SL_LOGE("AacBqToPcmCbRenderer::onPrepare: error getting source from extractor");
193 source = OMXCodec::Create(
195 source);
197 if (source == NULL) {
203 meta = source->getFormat();
207 if (source->start() != OK) {
208 SL_LOGE("AacBqToPcmCbRenderer::onPrepare() Failed to start source/decode
[all...]
H A Dandroid_AudioSfDecoder.cpp181 // Instantiate and initialize the data source for the decoder
224 // Instanciate and initialize the decoder attached to the data source
258 sp<MediaSource> source = extractor->getTrack(audioTrackIndex); local
259 sp<MetaData> meta = source->getFormat();
298 source = OMXCodec::Create(
300 source);
302 if (source == NULL) {
308 meta = source->getFormat();
312 if (source->start() != OK) {
313 SL_LOGE("AudioSfDecoder::onPrepare: Failed to start source/decode
[all...]
/system/media/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp48 static size_t getFrameSize(const sp<DataSource> &source, off64_t offset) { argument
55 ssize_t readSize = source->readAt(offset, &syncHeader, ADTS_HEADER_SIZE_UP_TO_FRAMESIZE);
93 AacAdtsExtractor::AacAdtsExtractor(const sp<DataSource> &source) argument
94 : mDataSource(source),
137 // but in this case we were told the total size of the data source and so an EOS
210 const sp<DataSource> &source, const sp<MetaData> &meta,
212 : mDataSource(source),
209 AacAdtsSource( const sp<DataSource> &source, const sp<MetaData> &meta, int64_t frame_duration_us) argument
/system/media/wilhelm/src/itf/
H A DIOutputMixExt.c237 const stereo *source = (const stereo *) track->mReader; local
243 for (j = 0; j < actual; j += sizeof(stereo), ++mixBuffer, ++source) {
244 mixBuffer->left += (short) (source->left * track->mGains[0]);
245 mixBuffer->right += (short) (source->right * track->mGains[1]);
249 for (j = 0; j < actual; j += sizeof(stereo), ++mixBuffer, ++source) {
250 mixBuffer->left += source->left;
251 mixBuffer->right += source->right;
257 for (j = 0; j < actual; j += sizeof(stereo), ++mixBuffer, ++source) {
258 mixBuffer->left = (short) (source->left * track->mGains[0]);
259 mixBuffer->right = (short) (source
[all...]
/system/media/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java200 // Can't do mipmapping with camera source
235 private int loadShader(int shaderType, String source) { argument
238 GLES20.glShaderSource(shader, source);
/system/core/init/
H A Dbuiltins.c286 char *source, *target, *system; local
310 source = args[2];
313 if (!strncmp(source, "mtd@", 4)) {
314 n = mtd_name_to_number(source + 4);
328 } else if (!strncmp(source, "loop@", 5)) {
333 fd = open(source + 5, mode);
370 wait_for_file(source, COMMAND_RETRY_TIMEOUT);
371 if (mount(source, target, system, flags, options) < 0) {
382 if (!strcmp(target, DATA_MNT_POINT) && !partition_wiped(source)) {
407 property_set("ro.crypto.fs_real_blkdev", source);
[all...]
/system/media/mca/filterfw/native/core/
H A Dshader_program.cpp303 GLuint ShaderProgram::CompileShader(GLenum shader_type, const char* source) { argument
304 LOG_FRAME("Compiling source:\n[%s]", source);
309 // Compile source
310 glShaderSource(shader, 1, &source, NULL);
319 LOGE("%s", source);
320 std::string src(source);
/system/core/sh/
H A Darith_lex.c204 /* Whether this is an "interactive" input source; if so, and
231 * shouldn't try reading from the input source any more. We might
479 * Redistribution and use in source and binary forms, with or without
482 * 1. Redistributions of source code must retain the above copyright
929 /* We're scanning a new file or input source. It's
931 * just pointed yyin at a new source and called
936 * back-up) that will match for the new input source.
1057 register char *source = (yytext_ptr); local
1090 *(dest++) = *(source++);
1250 register char *source local
[all...]

Completed in 211 milliseconds