/system/tools/aidl/tests/ |
aidl_test_client_nullables.cpp | 51 bool ValuesEqual(const unique_ptr<T>& in, const unique_ptr<T>& out) { 52 return *in == *out; 58 const unique_ptr<vector<unique_ptr<String16>>>& out) { 60 return !out; 63 if (!out) { 67 if (in->size() != out->size()) { 73 const unique_ptr<String16>& b = (*out)[i]; 98 unique_ptr<T> out; local 100 status = (*s.*func)(in, &out); 107 if (!out) { [all...] |
/system/update_engine/payload_generator/ |
zip_unittest.cc | 71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { 73 new W(brillo::make_unique_ptr(new MemoryExtentWriter(out)))); 86 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 87 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 95 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { 96 return BzipCompress(in, out); 98 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { 99 return DecompressWithWriter<BzipExtentWriter>(in, out); 108 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { 109 return XzCompress(in, out); 134 brillo::Blob out; local 146 brillo::Blob out; local 157 brillo::Blob out; local 163 brillo::Blob out; local [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
CompatModePackages.java | 404 XmlSerializer out = new FastXmlSerializer(); local 405 out.setOutput(fos, StandardCharsets.UTF_8.name()); 406 out.startDocument(null, true); 407 out.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); 408 out.startTag(null, "compat-packages"); 437 out.startTag(null, "pkg"); 438 out.attribute(null, "name", pkg); 439 out.attribute(null, "mode", Integer.toString(mode)); 440 out.endTag(null, "pkg"); 443 out.endTag(null, "compat-packages") [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
JarURLConnectionTest.java | 145 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile)); local 146 out.putNextEntry(new ZipEntry("test")); 147 out.closeEntry(); 148 out.close(); 212 JarOutputStream out = new JarOutputStream(new BufferedOutputStream( local 215 out.putNextEntry(jarEntry); 216 out.write(new byte[] { 'a', 'b', 'c' }); 217 out.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetDecoderTest.java | 113 // Commented out since the comment is wrong since MAX_BYTES > 1 214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); local 215 assertCharBufferValue("", out); 219 out = decoder.decode(in); 220 assertEquals(0, out.position()); 221 assertEquals(getString().length(), out.limit()); 222 assertEquals(getString().length(), out.remaining()); 223 assertCharBufferValue(getString(), out); local 227 out = decoder.decode(in); 228 assertEquals(out.position(), 0) 231 assertCharBufferValue(getString(), out); local 236 CharBuffer out; local 256 assertCharBufferValue(getString(), out); local 280 assertCharBufferValue(getString(), out); local 309 CharBuffer out = CharBuffer.allocate(100); local 333 assertCharBufferValue(getString(), out); local 346 assertCharBufferValue(getString(), out); local 360 assertCharBufferValue(getString() + getString() + getString(), out); local 409 CharBuffer out = CharBuffer.allocate(50); local 422 assertCharBufferValue(getString(), out); local 429 assertCharBufferValue(decoder.replacement() + getString(), out); local 463 CharBuffer out = CharBuffer.allocate(getString().length() * 3); local 475 assertCharBufferValue(getString(), out); local 482 assertCharBufferValue(decoder.replacement() + getString(), out); local 512 CharBuffer out = CharBuffer.allocate(50); local 572 CharBuffer out = CharBuffer.allocate(10); local 602 CharBuffer out = CharBuffer.allocate(5); local 668 CharBuffer out = CharBuffer.allocate(100); local 708 CharBuffer out = CharBuffer.allocate(5); local [all...] |
CharsetEncoderTest.java | 139 // Commented out since the comment is wrong since MAX_BYTES > 1 213 // Commented out since the comment is wrong since MAX_BYTES > 1 283 ByteBuffer out = ByteBuffer.allocate(5); local 288 encoder.flush(out); 295 encoder.encode(in, out, true); 296 out.rewind(); 297 CoderResult result = encoder.flush(out); 300 encoder.flush(out); 304 encoder.encode(in, out, false); 306 encoder.flush(out); 313 ByteBuffer out = ByteBuffer.allocate(5); local 373 ByteBuffer out = ByteBuffer.allocate(5); local 423 ByteBuffer out = ByteBuffer.allocate(5); local 575 ByteBuffer out = encoder.encode(CharBuffer.wrap("")); local 627 ByteBuffer out; local 707 ByteBuffer out = ByteBuffer.allocate(200); local 830 ByteBuffer out = ByteBuffer.allocate(100); local 916 ByteBuffer out = ByteBuffer.allocate(6); local [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/ |
CodeItem.java | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 73 @Override public void annotateSection(@Nonnull AnnotatedBytes out) { 75 super.annotateSection(out); 87 public void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) { 89 DexReader reader = dexFile.readerAt(out.getCursor()); 92 out.annotate(2, "registers_size = %d", registers); 95 out.annotate(2, "ins_size = %d", inSize); 98 out.annotate(2, "outs_size = %d", outSize); 101 out.annotate(2, "tries_size = %d", triesCount); 104 out.annotate(4, "debug_info_off = 0x%x", debugInfoOffset) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarSerializerFoo.java | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 46 protected DataOutputStream out; field in class:GrammarSerializerFoo 62 out = new DataOutputStream(bos); 63 writeString(out, SerializedGrammar.COOKIE); 64 out.writeByte(SerializedGrammar.FORMAT_VERSION); 68 if ( out!=null ) out.close(); 69 out = null; 79 case ANTLRParser.LEXER_GRAMMAR : out.writeByte('l'); break; 80 case ANTLRParser.PARSER_GRAMMAR : out.writeByte('p'); break [all...] |
/external/doclava/src/com/google/doclava/ |
Proofread.java | 27 static Writer out = null; field in class:Proofread 34 out = new BufferedWriter(new FileWriter(filename)); 35 out.write("javadoc proofread file: " + filename + "\n"); 37 if (out != null) { 39 out.close(); 41 out = null; 48 if (out == null) { 53 out.close(); 58 if (out == null) { 62 out.write(s) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
GenerateExcludeListTask.java | 122 BufferedWriter out = new BufferedWriter(new FileWriter(outputFile)); local 126 out.write("plugins/" + s + ","); 128 out.write("plugins/" + s); 131 out.close();
|
/external/guava/guava/src/com/google/common/io/ |
LittleEndianDataOutputStream.java | 49 * @param out the stream to delegate to 51 public LittleEndianDataOutputStream(OutputStream out) { 52 super(new DataOutputStream(Preconditions.checkNotNull(out))); 57 out.write(b, off, len); 61 ((DataOutputStream) out).writeBoolean(v); 65 ((DataOutputStream) out).writeByte(v); 75 ((DataOutputStream) out).writeBytes(s); 131 out.write(0xFF & v); 132 out.write(0xFF & (v >> 8)); 133 out.write(0xFF & (v >> 16)) [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
AbstractByteHasherTest.java | 115 private final ByteArrayOutputStream out = new ByteArrayOutputStream(); field in class:AbstractByteHasherTest.TestHasher 119 out.write(b); 124 out.write(b, off, len); 128 return out.toByteArray();
|
/external/guava/guava-tests/test/com/google/common/io/ |
ByteSinkTester.java | 88 OutputStream out = sink.openStream(); local 90 ByteStreams.copy(new ByteArrayInputStream(data), out); 92 out.close(); 99 OutputStream out = sink.openBufferedStream(); local 101 ByteStreams.copy(new ByteArrayInputStream(data), out); 103 out.close();
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
SimpleBITest.java | 219 StringBuffer out = new StringBuffer(); local 223 out.append(c); 225 out.append("\\u"); 227 out.append(zeros.substring(0, 4 - temp.length())); 228 out.append(temp); 231 logln(out.toString()); 235 StringBuffer out = new StringBuffer(); 239 out.append("<" + ((int)c - 0x100) + ">"); 241 out.append(c); 243 logln(out.toString()) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
SimpleBITest.java | 215 StringBuffer out = new StringBuffer(); local 219 out.append(c); 221 out.append("\\u"); 223 out.append(zeros.substring(0, 4 - temp.length())); 224 out.append(temp); 227 logln(out.toString()); 231 StringBuffer out = new StringBuffer(); 235 out.append("<" + ((int)c - 0x100) + ">"); 237 out.append(c); 239 logln(out.toString()) [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/data/ |
ExecutionDataWriter.java | 42 protected final CompactDataOutput out; field in class:ExecutionDataWriter 55 this.out = new CompactDataOutput(output); 66 out.writeByte(BLOCK_HEADER); 67 out.writeChar(MAGIC_NUMBER); 68 out.writeChar(FORMAT_VERSION); 78 out.flush(); 83 out.writeByte(BLOCK_SESSIONINFO); 84 out.writeUTF(info.getId()); 85 out.writeLong(info.getStartTimeStamp()); 86 out.writeLong(info.getDumpTimeStamp()) [all...] |
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/data/ |
CompactDataInputOutputTest.java | 29 private CompactDataOutput out; field in class:CompactDataInputOutputTest 36 out = new CompactDataOutput(pipe); 81 out.writeVarInt(value); 82 out.close(); 109 out.writeBooleanArray(values); 110 out.close();
|
/external/javassist/src/main/javassist/ |
SerialVersionUID.java | 78 DataOutputStream out = new DataOutputStream(bout); local 83 out.writeUTF(javaName); 95 out.writeInt(classMods); 104 out.writeUTF(interfaces[i]); 121 out.writeUTF(field.getName()); 122 out.writeInt(mods); 123 out.writeUTF(field.getFieldInfo2().getDescriptor()); 129 out.writeUTF("<clinit>"); 130 out.writeInt(Modifier.STATIC); 131 out.writeUTF("()V") [all...] |
/external/javassist/src/main/javassist/bytecode/ |
ClassFilePrinter.java | 32 print(cf, new PrintWriter(System.out, true)); 38 public static void print(ClassFile cf, PrintWriter out) { 48 out.println("major: " + cf.major + ", minor: " + cf.minor 50 out.println(Modifier.toString(mod) + " class " 55 out.print(" implements "); 56 out.print(infs[0]); 58 out.print(", " + infs[i]); 60 out.println(); 63 out.println(); 69 out.println(Modifier.toString(AccessFlag.toModifier(acc) 72 printAttributes(finfo.getAttributes(), out, 'f'); local 84 printAttributes(minfo.getAttributes(), out, 'm'); local 89 printAttributes(cf.getAttributes(), out, 'c'); local 108 printAttributes(ca.getAttributes(), out, kind); local [all...] |
/external/javassist/src/main/javassist/util/proxy/ |
FactoryHelper.java | 188 DataOutputStream out = new DataOutputStream(barray); local 190 cf.write(out); 193 out.close(); 224 DataOutputStream out = new DataOutputStream(new BufferedOutputStream( local 227 cf.write(out); 233 out.close();
|
/external/javassist/src/test/test/javassist/proxy/ |
ProxySerializationTest.java | 37 ObjectOutputStream out = new ObjectOutputStream(bos); local 38 out.writeObject(proxy); 39 out.close(); 64 ProxyObjectOutputStream out = new ProxyObjectOutputStream(bos); local 65 out.writeObject(proxy); 66 out.close();
|
/external/jetty/src/java/org/eclipse/jetty/server/ |
HttpWriter.java | 51 public HttpWriter(HttpOutput out) 53 _out=out; 119 HttpOutput out = _out; local 123 out._bytes.reset(); 138 byte[] buffer=out._bytes.getBuf(); 139 int bytes=out._bytes.getCount(); 150 out._bytes.setCount(bytes); 157 byte[] buffer=out._bytes.getBuf(); 158 int bytes=out._bytes.getCount(); 281 out._bytes.setCount(bytes) [all...] |
/external/jetty/src/java/org/eclipse/jetty/util/ |
IO.java | 73 OutputStream out; field in class:IO.Job 77 Job(InputStream in,OutputStream out) 80 this.out=out; 87 this.out=null; 100 copy(in,out,-1); 108 if (out!=null) 109 out.close(); 122 /** Copy Stream in to Stream out until EOF or exception. 125 public static void copyThread(InputStream in, OutputStream out) [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractStoreFileCommandHandler.java | 78 OutputStream out = file.createOutputStream(appendToOutputFile());
local 80 out.write(contents);
88 out.close();
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
DebuggingClassWriter.java | 83 OutputStream out = new BufferedOutputStream(new FileOutputStream(file)); local 85 out.write(b); 87 out.close(); 92 out = new BufferedOutputStream(new FileOutputStream(file)); 95 PrintWriter pw = new PrintWriter(new OutputStreamWriter(out)); 100 out.close();
|