/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionContextTest.java | 23 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionCacheSize() local 24 context.init(null, null, null); in test_sessionCacheSize() 25 SSLSessionContext sc = context in test_sessionCacheSize() 47 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionTimeout() local 48 context.init(null, null, null); in test_sessionTimeout() 49 SSLSessionContext sc = context in test_sessionTimeout() 70 SSLContext context = SSLContext.getInstance("TLS"); in test_getSession() local 71 context.init(null, null, null); in test_getSession() 72 SSLSessionContext sc = context in test_getSession() 88 SSLContext context = SSLContext.getInstance("TLS"); in test_getIds() local [all …]
|
D | SSLEngineTest.java | 1037 SSLContext context = SSLContext.getInstance("TLS"); in getEngine() local 1038 context.init(null, null, null); in getEngine() 1039 return context.createSSLEngine(); in getEngine() 1043 SSLContext context = SSLContext.getInstance("TLS"); in getEngine() local 1044 context.init(null, null, null); in getEngine() 1045 return context.createSSLEngine(host, port); in getEngine() 1098 HandshakeHandler(SSLContext context, boolean clientMode, SourceChannel in, SinkChannel out) 1102 engine = context.createSSLEngine(); 1226 TestSSLContext context = TestSSLContext.create(); 1227 clientEngine = new HandshakeHandler(context.clientContext, true, clientSource, clientSink); [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractWatchKey.java | 105 final void signalEvent(WatchEvent.Kind<?> kind, Object context) { in signalEvent() argument 115 Objects.equals(context, prev.context())))) in signalEvent() 125 WatchEvent<?> ev = lastModifyEvents.get(context); in signalEvent() 134 lastModifyEvents.remove(context); in signalEvent() 143 context = null; in signalEvent() 149 new Event<Object>((WatchEvent.Kind<Object>)kind, context); in signalEvent() 151 lastModifyEvents.put(context, ev); in signalEvent() 192 private final T context; field in AbstractWatchKey.Event 197 Event(WatchEvent.Kind<T> type, T context) { in Event() argument 199 this.context = context; in Event() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2130 boolean format(DateTimePrintContext context, StringBuilder buf); in format() argument 2146 int parse(DateTimeParseContext context, CharSequence text, int position); in parse() argument 2180 public boolean format(DateTimePrintContext context, StringBuilder buf) { in format() argument 2183 context.startOptional(); in format() 2187 if (pp.format(context, buf) == false) { in format() 2194 context.endOptional(); in format() 2201 public int parse(DateTimeParseContext context, CharSequence text, int position) { in parse() argument 2203 context.startOptional(); in parse() 2206 pos = pp.parse(context, text, pos); in parse() 2208 context.endOptional(false); in parse() [all …]
|
D | DateTimeFormatter.java | 1744 DateTimePrintContext context = new DateTimePrintContext(temporal, this); in formatTo() local 1746 printerParser.format(context, (StringBuilder) appendable); in formatTo() 1750 printerParser.format(context, buf); in formatTo() 1939 DateTimeParseContext context = parseUnresolved0(text, pos); in parseResolved0() local 1940 …if (context == null || pos.getErrorIndex() >= 0 || (position == null && pos.getIndex() < text.leng… in parseResolved0() 1955 return context.toResolved(resolverStyle, resolverFields); in parseResolved0() 1998 DateTimeParseContext context = parseUnresolved0(text, position); in parseUnresolved() local 1999 if (context == null) { in parseUnresolved() 2002 return context.toUnresolved(); in parseUnresolved() 2008 DateTimeParseContext context = new DateTimeParseContext(this); in parseUnresolved0() local [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | JaxenXPathTestSuite.java | 92 for (final Element context : elementsOf(document.getElementsByTagName("context"))) { in suite() 93 contextToTestSuite(result, url, inputSource, context); in suite() 120 Context context = new Context(inputSource, url, select); in contextToTestSuite() local 127 suite.addTest(createFromTest(xpath, context, test)); in contextToTestSuite() 130 suite.addTest(createFromValueOf(xpath, context, test)); in contextToTestSuite() 133 throw new UnsupportedOperationException("Unsupported test: " + context); in contextToTestSuite() 151 final XPath xpath, final Context context, final Element element) { in createFromTest() argument 156 return new XPathTest(context, select) { in createFromTest() 173 return new XPathTest(context, select) { in createFromTest() 186 return new XPathTest(context, select) { in createFromTest() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PendingFuture.java | 57 private volatile Object context; field in PendingFuture 62 Object context) in PendingFuture() argument 67 this.context = context; in PendingFuture() 83 PendingFuture(AsynchronousChannel channel, Object context) { in PendingFuture() argument 84 this(channel, null, null, context); in PendingFuture() 99 void setContext(Object context) { in setContext() argument 100 this.context = context; in setContext() 104 return context; in getContext()
|
/libcore/json/src/main/java/org/json/ |
D | JSONStringer.java | 196 Scope context = peek(); in close() local 197 if (context != nonempty && context != empty) { in close() 202 if (context == nonempty) { in close() 396 Scope context = peek(); in beforeKey() local 397 if (context == Scope.NONEMPTY_OBJECT) { // first in object in beforeKey() 399 } else if (context != Scope.EMPTY_OBJECT) { // not in an object! in beforeKey() 417 Scope context = peek(); in beforeValue() local 418 if (context == Scope.EMPTY_ARRAY) { // first in array in beforeValue() 421 } else if (context == Scope.NONEMPTY_ARRAY) { // another in array in beforeValue() 424 } else if (context == Scope.DANGLING_KEY) { // value for key in beforeValue() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LoggingTestCase.java | 43 private Map<String, Object> context = new HashMap<>(); field in LoggingTestCase 47 context.clear(); in before() 55 list.add(context.toString()); in after() 61 context.put(key, value); in setContext() 65 context.remove(key); in clearContext()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LoggingTestCase.java | 43 private Map<String, Object> context = new HashMap<>(); field in LoggingTestCase 47 context.clear(); in before() 55 list.add(context.toString()); in after() 61 context.put(key, value); in setContext() 65 context.remove(key); in clearContext()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLLoopbackBenchmark.java | 28 TestSSLContext context = TestSSLContext.create( in time() local 30 SSLSocket[] sockets = TestSSLSocketPair.connect(context, null, null); in time() 31 context.close(); in time()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 70 public static SSLSocket[] connect (final TestSSLContext context, in connect() argument 75 context.clientContext.getSocketFactory().createSocket(context.host, context.port); in connect() 76 final SSLSocket server = (SSLSocket) context.serverSocket.accept(); in connect()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestCase.java | 346 String context, in assertEqualsAutoCase() argument 358 if ("attribute".equals(context)) { in assertEqualsAutoCase() 398 String context, in assertEqualAutoCase() argument 404 if ("attribute".equals(context)) { in assertEqualAutoCase() 429 String context, in assertEqualsAutoCase() argument 435 if ("attribute".equals(context)) { in assertEqualsAutoCase() 576 String context, in assertNotEqualsAutoCase() argument 582 if ("attribute".equals(context)) { in assertNotEqualsAutoCase() 830 public boolean equalsAutoCase(String context, String expected, String actual) { in equalsAutoCase() argument 832 if ("attribute".equals(context)) { in equalsAutoCase() [all …]
|
/libcore/luni/src/main/native/ |
D | org_apache_harmony_xml_ExpatParser.cpp | 590 char* context = NULL; in init() local 591 char* a = strtok_r(mCopy, "|", &context); in init() 592 char* b = strtok_r(NULL, "|", &context); in init() 593 char* c = strtok_r(NULL, "|", &context); in init() 865 ScopedUtfChars context(env, javaContext); in ExpatParser_createEntityParser() local 866 if (context.c_str() == NULL) { in ExpatParser_createEntityParser() 871 XML_Parser entityParser = XML_ExternalEntityParserCreate(parent, context.c_str(), NULL); in ExpatParser_createEntityParser() 883 static int handleExternalEntity(XML_Parser parser, const char* context, in handleExternalEntity() argument 903 ScopedLocalRef<jstring> javaContext(env, env->NewStringUTF(context)); in handleExternalEntity() 980 std::unique_ptr<ParsingContext> context(new ParsingContext(object)); in ExpatParser_initialize() local [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URL.java | 497 public URL(URL context, String spec) throws MalformedURLException { in URL() argument 498 this(context, spec, null); in URL() 521 public URL(URL context, String spec, URLStreamHandler handler) in URL() argument 573 if ((context != null) && ((newProtocol == null) || in URL() 574 newProtocol.equalsIgnoreCase(context.protocol))) { in URL() 578 handler = context.handler; in URL() 585 if (context.path != null && context.path.startsWith("/")) in URL() 589 protocol = context.protocol; in URL() 590 authority = context.authority; in URL() 591 userInfo = context.userInfo; in URL() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | SecurityManager.java | 129 public void checkPermission(Permission perm, Object context) { in checkPermission() argument 151 public void checkRead(String file, Object context) { } in checkRead() argument 161 public void checkConnect(String host, int port, Object context) { } in checkConnect() argument
|
/libcore/ojluni/src/main/java/java/security/ |
D | AccessController.java | 58 AccessControlContext context) { in doPrivileged() argument 92 AccessControlContext context) in doPrivileged() argument
|
D | AccessControlContext.java | 39 public AccessControlContext(ProtectionDomain context[]) { in AccessControlContext() argument
|
D | KeyStore.java | 1808 private final AccessControlContext context; field in KeyStore.FileBuilder 1816 AccessControlContext context) { in FileBuilder() argument 1821 this.context = context; in FileBuilder() 1897 keyStore = AccessController.doPrivileged(action, context); in getKeyStore() 1951 final AccessControlContext context = AccessController.getContext(); in newInstance() local 2003 return AccessController.doPrivileged(action, context); in newInstance()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLContext.java | 157 public static synchronized void setDefault(SSLContext context) { in setDefault() argument 158 if (context == null) { in setDefault() 165 defaultContext = context; in setDefault()
|
D | SSLServerSocketFactory.java | 140 SSLContext context = SSLContext.getDefault(); in getDefault() local 141 if (context != null) { in getDefault() 142 defaultServerSocketFactory = context.getServerSocketFactory(); in getDefault()
|
D | SSLSocketFactory.java | 150 SSLContext context = SSLContext.getDefault(); in getDefault() local 151 if (context != null) { in getDefault() 152 defaultSocketFactory = context.getSocketFactory(); in getDefault()
|
/libcore/ojluni/src/main/java/sun/util/locale/provider/ |
D | CalendarDataUtility.java | 262 int context = toContext(style); in getNames() local 267 return symbols.getMonths(context, width); in getNames() 280 return symbols.getWeekdays(context, width); in getNames()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | WatchEvent.java | 117 T context(); in context() method
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 1131 public void shape(char[] text, int start, int count, int context) { in shape() argument 1134 int ctxKey = getKeyFromMask(context); in shape() 1163 public void shape(char[] text, int start, int count, Range context) { in shape() argument 1165 if (context == null) { in shape() 1171 shapeContextually(text, start, count, context); in shape() 1173 int key = Range.toRangeIndex(context); in shape()
|