/frameworks/base/services/usage/java/com/android/server/usage/ |
UsageStatsDatabase.java | 370 * Figures out what to extract from the given IntervalStats object. 611 DataOutputStream out = new DataOutputStream(baos); local 613 out.writeInt(BACKUP_VERSION); 615 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size()); 618 writeIntervalStatsToStream(out, 622 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_WEEKLY].size()); 625 writeIntervalStatsToStream(out, 629 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_MONTHLY].size()); 632 writeIntervalStatsToStream(out, 636 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_YEARLY].size()) 761 DataOutputStream out = new DataOutputStream(baos); local [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
TestWebServer.java | 422 * Zero out the buffer from last time 452 System.out.print((char)data); 456 System.out.println(); 504 // Bomb out if stream closes prematurely 573 // Bomb out if stream closes prematurely 687 // Write out the data
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiBackupRestore.java | 86 * Regex to mask out passwords in backup data dump. 132 final XmlSerializer out = new FastXmlSerializer(); local 134 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 137 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); 139 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_BACKUP_DATA_VERSION); 141 writeNetworkConfigurationsToXml(out, configurations); 143 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); 164 XmlSerializer out, List<WifiConfiguration> configurations) 166 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); 178 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
XmlUtilTest.java | 382 * Verify that an illegal argument exception is thrown when trying to parse out a corrupted 432 final XmlSerializer out = new FastXmlSerializer(); local 434 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 435 XmlUtil.writeDocumentStart(out, mXmlDocHeader); 436 WifiConfigurationXmlUtil.writeToXmlForBackup(out, configuration); 437 XmlUtil.writeDocumentEnd(out, mXmlDocHeader); 444 final XmlSerializer out = new FastXmlSerializer(); local 446 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 447 XmlUtil.writeDocumentStart(out, mXmlDocHeader); 448 WifiConfigurationXmlUtil.writeToXmlForConfigStore(out, configuration) 513 final XmlSerializer out = new FastXmlSerializer(); local 533 final XmlSerializer out = new FastXmlSerializer(); local 564 final XmlSerializer out = new FastXmlSerializer(); local [all...] |
/frameworks/support/compat/java/android/support/v4/provider/ |
FontsContractCompat.java | 624 final HashMap<Uri, ByteBuffer> out = new HashMap<>(); local 632 if (out.containsKey(uri)) { 637 out.put(uri, buffer); 639 return Collections.unmodifiableMap(out); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
PrintStreamTest.java | 601 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 602 PrintStream printStream = new PrintStream(out); 605 assertEquals(String.valueOf(testChar), out.toString()); 614 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 615 PrintStream printStream = new PrintStream(out); 618 assertEquals(testString, out.toString()); 627 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 628 PrintStream printStream = new PrintStream(out); 631 assertEquals(testString.substring(1, 3), out.toString()); [all...] |
PrintWriterTest.java | 47 public MockPrintWriter(OutputStream out, boolean autoflush) { 48 super(out, autoflush); 682 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 683 PrintWriter printWriter = new PrintWriter(out); 686 assertEquals(String.valueOf(testChar), out.toString()); 696 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 697 PrintWriter printWriter = new PrintWriter(out); 700 assertEquals(testString, out.toString()); 710 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 711 PrintWriter printWriter = new PrintWriter(out); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetTest.java | 243 ByteBuffer out = cs.encode(s); local 244 byte[] bytes = new byte[out.remaining()]; 245 out.get(bytes); 251 CharBuffer out = cs.decode(in); local 252 assertEquals(s, out.toString()); 760 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 762 out.put((byte) in.get()); 763 // out.put((byte) '!'); 774 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 776 out.put((char) in.get()) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
MessageFormatTest.java | 53 ObjectOutputStream out = new ObjectOutputStream(ba); local 54 out.writeObject(format); 55 out.close(); [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
ProcessBuilderTest.java | 70 ProcessBuilder pb = new ProcessBuilder(shell(), "-c", "echo out; echo err 1>&2"); 77 assertRedirectErrorStream(true, "out\nerr\n", ""); 81 assertRedirectErrorStream(false, "out\n", "err\n"); 114 Os.fstat(FileDescriptor.out).st_ino, 145 File file = File.createTempFile(TAG, "out"); 246 Process process = new ProcessBuilder(shell(), "-c", "echo out; echo err 1>&2").start(); 249 OutputStream out = process.getOutputStream(); local 267 out.write(1); 268 out.flush(); 275 Process process = new ProcessBuilder(shell(), "-c", "echo out; echo err 1>&2").start() [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
OldFileChannelTest.java | 642 File logFile = File.createTempFile("out", "tmp"); 644 FileOutputStream out = new FileOutputStream(logFile, true); local 645 FileChannel channel = out.getChannel(); 646 out.write(1); 648 out.close(); [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CRLTest.java | 162 PrintStream out = new PrintStream(errBuffer); local 183 out.append("Error encountered checking " + p.getName() + "\n"); 184 e.printStackTrace(out); 188 out.flush(); 407 System.out.println(Arrays.toString(dsaEntry.getExtensionValue("2.5.29.21")));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 467 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 471 out.write(buff, 0, readlen); 474 return out.toByteArray(); 742 * 1. openssl genrsa -des3 -out test.key 1024 743 * 2. openssl req -new -key test.key -out test.csr 745 * 4. openssl rsa -in test.key.org -out test.key 746 * 5. openssl x509 -req -days 37273 -in test.csr -signkey test.key -out test.cert 772 * 1. openssl genrsa -des3 -out test.key 1024 773 * 2. openssl req -new -key test.key -out test.csr 775 * 4. openssl rsa -in test.key.org -out test.ke [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStore2Test.java | 137 ByteArrayOutputStream out = null; local 154 out = new ByteArrayOutputStream(); 155 keyTest.store(out, pssWord); 156 out.close(); 158 return out.toByteArray(); [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
X500Name.java | 812 * @param out where to put the DER-encoded X.500 name 815 public void emit(DerOutputStream out) throws IOException { 816 encode(out); 822 * @param out where to put the DER-encoded X.500 name 824 public void encode(DerOutputStream out) throws IOException { 829 out.write(DerValue.tag_Sequence, tmp); 839 DerOutputStream out = new DerOutputStream(); local 844 out.write(DerValue.tag_Sequence, tmp); 845 encoded = out.toByteArray(); [all...] |
X509CRLImpl.java | 282 * @param out the OutputStream to write to. 285 public void encodeInfo(OutputStream out) throws CRLException { 323 out.write(tbsCertList); 333 * @param key the PublicKey used to carry out the verification. 354 * @param key the PublicKey used to carry out the verification. 409 * @param key the PublicKey used to carry out the verification. 514 DerOutputStream out = new DerOutputStream(); local 529 out.write(DerValue.tag_Sequence, tmp); 530 signedCRL = out.toByteArray(); 577 DerOutputStream out = new DerOutputStream() local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapbMessage.java | 388 * same as getLine(), but throws an exception, if we run out of lines. 909 StringBuilder out = new StringBuilder((pduData.length + scAddressData.length)*2); local [all...] |
/packages/apps/Dialer/java/com/android/incallui/ |
InCallActivityCommon.java | 169 // Have the WindowManager filter out touch events that are "too fat". 245 public void onSaveInstanceState(Bundle out) { 247 out.putBoolean(INTENT_EXTRA_SHOW_DIALPAD, isDialpadVisible()); 250 out.putString(DIALPAD_TEXT_KEY, dialpadFragment.getDtmfText()); 358 // BACK is also used to exit out of any "special modes" of the 449 default: // fall out 684 // If the dialpad is already visible, don't animate in. If it's gone, don't animate out. [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
CopyJob.java | 549 ParcelFileDescriptor.AutoCloseOutputStream out = null; local 600 out = new ParcelFileDescriptor.AutoCloseOutputStream(dstFile); 609 // and prevent us from running out of space during large copies. 623 out.write(buffer, 0, len); 679 IoUtils.closeQuietly(out); 764 * @throws RemoteException when the remote throws or waiting for update times out [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
StubProvider.java | 548 Bundle out = new Bundle(); local 553 out.putParcelable(DocumentsContract.EXTRA_URI, uri); 557 return out; [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AttachmentProviderTests.java | 663 FileOutputStream out = new FileOutputStream(outFile); local 664 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 665 out.close();
|
/packages/apps/TV/src/com/android/tv/data/ |
Program.java | 880 public void writeToParcel(Parcel out, int paramInt) { 881 out.writeLong(mId); 882 out.writeString(mPackageName); 883 out.writeLong(mChannelId); 884 out.writeString(mTitle); 885 out.writeString(mSeriesId); 886 out.writeString(mEpisodeTitle); 887 out.writeString(mSeasonNumber); 888 out.writeString(mSeasonTitle); 889 out.writeString(mEpisodeNumber) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationActionUtils.java | 581 public void writeToParcel(final Parcel out, final int flags) { 582 out.writeInt(mNotificationActionType.ordinal()); 583 out.writeParcelable(mAccount, 0); 584 out.writeParcelable(mConversation, 0); 585 out.writeParcelable(mMessage, 0); 586 out.writeParcelable(mFolder, 0); 587 out.writeLong(mConversationId); 588 out.writeString(mMessageId); 589 out.writeLong(mLocalMessageId); 590 out.writeLong(mWhen) 905 final Parcel out = Parcel.obtain(); local [all...] |
/sdk/attribute_stats/src/ |
Analyzer.java | 60 /** Separate out any attributes that constitute less than N percent of the total */ 168 System.out.println("Analyzed " + mFileVisitCount + " files..."); 227 System.out.println("Warning: found <item> tag in a layout file in " 360 System.out.println("Analyzed " + mLayoutFileCount 362 System.out.println("Top " + ATTRIBUTE_COUNT 364 System.out.println("\n"); 365 System.out.println(" Rank Count Share Attribute"); 366 System.out.println("========================================================="); 376 System.out.println("\n\n\nTop " + ATTRIBUTE_COUNT + " layout attributes (excluding " 378 System.out.println("\n") [all...] |
/tools/apksig/src/main/java/com/android/apksig/ |
ApkSigner.java | 161 Closeable out = null; local 170 out = outputFile; 180 if (out != null) { 181 out.close(); [all...] |