/frameworks/base/tools/aapt/ |
H A D | SourcePos.h | 12 String8 file; member in class:SourcePos
|
H A D | OutputSet.h | 5 * you may not use this file except in compliance with the License. 30 OutputEntry(const android::String8& path, const android::sp<const AaptFile>& file) argument 31 : mPath(path), mFile(file) {}
|
H A D | ApkBuilder.cpp | 5 * you may not use this file except in compliance with the License. 59 status_t ApkBuilder::addEntry(const String8& path, const sp<AaptFile>& file) { argument 62 if (mSplits[i]->matches(file)) { 63 return mSplits.editItemAt(i)->addEntry(path, file); 109 status_t ApkSplit::addEntry(const String8& path, const sp<AaptFile>& file) { argument 110 if (!mFiles.insert(OutputEntry(path, file)).second) { 111 // Duplicate file.
|
/frameworks/support/v17/leanback/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 28 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 31 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 33 for line in file: 39 file.close()
|
/frameworks/wilhelm/src/ |
H A D | assert.c | 5 * you may not use this file except in compliance with the License. 24 void __assert(const char *file, int line, const char *failedexpr) argument 26 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line); 30 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument 32 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"", 33 failedexpr, file, line, func);
|
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
H A D | FileUtil.java | 5 * you may not use this file except in compliance with the License. 42 public void writeDateToFile(File file) { argument 44 FileOutputStream fos = new FileOutputStream(file); 50 Log.e("FileUtil", "exception writing date to file", ioe);
|
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 5 * you may not use this file except in compliance with the License. 36 FILE* file = NULL; local 37 file = fopen(filePath.string(), "r"); 40 if (NULL != file) { 41 int fd = fileno(file); 52 fclose(file); 58 FILE* file = NULL; local 59 file = fopen(filePath.string(), "r"); 62 if (NULL != file) { 63 int fd = fileno(file); 79 FILE* file = NULL; local 96 FILE* file = NULL; local [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | BandwidthTestUtil.java | 5 * you may not use this file except in compliance with the License. 47 * Parses the first line in a file if exists. 49 * @param file {@link File} the input 50 * @return the integer value of the first line of the file. 52 public static int parseIntValueFromFile(File file) { argument 54 if (file.exists()) { 56 FileInputStream fstream = new FileInputStream(file); 76 * @param size in bytes of the file to download 89 * Download a given file from a target url to a given destination file 94 DownloadFromUrl(String targetUrl, File file) argument 126 postFileToServer(String server, String deviceId, String timestamp, File file) argument [all...] |
/frameworks/compile/mclinker/unittests/ |
H A D | FactoriesTest.cpp | 5 // This file is distributed under the University of Illinois Open Source 168 MCLDFile* file = m_pFileAlloc->produce(); local 178 sprintf(name, "file %d", counter); 181 MCLDFile* file = m_pFileAlloc->produce( local 185 ASSERT_TRUE(file->isRecognized()); 186 ASSERT_STREQ(name, file->name().data()); 194 sprintf(name, "file %d", counter); 197 MCLDFile* file = m_pFileAlloc->produce( local 204 MCLDFileFactory::iterator file = m_pFileAlloc->begin(); local 207 while (file ! [all...] |
/frameworks/base/core/jni/ |
H A D | android_content_res_ObbScanner.cpp | 5 * you may not use this file except in compliance with the License. 41 static void android_content_res_ObbScanner_getObbInfo(JNIEnv* env, jobject clazz, jstring file, argument 44 const char* filePath = env->GetStringUTFChars(file, NULL); 48 env->ReleaseStringUTFChars(file, filePath); 49 jniThrowException(env, "java/io/IOException", "Could not read OBB file"); 53 env->ReleaseStringUTFChars(file, filePath); 59 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | MutexFileProvider.java | 5 * you may not use this file except in compliance with the License. 25 * This class provides a shared file to several threads. Only one thread 26 * at a time can use the file. To acquire the file a thread has to 29 * when another one wants to acquire the file. In case a release is requested 30 * the thread owning the file must release it as soon as possible. If no 31 * callback is provided a thread that acquires the file must release it 33 * have the file for less time. 49 public void onReleaseRequested(File file); argument 52 public MutexFileProvider(File file) throw argument [all...] |
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsXml.java | 5 * use this file except in compliance with the License. You may obtain a copy 36 public static long parseBeginTime(AtomicFile file) throws IOException { argument 37 return parseBeginTime(file.getBaseFile()); 40 public static long parseBeginTime(File file) throws IOException { argument 41 String name = file.getName(); 44 // would be appended more than once to a checked-in file, causing a crash 58 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { argument 60 FileInputStream in = file.openRead(); 62 statsOut.beginTime = parseBeginTime(file); 64 statsOut.lastTimeSaved = file 78 write(AtomicFile file, IntervalStats stats) argument [all...] |
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
H A D | A3DSelector.java | 5 * you may not use this file except in compliance with the License. 42 public boolean accept(File file) { argument 43 if (file.isDirectory()) { 46 return file.getName().endsWith(".a3d"); 50 private void populateList(File file) { argument 52 mCurrentFile = file;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | Texture2D.java | 5 * you may not use this file except in compliance with the License. 44 public Texture2D(String dir, String file) { argument 47 setFileName(file); 59 public void setFileName(String file) { argument 60 mFileName = file;
|
H A D | TextureCube.java | 5 * you may not use this file except in compliance with the License. 45 public TextureCube(String dir, String file) { argument 48 setFileName(file); 60 public void setFileName(String file) { argument 61 mFileName = file;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | FileSelector.java | 5 * you may not use this file except in compliance with the License. 42 public boolean accept(File file) { argument 43 if (file.isDirectory()) { 46 return file.getName().endsWith(".dae"); 50 private void populateList(File file) { argument 52 mCurrentFile = file;
|
/frameworks/base/tools/layoutlib/bridge/src/libcore/io/ |
H A D | MemoryMappedFile_Delegate.java | 5 * you may not use this file except in compliance with the License. 48 /** Path on the target device where the data file is available. */ 67 RandomAccessFile file = new RandomAccessFile(f, "r"); 69 long size = file.length(); 70 MemoryMappedFile_Delegate newDelegate = new MemoryMappedFile_Delegate(file); 71 long filePointer = file.getFilePointer(); 77 file.close(); 94 static BufferIterator bigEndianIterator(MemoryMappedFile file) { argument 95 MemoryMappedFile_Delegate delegate = getDelegate(file); 101 public MemoryMappedFile_Delegate(RandomAccessFile file) throw argument 113 getDelegate(MemoryMappedFile file) argument [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 5 * you may not use this file except in compliance with the License. 72 sp<FileSource> file = new FileSource(path); local 73 CHECK_EQ(file->initCheck(), (status_t)OK); 75 ID3 tag(file);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | FileBridgeTest.java | 5 * you may not use this file except in compliance with the License. 35 private File file; field in class:FileBridgeTest 44 file = getContext().getFileStreamPath("meow.dat"); 45 file.delete(); 47 fileOs = new FileOutputStream(file); 58 file.delete(); 74 MoreAsserts.assertEquals(expected, Streams.readFully(new FileInputStream(file)));
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmUtils.java | 5 * you may not use this file except in compliance with the License. 37 /* Should be used when we need to read from local file */ 39 File file = new File(path); 40 return readBytes(file); 43 /* Should be used when we need to read from local file */ 44 /* package */ static byte[] readBytes(File file) throws IOException { argument 45 FileInputStream inputStream = new FileInputStream(file); 78 File file = new File(path); 79 file.delete();
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | SamplingProfilerService.java | 5 * you may not use this file except in compliance with the License. 79 private void handleSnapshotFile(File file, DropBoxManager dropbox) { argument 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); 86 file.delete();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | DropBoxTest.java | 5 * you may not use this file except in compliance with the License. 523 new FileOutputStream(dir).close(); // Create an empty file 531 dir.delete(); // Remove the file so a directory can be created 572 File f = new File(dir, "file.dat"); 577 new DropBoxManager.Entry("file", 6000000, f, DropBoxManager.IS_TEXT).writeToParcel( 586 fail("IOException expected for nonexistent file"); 594 fail("IllegalArgumentException expected for non-null file and IS_EMPTY flags"); 606 File gz = new File(dir, "file.gz"); 667 assertEquals("file", e.getTag()); 712 File f = new File(dir, "file 758 recursiveDelete(File file) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 5 * you may not use this file except in compliance with the License. 158 private void stageFile(int rawId, File file) throws Exception { argument 159 new File(file.getParent()).mkdirs(); 164 out = new FileOutputStream(file);
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
H A D | HugeBackupActivity.java | 5 * you may not use this file except in compliance with the License. 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 */ 78 /** Set up our file bookkeeping */ 92 * data file and establishing defaults if necessary. 95 RandomAccessFile file; 97 // Default values in case there's no data file yet 102 /** Hold the data-access lock around access to the file */ 106 file 165 writeDataToFileLocked(RandomAccessFile file, boolean addMayo, boolean addTomato, int whichFilling) argument [all...] |
/frameworks/compile/mclinker/include/mcld/Script/ |
H A D | InputSectDesc.h | 5 // This file is distributed under the University of Illinois Open Source 32 const WildcardPattern& file() const { function in struct:mcld::InputSectDesc::Spec
|