/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) {}
|
/frameworks/base/tools/aapt2/io/ |
H A D | FileInputStream_test.cpp | 5 * you may not use this file except in compliance with the License. 34 TemporaryFile file; local 35 ASSERT_THAT(TEMP_FAILURE_RETRY(write(file.fd, input.c_str(), input.size())), Eq(21)); 36 lseek64(file.fd, 0, SEEK_SET); 39 FileInputStream in(file.fd, 10u);
|
H A D | File.h | 5 * 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/wilhelm/src/ |
H A D | assert.cpp | 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/core/java/com/android/internal/content/ |
H A D | PdfUtils.java | 5 * you may not use this file except in compliance with the License. 47 * @param file Given PDF File 50 * @throws IOException if the file isn't a pdf or if the file doesn't exist. 52 public static @Nullable AssetFileDescriptor openPdfThumbnail(File file, Point size) argument 56 ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
|
/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. 24 namespace file { namespace in namespace:aapt
|
/frameworks/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/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | benchmark.h | 26 // 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/ |
H A D | generatef.py | 6 # 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/v17/leanback/tests/ |
H A D | generatev4.py | 6 # 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 [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/av/services/audioflinger/ |
H A D | TypedLogger.h | 6 * you may not use this file except in compliance with the License. 25 Fowler-Noll-Vo (FNV-1a) hash function for the file name. 65 constexpr T fnv1a(const char (&file)[n], int i = n - 1) { argument 66 return i == -1 ? offset_basis<T>() : (fnv1a<T>(file, i - 1) ^ file[i]) * FNV_prime<T>(); 70 constexpr uint64_t hash(const char (&file)[n], uint32_t line) { argument 74 return ((fnv1a<uint64_t>(file) << 16) ^ ((fnv1a<uint64_t>(file) >> 32) & 0xFFFF0000)) |
|
/frameworks/base/core/java/android/os/ |
H A D | RevocableFileDescriptor.java | 5 * 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 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/services/backup/java/com/android/server/backup/utils/ |
H A D | DataStreamFileCodec.java | 5 * 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/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/tests/java_api/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"); 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 D | FileProviderExample.java | 5 * 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 D | generatev4.py | 6 # 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 D | FileProviderExample.java | 5 * 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 D | generatev4.py | 6 # 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 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/core/tests/packagemanagertests/src/android/content/pm/ |
H A D | KernelPackageMappingTests.java | 5 * 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);
|