/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactPhotoUtils.java | 54 * Generate a new, unique file to be used as an out-of-band communication 111 final ByteArrayOutputStream out = new ByteArrayOutputStream(size); local 113 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 114 out.flush(); 115 out.close(); 116 return out.toByteArray();
|
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetProvider.java | 53 Log.d(TAG, "sending out views=" + views 63 // Clean deleted photos out of our database 129 ByteArrayOutputStream out = new ByteArrayOutputStream(size); local 130 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 131 out.flush(); 132 out.close(); 137 out.toByteArray());
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
ItemInfo.java | 189 ByteArrayOutputStream out = new ByteArrayOutputStream(size); local 191 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 192 out.flush(); 193 out.close(); 194 return out.toByteArray();
|
/packages/apps/Music/tests/src/com/android/music/functional/ |
TestSongs.java | 88 OutputStream out = new FileOutputStream(dst); local 90 // Transfer bytes from in to out 94 out.write(buf, 0, len); 97 out.close(); 129 System.out.println("resolver = null"); 159 System.out.println("resolver = null"); 207 System.out.println("resolver = null");
|
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
TagCanon.java | 87 final ByteArrayOutputStream out = new ByteArrayOutputStream(size); local 90 photo.compress(Bitmap.CompressFormat.PNG, 100, out); 91 out.flush(); 92 byte[] payload = out.toByteArray(); 93 out.close();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
IOUtils.java | 113 PrintWriter out = new PrintWriter(buf); typedefs 114 out.println(); 1159 OutputStreamWriter out = new OutputStreamWriter(output); local 1194 OutputStreamWriter out = new OutputStreamWriter(output, encoding); local [all...] |
/packages/services/Telephony/src/org/apache/commons/io/ |
IOUtils.java | 112 PrintWriter out = new PrintWriter(buf); typedefs 113 out.println(); 1084 OutputStreamWriter out = new OutputStreamWriter(output); local 1119 OutputStreamWriter out = new OutputStreamWriter(output, encoding); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/ |
NdkDiscoveredPathInfo.java | 138 PrintStream out = new PrintStream(infoFile); local 141 out.print("t,"); //$NON-NLS-1$ 142 out.print(mLastUpdate); 143 out.println(); 146 out.print("i,"); //$NON-NLS-1$ 147 out.print(include.toPortableString()); 148 out.println(); 152 out.print("d,"); //$NON-NLS-1$ 153 out.print(symbol.getKey()); 154 out.print(","); //$NON-NLS-1 [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldJarURLConnectionTest.java | 213 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile)); local 214 out.putNextEntry(new ZipEntry("test")); 215 out.closeEntry(); 216 out.close(); 294 JarOutputStream out = new JarOutputStream(new BufferedOutputStream( local 297 out.putNextEntry(jarEntry); 298 out.write(new byte[] { 'a', 'b', 'c' }); 299 out.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
AbstractZipFileTest.java | 89 FileOutputStream out = new FileOutputStream(f); local 90 out.write(bytes); 91 out.close(); 104 ZipOutputStream out = createZipOutputStream(baos); local 105 out.putNextEntry(new ZipEntry(name2)); 106 out.closeEntry(); 107 out.putNextEntry(new ZipEntry(name1)); 108 out.closeEntry(); 109 out.close(); 133 ZipOutputStream out = createZipOutputStream(baos) local 257 ZipOutputStream out = createZipOutputStream(createTemporaryZipFile()); local 376 ZipOutputStream out = createZipOutputStream(file); local 423 ZipOutputStream out = createZipOutputStream(file); local 439 ZipOutputStream out = createZipOutputStream(file); local 469 ZipOutputStream out = createZipOutputStream(createTemporaryZipFile()); local 520 ZipOutputStream out = createZipOutputStream(zip); local [all...] |
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 718 XmlSerializer out = new FastXmlSerializer(); local 719 out.setOutput(fos, StandardCharsets.UTF_8.name()); 720 out.startDocument(null, true); 721 out.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); 722 out.startTag(null, "services"); 724 out.startTag(null, "service"); 725 out.attribute(null, "uid", Integer.toString(service.getValue())); 726 mSerializerAndParser.writeAsXml(service.getKey(), out); local 727 out.endTag(null, "service"); 729 out.endTag(null, "services") [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsUsageMonitor.java | 505 XmlSerializer out = new FastXmlSerializer(); local 506 out.setOutput(outfile, StandardCharsets.UTF_8.name()); 508 out.startDocument(null, true); 510 out.startTag(null, TAG_SMS_POLICY_BODY); 513 out.startTag(null, TAG_PACKAGE); 514 out.attribute(null, ATTR_PACKAGE_NAME, policy.getKey()); 515 out.attribute(null, ATTR_PACKAGE_SMS_POLICY, policy.getValue().toString()); 516 out.endTag(null, TAG_PACKAGE); 519 out.endTag(null, TAG_SMS_POLICY_BODY); 520 out.endDocument() [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CarrierConfigLoader.java | 118 // Bind timed out for the default app. 120 // Bind timed out for a carrier app. 489 FastXmlSerializer out = new FastXmlSerializer(); local 490 out.setOutput(outFile, "utf-8"); 491 out.startDocument("utf-8", true); 492 out.startTag(null, TAG_DOCUMENT); 493 out.startTag(null, TAG_VERSION); 494 out.text(version); 495 out.endTag(null, TAG_VERSION); 496 out.startTag(null, TAG_BUNDLE) [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetFileDescriptorTest.java | 194 // test writeToParcel(), test by assert source and out FileDescriptor content equals. 198 AssetFileDescriptor out = AssetFileDescriptor.CREATOR.createFromParcel(parcel); local 199 assertEquals(out.getStartOffset(), mAssetFileDes.getStartOffset()); 200 assertEquals(out.getDeclaredLength(), mAssetFileDes.getDeclaredLength()); 201 assertEquals(out.getParcelFileDescriptor().getStatSize(),
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
CtsApiCoverage.java | 75 System.out.println("Usage: cts-api-coverage [OPTION]... [APK]..."); 76 System.out.println(); 77 System.out.println("Generates a report about what Android framework methods are called "); 78 System.out.println("from the given APKs."); 79 System.out.println(); 80 System.out.println("Use the Makefiles rules in CtsTestCoverage.mk to generate the report "); 81 System.out.println("rather than executing this directly. If you still want to run this "); 82 System.out.println("directly, then this must be used from the $ANDROID_BUILD_TOP "); 83 System.out.println("directory and dexdeps must be built via \"make dexdeps\"."); 84 System.out.println() 334 OutputStream out = outputFile != null local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
ValueEncoder.java | 46 * Handler for writing out {@code encoded_values} and parts 102 private final AnnotatedOutput out; field in class:ValueEncoder 108 * @param out {@code non-null;} output stream to write to 110 public ValueEncoder(DexFile file, AnnotatedOutput out) { 115 if (out == null) { 116 throw new NullPointerException("out == null"); 120 this.out = out; 124 * Writes out the encoded form of the given constant. 184 out.writeByte(type) [all...] |
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
FileByFileV1DeltaApplierTest.java | 129 FileOutputStream out = new FileOutputStream(oldFile); local 130 out.write(oldFileBytes); 131 out.flush(); 132 out.close(); 151 // Initialize fake delta applier to mock out dependency on bsdiff
|
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
ValueEncoder.java | 44 * Handler for writing out {@code encoded_values} and parts 100 private final AnnotatedOutput out; field in class:ValueEncoder 106 * @param out {@code non-null;} output stream to write to 108 public ValueEncoder(DexFile file, AnnotatedOutput out) { 113 if (out == null) { 114 throw new NullPointerException("out == null"); 118 this.out = out; 122 * Writes out the encoded form of the given constant. 182 out.writeByte(type) [all...] |
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
UnicodeSetCloseOver.java | 64 System.out.println("This tool will generate several output files. Each is named according"); 65 System.out.println("the target file. For example, the contents of to_UnicodeSet.java should"); 66 System.out.println("be pasted into UnicodeSet.java."); 67 System.out.println(); 200 PrintStream out = new PrintStream(new FileOutputStream(JAVA_OUT)); local 201 System.out.println("Writing " + JAVA_OUT); 203 out.println(" // " + WARNING); 204 out.println(" private static final String CASE_PAIRS ="); 205 out.println(Utility.formatForSource(pairs.toString()) + ";"); 206 out.println() [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/ |
HieroSettings.java | 314 PrintStream out = new PrintStream(file, "UTF-8"); local 315 out.println("font.name=" + fontName); 316 out.println("font.size=" + fontSize); 317 out.println("font.bold=" + bold); 318 out.println("font.italic=" + italic); 319 out.println("font.gamma=" + gamma); 320 out.println("font.mono=" + mono); 321 out.println(); 322 out.println("font2.file=" + font2File); 323 out.println("font2.use=" + font2Active) [all...] |
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/ |
Main.java | 134 System.out.println(NAME + " " + versionString()); 135 System.out.println("Protocols: " + protocols()); 148 System.out.println(StatusLine.get(response)); 151 System.out.println(headers.name(i) + ": " + headers.value(i)); 153 System.out.println(); 156 // Stream the response to the System.out as it is returned from the server. 157 Sink out = Okio.sink(System.out); local 160 out.write(source.buffer(), source.buffer().size()); 161 out.flush() [all...] |
/frameworks/base/obex/javax/obex/ |
ClientSession.java | 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 488 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 489 out.write((byte)opCode); 493 out.write(0x00); 494 out.write(0x03); 496 out.write((byte)((head.length + 3) >> 8)); 497 out.write((byte)(head.length + 3)); 498 out.write(head); 503 mOutput.write(out.toByteArray()); 588 out.write((byte)HeaderSet.AUTH_RESPONSE) [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
ViewServer.java | 187 BufferedWriter out = null; local 190 out = new BufferedWriter(new OutputStreamWriter(clientStream), 8 * 1024); 191 out.write(value); 192 out.write("\n"); 193 out.flush(); 198 if (out != null) { 200 out.close(); 296 BufferedWriter out = null; local 298 out = new BufferedWriter(new OutputStreamWriter(mClient.getOutputStream())); 316 out.write("LIST UPDATE\n") [all...] |
/frameworks/multidex/library/test/src/android/support/multidex/ |
ZipUtilTest.java | 50 "out/target/common/obj/JAVA_LIBRARIES/android-support-multidex_intermediates/javalib.jar"); 62 System.out.println("crc is " + crc); 121 OutputStream out = new FileOutputStream(tmp); local 124 out.write(buffer, 0, read); 128 out.close(); 151 OutputStream out = new FileOutputStream(tmp); local 154 out.write(buffer, 0, read); 158 out.close();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
PasspointManagementObjectManagerTest.java | 71 FileOutputStream out = new FileOutputStream(file); local 76 out.write(line.getBytes(StandardCharsets.UTF_8)); 79 out.flush(); 80 out.close(); 214 // Serialize it back out:
|