Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 52) sorted by relevance

123

/dalvik/libcore/security-kernel/src/main/java/java/security/
DAccessControlContext.java50 ProtectionDomain[] context; field in AccessControlContext
86 this.context = acc.context; in AccessControlContext()
101 public AccessControlContext(ProtectionDomain[] context) { in AccessControlContext() argument
102 if (context == null) { in AccessControlContext()
105 if (context.length != 0) { in AccessControlContext()
108 for (int i = 0; i < context.length; i++) { in AccessControlContext()
109 if (context[i] != null && !a.contains(context[i])) { in AccessControlContext()
110 a.add(context[i]); in AccessControlContext()
114 this.context = new ProtectionDomain[a.size()]; in AccessControlContext()
115 a.toArray(this.context); in AccessControlContext()
[all …]
DAccessController.java109 AccessControlContext context) { in doPrivileged() argument
113 return doPrivilegedImpl(action, context); in doPrivileged()
174 AccessControlContext context) throws PrivilegedActionException { in doPrivileged() argument
178 return doPrivilegedImpl(action, context); in doPrivileged()
188 AccessControlContext context) throws PrivilegedActionException { in doPrivilegedImpl() argument
203 a.add(context); in doPrivilegedImpl()
239 AccessControlContext context) { in doPrivilegedImpl() argument
262 a.add(context); in doPrivilegedImpl()
361 if (that.context != null && that.context.length != 0) { in getContext()
362 assigned = new ProtectionDomain[that.context.length]; in getContext()
[all …]
/dalvik/libcore/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DClientSessionContextTest.java29 ClientSessionContext context = new ClientSessionContext(null, null); in testGetSessionById() local
34 context.putSession(a); in testGetSessionById()
35 context.putSession(b); in testGetSessionById()
37 assertSame(a, context.getSession("a".getBytes())); in testGetSessionById()
38 assertSame(b, context.getSession("b".getBytes())); in testGetSessionById()
40 assertSame(a, context.getSession("a", 443)); in testGetSessionById()
41 assertSame(b, context.getSession("b", 443)); in testGetSessionById()
43 assertEquals(2, context.sessions.size()); in testGetSessionById()
46 Enumeration ids = context.getIds(); in testGetSessionById()
48 sessions.add(context.getSession((byte[]) ids.nextElement())); in testGetSessionById()
[all …]
/dalvik/dx/src/com/android/dx/util/
DExceptionWithContext.java28 private StringBuffer context; field in ExceptionWithContext
83 String ctx = ((ExceptionWithContext) cause).context.toString(); in ExceptionWithContext()
84 context = new StringBuffer(ctx.length() + 200); in ExceptionWithContext()
85 context.append(ctx); in ExceptionWithContext()
87 context = new StringBuffer(200); in ExceptionWithContext()
95 out.println(context); in printStackTrace()
102 out.println(context); in printStackTrace()
115 context.append(str); in addContext()
117 context.append('\n'); in addContext()
127 return context.toString(); in getContext()
[all …]
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
DSSLSessionContextTest.java43 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionCacheSize() local
44 context.init(null, null, null); in test_sessionCacheSize()
45 SSLSessionContext sc = context in test_sessionCacheSize()
81 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionTimeout() local
82 context.init(null, null, null); in test_sessionTimeout()
83 SSLSessionContext sc = context in test_sessionTimeout()
110 SSLContext context = SSLContext.getInstance("TLS"); in test_getSession() local
111 context.init(null, null, null); in test_getSession()
112 SSLSessionContext sc = context in test_getSession()
134 SSLContext context = SSLContext.getInstance("TLS"); in test_getIds() local
[all …]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DDelegatedTask.java39 private final AccessControlContext context; field in DelegatedTask
47 …sk(PrivilegedExceptionAction action, HandshakeProtocol handshaker, AccessControlContext context) { in DelegatedTask() argument
50 this.context = context; in DelegatedTask()
59 AccessController.doPrivileged(action, context); in run()
DSSLSessionImpl.java86 SSLSessionContext context; field in SSLSessionImpl
297 return context; in getSessionContext()
340 && context != null in isValid()
341 && context.getSessionTimeout() != 0 in isValid()
342 && lastAccessedTime + context.getSessionTimeout() > System in isValid()
394 ses.context = this.context; in clone()
DOpenSSLSessionImpl.java405 SSLSessionContext context = sessionContext; in isValid() local
407 && context != null in isValid()
408 && context.getSessionTimeout() != 0 in isValid()
409 && lastAccessedTime + context.getSessionTimeout() > System in isValid()
/dalvik/libdex/
Dsha1.c201 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument
204 context->state[0] = 0x67452301; in SHA1Init()
205 context->state[1] = 0xEFCDAB89; in SHA1Init()
206 context->state[2] = 0x98BADCFE; in SHA1Init()
207 context->state[3] = 0x10325476; in SHA1Init()
208 context->state[4] = 0xC3D2E1F0; in SHA1Init()
209 context->count[0] = context->count[1] = 0; in SHA1Init()
215 void SHA1Update(SHA1_CTX* context, const unsigned char* data, in SHA1Update() argument
220 j = (context->count[0] >> 3) & 63; in SHA1Update()
221 if ((context->count[0] += len << 3) < (len << 3)) in SHA1Update()
[all …]
Dsha1.h15 void SHA1Init(SHA1_CTX* context);
16 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
18 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
/dalvik/libcore/luni/src/main/java/java/net/
DURL.java183 public URL(URL context, String spec) throws MalformedURLException { in URL() argument
184 this(context, spec, (URLStreamHandler) null); in URL()
207 public URL(URL context, String spec, URLStreamHandler handler) in URL() argument
268 if (context != null && protocol.equals(context.getProtocol())) { in URL()
269 String cPath = context.getPath(); in URL()
271 set(protocol, context.getHost(), context.getPort(), context in URL()
272 .getAuthority(), context.getUserInfo(), cPath, in URL()
273 context.getQuery(), null); in URL()
276 strmHandler = context.strmHandler; in URL()
284 if (context == null) { in URL()
[all …]
/dalvik/libcore/xml/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp838 const char* context = env->GetStringUTFChars(javaContext, NULL); in createEntityParser() local
839 if (context == NULL) { in createEntityParser()
846 = XML_ExternalEntityParserCreate(parent, context, NULL); in createEntityParser()
848 env->ReleaseStringUTFChars(javaContext, context); in createEntityParser()
861 static int handleExternalEntity(XML_Parser parser, const char* context, in handleExternalEntity() argument
881 jstring javaContext = env->NewStringUTF(context); in handleExternalEntity()
910 static void releaseParsingContext(JNIEnv* env, ParsingContext* context) { in releaseParsingContext() argument
911 free(context->stringStack.array); in releaseParsingContext()
913 freeBuffer(env, context); in releaseParsingContext()
917 if (context->internedStrings[i]) { in releaseParsingContext()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DAttributeFactory.java69 public final Attribute parse(DirectClassFile cf, int context, int offset, in parse() argument
75 if ((context < 0) || (context >= CTX_COUNT)) { in parse()
96 return parse0(cf, context, name.getString(), offset + 6, length, in parse()
121 protected Attribute parse0(DirectClassFile cf, int context, String name, in parse0() argument
DAttributeListParser.java34 private final int context; field in AttributeListParser
60 public AttributeListParser(DirectClassFile cf, int context, int offset, in AttributeListParser() argument
73 this.context = context; in AttributeListParser()
142 attributeFactory.parse(cf, context, at, observer); in parse()
/dalvik/libcore/security/src/test/java/tests/api/java/security/
DAccessControlContextTest.java130 AccessControlContext context = AccessController.getContext(); in test_ConstructorLjava_security_AccessControlContextLjava_security_DomainCombiner() local
132 new AccessControlContext(context, null); in test_ConstructorLjava_security_AccessControlContextLjava_security_DomainCombiner()
138 new AccessControlContext(context, new SubjectDomainCombiner( in test_ConstructorLjava_security_AccessControlContextLjava_security_DomainCombiner()
159 AccessControlContext context = AccessController.getContext(); in test_ConstructorLjava_security_AccessControlContextLjava_security_DomainCombiner2() local
161 new AccessControlContext(context, null); in test_ConstructorLjava_security_AccessControlContextLjava_security_DomainCombiner2()
283 AccessControlContext context = AccessController.getContext(); in test_equals() local
285 AccessControlContext acc4 = new AccessControlContext(context, null); in test_equals()
286 AccessControlContext acc5 = new AccessControlContext(context, in test_equals()
289 AccessControlContext acc6 = new AccessControlContext(context, null); in test_equals()
310 AccessControlContext context = AccessController.getContext(); in test_getDomainCombiner() local
[all …]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/
DSecurityUtils.java73 public static void putContext(Thread thread, AccessControlContext context) in putContext() argument
82 if (context == null) { in putContext()
88 ACC_CACHE.put(thread, context); in putContext()
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
DSSLServerSocketFactory.java82 SSLContext context = DefaultSSLContext.getContext(); in getDefault() local
83 if (context != null) { in getDefault()
84 defaultServerSocketFactory = context.getServerSocketFactory(); in getDefault()
DSSLSocketFactory.java91 SSLContext context = DefaultSSLContext.getContext(); in getDefault() local
92 if (context != null) { in getDefault()
93 defaultSocketFactory = context.getSocketFactory(); in getDefault()
/dalvik/tests/060-reflection-security/src/
DEnforcer.java61 public void checkPermission(Permission perm, Object context) { in checkPermission() argument
62 System.out.println("checkPermission: " + perm + ", " + context); in checkPermission()
64 super.checkPermission(perm, context); in checkPermission()
/dalvik/libcore/auth/src/main/java/javax/security/auth/
DSubject.java170 AccessControlContext context) { in doAsPrivileged() argument
174 if (context == null) { in doAsPrivileged()
178 return doAs_PrivilegedAction(subject, action, context); in doAsPrivileged()
184 final AccessControlContext context) { in doAs_PrivilegedAction() argument
200 return new AccessControlContext(context, combiner); in doAs_PrivilegedAction()
249 PrivilegedExceptionAction action, AccessControlContext context) in doAsPrivileged() argument
254 if (context == null) { in doAsPrivileged()
258 return doAs_PrivilegedExceptionAction(subject, action, context); in doAsPrivileged()
264 PrivilegedExceptionAction action, final AccessControlContext context) in doAs_PrivilegedExceptionAction() argument
280 return new AccessControlContext(context, combiner); in doAs_PrivilegedExceptionAction()
[all …]
/dalvik/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestCase.java346 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 …]
/dalvik/libcore/luni/src/main/java/java/lang/
DSecurityManager.java201 public void checkConnect(String host, int port, Object context) { in checkConnect() argument
209 context); in checkConnect()
211 checkPermission(new SocketPermission(host, "resolve"), context); //$NON-NLS-1$ in checkConnect()
531 public void checkRead(String file, Object context) { in checkRead() argument
532 checkPermission(new FilePermission(file, "read"), context); //$NON-NLS-1$ in checkRead()
939 public void checkPermission(Permission permission, Object context) { in checkPermission() argument
945 if (context instanceof AccessControlContext) { in checkPermission()
946 ((AccessControlContext) context).checkPermission(permission); in checkPermission()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DMutableSecurityManager.java81 public void checkPermission(Permission permission, Object context) in checkPermission() argument
94 super.checkPermission(permission, context); in checkPermission()
/dalvik/libcore/luni/src/main/native/
Dorg_apache_harmony_luni_platform_OSNetworkSystem.cpp764 void setConnectContext(JNIEnv *env,jobject longclass,jbyte * context) { in setConnectContext() argument
769 env->SetLongField(longclass, descriptorFID, (jlong)((jint)context)); in setConnectContext()
832 struct selectFDSet *context = NULL; in sockConnectWithTimeout() local
836 context = (struct selectFDSet *) ctxt; in sockConnectWithTimeout()
838 context->sock = handle; in sockConnectWithTimeout()
839 context->nfds = handle + 1; in sockConnectWithTimeout()
888 context = (struct selectFDSet *) ctxt; in sockConnectWithTimeout()
903 FD_ZERO(&(context->exceptionSet)); in sockConnectWithTimeout()
904 FD_ZERO(&(context->writeSet)); in sockConnectWithTimeout()
905 FD_ZERO(&(context->readSet)); in sockConnectWithTimeout()
[all …]
/dalvik/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java252 public static XmlPullParserFactory newInstance (String classNames, Class context) in newInstance() argument
255 if (context == null) { in newInstance()
259 context = referenceContextClass; in newInstance()

123