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

12345678910

/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) {}
/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/io/
H A DFileStream_test.cpp5 * you may not use this file except in compliance with the License.
19 #include "android-base/file.h"
35 TemporaryFile file; local
36 ASSERT_THAT(TEMP_FAILURE_RETRY(write(file.fd, input.c_str(), input.size())), Eq(21));
37 lseek64(file.fd, 0, SEEK_SET);
40 FileInputStream in(file.release(), 10u);
90 TemporaryFile file; local
92 FileOutputStream out(file.fd, 10u);
120 lseek64(file.fd, 0, SEEK_SET);
123 ASSERT_TRUE(android::base::ReadFdToString(file
[all...]
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
72 FileSegment(IFile* file, size_t offset, size_t len) argument
[all...]
/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/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/leanback/
H A Dgeneratef.py6 # you may not use this file except in compliance with the License.
30 file = open('src/android/support/v17/leanback/app/{}SupportFragment.java'.format(w), 'r') variable
32 content = content + "/* This file is auto-generated from {}SupportFragment.java. DO NOT MODIFY. */\n\n".format(w)
34 for line in file:
46 file.close()
57 file = open('src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java', 'r') variable
59 content = content + "/* This file is auto-generated from VideoSupportFragmentGlueHost.java. DO NOT MODIFY. */\n\n"
60 for line in file:
65 file.close()
75 file variable
93 file = open('src/android/support/v17/leanback/app/DetailsSupportFragmentBackgroundController.java', 'r') variable
[all...]
/frameworks/support/leanback/src/androidTest/
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/{}SupportFragment.java'.format(w), 'r') variable
38 outfile.write("/* This file is auto-generated from {}SupportFragment.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/{}SupportFragmentTestBase.java'.format(w), 'r') variable
61 outfile.write("/* This file is auto-generated from {}SupportFrgamentTestBase.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/{}SupportFragmentTestActivity.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
[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/av/services/audioflinger/
H A DTypedLogger.h6 * you may not use this file except in compliance with the License.
27 Fowler-Noll-Vo (FNV-1a) hash function for the file name.
68 constexpr T fnv1a(const char (&file)[n], ssize_t i = (ssize_t)n - 1) { argument
69 return i == -1 ? offset_basis<T>() : (fnv1a<T>(file, i - 1) ^ file[i]) * FNV_prime<T>();
73 constexpr uint64_t hash(const char (&file)[n], uint32_t line) { argument
77 return ((fnv1a<uint64_t>(file) << 16) ^ ((fnv1a<uint64_t>(file) >> 32) & 0xFFFF0000)) |
/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/libs/androidfw/tests/
H A DTestHelpers.cpp5 * you may not use this file except in compliance with the License.
27 AssertionResult ReadFileFromZipToString(const std::string& zip_path, const std::string& file, argument
37 ::ZipString name(file.c_str());
42 return AssertionFailure() << "Could not find file '" << file << "' in zip '" << zip_path
52 return AssertionFailure() << "Failed to extract file '" << file << "' from zip '" << zip_path
/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DDataStreamFileCodec.java5 * you may not use this file except in compliance with the License.
28 * Provides an interface for serializing an object to a file and deserializing it back again.
39 * Constructs an instance to serialize to or deserialize from the given file, with the given
42 public DataStreamFileCodec(File file, DataStreamCodec<T> codec) { argument
43 mFile = file;
48 * Deserializes a {@code T} from the file, automatically closing input streams.
63 * Serializes {@code t} to the file, automatically flushing and closing output streams.
/frameworks/base/tools/streaming_proto/
H A Dstream_proto_utils.cpp88 should_generate_for_file(const CodeGeneratorRequest& request, const string& file) argument
92 if (request.file_to_generate(i) == file) {
/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/main/java/com/example/android/supportv4/content/
H A DFileProviderExample.java5 * you may not use this file except in compliance with the License.
49 // Save a thumbnail to file
52 final File file = new File(thumbsDir, "private.png");
53 saveThumbnail(view, file);
55 // Now share that private file using FileProvider
56 final Uri uri = FileProvider.getUriForFile(this, AUTHORITY, file);
66 private void saveThumbnail(View view, File file) { argument
73 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/main/java/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/main/java/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/main/java/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('src/main/res/layout/browse.xml', 'r') variable
97 file = open('src/main/java/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/main/java/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/main/java/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/main/java/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/main/java/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/main/java/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('src/main/res/layout/search.xml', 'r') variable
187 file = open('src/main/java/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/main/java/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('src/main/res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/main/java/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/main/java/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/main/java/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/main/java/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('src/main/res/layout/rows.xml', 'r') variable
281 file = open('src/main/java/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/main/java/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('src/main/res/layout/playback_activity.xml', 'r') variable
312 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('src/main/res/layout/playback_transportcontrol_activity.xml', 'r') variable
344 file = open('src/main/res/layout/playback_controls.xml', 'r') variable
353 file = open('src/main/java/com/example/android/leanback/OnboardingActivity.java', 'r') variable
367 file = open('src/main/java/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
380 file = open('src/main/java/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
392 file = open('src/main/java/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
H A DFileProviderExample.java5 * you may not use this file except in compliance with the License.
49 // Save a thumbnail to file
52 final File file = new File(thumbsDir, "private.png");
53 saveThumbnail(view, file);
55 // Now share that private file using FileProvider
56 final Uri uri = FileProvider.getUriForFile(this, AUTHORITY, file);
66 private void saveThumbnail(View view, File file) { argument
73 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/main/java/com/example/android/leanback/GuidedStepActivity.java', 'r') variable
31 for line in file:
38 file.close()
41 file = open('src/main/java/com/example/android/leanback/GuidedStepHalfScreenActivity.java', 'r') variable
44 for line in file:
52 file.close()
55 file variable
75 file = open('src/main/java/com/example/android/leanback/BrowseActivity.java', 'r') variable
87 file = open('src/main/res/layout/browse.xml', 'r') variable
97 file = open('src/main/java/com/example/android/leanback/DetailsFragment.java', 'r') variable
111 file = open('src/main/java/com/example/android/leanback/NewDetailsFragment.java', 'r') variable
130 file = open('src/main/java/com/example/android/leanback/DetailsActivity.java', 'r') variable
144 file = open('src/main/java/com/example/android/leanback/SearchDetailsActivity.java', 'r') variable
154 file = open('src/main/java/com/example/android/leanback/SearchFragment.java', 'r') variable
164 file = open('src/main/java/com/example/android/leanback/SearchActivity.java', 'r') variable
178 file = open('src/main/res/layout/search.xml', 'r') variable
187 file = open('src/main/java/com/example/android/leanback/VerticalGridFragment.java', 'r') variable
198 file = open('src/main/java/com/example/android/leanback/VerticalGridActivity.java', 'r') variable
212 file = open('src/main/res/layout/vertical_grid.xml', 'r') variable
222 file = open('src/main/java/com/example/android/leanback/ErrorFragment.java', 'r') variable
231 file = open('src/main/java/com/example/android/leanback/BrowseErrorActivity.java', 'r') variable
247 file = open('src/main/java/com/example/android/leanback/RowsFragment.java', 'r') variable
257 file = open('src/main/java/com/example/android/leanback/RowsActivity.java', 'r') variable
272 file = open('src/main/res/layout/rows.xml', 'r') variable
281 file = open('src/main/java/com/example/android/leanback/PlaybackFragment.java', 'r') variable
291 file = open('src/main/java/com/example/android/leanback/PlaybackActivity.java', 'r') variable
303 file = open('src/main/res/layout/playback_activity.xml', 'r') variable
312 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlFragment.java', 'r') variable
323 file = open('src/main/java/com/example/android/leanback/PlaybackTransportControlActivity.java', 'r') variable
335 file = open('src/main/res/layout/playback_transportcontrol_activity.xml', 'r') variable
344 file = open('src/main/res/layout/playback_controls.xml', 'r') variable
353 file = open('src/main/java/com/example/android/leanback/OnboardingActivity.java', 'r') variable
367 file = open('src/main/java/com/example/android/leanback/OnboardingDemoFragment.java', 'r') variable
380 file = open('src/main/java/com/example/android/leanback/SampleVideoFragment.java', 'r') variable
392 file = open('src/main/java/com/example/android/leanback/VideoActivity.java', 'r') variable
[all...]
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
H A DRenderTest.java5 * you may not use this file except in compliance with the License.
104 static void deleteDir(File file) { argument
105 File[] contents = file.listFiles();
111 file.delete();

Completed in 7975 milliseconds

12345678910