/external/skia/src/effects/ |
SkEmbossMask.cpp | 6 * found in the LICENSE file. 55 FILE* file = ::fopen("SkEmbossMask_Table.h", "w"); local 56 SkASSERT(file); 57 ::fprintf(file, "#include \"SkTypes.h\"\n\n"); 58 ::fprintf(file, "static const U16 gInvSqrtTable[128 * 128] = {\n"); 62 ::fprintf(file, "\t"); 66 ::fprintf(file, "0x%04X", value); 68 ::fprintf(file, ", "); 71 ::fprintf(file, "\n") [all...] |
/external/skia/tests/ |
StreamTest.cpp | 5 * found in the LICENSE file. 49 ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str()); 68 FILE* file = ::fopen(path.c_str(), "rb"); local 69 SkFILEStream stream(file, SkFILEStream::kCallerPasses_Ownership); 249 // This test uses file system operations that don't work out of the 259 // Test an arbitrary file stream. file streams do not support peeking.
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
ClassPath.java | 49 import java.io.File; 190 File rawEntry = new File(bootClassPathEntry); 216 File file = new File(classPathDir, baseEntryName + ext); local 218 if (file.exists() && file.isFile()) { 219 if (!file.canRead()) { 221 "warning: cannot open %s for reading. Will continue looking.", file.getPath())) [all...] |
/external/sonic/ |
wave.c | 4 This file is part of the Sonic Library. 6 This file is licensed under the Apache 2.0 license. 10 This file supports read/write wave files. 22 FILE *soundFile; 28 /* Write a string to a file. */ 30 waveFile file, 36 if(file->failed) { 39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); 41 fprintf(stderr, "Unable to write to output file"); 42 file->failed = 1 245 waveFile file; local 270 waveFile file; local [all...] |
/external/tinyalsa/ |
tinycap.c | 61 unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, 73 FILE *file; local 86 fprintf(stderr, "Usage: %s file.wav [-D card] [-d device] [-c channels] " 91 file = fopen(argv[1], "wb"); 92 if (!file) { 93 fprintf(stderr, "Unable to create file '%s'\n", argv[1]); 163 fseek(file, sizeof(struct wav_header), SEEK_SET); 167 frames = capture_sample(file, card, device, header.num_channels [all...] |
/external/tinycompress/ |
cplay.c | 154 char *file; local 191 file = argv[optind]; 193 play_samples(file, card, device, buffer_size, frag); 206 FILE *file; local 213 file = fopen(name, "rb"); 214 if (!file) { 215 fprintf(stderr, "Unable to open file '%s'\n", name); 219 fread(&header, sizeof(header), 1, file); 222 fclose(file); [all...] |
/external/toybox/toys/posix/ |
grep.c | 15 usage: grep [-EFivwcloqsHbhn] [-m MAX] [-e REGEX]... [-f REGFILE] [FILE]... 22 -f File containing regular expressions to match. 36 output prefix (default: filename if checking more than 1 file) 65 FILE *file = fdopen(fd, "r"); local 73 if (!file) { 86 if (0 > (len = getdelim(&line, &unused, indelim, file))) break; 152 fclose(file); 189 fclose(file);
|
/external/valgrind/coregrind/ |
m_addrinfo.c | 8 This file is part of Valgrind, a dynamic binary instrumentation 29 The GNU General Public License is contained in the file COPYING. 399 case SkFileC: return "mapped file"; 441 const HChar *file; local 454 hasfile = VG_(get_filename)(ai->Addr.Stack.IP, &file); 467 hasfile ? file : "???", strlinenum,
|
/external/webrtc/test/testsupport/ |
fileutils.cc | 5 * that can be found in the LICENSE file in the root of the source 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 38 // The file we're looking for to identify the project root dir. 50 // Check for our file that verifies the root dir. 52 FILE* file = NULL; local 57 file = fopen(root_filename.c_str(), "r"); 58 if (file != NULL) { 59 fclose(file); [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
MemoryFileProvider.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 51 private static final int FILE = 3; 59 sURLMatcher.addURI("*", "file", FILE); 124 case FILE: 144 case FILE: 145 File file = getContext().getFileStreamPath(DATA_FILE); local 146 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY) [all...] |
/frameworks/base/include/androidfw/ |
BackupHelpers.h | 5 * you may not use this file except in compliance with the License. 55 String8 file; member in struct:android::FileRec 76 /* Note: WriteEntityData will write arbitrary data into the file without
|
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
EffectsVideoCapture.java | 5 * you may not use this file except in compliance with the License. 31 import java.io.File; 71 File file = new File(Environment.getExternalStorageDirectory(), local 73 Uri uri = Uri.fromFile(file); 80 // Verify the video file
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
BugreportStorageProvider.java | 5 * you may not use this file except in compliance with the License. 30 import java.io.File; 46 private File mRoot; 50 mRoot = new File(getContext().getFilesDir(), "bugreports"); 89 final File[] files = mRoot.listFiles(); 91 for (File file : files) { 92 addFileRow(result, file); 137 private String getDocIdForFile(File file) { 148 final File file = new File(mRoot, name); local [all...] |
/frameworks/base/services/core/java/com/android/server/ |
SamplingProfilerService.java | 5 * you may not use this file except in compliance with the License. 31 import java.io.File; 59 File[] snapshotFiles = new File(SNAPSHOT_DIR).listFiles(); 71 handleSnapshotFile(new File(SNAPSHOT_DIR, path), dropbox); 79 private void handleSnapshotFile(File file, DropBoxManager dropbox) { 81 dropbox.addFile(TAG, file, 0); 82 if (LOCAL_LOGV) Slog.v(TAG, file.getPath() + " added to dropbox"); 84 Slog.e(TAG, "Can't add " + file.getPath() + " to dropbox", e) [all...] |
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
HugeAgent.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 57 /** The app's current data, read from the live disk file */ 62 /** The location of the application's persistent data file */ 63 File mDataFile; 65 /** For convenience, we set up the File object for the app's data on creation */ 68 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); 75 * blob describing the last dataset backed up. The state file 89 // First, get the current data from the application's file. This 96 RandomAccessFile file = new RandomAccessFile(mDataFile, "r") local 244 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); local [all...] |
HugeBackupActivity.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 43 * agent running to perform a backup while our UI is updating the file, the 51 /** Also supply a global standard file name for everyone to use */ 59 /** Cache a reference to our persistent data file */ 60 File mDataFile; 78 /** Set up our file bookkeeping */ 79 mDataFile = new File(getFilesDir(), HugeBackupActivity.DATA_FILE_NAME); 92 * data file and establishing defaults if necessary. 95 RandomAccessFile file; local 188 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); local [all...] |
/frameworks/compile/mclinker/lib/Object/ |
SectionMap.cpp | 5 // This file is distributed under the University of Illinois Open Source 299 if (pInput.spec().hasFile() && !matched(pInput.spec().file(), pInputFile)) 303 StringList::const_iterator file, fileEnd; local 305 for (file = pInput.spec().excludeFiles().begin(); file != fileEnd; ++file) { 306 if (matched(llvm::cast<WildcardPattern>(**file), pInputFile)) {
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/ |
GenerationalClassUtil.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 44 * A utility class that helps adding build specific objects to the jar file 71 final File file = new File(url.toURI()); local 72 if (!file.exists()) { 73 L.d("cannot load file for %s", url); 76 if (file.isDirectory()) { 78 loadFromDirectory(file); [all...] |
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/ |
ScopedException.java | 5 * you may not use this file except in compliance with the License. 37 public static final String FILE_KEY = "file:"; 66 .append("file://").append(scopedError.getFilePath()); 100 String file = ""; local 113 file = output.substring(fileStart + FILE_KEY.length()); 115 file = output.substring(fileStart + FILE_KEY.length(), locStart); 136 new ScopedErrorReport(StringUtils.isEmpty(file) ? null : file.trim(), locations));
|
/hardware/qcom/audio/hal/ |
platform_info.c | 5 * you may not use this file except in compliance with the License. 297 FILE *file; local 305 file = fopen(PLATFORM_INFO_XML_PATH, "r"); 306 if (!file) { 333 bytes_read = fread(buf, 1, kBufSize, file); 355 fclose(file);
|
/hardware/ti/omap4xxx/domx/mm_osal/inc/ |
timm_osal_trace.h | 34 * @file timm_osal_trace.h 35 * The timm_osal_types header file defines the primative osal type definitions. 99 const char *file; member in struct:__anon27678
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldJarEntryTest.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 20 import java.io.File; 35 private File resources; 41 jarFile = new JarFile(new File(resources, jarName)); 72 assertNotNull("Jar file is null", jarFile); 88 File file = null; local 92 attrJar = new JarFile(new File(resources, "Broken_manifest.jar")) [all...] |
/libcore/tzdata/tools/src/main/libcore/tzdata/update/tools/ |
CreateTzDataBundle.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 33 * tzdata.properties file - the file describing the bundle (see template file in tzdata/tools) 34 * output file - the name of the file to be generated 45 File f = new File(args[0]); 47 System.err.println("Properties file " + f + " not found") 94 File file = new File(fileName); local [all...] |
/libcore/tzdata/update/src/main/libcore/tzdata/update/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 39 * Creates a new {@link java.io.File} from the {@code parentDir} and {@code name}, but only if 40 * the resulting file would exist beneath {@code parentDir}. Useful if {@code name} could 43 * @throws java.io.IOException if the file would not exist beneath {@code parentDir} 45 public static File createSubFile(File parentDir, String name) throws IOException { 48 File subFile = new File(parentDir, name).getCanonicalFile(); 66 public static void ensureDirectoriesExist(File dir, boolean makeWorldReadable 173 File file = new File(rootDir, fileName); local [all...] |
TzDataBundleInstaller.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 34 private final File installDir; 36 public TzDataBundleInstaller(String logTag, File installDir) { 49 File oldTzDataDir = new File(installDir, OLD_TZ_DATA_DIR_NAME); 54 File currentTzDataDir = new File(installDir, CURRENT_TZ_DATA_DIR_NAME); 55 File workingDir = new File(installDir, WORKING_DIR_NAME) 127 File file = new File(filePath); local [all...] |