/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: 43 file.close() 46 file = open('src/android/support/v17/leanback/app/PlaybackControlGlue.java', 'r') variable 48 outfile.write("/* This file is auto-generated from PlaybackControlGlue.java. DO NOT MODIFY. */\n\n") 49 for line in file: 53 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/base/tools/aapt2/util/ |
H A D | Files_test.cpp | 5 * you may not use this file except in compliance with the License. 23 namespace file { namespace in namespace:aapt
|
H A D | Files.h | 5 * you may not use this file except in compliance with the License. 33 namespace file { namespace in namespace:aapt 94 * Creates a FileMap for the file at path. 99 * Reads the file at path and appends each line to the outArgList vector. 119 * about the file being ignored. 121 * or <file> to match only files. Default is to match both. 141 } // namespace file
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | NinePatchInputStream.java | 5 * you may not use this file except in compliance with the License. 31 public NinePatchInputStream(File file) throws FileNotFoundException { argument 32 super(file);
|
/frameworks/support/v17/tests/ |
H A D | generatev4.py | 6 # you may not use this file except in compliance with the License. 30 file = open('src/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable 33 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w)) 35 for line in file: 41 file.close() 49 file = open('src/android/support/v17/leanback/app/{}FragmentTest.java'.format(w), 'r') variable 52 outfile.write("/* This file is auto-generated from {}FrgamentTest.java. DO NOT MODIFY. */\n\n".format(w)) 54 for line in file: 62 file.close() 67 file variable [all...] |
/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/base/tools/aapt2/link/ |
H A D | TableMerger_test.cpp | 5 * you may not use this file except in compliance with the License. 95 FileReference* file = test::getValueForConfig<FileReference>(&finalTable, local 98 ASSERT_NE(nullptr, file); 99 EXPECT_EQ(std::u16string(u"res/layout-hdpi-v4/main.xml"), *file->path); 120 .addFileReference(u"@com.app.a:xml/file", u"res/xml/file.xml") 124 .addFileReference(u"@com.app.b:xml/file", u"res/xml/file.xml") 130 collection.insertFile("res/xml/file.xml"); 135 FileReference* f = test::getValue<FileReference>(&finalTable, u"@com.app.a:xml/file"); [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/rs/java/tests/Refocus/src/com/android/rs/test/ |
H A D | MediaStoreSaver.java | 5 * you may not use this file except in compliance with the License. 49 File file = new File(dir, imageName + n + ".png"); 51 FileOutputStream fOut = new FileOutputStream(file); 53 System.out.println("saved image: " + file.getAbsolutePath()); 62 MediaStorageScan(mContext, file); 63 return file.getAbsolutePath(); 68 private static void MediaStorageScan(Context context, final File file) { argument 69 final Uri fileUri = Uri.fromFile(file);
|
/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/tools/aapt2/proto/ |
H A D | TableProtoSerializer_test.cpp | 5 * you may not use this file except in compliance with the License. 139 std::unique_ptr<ResourceFile> file = deserializeCompiledFileFromPb(*newPbFile, Source{ "test" }, local 141 ASSERT_NE(nullptr, file); 147 ASSERT_EQ(1u, file->exportedSymbols.size()); 148 EXPECT_EQ(test::parseNameOrDie(u"@+id/unchecked"), file->exportedSymbols[0].name);
|
/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/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MediaStoreSaver.java | 5 * you may not use this file except in compliance with the License. 48 File file = null; 57 file = File.createTempFile(imageName, suffix, dir); 58 FileOutputStream fOut = new FileOutputStream(file); 60 System.out.println("saved image: " + file.getAbsolutePath()); 69 MediaStorageScan(mContext, file); 70 return file.getAbsolutePath(); 76 private static void MediaStorageScan(Context context, final File file) { argument 77 final Uri fileUri = Uri.fromFile(file);
|
/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/java/android/security/net/config/ |
H A D | DirectoryCertificateSource.java | 5 * you may not use this file except in compliance with the License. 191 private X509Certificate readCertificate(String file) { argument 194 is = new BufferedInputStream(new FileInputStream(new File(mDir, 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();
|