/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 5 * you may not use this file except in compliance with the License. 39 import java.io.File; 49 private static final File TEST_FILE = new File( 53 * Set of file paths that should all refer to the same location to verify 56 private static final File[] IDENTICAL_FILES = { 57 new File("/sdcard/caek"), 58 new File(System.getenv("EXTERNAL_STORAGE"), "caek"), 59 new File(Environment.getExternalStorageDirectory(), "caek"), 66 for (File file : IDENTICAL_FILES) [all...] |
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
ContentTest.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 66 * This intent will have, in the ClipData, a uri whose associated file stores a message. 187 String filename = mContext.getFilesDir() + File.separator + "texts" + File.separator 189 Log.i(TAG, "Creating file " + filename + " with text \"" + text + "\""); 190 final File file = new File(filename); local 191 file.getParentFile().mkdirs(); // If the folder doesn't exists it is create [all...] |
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 159 File file = new File(packageLocation); local 160 InputStream in = new FileInputStream(file); 161 OutputStream out = mSession.openWrite("SilentPackageInstallerTest", 0, file.length());
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
TypefaceTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 140 Typeface.createFromFile((File)null); 145 File file = new File(obtainPath()); local 146 Typeface typeface = Typeface.createFromFile(file); 164 File dir = getContext().getFilesDir(); 166 File file = new File(dir, "test.jpg") local [all...] |
/cts/tests/tests/mediastress/jni/ |
native-media-jni.cpp | 5 * you may not use this file except in compliance with the License. 64 ALOGE("assertion failure at file %s line %d", __FILE__, __LINE__); \ 85 // handle of the file to play 86 static FILE *file = NULL; variable 88 // has the app reached the end of the file 102 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file); 166 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file); 275 // close the file 276 if (file != NULL) [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
DebugTest.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 72 File dir = getContext().getFilesDir(); 73 File file = new File(dir, "debug.trace"); local 74 return file.getAbsolutePath(); 203 File file = getContext().getFileStreamPath("dump.out"); local 204 file.delete() [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Video_MediaTest.java | 5 * you may not use this file except in compliance with the License. 35 import java.io.File; 64 new File(path).delete(); 78 File videoFile = new File(externalVideoPath); 196 new File(externalVideoPath).delete(); 199 // check that the video file is removed when deleting the database entry 202 File videofile = new File(Environment.getExternalStorageDirectory(), "testVideo.3gp"); 230 File file = new File(Environment.getExternalStorageDirectory(), "testVideo.3gp") local [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
BitmapDumper.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 46 File directory = new File(CAPTURE_SUB_DIRECTORY + className); 52 for (String file : children) { 53 if (file.startsWith(testName)) { 54 new File(directory, file).delete(); 60 File saveDirectory = new File(CAPTURE_SUB_DIRECTORY + className) 120 File file = new File(CAPTURE_SUB_DIRECTORY + className, bitmapName); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
AnnotationUtils.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 172 * across many signatures and the rest of the file.
|
AnnotationsDirectoryItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 240 public void addContents(DexFile file) { 241 MixedItemSection wordData = file.getWordData(); 249 item.addContents(file); 255 item.addContents(file); 261 item.addContents(file); 284 protected void writeTo0(DexFile file, AnnotatedOutput out) { 313 item.writeTo(file, out); 323 item.writeTo(file, out) [all...] |
CatchStructs.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 117 * @param file {@code non-null;} file this instance is part of 119 public void encode(DexFile file) { 122 TypeIdsSection typeIds = file.getTypeIds(); 192 * @param file {@code non-null;} file this instance is part of 195 public void writeTo(DexFile file, AnnotatedOutput out) {
|
ClassDataItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 41 * {@code dex} file, as opposed to a random-access form. 66 * {@code null-ok;} encoded form, ready for writing to a file; set during 229 public void addContents(DexFile file) { 233 field.addContents(file); 240 field.addContents(file); 247 method.addContents(file); 254 method.addContents(file); 340 * @param file {@code non-null;} file this instance is part o [all...] |
ClassDefItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 45 /** size of instances when written out to a file, in bytes */ 63 /** {@code null-ok;} source file name or {@code null} if unknown */ 87 * @param sourceFile {@code null-ok;} source file name or 130 public void addContents(DexFile file) { 131 TypeIdsSection typeIds = file.getTypeIds(); 132 MixedItemSection byteData = file.getByteData(); 133 MixedItemSection wordData = file.getWordData(); 134 MixedItemSection typeLists = file.getTypeLists() [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
ClassPathOpener.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 57 * Provides the file name and byte array for a class path element. 63 * @param bytes {@code non-null;} file data 79 * Informs consumer that processing of an archive file has begun. 81 * @param file {@code non-null;} archive file being processed 83 void onProcessArchiveStart(File file); 142 File file = new File(pathname) local [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
AnnotationUtils.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 171 * across many signatures and the rest of the file.
|
AnnotationsDirectoryItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 244 public void addContents(DexFile file) { 245 MixedItemSection wordData = file.getWordData(); 253 item.addContents(file); 259 item.addContents(file); 265 item.addContents(file); 288 protected void writeTo0(DexFile file, AnnotatedOutput out) { 317 item.writeTo(file, out); 327 item.writeTo(file, out) [all...] |
CatchStructs.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 114 * @param file {@code non-null;} file this instance is part of 116 public void encode(DexFile file) { 119 TypeIdsSection typeIds = file.getTypeIds(); 189 * @param file {@code non-null;} file this instance is part of 192 public void writeTo(DexFile file, AnnotatedOutput out) {
|
ClassDataItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 37 * {@code dex} file, as opposed to a random-access form. 62 * {@code null-ok;} encoded form, ready for writing to a file; set during 225 public void addContents(DexFile file) { 229 field.addContents(file); 236 field.addContents(file); 243 method.addContents(file); 250 method.addContents(file); 336 * @param file {@code non-null;} file this instance is part o [all...] |
ClassDefItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 61 /** {@code null-ok;} source file name or {@code null} if unknown */ 85 * @param sourceFile {@code null-ok;} source file name or 128 public void addContents(DexFile file) { 129 TypeIdsSection typeIds = file.getTypeIds(); 130 MixedItemSection byteData = file.getByteData(); 131 MixedItemSection wordData = file.getWordData(); 132 MixedItemSection typeLists = file.getTypeLists(); 133 StringIdsSection stringIds = file.getStringIds() [all...] |
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
AddFileActivity.java | 5 * you may not use this file except in compliance with the License. 35 import java.io.File; 39 * The purpose of AddFileActivity activity is to create a data file based on the 40 * file name and size parameters specified as an Intent external parameters or with the 58 * The intent parameter that specifies a file name. The file name must be unique for the 64 * The intent parameter that specifies a file size in bytes. The size must be a number 70 * The file storage is an optional parameter. It should be one of these: 76 * A file size multiplier. It is used to calculate the total number of bytes to be added 77 * to the file 225 File file = null; local 289 File file = getInternalFile(fileName); local [all...] |
/developers/build/prebuilts/gradle/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ |
ProvisioningValuesLoader.java | 5 * you may not use this file except in compliance with the License. 30 import java.io.File; 40 * This loader first tries to load values from a config file in SD card. Then it fills in missing 94 File directory = Environment.getExternalStorageDirectory(); 95 File file = new File(directory, FILENAME); local 96 if (!file.exists()) { 99 Log.d(TAG, "Loading the config file..."); 101 loadFromFile(values, file); [all...] |
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ |
ProvisioningValuesLoader.java | 5 * you may not use this file except in compliance with the License. 30 import java.io.File; 40 * This loader first tries to load values from a config file in SD card. Then it fills in missing 94 File directory = Environment.getExternalStorageDirectory(); 95 File file = new File(directory, FILENAME); local 96 if (!file.exists()) { 99 Log.d(TAG, "Loading the config file..."); 101 loadFromFile(values, file); [all...] |
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
AddFileActivity.java | 5 * you may not use this file except in compliance with the License. 35 import java.io.File; 39 * The purpose of AddFileActivity activity is to create a data file based on the 40 * file name and size parameters specified as an Intent external parameters or with the 58 * The intent parameter that specifies a file name. The file name must be unique for the 64 * The intent parameter that specifies a file size in bytes. The size must be a number 70 * The file storage is an optional parameter. It should be one of these: 76 * A file size multiplier. It is used to calculate the total number of bytes to be added 77 * to the file 225 File file = null; local 289 File file = getInternalFile(fileName); local [all...] |
/development/apps/Development/src/com/android/development/ |
CacheAbuser.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 54 final File mBaseDir; 58 AbuseTask(File cacheDir, boolean quick) { 59 File dir = new File(cacheDir, quick ? "quick" : "slow"); 60 mBaseDir = new File(dir, Long.toString(System.currentTimeMillis())); 71 File dir = new File(mBaseDir, Long.toString(dir1num)); 72 File file = new File(dir, Long.toString(dir2num)) local [all...] |
/development/ndk/platforms/android-14/samples/native-media/jni/ |
native-media-jni.c | 5 * you may not use this file except in compliance with the License. 18 * using OpenMAX AL. See the corresponding Java source file located at: 80 // handle of the file to play 81 static FILE *file; variable 83 // has the app reached the end of the file 131 rewind(file); 166 bytesRead = fread(pBufferData, 1, BUFFER_SIZE, file); 282 bytesRead = fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file); 338 // open the file to pla [all...] |