/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
TeeOutputStream.java | 24 this.output1 = output1; 25 this.output2 = output2; 31 this.output1.write(buf); 32 this.output2.write(buf); 38 this.output1.write(buf, off, len); 39 this.output2.write(buf, off, len); 45 this.output1.write(b); 46 this.output2.write(b); 52 this.output1.flush(); 53 this.output2.flush() [all...] |
TeeInputStream.java | 24 this.input = input; 25 this.output = output; 63 this.input.close(); 64 this.output.close();
|
/frameworks/base/core/java/android/os/ |
ConditionVariable.java | 5 * you may not use this file except in compliance with the License. 23 * This differs from the built-in java.lang.Object wait() and notify() 24 * in that this class contains the condition to wait on itself. That means 29 * This class uses itself as the object to wait on, so if you wait() 64 synchronized (this) { 68 this.notifyAll(); 81 synchronized (this) { 94 synchronized (this) { 97 this.wait(); 119 // Object.wait(0) means wait forever, to mimic this, we jus [all...] |
/external/libnetfilter_conntrack/src/conntrack/ |
filter_dump.c | 4 * This program is free software; you can redistribute it and/or modify it 16 const struct nfct_filter_dump_mark *this = value; local 18 filter_dump->mark.val = this->val; 19 filter_dump->mark.mask = this->mask;
|
filter.c | 4 * This program is free software; you can redistribute it and/or modify it 24 const struct nfct_filter_proto *this = value; local 26 set_bit_u16(this->state, &filter->l4proto_state[this->proto].map); 27 filter->l4proto_state[this->proto].len++; 32 const struct nfct_filter_ipv4 *this = value; local 37 filter->l3proto[0][filter->l3proto_elems[0]].addr = this->addr; 38 filter->l3proto[0][filter->l3proto_elems[0]].mask = this->mask; 44 const struct nfct_filter_ipv4 *this = value; local 49 filter->l3proto[1][filter->l3proto_elems[1]].addr = this->addr 56 const struct nfct_filter_ipv6 *this = value; local 70 const struct nfct_filter_ipv6 *this = value; local 84 const struct nfct_filter_dump_mark *this = value; local [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
SSLServerSocketFactoryTest.java | 14 * 1. Redistributions of source code must retain the above copyright notice, this 18 * this list of conditions and the following disclaimer in the documentation 22 * may be used to endorse or promote products derived from this software without 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 33 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 62 Assert.assertEquals(9043, this.testServer.getListeningPort()); 63 Assert.assertTrue(this.testServer.isAlive()); 69 this.testServer = new TestServer(9043); 70 this.testServer.setServerSocketFactory(new SecureServerSocketFactory(NanoHTTPD.makeSSLSocketFactory("/keystore.jks", "password".toCharArray()), null)); 71 this.tempFileManager = new TestTempFileManager() [all...] |
HttpSSLServerTest.java | 12 * 1. Redistributions of source code must retain the above copyright notice, this 16 * this list of conditions and the following disclaimer in the documentation 20 * may be used to endorse or promote products derived from this software without 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 31 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 61 Assert.assertEquals(9043, this.testServer.getListeningPort()); 62 Assert.assertTrue(this.testServer.isAlive()); 68 this.testServer = new TestServer(9043); 69 this.testServer.makeSecure(NanoHTTPD.makeSSLSocketFactory("/keystore.jks", "password".toCharArray()), null); 70 this.tempFileManager = new TestTempFileManager() [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 5 * you may not use this file except in compliance with the License. 31 * <p>Extend this class and override one or more of the {@link #onUpdate}, {@link #onDeleted}, 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 73 this.onDeleted(context, new int[] { appWidgetId }); 81 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context), 85 this.onEnabled(context); 87 this.onDisabled(context); 94 this.onRestored(context, oldIds, newIds); 95 this.onUpdate(context, AppWidgetManager.getInstance(context), newIds); 104 * {@link AppWidgetManager#ACTION_APPWIDGET_RESTORED} broadcasts when this AppWidge [all...] |
/packages/experimental/KBars/app/src/main/java/js/kbars/ |
MediaModeToggleButton.java | 24 this.mFrame = frame; 28 MediaModeToggleButton.this.setSystemUiVisibility(MediaModeToggleButton.MEDIA_FLAGS); 33 MediaModeToggleButton.this.updateSysUi(vis); 41 this.mVideo = new VideoView(getContext()); 42 this.mVideo.setVisibility(8); 45 this.mFrame.addView(this.mVideo, videoLP); 46 this.mVideo.setOnPreparedListener(new OnPreparedListener() { 51 this.mVideo.setVideoURI(Uri.parse("android.resource://" + getContext().getPackageName() + "/" + R.raw.clipcanvas)); 52 this.mVideo.setBackgroundColor(0) [all...] |
/external/mockito/src/main/java/org/mockito/internal/junit/ |
VerificationCollectorImpl.java | 3 * This program is made available under the terms of the MIT License. 27 this.resetBuilder(); 35 VerificationCollectorImpl.this.assertLazily(); 37 VerificationCollectorImpl.this.collectAndReport(); 50 if (this.numberOfFailures > 0) { 51 String error = this.builder.toString(); 53 this.resetBuilder(); 65 return this; 69 this.builder = new StringBuilder() 71 this.numberOfFailures = 0 [all...] |
/dalvik/dx/src/com/android/dx/merge/ |
InstructionTransformer.java | 5 * you may not use this file except in compliance with the License. 34 this.reader = new CodeReader(); 35 this.reader.setAllVisitors(new GenericVisitor()); 36 this.reader.setStringVisitor(new StringVisitor()); 37 this.reader.setTypeVisitor(new TypeVisitor()); 38 this.reader.setFieldVisitor(new FieldVisitor()); 39 this.reader.setMethodVisitor(new MethodVisitor()); 40 this.reader.setMethodAndProtoVisitor(new MethodAndProtoVisitor()); 41 this.reader.setCallSiteVisitor(new CallSiteVisitor()); 49 this.indexMap = indexMap [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
LoggingSessionOutputBuffer.java | 10 * this work for additional information regarding copyright ownership. 11 * The ASF licenses this file to You under the Apache License, Version 2.0 12 * (the "License"); you may not use this file except in compliance with 24 * This software consists of voluntary contributions made by many 47 * Please visit <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this webpage</a> 66 this.out = out; 67 this.wire = wire; 71 this.out.write(b, off, len); 72 if (this.wire.enabled()) { 73 this.wire.output(b, off, len) [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
ServiceEventImpl.java | 34 * The service info record, or null if the service could be be resolved. This is also null, if the event was fired to a service type listener. 52 this._type = type; 53 this._name = name; 54 this._info = info; 91 buf.append("[" + this.getClass().getSimpleName() + "@" + System.identityHashCode(this) + " "); 93 buf.append(this.getName()); 95 buf.append(this.getType()); 97 buf.append(this.getInfo()); 120 ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()) [all...] |
SocketListener.java | 30 this.setDaemon(true); 31 this._jmDNSImpl = jmDNSImpl; 39 while (!this._jmDNSImpl.isCanceling() && !this._jmDNSImpl.isCanceled()) { 41 this._jmDNSImpl.getSocket().receive(packet); 42 if (this._jmDNSImpl.isCanceling() || this._jmDNSImpl.isCanceled() || this._jmDNSImpl.isClosing() || this._jmDNSImpl.isClosed()) { 46 if (this._jmDNSImpl.getLocalHost().shouldIgnorePacket(packet)) [all...] |
DNSOutgoing.java | 36 this(size, out, 0); 46 this.write(value & 0xFF); 136 _out._names.put(aName, Integer.valueOf(this.size() + _offset)); 161 MessageOutputStream record = new MessageOutputStream(512, _out, _offset + this.size() + 2); 172 * This can be used to turn off domain name compression. This was helpful for tracking problems interacting with other mdns implementations. 196 this(flags, true, DNSConstants.MAX_MSG_TYPICAL); 206 this(flags, multicast, DNSConstants.MAX_MSG_TYPICAL); 221 _questionsBytes = new MessageOutputStream(senderUDPPayload, this); 222 _answersBytes = new MessageOutputStream(senderUDPPayload, this); [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
TeeOutputStream.java | 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 41 this.branch = branch; 51 this.branch.write(b); 63 this.branch.write(b, off, len); 73 this.branch.write(b); 82 this.branch.flush(); 91 this.branch.close();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
PopupWindowCtsActivity.java | 5 * you may not use this file except in compliance with the License. 38 synchronized (this) { 39 this.notifyAll(); 44 synchronized (this) { 45 this.wait(10000);
|
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/ |
DialogActivity.java | 5 * you may not use this file except in compliance with the License. 37 DialogActivity.this.finish();
|
/external/snakeyaml/src/test/java/examples/jodatime/ |
JodaTimeImplicitContructor.java | 5 * you may not use this file except in compliance with the License. 31 this.yamlConstructors.put(Tag.TIMESTAMP, new ConstructJodaTimestamp());
|
/frameworks/base/tests/CoreTests/android/core/ |
TestHttpClient.java | 9 * distributed with this work for additional information 10 * regarding copyright ownership. The ASF licenses this file 12 * "License"); you may not use this file except in compliance 25 * This software consists of voluntary contributions made by many 70 this.params = new BasicHttpParams(); 71 this.params 77 this.httpproc = new BasicHttpProcessor(); 79 this.httpproc.addInterceptor(new RequestContent()); 80 this.httpproc.addInterceptor(new RequestTargetHost()); 82 this.httpproc.addInterceptor(new RequestConnControl()) [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
IdentityOutputStream.java | 9 * distributed with this work for additional information 10 * regarding copyright ownership. The ASF licenses this file 12 * "License"); you may not use this file except in compliance 25 * This software consists of voluntary contributions made by many 49 * Please visit <a href="http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this webpage</a> 68 this.out = out; 77 if (!this.closed) { 78 this.closed = true; 79 this.out.flush(); 84 this.out.flush() [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
IntegrationTestBase.java | 12 * 1. Redistributions of source code must retain the above copyright notice, this 16 * this list of conditions and the following disclaimer in the documentation 20 * may be used to endorse or promote products derived from this software without 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 31 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 57 this.testServer = createTestServer(); 58 this.httpclient = new DefaultHttpClient(); 60 this.testServer.start(); 68 this.httpclient.getConnectionManager().shutdown(); 69 this.testServer.stop() [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
PriorityParser.java | 4 * This software was developed by employees of the National Institute of 11 * This software is provided by NIST as a service and is expressly 20 * Permission to use this software is contingent upon your acceptance 21 * of the terms of this agreement 77 this.lexer.SPorHT(); 78 /*this.lexer.match(TokenTypes.ID); 83 // This is in violation of the RFC but 85 priority.setPriority(this.lexer.ttokenSafe()); 87 this.lexer.SPorHT(); 88 this.lexer.match('\n') [all...] |
/frameworks/support/compat/src/main/java/androidx/core/app/ |
NotificationCompatSideChannelService.java | 5 * you may not use this file except in compliance with the License. 31 * <p>To receive side channel notifications, extend this service and register it in your 84 NotificationCompatSideChannelService.this.notify(packageName, id, tag, notification); 95 NotificationCompatSideChannelService.this.cancel(packageName, id, tag); 106 NotificationCompatSideChannelService.this.cancelAll(packageName);
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
DTMTreeWalker.java | 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 31 * This class does a pre-order walk of the DTM tree, calling a ContentHandler 35 * I think normally this class should not be needed, because 45 /** DomHelper for this TreeWalker */ 93 this.m_contentHandler = contentHandler; 108 // %REVIEW% Why isn't this just traverse(pos,pos)? 110 int top = pos; // Remember the root of this subtree 131 // %REVIEW% This condition isn't tested in traverse(pos,top [all...] |