Searched defs:file (Results 1 - 25 of 206) sorted by relevance

123456789

/frameworks/base/tools/aapt/
H A DSourcePos.h12 String8 file; member in class:SourcePos
H A DOutputSet.h5 * 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 DApkBuilder.cpp5 * 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 Dgeneratev4.py6 # 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
34 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
36 for line in file:
47 file.close()
51 file = open('src/android/support/v17/leanback/app/VideoFragmentGlueHost.java'.format(w), 'r') variable
55 outfile.write("/* This file is auto-generated from {}VideoFragmentGlueHost.java. DO NOT MODIFY. */\n\n".format(w))
57 for line in file:
68 file.close()
72 file variable
93 file = open('src/android/support/v17/leanback/app/DetailsFragmentBackgroundController.java'.format(w), 'r') variable
[all...]
/frameworks/wilhelm/src/
H A Dassert.cpp5 * 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 DFileUtil.java5 * 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 DFiles_test.cpp5 * you may not use this file except in compliance with the License.
24 namespace file { namespace in namespace:aapt
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DNinePatchInputStream.java5 * you may not use this file except in compliance with the License.
31 public NinePatchInputStream(File file) throws FileNotFoundException { argument
32 super(file);
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dbenchmark.h26 // Btrace will either output to standard atrace, or to a file if specified.
32 static inline void Btrace(FILE* file, const char* name,
34 static inline void Btrace(FILE* file, const char* name);
40 static inline void BtraceData(FILE* file, const char* name,
42 static inline void BtraceData(FILE* file, const char* name, int64_t data);
55 static inline void Btrace(FILE* file, const char* name, argument
57 fprintf(file, "#btrace#%s|%" PRId64 "\n", name, nanoseconds_monotonic);
60 static inline void Btrace(FILE* file, const char* name) { argument
61 Btrace(file, name, android::dvr::GetSystemClockNs());
76 static inline void BtraceData(FILE* file, cons argument
82 BtraceData(FILE* file, const char* name, int64_t data) argument
[all...]
/frameworks/support/v17/leanback/tests/
H A Dgeneratev4.py6 # you may not use this file except in compliance with the License.
34 file = open('java/android/support/v17/leanback/app/{}Fragment.java'.format(w), 'r') variable
38 outfile.write("/* This file is auto-generated from {}Fragment.java. DO NOT MODIFY. */\n\n".format(w))
40 for line in file:
47 file.close()
57 file = open('java/android/support/v17/leanback/app/{}FragmentTestBase.java'.format(w), 'r') variable
61 outfile.write("/* This file is auto-generated from {}FrgamentTestBase.java. DO NOT MODIFY. */\n\n".format(w))
63 for line in file:
73 file.close()
83 file variable
114 file = open('java/android/support/v17/leanback/app/{}FragmentTestActivity.java'.format(w), 'r') variable
132 file = open('java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java', 'r') variable
152 file = open('java/android/support/v17/leanback/widget/ParallaxIntTest.java', 'r') variable
172 file = open('java/android/support/v17/leanback/app/PlaybackControlGlueTest.java', 'r') variable
[all...]
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp5 * 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/java/android/os/
H A DRevocableFileDescriptor.java5 * you may not use this file except in compliance with the License.
37 * This is useful when the code that originally opened a file needs to strongly
58 public RevocableFileDescriptor(Context context, File file) throws IOException { argument
60 init(context, Os.open(file.getAbsolutePath(),
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DBandwidthTestUtil.java5 * 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/
H A DLoadedApk.cpp5 * you may not use this file except in compliance with the License.
38 io::IFile* file = apk->FindFile("resources.arsc"); local
39 if (!file) {
44 std::unique_ptr<io::IData> data = file->OpenAsData();
77 io::IFile* file = iterator->Next(); local
79 std::string path = file->GetSource().path;
80 // The name of the path has the format "<zip-file-name>@<path-to-file>".
109 uint32_t compression_flags = file->WasCompressed() ? ArchiveEntry::kCompress : 0u;
110 if (!io::CopyFileToArchive(context, file, pat
[all...]
/frameworks/base/tools/aapt2/io/
H A DFile.h5 * you may not use this file except in compliance with the License.
33 // Interface for a file, which could be a real file on the file system, or a
34 // file inside a ZIP archive.
39 // Open the file and return it as a block of contiguous memory. How this
40 // occurs is implementation dependent. For example, if this is a file on the file
41 // system, it may simply mmap the contents. If this file represents a compressed file i
70 FileSegment(IFile* file, size_t offset, size_t len) argument
[all...]
/frameworks/compile/mclinker/unittests/
H A DFactoriesTest.cpp5 // 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/tests/java_api/Refocus/src/com/android/rs/test/
H A DMediaStoreSaver.java5 * you may not use this file except in compliance with the License.
49 //File file = new File(dir, imageName + n + ".png");
50 File file = new File(dir, imageName + ".png");
52 FileOutputStream fOut = new FileOutputStream(file);
54 System.out.println("saved image: " + file.getAbsolutePath());
63 // MediaStorageScan(mContext, file);
64 return file.getAbsolutePath();
69 private static void MediaStorageScan(Context context, final File file) { argument
70 final Uri fileUri = Uri.fromFile(file);
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/
H A DFileProviderExample.java5 * you may not use this file except in compliance with the License.
47 // Save a thumbnail to file
50 final File file = new File(thumbsDir, "private.png");
51 saveThumbnail(view, file);
53 // Now share that private file using FileProvider
54 final Uri uri = FileProvider.getUriForFile(this, AUTHORITY, file);
64 private void saveThumbnail(View view, File file) { argument
71 final OutputStream os = new FileOutputStream(file);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py6 # you may not use this file except in compliance with the License.
23 tofile.write("/* This file is auto-generated from {}.java. DO NOT MODIFY. */\n\n".format(name))
26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name))
28 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('res/layout/browse.xml', 'r') variable
97 file = open('src/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('res/layout/search.xml', 'r') variable
187 file = open('src/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('res/layout/rows.xml', 'r') variable
281 file = open('src/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('res/layout/playback_activity.xml', 'r') variable
312 file = open('src/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('res/layout/playback_transportcontrol_activity.xml', 'r') variable
346 file = open('src/com/example/android/leanback/PlaybackOverlayFragment.java', 'r') variable
358 file = open('src/com/example/android/leanback/PlaybackControlHelper.java', 'r') variable
369 file = open('src/com/example/android/leanback/PlaybackOverlayActivity.java', 'r') variable
381 file = open('res/layout/playback_controls.xml', 'r') variable
390 file = open('src/com/example/android/leanback/OnboardingActivity.java', 'r') variable
404 file = open('src/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
417 file = open('src/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
429 file = open('src/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/
H A DFileProviderExample.java5 * you may not use this file except in compliance with the License.
47 // Save a thumbnail to file
50 final File file = new File(thumbsDir, "private.png");
51 saveThumbnail(view, file);
53 // Now share that private file using FileProvider
54 final Uri uri = FileProvider.getUriForFile(this, AUTHORITY, file);
64 private void saveThumbnail(View view, File file) { argument
71 final OutputStream os = new FileOutputStream(file);
/frameworks/support/samples/SupportLeanbackDemos/
H A Dgeneratev4.py6 # you may not use this file except in compliance with the License.
23 tofile.write("/* This file is auto-generated from {}.java. DO NOT MODIFY. */\n\n".format(name))
26 return line.replace('<?xml version="1.0" encoding="utf-8"?>', '<?xml version="1.0" encoding="utf-8"?>\n<!-- This file is auto-generated from {}.xml. DO NOT MODIFY. -->\n'.format(name))
28 file = open('src/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('res/layout/browse.xml', 'r') variable
97 file = open('src/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('res/layout/search.xml', 'r') variable
187 file = open('src/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('res/layout/rows.xml', 'r') variable
281 file = open('src/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('res/layout/playback_activity.xml', 'r') variable
312 file = open('src/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('res/layout/playback_transportcontrol_activity.xml', 'r') variable
346 file = open('src/com/example/android/leanback/PlaybackOverlayFragment.java', 'r') variable
358 file = open('src/com/example/android/leanback/PlaybackControlHelper.java', 'r') variable
369 file = open('src/com/example/android/leanback/PlaybackOverlayActivity.java', 'r') variable
381 file = open('res/layout/playback_controls.xml', 'r') variable
390 file = open('src/com/example/android/leanback/OnboardingActivity.java', 'r') variable
404 file = open('src/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
417 file = open('src/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
429 file = open('src/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp5 * 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/core/tests/packagemanagertests/src/android/content/pm/
H A DKernelPackageMappingTests.java5 * you may not use this file except in compliance with the License.
74 private static String getContent(File file) { argument
76 return FileUtils.readTextFile(file, 0, null).trim();
78 Log.w(TAG, "Couldn't read file " + file.getAbsolutePath() + "\n" + ioe);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DMutexFileProvider.java5 * 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 DUsageStatsXml.java5 * 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...]

Completed in 1521 milliseconds

123456789