Searched defs:context (Results 1 - 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/
H A DAccessControlContext.java37 public AccessControlContext(ProtectionDomain context[]) { argument
H A DAccessController.java56 AccessControlContext context) {
90 AccessControlContext context)
55 doPrivileged(PrivilegedAction<T> action, AccessControlContext context) argument
89 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
H A DKeyStore.java1570 private final AccessControlContext context; field in class:KeyStore.Builder.FileBuilder
1578 AccessControlContext context) {
1583 this.context = context;
1659 keyStore = AccessController.doPrivileged(action, context);
1713 final AccessControlContext context = AccessController.getContext();
1765 return AccessController.doPrivileged(action, context);
1576 FileBuilder(String type, Provider provider, File file, ProtectionParameter protection, AccessControlContext context) argument
/libcore/dex/src/main/java/com/android/dex/util/
H A DExceptionWithContext.java23 * Exception which carries around structured context.
26 /** {@code non-null;} human-oriented context of the exception */
27 private StringBuffer context; field in class:ExceptionWithContext
30 * Augments the given exception with the given context, and return the
36 * @param str {@code non-null;} context to add
82 String ctx = ((ExceptionWithContext) cause).context.toString();
83 context = new StringBuffer(ctx.length() + 200);
84 context.append(ctx);
86 context = new StringBuffer(200);
94 out.println(context);
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DSSLServerSocketFactoryImpl.java43 private SSLContextImpl context; field in class:SSLServerSocketFactoryImpl
52 this.context = SSLContextImpl.DefaultSSLContext.getDefaultImpl();
58 SSLServerSocketFactoryImpl (SSLContextImpl context) argument
60 this.context = context;
71 return new SSLServerSocketImpl(context);
77 return new SSLServerSocketImpl (port, DEFAULT_BACKLOG, context);
84 return new SSLServerSocketImpl (port, backlog, context);
91 return new SSLServerSocketImpl (port, backlog, ifAddress, context);
102 return context
[all...]
H A DSSLSocketFactoryImpl.java39 * authentication context (and the keys held there) rather than offering
40 * any flexibility about which keys to use; that context defaults to the
41 * process-default context, but may be explicitly specified.
48 private SSLContextImpl context; field in class:SSLSocketFactoryImpl
56 this.context = SSLContextImpl.DefaultSSLContext.getDefaultImpl();
62 SSLSocketFactoryImpl(SSLContextImpl context) { argument
63 this.context = context;
73 return new SSLSocketImpl(context);
79 * existing SSL sessions allowed by the authentication context whic
[all...]
H A DClientHandshaker.java98 ClientHandshaker(SSLSocketImpl socket, SSLContextImpl context, argument
104 super(socket, context, enabledProtocols, true, true,
109 ClientHandshaker(SSLEngineImpl engine, SSLContextImpl context, argument
115 super(engine, context, enabledProtocols, true, true,
H A DSSLServerSocketImpl.java50 * <P> Also, the constructors take an explicit authentication context
56 * connections if they the authentication context has not been given
97 * authentication context and a specified connection backlog.
102 * @param context authentication context for this server
104 SSLServerSocketImpl(int port, int backlog, SSLContextImpl context) argument
108 initServer(context);
114 * authentication context and a specified backlog of connections
125 * @param context authentication context fo
127 SSLServerSocketImpl( int port, int backlog, InetAddress address, SSLContextImpl context) argument
142 SSLServerSocketImpl(SSLContextImpl context) argument
151 initServer(SSLContextImpl context) argument
[all...]
H A DServerHandshaker.java98 * Constructor ... use the keys found in the auth context.
100 ServerHandshaker(SSLSocketImpl socket, SSLContextImpl context, argument
106 super(socket, context, enabledProtocols,
114 * Constructor ... use the keys found in the auth context.
116 ServerHandshaker(SSLEngineImpl engine, SSLContextImpl context, argument
122 super(engine, context, enabledProtocols,
1150 * Get some "ephemeral" RSA keys for this context. This means
H A DSSLSessionImpl.java61 * Implements the SSL session interface, and exposes the session context
65 * their authentication context(s). They can do this by enumerating the
73 * there's no other public way to get at the server session context which
74 * is associated with any given authentication context. </em>
107 private SSLSessionContextImpl context; field in class:SSLSessionImpl
295 return context;
588 if (context == null) {
589 context = ctx;
610 if (context != null) {
611 context
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DLoggingTestCase.java43 private Map<String, Object> context = new HashMap<>(); field in class:LoggingTestCase
47 context.clear();
55 list.add(context.toString());
61 context.put(key, value);
65 context.remove(key);
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DLoggingTestCase.java43 private Map<String, Object> context = new HashMap<>(); field in class:LoggingTestCase
47 context.clear();
55 list.add(context.toString());
61 context.put(key, value);
65 context.remove(key);
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLSocketPair.java71 public static SSLSocket[] connect (final TestSSLContext context, argument
76 context.clientContext.getSocketFactory().createSocket(context.host, context.port);
77 final SSLSocket server = (SSLSocket) context.serverSocket.accept();
/libcore/ojluni/src/main/java/sun/misc/
H A DIoTrace.java39 * The xxBegin() methods return a "context". This can be any Object. This
40 * context will be passed to the corresponding xxEnd() method. This way, an
72 * @return a context object
81 * @param context
82 * the context returned by the previous call to socketReadBegin()
94 public static void socketReadEnd(Object context, InetAddress address, int port, argument
101 * @return a context object
110 * @param context
111 * the context returned by the previous call to
121 public static void socketWriteEnd(Object context, InetAddres argument
145 fileReadEnd(Object context, long bytesRead) argument
168 fileWriteEnd(Object context, long bytesWritten) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLContext.java111 * Returns the default SSL context.
113 * <p>If a default context was set using the {@link #setDefault
117 * If successful, that object is made the default SSL context and returned.
119 * <p>The default context is immediately
122 * @return the default SSL context
136 * Sets the default SSL context. It will be returned by subsequent calls
137 * to {@link #getDefault}. The default context must be immediately usable
140 * @param context the SSLContext
141 * @throws NullPointerException if context is null
147 public static synchronized void setDefault(SSLContext context) { argument
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DJaxenXPathTestSuite.java74 * <context .../>
75 * <context .../>
76 * <context .../>
79 * <context .../>
92 for (final Element context : elementsOf(document.getElementsByTagName("context"))) {
93 contextToTestSuite(result, url, inputSource, context);
101 * Populates the test suite with tests from the given XML context element.
107 * Each context element has this structure:
109 * <context selec
150 createFromTest( final XPath xpath, final Context context, final Element element) argument
202 createFromValueOf( final XPath xpath, final Context context, final Element element) argument
249 private final Context context; field in class:JaxenXPathTestSuite.XPathTest
252 XPathTest(Context context, String select) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestCase.java346 String context,
356 // if the context is attribute, then use case-insentive comparison
358 if ("attribute".equals(context)) {
398 String context,
404 if ("attribute".equals(context)) {
429 String context,
435 if ("attribute".equals(context)) {
576 String context,
582 if ("attribute".equals(context)) {
830 public boolean equalsAutoCase(String context, Strin argument
345 assertEqualsAutoCase( String context, String assertID, String expected, String actual) argument
397 assertEqualAutoCase( String context, String assertID, Collection expected, Collection actual) argument
428 assertEqualsAutoCase( String context, String assertID, List expected, List actual) argument
575 assertNotEqualsAutoCase( String context, String assertID, String expected, String actual) argument
851 equalsAutoCase(String context, Collection expected, Collection actual) argument
873 equalsAutoCase(String context, List expected, List actual) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DSecurityManager.java119 public void checkPermission(Permission perm, Object context) { argument
141 public void checkRead(String file, Object context) { } argument
151 public void checkConnect(String host, int port, Object context) { } argument
/libcore/ojluni/src/main/java/java/net/
H A DURL.java439 * Creates a URL by parsing the given spec within a specified context.
441 * The new URL is created from the given context URL and the spec
454 * the scheme of the context, then the new URL is created as an absolute
456 * from the context URL.
460 * context authority and path. If the authority component is absent in the
462 * context.
466 * path is treated as absolute and the spec path replaces the context path.
469 * context path, as described in RFC2396. Also, in this case,
475 * @param context the context i
485 URL(URL context, String spec) argument
509 URL(URL context, String spec, URLStreamHandler handler) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLEngineTest.java1016 SSLContext context = SSLContext.getInstance("TLS");
1017 context.init(null, null, null);
1018 return context.createSSLEngine();
1022 SSLContext context = SSLContext.getInstance("TLS");
1023 context.init(null, null, null);
1024 return context.createSSLEngine(host, port);
1046 HandshakeHandler(SSLContext context, boolean clientMode, SourceChannel in, SinkChannel out) argument
1050 engine = context.createSSLEngine();
1174 TestSSLContext context = TestSSLContext.create();
1175 clientEngine = new HandshakeHandler(context
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java243 * @param context to be passed back to Expat when we parse the entity
247 /*package*/ void handleExternalEntity(String context, String publicId, argument
305 long pointer = createEntityParser(this.pointer, context);
392 * @param context passed to {@link #handleExternalEntity}
395 private static native long createEntityParser(long parentPointer, String context); argument
800 * parsing context--our parent is using it.
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeConverter.cpp373 const EncoderCallbackContext* context = reinterpret_cast<const EncoderCallbackContext*>(rawContext); local
375 ucnv_cbFromUWriteBytes(fromArgs, context->replacementBytes, context->replacementByteCount, 0, err);
422 // The icu4c UCNV_FROM_U_CALLBACK_SKIP callback requires that the context is NULL, which is
433 const DecoderCallbackContext* context = reinterpret_cast<const DecoderCallbackContext*>(rawContext); local
435 ucnv_cbToUWriteUChars(toArgs,context->replacementChars, context->replacementCharCount, 0, err);
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogManager.java222 /* Set context class loader to null in order to avoid
398 // Add a system logger in the system context's namespace
450 // LoggerContext maintains the logger namespace per context.
451 // The default LogManager implementation has one system context and user
452 // context. The system context is used to maintain the namespace for
454 // doesn't exist in the user context, it'll also be added to the user context.
455 // The user context is queried by the user code and all other loggers are
456 // added in the user context
1371 final LoggerContext context; field in class:LogManager.LogNode
1373 LogNode(LogNode parent, LoggerContext context) argument
[all...]
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java1040 public void dump(String context) throws KeyStoreException, NoSuchAlgorithmException { argument
1041 dump(context, keyStore, keyPassword);
1047 public static void dump(String context, KeyStore keyStore, char[] keyPassword) argument
1050 out.println("context=" + context);
/libcore/ojluni/src/main/java/java/awt/font/
H A DNumericShaper.java48 * shape European digits to Arabic in an Arabic context:<br>
370 /** index of context for contextual shaping - values range from 0 to 18 */
379 * The context {@code Range} for contextual shaping or the {@code
952 * shaper assumes EUROPEAN as the starting context, that is, if
954 * text in the string, the context is presumed to be EUROPEAN, and
970 * <p>The shaper assumes EUROPEAN as the starting context, that
972 * directional text in the string, the context is presumed to be
993 * shaper uses defaultContext as the starting context.
995 * @param defaultContext the starting context, such as
1012 * defaultContext} as the starting context
1113 shape(char[] text, int start, int count, int context) argument
1145 shape(char[] text, int start, int count, Range context) argument
[all...]

Completed in 1377 milliseconds

12