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

12

/dalvik/dx/src/com/android/dx/util/
H A DExceptionWithContext.java23 * Exception which carries around structured context.
27 /** non-null; human-oriented context of the exception */
28 private StringBuffer context; field in class:ExceptionWithContext
31 * Augments the given exception with the given context, and return the
37 * @param str non-null; context to add
83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
87 context = new StringBuffer(200);
95 out.println(context);
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/
H A DSecurityUtils.java67 * @throws SecurityException if a context for the passed
70 * @throws Error if context is null AND if null context is already stored
73 public static void putContext(Thread thread, AccessControlContext context) argument
82 if (context == null) {
88 ACC_CACHE.put(thread, context);
95 * by the VM which does not have inherited context.<br>
/dalvik/libcore/security-kernel/src/main/java/java/security/
H A DAccessControlContext.java47 // - 'context' can not be null
50 ProtectionDomain[] context; field in class:AccessControlContext
86 this.context = acc.context;
94 * @param context
96 * checks in the context of this {@code AccessControlContext}
98 * if {@code context} is {@code null}
101 public AccessControlContext(ProtectionDomain[] context) { argument
102 if (context == null) {
103 throw new NullPointerException("context ca
[all...]
H A DAccessController.java58 * reference to the latest context passed to the doPrivileged() call.
91 * {@code ProtectionDomain}s of the given context are checked to be granted
100 * @param context
109 AccessControlContext context) {
113 return doPrivilegedImpl(action, context);
151 * {@code ProtectionDomain}s of the given context are checked to be granted
163 * @param context
174 AccessControlContext context) throws PrivilegedActionException {
178 return doPrivilegedImpl(action, context);
183 * context int
108 doPrivileged(PrivilegedAction<T> action, AccessControlContext context) argument
173 doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
187 doPrivilegedImpl(PrivilegedExceptionAction<T> action, AccessControlContext context) argument
238 doPrivilegedImpl(PrivilegedAction<T> action, AccessControlContext context) argument
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DDelegatedTask.java39 private final AccessControlContext context; field in class:DelegatedTask
45 * @param context
47 public DelegatedTask(PrivilegedExceptionAction action, HandshakeProtocol handshaker, AccessControlContext context) { argument
50 this.context = context;
59 AccessController.doPrivileged(action, context);
H A DSSLSessionImpl.java86 SSLSessionContext context; field in class:SSLSessionImpl
297 return context;
340 && context != null
341 && context.getSessionTimeout() != 0
342 && lastAccessedTime + context.getSessionTimeout() > System
394 ses.context = this.context;
/dalvik/tests/060-reflection-security/src/
H A DEnforcer.java61 public void checkPermission(Permission perm, Object context) { argument
62 System.out.println("checkPermission: " + perm + ", " + context);
64 super.checkPermission(perm, context);
/dalvik/dvz/
H A Ddvz.c34 static void signal_forwarder (int signal, siginfo_t *si, void *context) argument
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAttributeFactory.java30 * depending on the context and name.
33 /** context for attributes on class files */
36 /** context for attributes on fields */
39 /** context for attributes on methods */
42 /** context for attributes on code attributes */
62 * @param context context to parse in; one of the <code>CTX_*</code>
69 public final Attribute parse(DirectClassFile cf, int context, int offset, argument
75 if ((context < 0) || (context >
121 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument
[all...]
H A DAttributeListParser.java33 /** attribute parsing context */
34 private final int context; field in class:AttributeListParser
56 * @param context attribute parsing context (see {@link AttributeFactory})
60 public AttributeListParser(DirectClassFile cf, int context, int offset, argument
73 this.context = context;
142 attributeFactory.parse(cf, context, at, observer);
H A DStdAttributeFactory.java81 protected Attribute parse0(DirectClassFile cf, int context, String name, argument
83 switch (context) {
190 return super.parse0(cf, context, name, offset, length, observer);
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DMockSecurityManager.java33 public void checkPermission(Permission perm, Object context) { argument
/dalvik/libcore/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/spi/
H A DCharsetProviderTest.java94 public void checkPermission(Permission perm, Object context) { argument
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DMutableSecurityManager.java81 public void checkPermission(Permission permission, Object context) argument
94 super.checkPermission(permission, context);
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
H A DSelectorProviderTest.java168 public void checkPermission(Permission perm, Object context) { argument
/dalvik/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java16 * and its class used for loading (no class loader - on J2ME no access to context class loaders)
36 /** used as default class to server as context class in newInstance() */
252 public static XmlPullParserFactory newInstance (String classNames, Class context) argument
255 if (context == null) {
256 //NOTE: make sure context uses the same class loader as API classes
257 // this is the best we can do without having access to context classloader in J2ME
259 context = referenceContextClass;
267 InputStream is = context.getResourceAsStream (RESOURCE_NAME);
/dalvik/libcore/auth/src/main/java/javax/security/auth/
H A DSubject.java156 * specific context.
162 * @param context
163 * the specific context in which the {@code action} is invoked.
170 AccessControlContext context) {
174 if (context == null) {
178 return doAs_PrivilegedAction(subject, action, context);
181 // instantiates a new context and passes it to AccessController
184 final AccessControlContext context) {
200 return new AccessControlContext(context, combiner);
233 * specific context
169 doAsPrivileged(Subject subject, PrivilegedAction action, AccessControlContext context) argument
183 doAs_PrivilegedAction(Subject subject, PrivilegedAction action, final AccessControlContext context) argument
248 doAsPrivileged(Subject subject, PrivilegedExceptionAction action, AccessControlContext context) argument
263 doAs_PrivilegedExceptionAction(Subject subject, PrivilegedExceptionAction action, final AccessControlContext context) argument
489 getSubject(final AccessControlContext context) argument
[all...]
/dalvik/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...]
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DConsoleHandlerTest.java659 public void checkPermission(Permission perm, Object context) { argument
H A DHandlerTest.java742 public void checkPermission(Permission perm, Object context) { argument
H A DSocketHandlerTest.java927 public void checkPermission(Permission perm, Object context) { argument
946 public void checkPermission(Permission perm, Object context) { argument
H A DStreamHandlerTest.java1316 public void checkPermission(Permission perm, Object context) { argument
/dalvik/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java184 * Checks whether the specified security context is allowed to establish
192 * @param context
193 * the security context to use for the check.
197 * if {@code context} is not allowed to connect to {@code host}
201 public void checkConnect(String host, int port, Object context) { argument
209 context);
211 checkPermission(new SocketPermission(host, "resolve"), context); //$NON-NLS-1$
520 * Checks whether the given security context is allowed to read from the
525 * @param context
526 * the security context t
531 checkRead(String file, Object context) argument
939 checkPermission(Permission permission, Object context) argument
[all...]
/dalvik/libcore/luni/src/main/java/java/net/
H A DURL.java169 * relative to the given {@code context}. If the protocol of the parsed URL
170 * does not match with the protocol of the context URL, then the newly
172 * {@code spec}. Otherwise the protocol is defined by the context URL.
174 * @param context
175 * the URL which is used as the context.
183 public URL(URL context, String spec) throws MalformedURLException { argument
184 this(context, spec, (URLStreamHandler) null);
189 * relative to the given {@code context}. The {@code handler} will be used
192 * parsed URL does not match with the protocol of the context URL, then the
194 * by {@code spec}. Otherwise the protocol is defined by the context UR
207 URL(URL context, String spec, URLStreamHandler handler) argument
[all...]
/dalvik/libdex/
H A Dsha1.c25 void SHA1Update(SHA1_CTX* context, unsigned char* data,
28 void SHA1Update(SHA1_CTX* context, unsigned char* data,
151 /* Copy context->state[] to working vars */
186 /* Add the working vars back into context.state[] */
199 /* SHA1Init - Initialize new context */
201 void SHA1Init(SHA1_CTX* context) argument
204 context->state[0] = 0x67452301;
205 context->state[1] = 0xEFCDAB89;
206 context->state[2] = 0x98BADCFE;
207 context
215 SHA1Update(SHA1_CTX* context, const unsigned char* data, unsigned long len) argument
241 SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context) argument
285 SHA1_CTX context; local
[all...]

Completed in 526 milliseconds

12