/libcore/dex/src/main/java/com/android/dex/util/ |
D | ExceptionWithContext.java | 27 private StringBuffer context; field in ExceptionWithContext 82 String ctx = ((ExceptionWithContext) cause).context.toString(); in ExceptionWithContext() 83 context = new StringBuffer(ctx.length() + 200); in ExceptionWithContext() 84 context.append(ctx); in ExceptionWithContext() 86 context = new StringBuffer(200); in ExceptionWithContext() 94 out.println(context); in printStackTrace() 101 out.println(context); in printStackTrace() 114 context.append(str); in addContext() 116 context.append('\n'); in addContext() 126 return context.toString(); in getContext() [all …]
|
/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 | 1016 SSLContext context = SSLContext.getInstance("TLS"); in getEngine() local 1017 context.init(null, null, null); in getEngine() 1018 return context.createSSLEngine(); in getEngine() 1022 SSLContext context = SSLContext.getInstance("TLS"); in getEngine() local 1023 context.init(null, null, null); in getEngine() 1024 return context.createSSLEngine(host, port); in getEngine() 1046 HandshakeHandler(SSLContext context, boolean clientMode, SourceChannel in, SinkChannel out) in HandshakeHandler() argument 1050 engine = context.createSSLEngine(); in HandshakeHandler() 1174 TestSSLContext context = TestSSLContext.create(); in prepareEngines() local 1175 clientEngine = new HandshakeHandler(context.clientContext, true, clientSource, clientSink); in prepareEngines() [all …]
|
D | SSLServerSocketTest.java | 409 SSLContext context = SSLContext.getInstance("TLS"); in getSSLServerSocket() local 410 context.init(getKeyManagers(), null, null); in getSSLServerSocket() 411 SSLServerSocket sss = (SSLServerSocket) context.getServerSocketFactory() in getSSLServerSocket()
|
/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/json/src/main/java/org/json/ |
D | JSONStringer.java | 189 Scope context = peek(); in close() local 190 if (context != nonempty && context != empty) { in close() 195 if (context == nonempty) { in close() 384 Scope context = peek(); in beforeKey() local 385 if (context == Scope.NONEMPTY_OBJECT) { // first in object in beforeKey() 387 } else if (context != Scope.EMPTY_OBJECT) { // not in an object! in beforeKey() 404 Scope context = peek(); in beforeValue() local 405 if (context == Scope.EMPTY_ARRAY) { // first in array in beforeValue() 408 } else if (context == Scope.NONEMPTY_ARRAY) { // another in array in beforeValue() 411 } else if (context == Scope.DANGLING_KEY) { // value for key in beforeValue() [all …]
|
/libcore/luni/src/main/java/javax/net/ssl/ |
D | SSLServerSocketFactory.java | 70 SSLContext context; in getDefault() local 72 context = SSLContext.getDefault(); in getDefault() 74 context = null; in getDefault() 76 if (context != null) { in getDefault() 77 defaultServerSocketFactory = context.getServerSocketFactory(); in getDefault()
|
D | SSLSocketFactory.java | 81 SSLContext context; in getDefault() local 83 context = SSLContext.getDefault(); in getDefault() 85 context = null; in getDefault() 87 if (context != null) { in getDefault() 88 defaultSocketFactory = context.getSocketFactory(); in getDefault()
|
/libcore/luni/src/main/java/java/net/ |
D | URL.java | 136 public URL(URL context, String spec) throws MalformedURLException { in URL() argument 137 this(context, spec, null); in URL() 150 public URL(URL context, String spec, URLStreamHandler handler) throws MalformedURLException { in URL() argument 163 if (protocol != null && context != null && !protocol.equals(context.protocol)) { in URL() 164 context = null; in URL() 168 if (context != null) { in URL() 169 set(context.protocol, context.getHost(), context.getPort(), context.getAuthority(), in URL() 170 context.getUserInfo(), context.getPath(), context.getQuery(), in URL() 171 context.getRef()); in URL() 173 streamHandler = context.streamHandler; in URL()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLSocketPair.java | 71 public static SSLSocket[] connect (final TestSSLContext context, in connect() argument 76 context.clientContext.getSocketFactory().createSocket(context.host, context.port); in connect() 77 final SSLSocket server = (SSLSocket) context.serverSocket.accept(); in connect()
|
D | TestSSLContext.java | 213 SSLContext context = SSLContext.getInstance(protocol); in createSSLContext() local 214 context.init(keyManagers, trustManagers, new SecureRandom()); in createSSLContext() 215 return context; in createSSLContext()
|
/libcore/luni/src/main/java/javax/security/auth/ |
D | Subject.java | 166 AccessControlContext context) { in doAsPrivileged() argument 167 if (context == null) { in doAsPrivileged() 171 return doAs_PrivilegedAction(subject, action, context); in doAsPrivileged() 177 final AccessControlContext context) { in doAs_PrivilegedAction() argument 192 return new AccessControlContext(context, combiner); in doAs_PrivilegedAction() 238 PrivilegedExceptionAction<T> action, AccessControlContext context) in doAsPrivileged() argument 240 if (context == null) { in doAsPrivileged() 244 return doAs_PrivilegedExceptionAction(subject, action, context); in doAsPrivileged() 250 PrivilegedExceptionAction<T> action, final AccessControlContext context) in doAs_PrivilegedExceptionAction() argument 266 return new AccessControlContext(context, combiner); in doAs_PrivilegedExceptionAction() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLLoopbackBenchmark.java | 39 TestSSLContext context = TestSSLContext.create( in time() local 41 SSLSocket[] sockets = TestSSLSocketPair.connect(context, null, null); in time() 42 context.close(); in time()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationAccess.java | 579 private static Class<? extends Annotation> getAnnotationClass(Class<?> context, Dex dex, in getAnnotationClass() argument 584 (Class<? extends Annotation>) context.getDexCacheType(dex, typeIndex); in getAnnotationClass() 594 private static AccessibleObject indexToMethod(Class<?> context, Dex dex, int methodIndex) { in indexToMethod() argument 596 context.getDexCacheType(dex, dex.declaringClassIndexFromMethodIndex(methodIndex)); in indexToMethod() 597 String name = context.getDexCacheString(dex, dex.nameIndexFromMethodIndex(methodIndex)); in indexToMethod() 601 parametersArray[i] = context.getDexCacheType(dex, types[i]); in indexToMethod() 613 private static List<Annotation> annotationSetToAnnotations(Class<?> context, int offset) { in annotationSetToAnnotations() argument 618 Dex dex = context.getDex(); in annotationSetToAnnotations() 631 getAnnotationClass(context, dex, annotation.getTypeIndex()); in annotationSetToAnnotations() 633 … result.add(toAnnotationInstance(context, dex, annotationClass, annotation.getReader())); in annotationSetToAnnotations() [all …]
|
/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 | 576 char* context = NULL; in init() local 577 char* a = strtok_r(mCopy, "|", &context); in init() 578 char* b = strtok_r(NULL, "|", &context); in init() 579 char* c = strtok_r(NULL, "|", &context); in init() 851 ScopedUtfChars context(env, javaContext); in ExpatParser_createEntityParser() local 852 if (context.c_str() == NULL) { in ExpatParser_createEntityParser() 857 XML_Parser entityParser = XML_ExternalEntityParserCreate(parent, context.c_str(), NULL); in ExpatParser_createEntityParser() 869 static int handleExternalEntity(XML_Parser parser, const char* context, in handleExternalEntity() argument 889 ScopedLocalRef<jstring> javaContext(env, env->NewStringUTF(context)); in handleExternalEntity() 966 std::unique_ptr<ParsingContext> context(new ParsingContext(object)); in ExpatParser_initialize() local [all …]
|
D | libcore_icu_NativeConverter.cpp | 373 …const EncoderCallbackContext* context = reinterpret_cast<const EncoderCallbackContext*>(rawContext… in encoderReplaceCallback() local 375 …ucnv_cbFromUWriteBytes(fromArgs, context->replacementBytes, context->replacementByteCount, 0, err); in encoderReplaceCallback() 433 …const DecoderCallbackContext* context = reinterpret_cast<const DecoderCallbackContext*>(rawContext… in decoderReplaceCallback() local 435 ucnv_cbToUWriteUChars(toArgs,context->replacementChars, context->replacementCharCount, 0, err); in decoderReplaceCallback()
|
/libcore/luni/src/main/java/java/lang/ |
D | SecurityManager.java | 48 public void checkConnect(String host, int port, Object context) { } in checkConnect() argument 83 public void checkRead(String file, Object context) { } in checkRead() argument 151 public void checkPermission(Permission permission, Object context) { } in checkPermission() argument
|
/libcore/luni/src/main/java/java/security/ |
D | AccessController.java | 51 public static <T> T doPrivileged(PrivilegedAction<T> action, AccessControlContext context) { in doPrivileged() argument 71 …T doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) throws Privilege… in doPrivileged() argument
|
D | AccessControlContext.java | 42 public AccessControlContext(ProtectionDomain[] context) { } in AccessControlContext() argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 1731 TestSSLContext context = TestSSLContext.create(); in test_SSLSocket_getPortWithSNI() local 1735 client = (SSLSocket) context.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getPortWithSNI() 1736 client.connect(new InetSocketAddress(context.host, context.port)); in test_SSLSocket_getPortWithSNI() 1747 context.close(); in test_SSLSocket_getPortWithSNI() 1752 TestSSLContext context = TestSSLContext.create(); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() local 1755 context.clientContext.getSocketFactory().createSocket(context.host, context.port); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() 1756 final SSLSocket server = (SSLSocket) context.serverSocket.accept(); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() 1786 context.close(); in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success() 1791 TestSSLContext context = TestSSLContext.create(); in test_SSLSocket_sendsNoTlsFallbackScsv_Fallback_Success() local 1794 context.clientContext.getSocketFactory().createSocket(context.host, context.port); in test_SSLSocket_sendsNoTlsFallbackScsv_Fallback_Success() [all …]
|
D | SSLContextTest.java | 158 SSLContext context = SSLContext.getInstance(tlsVersion); in test_SSLContext_init_correctProtocolVersionsEnabled() local 159 context.init(null, null, null); in test_SSLContext_init_correctProtocolVersionsEnabled() 161 …StandardNames.assertSSLContextEnabledProtocols(tlsVersion, ((SSLSocket) (context.getSocketFactory() in test_SSLContext_init_correctProtocolVersionsEnabled() 163 StandardNames.assertSSLContextEnabledProtocols(tlsVersion, ((SSLServerSocket) (context in test_SSLContext_init_correctProtocolVersionsEnabled() 165 … StandardNames.assertSSLContextEnabledProtocols(tlsVersion, context.getDefaultSSLParameters() in test_SSLContext_init_correctProtocolVersionsEnabled() 167 StandardNames.assertSSLContextEnabledProtocols(tlsVersion, context.createSSLEngine() in test_SSLContext_init_correctProtocolVersionsEnabled()
|
/libcore/luni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 665 public void shape(char[] text, int start, int count, int context) { in shape() argument 667 contextualShape(text, start, count, getIndexFromRange(context)); in shape()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatParser.java | 247 /*package*/ void handleExternalEntity(String context, String publicId, in handleExternalEntity() argument 305 long pointer = createEntityParser(this.pointer, context); in handleExternalEntity() 395 private static native long createEntityParser(long parentPointer, String context); in createEntityParser() argument
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 925 public void dump(String context) throws KeyStoreException, NoSuchAlgorithmException { in dump() argument 926 dump(context, keyStore, keyPassword); in dump() 932 public static void dump(String context, KeyStore keyStore, char[] keyPassword) in dump() argument 935 out.println("context=" + context); in dump()
|