Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DListeningPortsTest.java239 StringBuilder contents = new StringBuilder(); in parse() local
243 contents.append("'"); in parse()
247 contents.append(scanner.nextLine() + "\n"); in parse()
254 contents.append("'"); in parse()
255 return contents.toString(); in parse()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java144 file1.contents = "fileone".getBytes(); in resetRoots()
152 file2.contents = "filetwo".getBytes(); in resetRoots()
162 virtualFile.contents = "Converted contents.".getBytes(); in resetRoots()
171 webLinkableFile.contents = "Fake contents.".getBytes(); in resetRoots()
181 file3.contents = "filethree".getBytes(); in resetRoots()
191 file4.contents = "filefour".getBytes(); in resetRoots()
211 public byte[] contents; field in MyDocumentsProvider.Doc
398 doc.contents = readFullyNoClose(is); in openDocumentUnchecked()
417 while (doc.contents == null) { in openDocumentUnchecked()
420 os.write(doc.contents); in openDocumentUnchecked()
[all …]
/cts/tests/app/StorageDelegator/src/com/android/test/storagedelegator/
DStorageDelegator.java54 final String contents = getIntent().getStringExtra(EXTRA_CONTENTS); in onCreate() local
55 Log.i(TAG, "onHandleIntent: path=" + path + ", content=" + contents); in onCreate()
64 Files.write(file.toPath(), contents.getBytes()); in onCreate()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java159 byte[] contents = new byte[CtsDownloadService.SAMPLE_FILE_DATA.length]; in checkFileContentIntegrity()
160 is.read(contents); in checkFileContentIntegrity()
161 for (int i = 0; i < contents.length; i++) { in checkFileContentIntegrity()
162 assertEquals(contents[i], CtsDownloadService.SAMPLE_FILE_DATA[i]); in checkFileContentIntegrity()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_InstanceNonce.c85 static jshort contents[] = { 10, 20, 30 }; in InstanceNonce_returnShortArray() local
93 (*env)->SetShortArrayRegion(env, result, 0, 3, contents); in InstanceNonce_returnShortArray()
101 static const char *contents[] = { "blort", "zorch", "fizmo" }; in InstanceNonce_returnStringArray() local
123 jstring s = (*env)->NewStringUTF(env, contents[i]); in InstanceNonce_returnStringArray()
Dandroid_jni_cts_StaticNonce.c85 static jshort contents[] = { 10, 20, 30 }; in StaticNonce_returnShortArray() local
93 (*env)->SetShortArrayRegion(env, result, 0, 3, contents); in StaticNonce_returnShortArray()
100 static const char *contents[] = { "blort", "zorch", "fizmo" }; in StaticNonce_returnStringArray() local
122 jstring s = (*env)->NewStringUTF(env, contents[i]); in StaticNonce_returnStringArray()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dstruct_field.rscript92 // Compare contents of a struct InnerOne instance against incoming argument values.
104 // Compare contents of a struct InnerOne instance within global
110 // Compare contents of element of array of struct InnerOne
116 // Compare contents of element of array of struct InnerTwo
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DReportExporter.java59 byte[] contents = mTestReport.getBytes(); in doInBackground()
74 out.write(contents); in doInBackground()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java261 protected static void writeToFile(File file, String contents) throws Exception { in writeToFile() argument
266 out.print(contents); in writeToFile()
273 assertEquals(contents, actual); in writeToFile()
276 protected void writeToFileWithDelegator(File file, String contents) throws Exception { in writeToFileWithDelegator() argument
282 .putExtra(EXTRA_CONTENTS, contents) in writeToFileWithDelegator()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java269 StringBuilder contents = new StringBuilder(); in readFileContent() local
274 contents.append(scanner.nextLine()); in readFileContent()
284 return contents.toString(); in readFileContent()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java271 String contents = new String(charContents); in writeToFile() local
272 if (contents.equals(content)) { in writeToFile()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java739 private static void assertFileContains(File file, String contents) throws IOException { in assertFileContains() argument
741 byte[] expected = contents.getBytes("UTF-8"); in assertFileContains()