/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 281 final ParcelFileDescriptor file = ParcelFileDescriptor.open( local 282 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, 285 write(file, 7); 286 file.close(); 295 final ParcelFileDescriptor file = ParcelFileDescriptor.open( local 296 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, 299 write(file, 8); 300 file.closeWithError("OMG BANANAS") 309 final ParcelFileDescriptor file = ParcelFileDescriptor.open( local 375 File file = new File(dir, fileName); local [all...] |
DebugTest.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 70 File dir = getContext().getFilesDir(); 71 File file = new File(dir, "debug.trace"); local 72 return file.getAbsolutePath(); 201 File file = getContext().getFileStreamPath("dump.out"); local 202 file.delete() [all...] |
/build/core/combo/ |
HOST_darwin-x86.mk | 5 # you may not use this file except in compliance with the License. 151 # $(1): The file to check 152 define get-file-size
|
/build/core/ |
dex_preopt.mk | 33 # $(1): the input .jar or .apk file 34 # $(2): the output .odex file 35 define dexpreopt-one-file 55 $$(call dexpreopt-one-file,$$(PRIVATE_DBJ_JAR),$$@) 58 $$(call copy-file-to-target)
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 46 private void wipeTestFiles(File dir) { 48 for (File file : dir.listFiles()) { 49 if (file.getName().startsWith(FILE_PREFIX)) { 50 Log.d(TAG, "Wiping " + file); 51 file.delete(); 67 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { 72 writeInt(new File(path, FILE_SINGLETON), uid) [all...] |
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/ |
SequentialRWTest.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 56 final File[] files = FileUtil.createNewFiles(getContext(), DIR_SEQ_WR, 95 final File file = FileUtil.createNewFilledFile(getContext(), local 98 getReportLog().printValue("write throughput for test file of length " + fileSize, 109 final FileInputStream in = new FileInputStream(file);
|
/cts/tests/tests/holo/src/android/holo/cts/ |
BitmapAssets.java | 5 * you may not use this file except in compliance with the License. 30 import java.io.File; 57 File dir = getBitmapDir(type); 59 File[] files = dir.listFiles(); 72 public static File getBitmapDir(int type) { 88 File file = new File(Environment.getExternalStorageDirectory(), "cts-holo-assets"); local 89 return new File(file, subDir) 127 File file = getBitmapPath(bitmapName, type); local [all...] |
/cts/tools/cts-java-scanner/src/com/android/cts/javascanner/ |
DocletRunner.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 27 private final File mSourceDir; 28 private final File mDocletPath; 30 DocletRunner(File sourceDir, File docletPath) { 64 private String getSourcePath(File sourceDir) { 86 private List<String> getSourceFiles(File sourceDir) { 89 File[] files = sourceDir.listFiles(new FileFilter() { 91 public boolean accept(File pathname) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
AccessibilityTestRunner.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 80 File file = FileUtil.getFileForPath(mCtsBuild.getTestCasesDir(), apkName); local 81 String errorMessage = getDevice().installPackage(file, true);
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
AnnotationItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 62 * {@code null-ok;} encoded form, ready for writing to a file; set during 145 public void addContents(DexFile file) { 146 type = file.getTypeIds().intern(annotation.getType()); 147 ValueEncoder.addContents(file, annotation); 166 * Write a (listing file) annotation for this instance to the given 189 protected void writeTo0(DexFile file, AnnotatedOutput out) { 214 ValueEncoder encoder = new ValueEncoder(file, out);
|
DebugInfoItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 66 public void addContents(DexFile file) { 96 * @param file {@code non-null;} the file to use for referencing other sections 100 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { 101 encode(file, prefix, null, out, false); 116 protected void writeTo0(DexFile file, AnnotatedOutput out) { 124 encode(file, null, null, out, true); 133 * @param file {@code null-ok;} file to refer to during encodin [all...] |
EncodedField.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 77 * ever appear in the same list (or same file, even).</p> 99 public void addContents(DexFile file) { 100 FieldIdsSection fieldIds = file.getFieldIds(); 133 public int encode(DexFile file, AnnotatedOutput out, 135 int fieldIdx = file.getFieldIds().indexOf(field);
|
EncodedMethod.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 87 * ever appear in the same list (or same file, even).</p> 116 public void addContents(DexFile file) { 117 MethodIdsSection methodIds = file.getMethodIds(); 118 MixedItemSection wordData = file.getWordData(); 159 public int encode(DexFile file, AnnotatedOutput out, 161 int methodIdx = file.getMethodIds().indexOf(method);
|
ItemType.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file;
|
MapItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 28 /** file alignment of this class, in bytes */ 198 public void addContents(DexFile file) { 210 protected void writeTo0(DexFile file, AnnotatedOutput out) {
|
OffsettedItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 23 * An item in a Dalvik file which is referenced by absolute offset. 164 public final void writeTo(DexFile file, AnnotatedOutput out) { 178 writeTo0(file, out); 198 * the file which the instance was written to. 310 * @param file {@code non-null;} the file to use for reference 313 protected abstract void writeTo0(DexFile file, AnnotatedOutput out);
|
ParameterAnnotationStruct.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 100 public void addContents(DexFile file) { 101 MethodIdsSection methodIds = file.getMethodIds(); 102 MixedItemSection wordData = file.getWordData(); 109 public void writeTo(DexFile file, AnnotatedOutput out) { 110 int methodIdx = file.getMethodIds().indexOf(method);
|
ProtoIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 28 * Representation of a method prototype reference inside a Dalvik file. 31 /** size of instances when written out to a file, in bytes */ 114 public void addContents(DexFile file) { 115 StringIdsSection stringIds = file.getStringIds(); 116 TypeIdsSection typeIds = file.getTypeIds(); 117 MixedItemSection typeLists = file.getTypeLists(); 129 public void writeTo(DexFile file, AnnotatedOutput out) { 130 int shortyIdx = file.getStringIds().indexOf(shortForm) [all...] |
Statistics.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 26 * Statistics about the contents of a file.
|
StringIdsSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 30 * Strings list section of a {@code .dex} file. 41 * Constructs an instance. The file offset is initially unknown. 43 * @param file {@code non-null;} file that this instance is part of 45 public StringIdsSection(DexFile file) { 46 super("string_ids", file, 4); 80 * Writes the portion of the file header that refers to this instance.
|
TypeListItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 66 public void addContents(DexFile file) { 67 TypeIdsSection typeIds = file.getTypeIds(); 92 protected void writeTo0(DexFile file, AnnotatedOutput out) { 93 TypeIdsSection typeIds = file.getTypeIds();
|
/dalvik/dx/src/com/android/dx/dex/file/ |
AnnotationItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 59 * {@code null-ok;} encoded form, ready for writing to a file; set during 142 public void addContents(DexFile file) { 143 type = file.getTypeIds().intern(annotation.getType()); 144 ValueEncoder.addContents(file, annotation); 163 * Write a (listing file) annotation for this instance to the given 186 protected void writeTo0(DexFile file, AnnotatedOutput out) { 211 ValueEncoder encoder = new ValueEncoder(file, out);
|
DebugInfoItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 63 public void addContents(DexFile file) { 93 * @param file {@code non-null;} the file to use for referencing other sections 97 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { 98 encode(file, prefix, null, out, false); 113 protected void writeTo0(DexFile file, AnnotatedOutput out) { 121 encode(file, null, null, out, true); 130 * @param file {@code null-ok;} file to refer to during encodin [all...] |
EncodedField.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 76 * ever appear in the same list (or same file, even).</p> 98 public void addContents(DexFile file) { 99 FieldIdsSection fieldIds = file.getFieldIds(); 132 public int encode(DexFile file, AnnotatedOutput out, 134 int fieldIdx = file.getFieldIds().indexOf(field);
|
EncodedMethod.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 86 * ever appear in the same list (or same file, even).</p> 115 public void addContents(DexFile file) { 116 MethodIdsSection methodIds = file.getMethodIds(); 117 MixedItemSection wordData = file.getWordData(); 158 public int encode(DexFile file, AnnotatedOutput out, 160 int methodIdx = file.getMethodIds().indexOf(method);
|