Home
last modified time | relevance | path

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

12345678910>>...148

/cts/tools/release-parser/tests/
Dgenerate_golden_sample_files.sh15 for file in $TargetFiles; do
16 echo Processing $file
17 …se-parser.jar com.android.cts.releaseparser.ApkParser -i resources/$file -of resources/$file.pb.txt
21 for file in $TargetFiles; do
22 echo Processing $file
23 …parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -pi -of resources/$file.pb.txt
27 for file in $TargetFiles; do
28 echo Processing $file
29 …ase-parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -of resources/$file.pb.txt
33 for file in $TargetFiles; do
[all …]
/cts/hostsidetests/appsecurity/
DOWNERS4 per-file AccessSerialNumberTest.java = moltmann@google.com
5 per-file ApexSignatureVerificationTest.java = dariofreni@google.com
6 per-file ApplicationVisibilityTest.java = toddke@google.com,patb@google.com
7 per-file AppDataIsolationTests.java = rickywai@google.com,alanstokes@google.com
8 per-file AppOpsTest.java = moltmann@google.com
9 per-file AppSecurityTests.java = cbrubaker@google.com
10 per-file AuthBoundKeyTest.java = file:test-apps/AuthBoundKeyApp/OWNERS
11 per-file BaseInstallMultiple.java = toddke@google.com,patb@google.com
12 per-file CorruptApkTests.java = rtmitchell@google.com
13 per-file DeviceIdentifierTest.java = cbrubaker@google.com
[all …]
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java182 for (File file : mIncludeFiles) { in generateFiles()
183 addData(file); in generateFiles()
185 for (File file : mExcludeFiles) { in generateFiles()
186 addData(file); in generateFiles()
188 for (File file : mRequireFakeClientSideEncryptionFiles) { in generateFiles()
189 addData(file); in generateFiles()
197 for (File file : mIncludeFiles) { in deleteAllFiles()
198 file.delete(); in deleteAllFiles()
200 for (File file : mExcludeFiles) { in deleteAllFiles()
201 file.delete(); in deleteAllFiles()
[all …]
/cts/hostsidetests/os/test-apps/
DOWNERS1 per-file StaticSharedLibConsumerApp1/*=patb@google.com
2 per-file StaticSharedLibConsumerApp2/*=patb@google.com
3 per-file StaticSharedLibConsumerApp3/*=patb@google.com
4 per-file StaticSharedLibProviderApp1/*=patb@google.com
5 per-file StaticSharedLibProviderApp2/*=patb@google.com
6 per-file StaticSharedLibProviderApp3/*=patb@google.com
7 per-file StaticSharedLibProviderApp4/*=patb@google.com
8 per-file StaticSharedLibProviderApp5/*=patb@google.com
9 per-file StaticSharedLibProviderApp6/*=patb@google.com
10 per-file StaticSharedLibProviderApp7/*=patb@google.com
[all …]
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java42 File file = new File(fileName); in readFile() local
43 return readFile(file); in readFile()
53 public static byte[] readFile(File file) { in readFile() argument
54 if (!file.exists()) { in readFile()
55 throw new RuntimeException(file + ": file not found"); in readFile()
58 if (!file.isFile()) { in readFile()
59 throw new RuntimeException(file + ": not a file"); in readFile()
62 if (!file.canRead()) { in readFile()
63 throw new RuntimeException(file + ": file not readable"); in readFile()
66 long longLength = file.length(); in readFile()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DSQLiteCantOpenDatabaseExceptionTest.java39 private void callWithExceptedMessage(File file, String expectedMessagePatter) { in callWithExceptedMessage() argument
41 SQLiteDatabase.openDatabase(file, new OpenParams.Builder().build()); in callWithExceptedMessage()
55 final File file = getDatabaseFile("nonexisitentdir/mydb.db"); in testDirectoryDoesNotExist() local
57 callWithExceptedMessage(file, ".*: Directory .* doesn't exist"); in testDirectoryDoesNotExist()
62 final File file = getDatabaseFile("mydb.db"); in testFileDoesNotExist() local
64 callWithExceptedMessage(file, ".*: File .* doesn't exist"); in testFileDoesNotExist()
69 final File file = getDatabaseFile("mydb.db"); in testFileNotReadable() local
71 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(file, null); in testFileNotReadable()
74 file.setReadable(false); in testFileNotReadable()
76 callWithExceptedMessage(file, ".*: File .* not readable"); in testFileNotReadable()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java61 public static FileParser getParser(File file) { in getParser() argument
62 String fName = file.getName(); in getParser()
64 if (isSymbolicLink(file)) { in getParser()
65 return new SymbolicLinkParser(file); in getParser()
67 return new ApkParser(file); in getParser()
69 return new TestModuleConfigParser(file); in getParser()
71 return new TestSuiteTradefedParser(file); in getParser()
74 return new JarParser(file); in getParser()
76 return new SoParser(file); in getParser()
78 return new ArtParser(file); in getParser()
[all …]
/cts/tests/tests/os/
DOWNERS1 per-file *AutoRevoke* = file:platform/frameworks/base:/core/java/android/permission/OWNERS
2 per-file *AppHibernation* = file:platform/frameworks/base:/core/java/android/permission/OWNERS
3 per-file *Companion* = file:platform/frameworks/base:/core/java/android/permission/OWNERS
4 per-file *AndroidManifest.xml = file:platform/frameworks/base:/core/java/android/permission/OWNERS
5 per-file *CtsOsTestCases.xml = file:platform/frameworks/base:/core/java/android/permission/OWNERS
/cts/tests/tests/media/src/android/media/cts/
DThumbnailUtilsTest.java108 final File file = stageFile("testmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail() local
110 assertSaneThumbnail(size, ThumbnailUtils.createAudioThumbnail(file, size, null)); in testCreateAudioThumbnail()
116 final File file = stageFile("monotestmp3.mp3", new File(mDir, "audio.mp3")); in testCreateAudioThumbnail_SeparateFile() local
120 assertSaneThumbnail(size, ThumbnailUtils.createAudioThumbnail(file, size, null)); in testCreateAudioThumbnail_SeparateFile()
126 final File file = stageFile("monotestmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail_None() local
128 ThumbnailUtils.createAudioThumbnail(file, TEST_SIZES[0], null); in testCreateAudioThumbnail_None()
136 final File file = stageFile("volantis.jpg", new File(mDir, "cts.jpg")); in testCreateImageThumbnail() local
138 assertSaneThumbnail(size, ThumbnailUtils.createImageThumbnail(file, size, null)); in testCreateImageThumbnail()
154 final File file = stageFile(res, new File(mDir, "cts.jpg")); in testCreateImageThumbnail_sampleWithThumbnail() local
155 final Bitmap bitmap = ThumbnailUtils.createImageThumbnail(file, TEST_SIZES[0], null); in testCreateImageThumbnail_sampleWithThumbnail()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java55 File file = new File("/system"); in testSystemDirAccess() local
56 assertTrue(file.canRead()); in testSystemDirAccess()
57 assertFalse(file.canWrite()); in testSystemDirAccess()
59 File fakeSystemFile = new File(file, "test"); in testSystemDirAccess()
68 file = new File("/system/app"); in testSystemDirAccess()
69 assertTrue(file.canRead()); in testSystemDirAccess()
70 assertFalse(file.canWrite()); in testSystemDirAccess()
73 File[] allFiles = file.listFiles(); in testSystemDirAccess()
84 File file = new File("/system/app"); in testApksAlwaysReadable() local
87 File[] apkFiles = file.listFiles(new FilenameFilter() { in testApksAlwaysReadable()
[all …]
/cts/tests/tests/permission/
DOWNERS5 per-file PowerManagerServicePermissionTest.java = file: platform/frameworks/base:/services/core/jav…
6 per-file RequestLocation.java = tgunn@google.com
8 per-file NoAudioPermissionTest.java = elaurent@google.com
9 per-file MainlineNetworkStackPermissionTest.java = file: platform/frameworks/base:/services/net/OWN…
10 per-file Camera2PermissionTest.java = file: platform/frameworks/av:/camera/OWNERS
11 per-file NoRollbackPermissionTest.java = mpgroover@google.com
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java94 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon() local
96 writeSampleImage(file); in testFileIcon()
97 assertTrue(file.exists()); in testFileIcon()
99 verifyIconValidity(Icon.createWithFilePath(file.getPath())); in testFileIcon()
101 verifyIconValidity(Icon.createWithContentUri(Uri.fromFile(file))); in testFileIcon()
103 verifyIconValidity(Icon.createWithContentUri(file.toURI().toString())); in testFileIcon()
105 file.delete(); in testFileIcon()
111 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon() local
113 writeSampleImage(file); in testAdaptiveFileIcon()
114 assertTrue(file.exists()); in testAdaptiveFileIcon()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13234/
Dpoc.c41 EAS_FILE file; in PlayFile() local
42 file.handle = (void*) fopen(filename, "rb"); in PlayFile()
43 file.readAt = EAS_fread; in PlayFile()
44 file.size = EAS_fsize; in PlayFile()
46 if (EAS_OpenFile(easData, &file, &handle) != EAS_SUCCESS) { in PlayFile()
48 if(file.handle) { in PlayFile()
49 fclose(file.handle); in PlayFile()
56 if(file.handle) { in PlayFile()
57 fclose(file.handle); in PlayFile()
/cts/tests/tests/view/src/android/view/cts/util/
DBitmapDumper.java54 for (File file : toRemove) { in initializeIfNeeded()
55 deleteContentsAndDir(file); in initializeIfNeeded()
72 for (File file : files) { in deleteContents()
73 if (file.isDirectory()) { in deleteContents()
74 success &= deleteContents(file); in deleteContents()
76 if (!file.delete()) { in deleteContents()
77 Log.w(TAG, "Failed to delete " + file); in deleteContents()
91 private static String bypassContentProvider(File file) { in bypassContentProvider() argument
98 return "/." + file.getAbsolutePath(); in bypassContentProvider()
128 private static void saveBitmap(Bitmap bitmap, File file) { in saveBitmap() argument
[all …]
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
DMultiUserStorageTest.java56 for (File file : files) { in wipeTestFiles()
57 if (file.getName().startsWith(FILE_PREFIX)) { in wipeTestFiles()
58 Log.d(TAG, "Wiping " + file); in wipeTestFiles()
59 file.delete(); in wipeTestFiles()
175 private File buildApiObbPath(String file) { in buildApiObbPath() argument
176 return new File(getContext().getObbDir(), file); in buildApiObbPath()
179 private File buildEnvObbPath(String file) { in buildEnvObbPath() argument
180 return new File(new File(System.getenv("EXTERNAL_STORAGE"), "Android/obb"), file); in buildEnvObbPath()
183 private File buildRawObbPath(String file) { in buildRawObbPath() argument
184 return new File("/sdcard/Android/obb/", file); in buildRawObbPath()
[all …]
/cts/tests/framework/base/windowmanager/
DOWNERS2 …ps://b.corp.google.com/issues/new?component=316275&template=1018192 = per-file *Transition*, Splas…
4 …ps://b.corp.google.com/issues/new?component=943781&template=1502790 = per-file *WindowContext*, *W…
6 …ps://b.corp.google.com/issues/new?component=339570&template=1037597 = per-file *Inset*, *Cutout*, …
8 …https://b.corp.google.com/issues/new?component=928594&template=1490782 = per-file DragDropTest.java
10 …ps://b.corp.google.com/issues/new?component=316245&template=1018194 = per-file DisplayHashManagerT…
12 …ps://b.corp.google.com/issues/new?component=316020&template=1018174 = per-file *Config*, Activity*…
14 …ps://b.corp.google.com/issues/new?component=316280&template=1018196 = per-file MultiDisplay*, *Dis…
16 …ps://b.corp.google.com/issues/new?component=316251&template=1018197 = per-file PinnedStackTests.ja…
18 …ps://b.corp.google.com/issues/new?component=928697&template=1490890 = per-file MultiWindowTests.ja…
20 …ps://b.corp.google.com/issues/new?component=970984&template=1516678 = per-file *Compat*, Deprecate…
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java44 File file = new File(FONT_DATA_DIR); in testDataFontDirPermission() local
45 assertThat(file.isDirectory()).isTrue(); in testDataFontDirPermission()
46 assertThat(file.canRead()).isFalse(); in testDataFontDirPermission()
47 assertThat(file.canWrite()).isFalse(); in testDataFontDirPermission()
57 File file = new File(FONT_DATA_FILES_DIR); in testDataFontFilesDirPermission() local
58 assertThat(file.isDirectory()).isTrue(); in testDataFontFilesDirPermission()
59 assertThat(file.canRead()).isFalse(); in testDataFontFilesDirPermission()
60 assertThat(file.canWrite()).isFalse(); in testDataFontFilesDirPermission()
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp91 std::ifstream file(filename.string(), std::ios::in | std::ios::binary | in loadFromFile() local
93 if (!file.is_open()) { in loadFromFile()
97 size_t size = file.tellg(); in loadFromFile()
102 file.seekg(0, std::ios::beg); in loadFromFile()
103 file.read(buffer->mData, size); //TODO handle read error in loadFromFile()
104 file.close(); in loadFromFile()
116 std::ofstream file(filenameWithExtension.string(), std::ios::out | std::ios::binary | in saveToFile() local
118 if (!file.is_open()) { in saveToFile()
123 file.write(mData, mSize); in saveToFile()
125 if (file.rdstate() != std::ios_base::goodbit) { in saveToFile()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DOWNERS1 per-file ASurfaceControlTest.java = file:platform/frameworks/base:/services/core/java/com/android/s…
2 per-file SurfaceViewSyncTest.java = file:platform/frameworks/base:/services/core/java/com/android/s…
4 per-file *ScrollCapture*.java = file:platform/frameworks/base:/packages/SystemUI/src/com/android/sy…
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DOWNERS1 # Bug template url: https://b.corp.google.com/issues/new?component=100560&template=63204 = per-file
2 # Bug template url: https://b.corp.google.com/issues/new?component=100560&template=63204 = per-file
3 …ps://b.corp.google.com/issues/new?component=746324&template=1398789 = per-file: SecurityModeFeatur…
4 # Bug component: 189335 = per-file FingerprintBoundKeysTest.java, IdentityCredentialAuthentication.…
5 per-file CA*.java, Ca*.java, KeyChainTest.java = alexkershaw@google.com, eranm@google.com, rubinxu@…
6 per-file LockConfirmBypassTest.java, SetNewPasswordComplexityTest.java, CredentialManagementAppActi…
7 per-file FingerprintBoundKeysTest.java, IdentityCredentialAuthentication.java, ProtectedConfirmatio…
8 per-file SecurityModeFeatureVerifierActivity.java = jjoslin@google.com, tomcherry@google.com
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestSuiteContentReport.java33 import java.nio.file.Path;
34 import java.nio.file.Paths;
125 private static FileMetadata parseFileMetadata(Entry.Builder fEntry, File file) in parseFileMetadata() argument
127 if (file.getName().endsWith(CONFIG_EXT_TAG)) { in parseFileMetadata()
129 return parseConfigFile(file); in parseFileMetadata()
130 } else if (file.getName().endsWith(APK_EXT_TAG)) { in parseFileMetadata()
132 } else if (file.getName().endsWith(JAR_EXT_TAG)) { in parseFileMetadata()
134 } else if (file.getName().endsWith(SO_EXT_TAG)) { in parseFileMetadata()
143 private static FileMetadata parseConfigFile(File file) in parseConfigFile() argument
146 TestModuleConfigHandler testModuleXmlHandler = new TestModuleConfigHandler(file.getName()); in parseConfigFile()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java83 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testOwned() local
85 final Uri uri = ProviderTestUtils.scanFile(file); in testOwned()
88 doTrashed(file, uri); in testOwned()
99 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testUnowned() local
101 final Uri uri = ProviderTestUtils.scanFile(file); in testUnowned()
104 doTrashed(file, uri); in testUnowned()
115 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testAtypical() local
117 final Uri uri = ProviderTestUtils.scanFile(file); in testAtypical()
120 doTrashed(file, uri); in testAtypical()
123 private void doTrashed(File file, Uri uri) { in doTrashed() argument
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0451/
Dpoc.cpp112 std::ifstream file; in main() local
113 file.open(argv[1], std::ios::in | std::ios::binary); in main()
114 if (!file.is_open()) { in main()
117 file.ignore(std::numeric_limits<std::streamsize>::max()); in main()
118 std::streamsize length = file.gcount(); in main()
119 file.clear(); in main()
120 file.seekg(0, std::ios_base::beg); in main()
122 file.read(reinterpret_cast<char *>(data), length); in main()
123 file.close(); in main()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java930 for (File file : files) { in assertCreateFilesAs()
931 assertFalse("File already exists: " + file, file.exists()); in assertCreateFilesAs()
932 assertTrue("Failed to create file " + file + " on behalf of " in assertCreateFilesAs()
933 + testApp.getPackageName(), createFileAs(testApp, file.getPath())); in assertCreateFilesAs()
946 for (File file : files) { in assertCreatePublishedFilesAs()
947 assertTrue("Failed to create published file " + file + " on behalf of " in assertCreatePublishedFilesAs()
948 + testApp.getPackageName(), createFileAs(testApp, file.getPath())); in assertCreatePublishedFilesAs()
949 assertNotNull("Failed to scan " + file, in assertCreatePublishedFilesAs()
950 MediaStore.scanFile(getContentResolver(), file)); in assertCreatePublishedFilesAs()
955 for (File file : files) { in deleteFilesAs()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java406 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir() local
408 assertThat(file.createNewFile()).isTrue(); in testCreateFileInAppExternalDir()
409 assertThat(file.delete()).isTrue(); in testCreateFileInAppExternalDir()
411 assertThat(file.createNewFile()).isTrue(); in testCreateFileInAppExternalDir()
414 try (FileOutputStream fos = new FileOutputStream(file)) { in testCreateFileInAppExternalDir()
419 assertFileContent(file, BYTES_DATA1); in testCreateFileInAppExternalDir()
421 file.delete(); in testCreateFileInAppExternalDir()
887 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteContentResolver() local
890 assertThat(file.createNewFile()).isTrue(); in testOpenFilePathFirstWriteContentResolver()
892 ParcelFileDescriptor readPfd = ParcelFileDescriptor.open(file, MODE_READ_WRITE); in testOpenFilePathFirstWriteContentResolver()
[all …]

12345678910>>...148