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

/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.java1808 private final AccessControlContext context; field in class:KeyStore.Builder.FileBuilder
1816 AccessControlContext context) {
1821 this.context = context;
1897 keyStore = AccessController.doPrivileged(action, context);
1951 final AccessControlContext context = AccessController.getContext();
2003 return AccessController.doPrivileged(action, context);
1814 FileBuilder(String type, Provider provider, File file, ProtectionParameter protection, AccessControlContext context) argument
/libcore/ojluni/src/main/java/java/nio/file/
H A DWatchEvent.java35 * {@link #context() context} method returns any context associated with
36 * the event. In the case of a repeated event then the context is the same for
42 * @param <T> The type of the context object associated with the event
64 * Returns the type of the {@link WatchEvent#context context} value.
67 * @return the type of the context value
106 * Returns the context for the event.
110 * StandardWatchEventKinds#ENTRY_MODIFY ENTRY_MODIFY} events the context i
117 T context(); method in interface:WatchEvent
[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/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/ojluni/src/main/java/sun/nio/fs/
H A DAbstractWatchKey.java65 // maps a context to the last event for the context (iff the last queued
66 // event for the context is an ENTRY_MODIFY event).
105 final void signalEvent(WatchEvent.Kind<?> kind, Object context) { argument
115 Objects.equals(context, prev.context()))))
121 // if this is a modify event and the last entry for the context
125 WatchEvent<?> ev = lastModifyEvents.get(context);
134 lastModifyEvents.remove(context);
143 context
192 private final T context; field in class:AbstractWatchKey.Event
197 Event(WatchEvent.Kind<T> type, T context) argument
209 public T context() { method in class:AbstractWatchKey.Event
[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/ojluni/src/main/java/sun/nio/ch/
H A DPendingFuture.java34 * attachment of an additional arbitrary context object and a timer task.
56 // optional context object
57 private volatile Object context; field in class:PendingFuture
62 Object context)
67 this.context = context;
83 PendingFuture(AsynchronousChannel channel, Object context) { argument
84 this(channel, null, null, context);
99 void setContext(Object context) { argument
100 this.context
59 PendingFuture(AsynchronousChannel channel, CompletionHandler<V,? super A> handler, A attachment, Object context) 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.java440 * Creates a URL by parsing the given spec within a specified context.
442 * The new URL is created from the given context URL and the spec
455 * the scheme of the context, then the new URL is created as an absolute
457 * from the context URL.
461 * context authority and path. If the authority component is absent in the
463 * context.
467 * path is treated as absolute and the spec path replaces the context path.
470 * context path, as described in RFC2396. Also, in this case,
476 * @param context the context i
486 URL(URL context, String spec) argument
510 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.java1024 SSLContext context = SSLContext.getInstance("TLS");
1025 context.init(null, null, null);
1026 return context.createSSLEngine();
1030 SSLContext context = SSLContext.getInstance("TLS");
1031 context.init(null, null, null);
1032 return context.createSSLEngine(host, port);
1054 HandshakeHandler(SSLContext context, boolean clientMode, SourceChannel in, SinkChannel out) argument
1058 engine = context.createSSLEngine();
1182 TestSSLContext context = TestSSLContext.create();
1183 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.cpp374 const EncoderCallbackContext* context = reinterpret_cast<const EncoderCallbackContext*>(rawContext); local
376 ucnv_cbFromUWriteBytes(fromArgs, context->replacementBytes, context->replacementByteCount, 0, err);
423 // The icu4c UCNV_FROM_U_CALLBACK_SKIP callback requires that the context is NULL, which is
434 const DecoderCallbackContext* context = reinterpret_cast<const DecoderCallbackContext*>(rawContext); local
436 ucnv_cbToUWriteUChars(toArgs,context->replacementChars, context->replacementCharCount, 0, err);
H A Dorg_apache_harmony_xml_ExpatParser.cpp455 * @param data parsing context
578 char* context = NULL; local
579 char* a = strtok_r(mCopy, "|", &context);
580 char* b = strtok_r(NULL, "|", &context);
581 char* c = strtok_r(NULL, "|", &context);
607 * @param data parsing context
649 * @param data parsing context
674 * @param data parsing context
686 * @param data parsing context
696 * @param data parsing context
871 handleExternalEntity(XML_Parser parser, const char* context, const char*, const char* systemId, const char* publicId) argument
1023 ParsingContext* context = toParsingContext(parser); local
1080 ParsingContext* context = toParsingContext(parser); local
1104 ParsingContext* context = toParsingContext(toXMLParser(address)); local
1117 ParsingContext* context = toParsingContext(toXMLParser(address)); local
1130 ParsingContext* context = toParsingContext(toXMLParser(address)); local
[all...]
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java1088 public void dump(String context) throws KeyStoreException, NoSuchAlgorithmException { argument
1089 dump(context, keyStore, keyPassword);
1095 public static void dump(String context, KeyStore keyStore, char[] keyPassword) argument
1098 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
970 * shaper assumes EUROPEAN as the starting context, that is, if
972 * text in the string, the context is presumed to be EUROPEAN, and
988 * <p>The shaper assumes EUROPEAN as the starting context, that
990 * directional text in the string, the context is presumed to be
1011 * shaper uses defaultContext as the starting context.
1013 * @param defaultContext the starting context, such as
1030 * defaultContext} as the starting context
1131 shape(char[] text, int start, int count, int context) argument
1163 shape(char[] text, int start, int count, Range context) argument
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DLogManager.java209 /* Set context class loader to null in order to avoid
275 * In LoggerContext we're patching up the logger context tree in order to add
276 * the root and global logger *to the context tree*.
283 * any logger is added to any logger context.
494 // The system context.
548 // Add a system logger in the system context's namespace
601 // LoggerContext maintains the logger namespace per context.
602 // The default LogManager implementation has one system context and user
603 // context. The system context i
1611 final LoggerContext context; field in class:LogManager.LogNode
1613 LogNode(LogNode parent, LoggerContext context) argument
[all...]
/libcore/ojluni/src/main/java/java/time/format/
H A DDateTimeFormatterBuilder.java2094 * in the context. Typically, each individual parser will just parse one
2095 * field, such as the day-of-month, storing the value in the context.
2108 * The context is not a thread-safe object and a new instance will be created
2109 * for each format that occurs. The context must not be stored in an instance
2117 * The context holds information to use during the format.
2122 * @param context the context to format using, not null
2127 boolean format(DateTimePrintContext context, StringBuilder buf); argument
2132 * The context holds information to use during the parse.
2135 * @param context th
2143 parse(DateTimeParseContext context, CharSequence text, int position) argument
2177 format(DateTimePrintContext context, StringBuilder buf) argument
2198 parse(DateTimeParseContext context, CharSequence text, int position) argument
2260 format(DateTimePrintContext context, StringBuilder buf) argument
2277 parse(DateTimeParseContext context, CharSequence text, int position) argument
2323 format(DateTimePrintContext context, StringBuilder buf) argument
2328 parse(DateTimeParseContext context, CharSequence text, int position) argument
2365 format(DateTimePrintContext context, StringBuilder buf) argument
2369 parse(DateTimeParseContext context, CharSequence text, int position) argument
2389 format(DateTimePrintContext context, StringBuilder buf) argument
2395 parse(DateTimeParseContext context, CharSequence text, int position) argument
2432 format(DateTimePrintContext context, StringBuilder buf) argument
2438 parse(DateTimeParseContext context, CharSequence text, int position) argument
2544 format(DateTimePrintContext context, StringBuilder buf) argument
2597 getValue(DateTimePrintContext context, long value) argument
2608 isFixedWidth(DateTimeParseContext context) argument
2614 parse(DateTimeParseContext context, CharSequence text, int position) argument
2724 setValue(DateTimeParseContext context, long value, int errorPos, int successPos) argument
2804 getValue(DateTimePrintContext context, long value) argument
2820 setValue(DateTimeParseContext context, long value, int errorPos, int successPos) argument
2887 isFixedWidth(DateTimeParseContext context) argument
2940 format(DateTimePrintContext context, StringBuilder buf) argument
2970 parse(DateTimeParseContext context, CharSequence text, int position) argument
3096 format(DateTimePrintContext context, StringBuilder buf) argument
3116 parse(DateTimeParseContext context, CharSequence parseText, int position) argument
3181 format(DateTimePrintContext context, StringBuilder buf) argument
3246 parse(DateTimeParseContext context, CharSequence text, int position) argument
3339 format(DateTimePrintContext context, StringBuilder buf) argument
3374 parse(DateTimeParseContext context, CharSequence text, int position) argument
3478 format(DateTimePrintContext context, StringBuilder buf) argument
3528 parse(DateTimeParseContext context, CharSequence text, int position) argument
3725 format(DateTimePrintContext context, StringBuilder buf) argument
3753 getTree(DateTimeParseContext context) argument
3823 format(DateTimePrintContext context, StringBuilder buf) argument
3838 getTree(DateTimeParseContext context) argument
3866 parse(DateTimeParseContext context, CharSequence text, int position) argument
3919 parseOffsetBased(DateTimeParseContext context, CharSequence text, int prefixPos, int position, OffsetIdPrinterParser parser) argument
3993 newTree(DateTimeParseContext context) argument
4010 newTree(Set<String> keys, DateTimeParseContext context) argument
4316 format(DateTimePrintContext context, StringBuilder buf) argument
4330 parse(DateTimeParseContext context, CharSequence text, int position) argument
4400 format(DateTimePrintContext context, StringBuilder buf) argument
4406 parse(DateTimeParseContext context, CharSequence text, int position) argument
4467 format(DateTimePrintContext context, StringBuilder buf) argument
4472 parse(DateTimeParseContext context, CharSequence text, int position) argument
[all...]

Completed in 1147 milliseconds