Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 272) sorted by relevance

1234567891011

/development/tools/winscope/src/app/
Dtrace_file_filter.ts50 const bugreportMainEntry = files.find((file) =>
51 file.file.name.endsWith('main_entry.txt'),
54 const perfettoFiles = files.filter((file) => this.isPerfettoFile(file));
55 const legacyFiles = files.filter((file) => !this.isPerfettoFile(file));
84 const bugreportName = (await bugreportMainEntry.file.text()).trim();
85 const rawBugReport = files.find((file) => file.file.name === bugreportName);
90 const traceBuffer = new Uint8Array(await rawBugReport.file.arrayBuffer());
125 const bugreportName = (await bugreportMainEntry.file.text()).trim();
127 files.find((file) => {
129 file.parentArchive === bugreportMainEntry.parentArchive &&
[all …]
Dloaded_parsers.ts103 const tryPushOutputFile = (file: File, filename: string) => {
105 if (outputFilesSoFar.has(file)) {
108 outputFilesSoFar.add(file);
113 assertDefined(outputFilenameToFiles.get(filename)).push(file);
118 file: File,
122 return new File([file], filename);
130 return new File([file], `${filename} (${clashCount})`);
134 [file],
140 const file: TraceFile = this.perfettoParsers.values().next().value.file; constant
141 let outputFilename = FileUtils.removeDirFromFileName(file.file.name);
[all …]
Dtrace_file_filter_test.ts166 expect(result.legacy.map((file) => file.file.name)).toEqual([
237 const file = new File([new ArrayBuffer(size)], filename); constant
238 return new TraceFile(file as unknown as File, parentArchive);
242 const file = await UnitTestUtils.getFixtureFile( constant
246 return new TraceFile(file, bugreportArchive);
250 const file = await UnitTestUtils.getFixtureFile( constant
254 return new TraceFile(file, bugreportArchive);
258 const file = await UnitTestUtils.getFixtureFile( constant
262 return new TraceFile(file, bugreportArchive);
/development/python-packages/fetchartifact/
Dpoetry.lock1 # This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.
11 …{file = "aiohttp-3.8.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5ce45967538fb747370…
12 …{file = "aiohttp-3.8.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b744c33b6f14ca26b7544e8…
13 …{file = "aiohttp-3.8.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1a45865451439eb320784918…
14 …{file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha2…
15 …{file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha2…
16 …{file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1…
17 …{file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256…
18 …{file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinu…
19 …{file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e4b09863aae0dc965c3e…
[all …]
/development/tools/winscope/src/common/
Dfile_utils.ts20 export type OnFile = (file: File, parentArchive: File | undefined) => void;
56 const file = files[i]; constant
57 const blob = await file.arrayBuffer();
58 zip.file(file.name, blob);
64 file: Blob,
69 const content = await zip.loadAsync(file);
73 const file = content.files[filename]; constant
74 if (file.dir) {
78 const fileBlob = await file.async('blob');
89 static async decompressGZipFile(file: File): Promise<File> {
[all …]
/development/tools/findunused/
Dfind_unused_resources.rb62 "#{file}:#{lineNumber}"
66 if @file == other.file
69 @file <=> other.file
93 File.open(filename) { |file|
94 file.each { |line|
97 @@globalJavaIdUses[id] = FilePosition.new(filename, file.lineno)
113 File.open(filename) { |file|
114 file.each { |line|
116 strings[id] = FilePosition.new(filename, file.lineno)
119 layouts[id] = FilePosition.new(filename, file.lineno)
[all …]
/development/tools/ota_analysis/src/components/
DBaseFile.vue2 <label class="file-select ma-5">
14 ref="file"
15 type="file"
37 this.$emit('file-select', this.$refs.file.files)
38 this.fileName = this.$refs.file.files[0].name
42 if (!event.currentTarget.classList.contains('file-hover')) {
43 event.currentTarget.classList.add('file-hover')
47 event.currentTarget.classList.remove('file-hover')
51 this.$refs.file.files = event.dataTransfer.files
53 event.currentTarget.classList.remove('file-hover')
[all …]
/development/tools/otagui/src/components/
DBaseFile.vue2 <label class="file-select ma-5">
14 ref="file"
15 type="file"
37 this.$emit('file-select', this.$refs.file.files)
38 this.fileName = this.$refs.file.files[0].name
42 if (!event.currentTarget.classList.contains('file-hover')) {
43 event.currentTarget.classList.add('file-hover')
47 event.currentTarget.classList.remove('file-hover')
51 this.$refs.file.files = event.dataTransfer.files
53 event.currentTarget.classList.remove('file-hover')
[all …]
DUploadFile.vue4 label="Upload a target file"
5 @file-select="UploadHandler"
32 this.file = files[0]
33 console.log(this.file.name)
35 let response = await ApiService.uploadTarget(this.file, (event) => {
39 this.$emit('file-uploaded')
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/
DRmTypeDefs.java89 File file = new File(arg); in run() local
90 if (file.exists()) { in run()
91 dirs.add(file); in run()
93 System.err.println(file + " does not exist"); in run()
122 private void checkFile(File file) { in checkFile() argument
123 if (file.isDirectory()) { in checkFile()
124 File[] files = file.listFiles(); in checkFile()
130 } else if (file.isFile()) { in checkFile()
131 String path = file.getPath(); in checkFile()
133 checkClass(file); in checkFile()
[all …]
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java73 public static void findAndInitRepoRoot(File file) { in findAndInitRepoRoot() argument
74 Preconditions.checkNotNull(file); in findAndInitRepoRoot()
79 if (file.isDirectory()) { in findAndInitRepoRoot()
80 File[] files = file.listFiles(new FilenameFilter() { in findAndInitRepoRoot()
87 repoRoot = file; in findAndInitRepoRoot()
90 File parent = file.getParentFile(); in findAndInitRepoRoot()
93 file.getPath()); in findAndInitRepoRoot()
135 public static ImmutableList<File> findSourceDirs(File file) { in findSourceDirs() argument
136 Preconditions.checkNotNull(file); in findSourceDirs()
137 if (!file.exists()) { in findSourceDirs()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java185 final File file = pending.removeFirst(); in queryRecentDocuments() local
186 if (file.isDirectory()) { in queryRecentDocuments()
188 Collections.addAll(pending, file.listFiles()); in queryRecentDocuments()
191 lastModifiedFiles.add(file); in queryRecentDocuments()
197 final File file = lastModifiedFiles.remove(); in queryRecentDocuments() local
198 includeFile(result, null, file); in queryRecentDocuments()
229 final File file = pending.removeFirst(); in querySearchDocuments() local
230 if (file.isDirectory()) { in querySearchDocuments()
232 Collections.addAll(pending, file.listFiles()); in querySearchDocuments()
235 if (file.getName().toLowerCase().contains(query)) { in querySearchDocuments()
[all …]
/development/tools/repo_pull/
Drepo_review.py50 .format(name, value), file=sys.stderr)
55 def _print_change_lists(change_lists, file=sys.stdout): argument
61 print('Change Lists:', file=file)
65 print(' ', project, file=file)
72 print(' ', change_id, '--', subject, file=file)
79 print('Cancelled', file=sys.stderr)
82 print('Cancelled', file=sys.stderr)
154 print(_SEP_SPLIT, file=sys.stderr)
155 print('Project:', project, file=sys.stderr)
156 print('Change-Id:', change_id, file=sys.stderr)
[all …]
Drepo_pull.py59 def write_bytes(data, file): # PY2 argument
62 file.write(data)
64 def write_bytes(data, file): # PY3 argument
67 file.buffer.write(data)
70 def _confirm(question, default, file=sys.stderr): argument
76 file.write(question + suffix)
77 file.flush()
334 def _print_pull_failures(failures, file=sys.stderr): argument
341 print(separator, file=file)
343 print('PROJECT:', failed_change.project, file=file)
[all …]
/development/tools/idegen/src/
DConfiguration.java21 import java.nio.file.Files;
22 import java.nio.file.Path;
148 for (File file : files) { in traverse()
150 String path = file.getPath().substring(2); in traverse()
153 if (!file.exists()) { in traverse()
158 if (Files.isSymbolicLink(file.toPath())) { in traverse()
159 Path target = Files.readSymbolicLink(file.toPath()).normalize(); in traverse()
169 if (file.isDirectory()) { in traverse()
174 excludedDirs.add(file); in traverse()
176 traverse(file, sourceRoots, jarFiles, excludedDirs, in traverse()
[all …]
DFiles.java28 static String toString(File file) throws IOException { in toString() argument
31 Reader in = new FileReader(file); in toString()
43 static void toFile(String contents, File file) throws IOException { in toFile() argument
44 FileWriter out = new FileWriter(file); in toFile()
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DBackupRestoreActivity.java151 RandomAccessFile file; in populateUI() local
162 file = new RandomAccessFile(mDataFile, "rw"); in populateUI()
165 whichFilling = file.readInt(); in populateUI()
166 addMayo = file.readBoolean(); in populateUI()
167 addTomato = file.readBoolean(); in populateUI()
175 writeDataToFileLocked(file, in populateUI()
222 void writeDataToFileLocked(RandomAccessFile file, in writeDataToFileLocked() argument
225 file.setLength(0L); in writeDataToFileLocked()
226 file.writeInt(whichFilling); in writeDataToFileLocked()
227 file.writeBoolean(addMayo); in writeDataToFileLocked()
[all …]
DExampleAgent.java95 RandomAccessFile file = new RandomAccessFile(mDataFile, "r"); in onBackup() local
96 mFilling = file.readInt(); in onBackup()
97 mAddMayo = file.readBoolean(); in onBackup()
98 mAddTomato = file.readBoolean(); in onBackup()
232 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in onRestore() local
233 file.setLength(0L); in onRestore()
234 file.writeInt(mFilling); in onRestore()
235 file.writeBoolean(mAddMayo); in onRestore()
236 file.writeBoolean(mAddTomato); in onRestore()
DMultiRecordExampleAgent.java71 RandomAccessFile file = new RandomAccessFile(mDataFile, "r"); in onBackup() local
72 mFilling = file.readInt(); in onBackup()
73 mAddMayo = file.readBoolean(); in onBackup()
74 mAddTomato = file.readBoolean(); in onBackup()
191 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in onRestore() local
192 file.setLength(0L); in onRestore()
193 file.writeInt(mFilling); in onRestore()
194 file.writeBoolean(mAddMayo); in onRestore()
195 file.writeBoolean(mAddTomato); in onRestore()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java187 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePublicPicture() local
199 OutputStream os = new FileOutputStream(file); in createExternalStoragePublicPicture()
209 new String[] { file.toString() }, null, in createExternalStoragePublicPicture()
219 Log.w("ExternalStorage", "Error writing " + file, e); in createExternalStoragePublicPicture()
229 File file = new File(path, "DemoPicture.jpg"); in deleteExternalStoragePublicPicture() local
230 file.delete(); in deleteExternalStoragePublicPicture()
240 File file = new File(path, "DemoPicture.jpg"); in hasExternalStoragePublicPicture() local
241 return file.exists(); in hasExternalStoragePublicPicture()
254 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePrivatePicture() local
263 OutputStream os = new FileOutputStream(file); in createExternalStoragePrivatePicture()
[all …]
/development/vndk/tools/header-checker/android/
Dbuild-prebuilts.sh150 local file="$1"
151 readelf -d "${file}" | \
156 for file in "${SOONG_OUT}/dist/lib"*"/"*; do
157 soname="$(extract_soname "${file}")"
158 if [ -n "${soname}" -a "$(basename "${file}")" != "${soname}" ]; then
159 mv "${file}" "$(dirname "${file}")/${soname}"
/development/vndk/tools/
Dsystem_image_diff.py47 for file in files:
49 if not os.path.islink(os.path.join(root, file)):
50 system_files.append(os.path.join(root[system_prefix_len:], file))
127 for file in system_files_diff:
128 if file in system_files_map:
129 package = system_files_map[file]
134 packages[package].append(file)
136 packages[package] = [file]
144 for file in files:
151 full_path = os.path.join(args.out1, 'system', file)
[all …]
/development/samples/apkcachetest/src/com/android/apkcachetest/
DMain.java48 for (File file : files) { in onCreate()
50 txt.append(" " + file.getName() + ": [" + readTextFile(file) + "]\n"); in onCreate()
52 txt.append(" " + file.getName() + ": Error " + e + "\n"); in onCreate()
62 String readTextFile(File file) throws IOException { in readTextFile() argument
63 String s = FileUtils.readTextFile(file, 100, "..."); in readTextFile()
/development/scripts/
Dbash_util.bash88 local file="$dir/temp-$(date '+%Y%m%d-%H%M%S')-$$$suffix"
89 if ! [[ -e "$file" ]] ; then
90 touch "$file" # Note it's a bit racy..
91 echo "$file"
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
DRmTypeDefsTest.java183 private void assertDoesNotContainBytes(File file, String sub) throws IOException { in assertDoesNotContainBytes() argument
184 byte[] contents = Files.toByteArray(file); in assertDoesNotContainBytes()
194 assertFalse("Found " + sub + " in class file " + file, in assertDoesNotContainBytes()
212 private void list(StringBuilder sb, File file, String prefix, int depth, String rootName) { in list() argument
220 String fileName = file.getName(); in list()
225 if (file.isDirectory()) { in list()
228 File[] files = file.listFiles(); in list()
258 for (File file : files) { in deleteDir()
259 if (file.isDirectory()) { in deleteDir()
260 deleteDir(file); in deleteDir()
[all …]

1234567891011