Home
last modified time | relevance | path

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

12345678910>>...14

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DOWNERS1 per-file ReasonType.java = set noparent
2 per-file ReasonType.java = ape-relpgm-cls@google.com
3 per-file BackupUtils.java = set noparent
4 per-file BackupUtils.java = file:platform/frameworks/base:/services/backup/OWNERS
5 per-file LogcatInspector.java = set noparent
6 per-file LogcatInspector.java = file:platform/frameworks/base:/services/backup/OWNERS
DZipUtil.java59 for (File file : files) { in createZip()
60 addToZip(out, file, new ArrayList<>()); in createZip()
81 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument
83 relativePathSegs.add(file.getName()); in addToZip()
84 if (file.isDirectory()) { in addToZip()
90 if (file.isFile()) { in addToZip()
91 writeToStream(file, out); in addToZip()
94 if (file.isDirectory()) { in addToZip()
96 File[] subFiles = file.listFiles(); in addToZip()
99 file.getAbsolutePath())); in addToZip()
[all …]
DChecksumReporter.java105 File file = new File(directory, ChecksumReporter.NAME); in ChecksumReporter() local
106 try (FileInputStream fileStream = new FileInputStream(file); in ChecksumReporter()
160 public void addFile(File file, String path) { in addFile() argument
163 crc = calculateFileChecksum(file); in addFile()
167 String key = path + SEPARATOR + file.getName(); in addFile()
172 public boolean containsFile(File file, String path) { in containsFile() argument
173 String key = path + SEPARATOR + file.getName(); in containsFile()
177 byte[] crc = calculateFileChecksum(file); in containsFile()
254 File file = new File(directory, NAME); in saveToFile() local
256 try (FileOutputStream fileStream = new FileOutputStream(file, false); in saveToFile()
[all …]
/platform_testing/libraries/compatibility-common-util/tests/
Dgen_elf_golden_files.sh9 echo Generating ELF golden sample file for test via readelf
11 for file in $targetFile; do
12 echo Processing $file
13 readelf -a -p .rodata ./assets/$file > ./assets/${file/.so/}.txt
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DDynamicConfigTest.java91 File file = createFileFromStr(CORRECT_CONFIG); in testCorrectConfig() local
93 config.initializeConfig(file); in testCorrectConfig()
100 FileUtil.deleteFile(file); in testCorrectConfig()
106 File file = createFileFromStr(CONFIG_WRONG_NODE_NAME); in testConfigWithWrongNodeName() local
108 config.initializeConfig(file); in testConfigWithWrongNodeName()
113 FileUtil.deleteFile(file); in testConfigWithWrongNodeName()
118 File file = File.createTempFile("test", "dynamic"); in createFileFromStr() local
119 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr()
123 return file; in createFileFromStr()
DOWNERS1 per-file BackupUtilsTest.java = set noparent
2 per-file BackupUtilsTest.java = file:platform/frameworks/base:/services/backup/OWNERS
DBusinessLogicTest.java132 File file = createFileFromStr(CORRECT_LOGIC); in testCorrectLogic() local
134 BusinessLogic bl = BusinessLogicFactory.createFromFile(file); in testCorrectLogic()
230 FileUtil.deleteFile(file); in testCorrectLogic()
236 File file = createFileFromStr(CORRECT_LOGIC.replace("testName", "testNam3")); in testLogicWithWrongNodeName() local
238 BusinessLogicFactory.createFromFile(file); in testLogicWithWrongNodeName()
240 FileUtil.deleteFile(file); in testLogicWithWrongNodeName()
245 File file = File.createTempFile("test", "bl"); in createFileFromStr() local
246 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr()
250 return file; in createFileFromStr()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DResourceFolder.java66 public ResourceFile processFile(TestFileWrapper file, ResourceDeltaKind kind, in processFile() argument
69 ResourceFile resFile = getFile(file, context); in processFile()
75 resFile = createResourceFile(file); in processFile()
87 private ResourceFile createResourceFile(TestFileWrapper file) { in createResourceFile() argument
96 SdkUtils.endsWithIgnoreCase(file.getName(), SdkConstants.DOT_XML)) { in createResourceFile()
99 resFile = new IdGeneratingResourceFile(file, this, primaryType); in createResourceFile()
101 resFile = new SingleResourceFile(file, this); in createResourceFile()
104 resFile = new MultiResourceFile(file, this); in createResourceFile()
133 private ResourceFile getFile(TestFileWrapper file, ScanningContext context) { in getFile() argument
134 assert mFolder.equals(file.getParentFolder()); in getFile()
[all …]
DResourceItem.java88 protected void add(ResourceFile file) { in add() argument
89 mFiles.add(file); in add()
96 protected void removeFile(ResourceFile file) { in removeFile() argument
97 mFiles.remove(file); in removeFile()
DIdGeneratingResourceFile.java56 … public IdGeneratingResourceFile(TestFileWrapper file, ResourceFolder folder, ResourceType type) { in IdGeneratingResourceFile() argument
57 super(file, folder); in IdGeneratingResourceFile()
68 mFileValue = getFileValue(file, folder); in IdGeneratingResourceFile()
130 IAbstractFile file = getFile(); in parseFileForIds() local
131 return parser.parse(file.getContents()); in parseFileForIds()
167 private ResourceValue getFileValue(IAbstractFile file, ResourceFolder folder) { in getFileValue() argument
179 file.getOsLocation()); in getFileValue()
187 file.getOsLocation(), in getFileValue()
DSingleResourceFile.java45 public SingleResourceFile(TestFileWrapper file, ResourceFolder folder) { in SingleResourceFile() argument
46 super(file, folder); in SingleResourceFile()
66 file.getOsLocation()); in SingleResourceFile()
74 file.getOsLocation(), in SingleResourceFile()
139 IAbstractFile file = getFile(); in validateAttributes() local
140 return parser.parse(file.getContents()); in validateAttributes()
DTestFileWrapper.java25 public TestFileWrapper(File file) { in TestFileWrapper() argument
26 super(file); in TestFileWrapper()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DIoUtils.kt22 import java.nio.file.Files
23 import java.nio.file.Paths
45 fun waitFileExists(file: File, timeoutMs: Long) { in waitFileExists()
50 val out = String(executeShellCommand("ls $file")).trim() in waitFileExists()
51 val configFileInPerfettoDirExists = out == file.toString() in waitFileExists()
61 error("Failed to wait for file to exist: $file. Timed out after $timeoutMs ms.") in waitFileExists()
DFileArtifact.kt41 var file: File = artifactFile variable
50 RunStatus.fromFileName(file.name)
54 get() = file.absolutePath
57 get() = file.name
62 val currFile = file in updateStatus()
67 file = newFile in updateStatus()
73 file.deleteIfExists() in deleteIfExists()
105 return file.resolveSibling(newStatus.generateArchiveNameFor(scenario, counter)) in getNewFilePath()
142 if (!file.exists()) { in withZipFile()
143 val directory = file.parentFile in withZipFile()
[all …]
/platform_testing/libraries/flag-helpers/
DOWNERS3 per-file *SetFlagsRule* = wenshan@google.com, opg@google.com, tedbauer@google.com, zhidou@google.com
4 per-file junit/test/src/android/platform/test/flag/junit/Flags.java = wenshan@google.com, opg@googl…
5 per-file junit/test/src/android/platform/test/flag/junit/FeatureFlags.java = wenshan@google.com, op…
6 per-file junit/test/src/android/platform/test/flag/junit/FakeFeatureFlagsImpl.java = wenshan@google…
7 per-file junit/test/src/android/platform/test/flag/junit/CustomFeatureFlags.java = wenshan@google.c…
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DArtifactBuilderTest.kt35 Truth.assertWithMessage("Artifact exists").that(artifact.file.exists()).isTrue() in buildArtifactAndFileExists()
44 val statusFromFile = RunStatus.fromFileName(artifact.file.name) in buildArtifactWithStatus()
54 .that(artifact.file.name) in buildArtifactWithScenario()
64 Truth.assertWithMessage("Output dir").that(artifact.file.parentFile).isEqualTo(expectedDir) in buildArtifactWithOutputDir()
85 Truth.assertWithMessage("Artifact 1 exists").that(artifact1.file.exists()).isTrue() in buildArtifactAvoidDuplicate()
86 Truth.assertWithMessage("Artifact 2 exists").that(artifact2.file.exists()).isTrue() in buildArtifactAvoidDuplicate()
88 .that(artifact2.file.name) in buildArtifactAvoidDuplicate()
89 .isNotEqualTo(artifact1.file.name) in buildArtifactAvoidDuplicate()
90 Truth.assertWithMessage("Artifact 2 name").that(artifact2.file.name).endsWith("_1.zip") in buildArtifactAvoidDuplicate()
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/
DArtifactSaverRule.kt36 val file = ArtifactSaver.artifactFile(fileName) in failed() constant
37 file.writeBytes(DeviceDumpParser.lastWmTraceData) in failed()
42 val file = ArtifactSaver.artifactFile(fileName) in failed() constant
43 file.writeBytes(DeviceDumpParser.lastLayersTraceData) in failed()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DSamplerRule.java57 final File file = getFile(); in startThread()
62 new BufferedOutputStream(new FileOutputStream(file)))) { in startThread()
71 file.delete(); in startThread()
76 + file); in startThread()
/platform_testing/libraries/health/runners/longevity/platform/samples/
DAndroid.bp5 // you may not use this file except in compliance with the License.
34 * directory, which gets packed into a .jar file and ends up under the assets/
41 "&& for file in $${src_protos[@]} ; do fname=$$(basename $$file) " +
43 "$(location :profile-proto-def) < $$file > " +
45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/libraries/health/runners/longevity/platform/tests/
DAndroid.bp5 // you may not use this file except in compliance with the License.
34 * directory, which gets packed into a .jar file and ends up under the assets/
41 "&& for file in $${src_protos[@]} ; do fname=$$(basename $$file) " +
43 "$(location :profile-proto-def) < $$file > " +
45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DBinderCollectionHelper.java90 File file = File.createTempFile("temp-ipc-tracing-dump", ".txt"); in getMetrics() local
95 COPY_COMMAND, TRACE_FILE_PATH, file.getAbsolutePath())); in getMetrics()
100 file.getAbsolutePath(), file.length())); in getMetrics()
101 BufferedReader reader = new BufferedReader(new FileReader(file)); in getMetrics()
103 file.delete(); in getMetrics()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/util/
DSendToInstrumentation.java43 public static void sendFile(Instrumentation instru, String key, File file) { in sendFile() argument
46 b.putString(key, file.getAbsolutePath()); in sendFile()
/platform_testing/libraries/sts-common-util/sts-sdk/package/
Dbuild.gradle15 from project('sts-test').layout.buildDirectory.file('testcases')
18 from project('native-poc').layout.buildDirectory.file(nativeDir)
27 from project('test-app').layout.buildDirectory.file('outputs/apk/debug')
36 // Remember to use that APK file name in your `sts-test`.
39 from project('sts-test').layout.projectDirectory.file('libs')
98 from project('sts-test').layout.projectDirectory.file('libs/version.txt')
/platform_testing/tests/health/scenarios/tests/
DAndroid.bp4 // you may not use this file except in compliance with the License.
34 * directory, which gets packed into a .jar file and ends up under the assets/
41 "&& for file in $${src_protos[@]} ; do fname=$$(basename $$file) " +
43 "$(location :profile-proto-def) < $$file > " +
45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DPocPusher.java60 String file = it.next(); in finished() local
62 CLog.i("Cleaning up %s", file); in finished()
63 device.deleteFile(file); in finished()
65 CLog.e("Device unavailable when cleaning up %s", file); in finished()

12345678910>>...14