Searched refs:ctx (Results 1 - 25 of 28) sorted by relevance

12

/dalvik/vm/hprof/
H A DHprof.c38 hprof_context_t *ctx; local
40 ctx = malloc(sizeof(*ctx));
41 if (ctx != NULL) {
52 free(ctx);
59 free(ctx);
76 hprofContextInit(ctx, strdup(outputFileName), fp, false);
81 return ctx;
118 hprofShutdown(hprof_context_t *ctx) argument
120 FILE *tempFp = ctx
[all...]
H A DHprofStack.h33 int hprofDumpStacks(hprof_context_t *ctx);
40 int hprofDumpStackFrames(hprof_context_t *ctx);
H A DHprof.h144 int hprofDumpStrings(hprof_context_t *ctx);
156 int hprofDumpClasses(hprof_context_t *ctx);
166 int hprofStartHeapDump(hprof_context_t *ctx);
167 int hprofFinishHeapDump(hprof_context_t *ctx);
169 int hprofSetGcScanState(hprof_context_t *ctx,
171 int hprofMarkRootObject(hprof_context_t *ctx,
174 int hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj);
180 void hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp,
184 int hprofFlushCurrentRecord(hprof_context_t *ctx);
185 int hprofStartNewRecord(hprof_context_t *ctx, u
[all...]
H A DHprofHeap.c34 hprofStartHeapDump(hprof_context_t *ctx) argument
36 UNUSED_PARAMETER(ctx);
38 ctx->objectsInSegment = OBJECTS_PER_SEGMENT;
39 ctx->currentHeap = HPROF_HEAP_DEFAULT;
44 hprofFinishHeapDump(hprof_context_t *ctx) argument
46 return hprofStartNewRecord(ctx, HPROF_TAG_HEAP_DUMP_END, HPROF_TIME);
50 hprofSetGcScanState(hprof_context_t *ctx, argument
55 ctx->gcScanState = state;
56 ctx->gcThreadSerialNumber = threadSerialNumber;
114 * something when ctx
119 hprofMarkRootObject(hprof_context_t *ctx, const Object *obj, jobject jniObj) argument
220 hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj) argument
[all...]
H A DHprofOutput.c58 hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp, argument
61 memset(ctx, 0, sizeof (*ctx));
62 ctx->fileName = fileName;
63 ctx->fp = fp;
65 ctx->curRec.allocLen = 128;
66 ctx->curRec.body = malloc(ctx->curRec.allocLen);
135 hprofFlushCurrentRecord(hprof_context_t *ctx) argument
137 return hprofFlushRecord(&ctx
141 hprofStartNewRecord(hprof_context_t *ctx, u1 tag, u4 time) argument
[all...]
H A DHprofString.c81 hprofDumpStrings(hprof_context_t *ctx) argument
84 hprof_record_t *rec = &ctx->curRec;
93 err = hprofStartNewRecord(ctx, HPROF_TAG_STRING, HPROF_TIME);
H A DHprofClass.c183 hprofDumpClasses(hprof_context_t *ctx) argument
186 hprof_record_t *rec = &ctx->curRec;
195 err = hprofStartNewRecord(ctx, HPROF_TAG_LOAD_CLASS, HPROF_TIME);
H A DHprofStack.c158 hprofDumpStacks(hprof_context_t *ctx) argument
161 hprof_record_t *rec = &ctx->curRec;
173 hprofStartNewRecord(ctx, HPROF_TAG_STACK_TRACE, HPROF_TIME);
H A DHprofStackFrame.c178 hprofDumpStackFrames(hprof_context_t *ctx) argument
181 hprof_record_t *rec = &ctx->curRec;
196 hprofStartNewRecord(ctx, HPROF_TAG_STACK_FRAME, HPROF_TIME);
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DNativeCrypto.java69 public static native void EVP_free(int ctx); argument
73 public static native void EVP_DigestInit(int ctx, String algorithm); argument
75 public static native void EVP_DigestUpdate(int ctx, byte[] buffer, int offset, int length); argument
77 public static native int EVP_DigestFinal(int ctx, byte[] hash, int offset); argument
79 public static native int EVP_DigestSize(int ctx); argument
81 public static native int EVP_DigestBlockSize(int ctx); argument
85 public static native void EVP_VerifyInit(int ctx, String algorithm); argument
87 public static native void EVP_VerifyUpdate(int ctx, byte[] buffer, int offset, int length); argument
89 public static native int EVP_VerifyFinal(int ctx, byte[] signature, int offset, int length, int key); argument
H A DOpenSSLMessageDigest.java36 private int ctx; field in class:OpenSSLMessageDigest
73 ctx = NativeCrypto.EVP_new();
75 NativeCrypto.EVP_DigestInit(ctx, algorithm.replace("-", "").toLowerCase());
82 int i = NativeCrypto.EVP_DigestFinal(ctx, out, outOff);
92 return NativeCrypto.EVP_DigestSize(ctx);
96 return NativeCrypto.EVP_DigestBlockSize(ctx);
100 NativeCrypto.EVP_DigestInit(ctx, algorithm.replace("-", "").toLowerCase());
105 NativeCrypto.EVP_DigestUpdate(ctx, singleByte, 0, 1);
109 NativeCrypto.EVP_DigestUpdate(ctx, in, inOff, len);
115 NativeCrypto.EVP_free(ctx);
[all...]
H A DOpenSSLMessageDigestJDK.java14 private int ctx; field in class:OpenSSLMessageDigestJDK
51 ctx = NativeCrypto.EVP_new();
53 NativeCrypto.EVP_DigestInit(ctx, getAlgorithm().replace("-", "").toLowerCase());
61 byte[] result = new byte[NativeCrypto.EVP_DigestSize(ctx)];
62 NativeCrypto.EVP_DigestFinal(ctx, result, 0);
69 NativeCrypto.EVP_DigestInit(ctx, getAlgorithm().replace("-", "").toLowerCase());
74 return NativeCrypto.EVP_DigestSize(ctx);
85 NativeCrypto.EVP_DigestUpdate(ctx, input, offset, len);
91 NativeCrypto.EVP_free(ctx);
H A DOpenSSLSignature.java38 private int ctx; field in class:OpenSSLSignature
109 ctx = NativeCrypto.EVP_new();
123 NativeCrypto.EVP_VerifyUpdate(ctx, input, offset, len);
166 NativeCrypto.EVP_VerifyInit(ctx, evpAlgorithm);
191 int result = NativeCrypto.EVP_VerifyFinal(ctx, sigBytes, 0, sigBytes.length, handle);
211 if (ctx != 0) {
212 NativeCrypto.EVP_free(ctx);
/dalvik/vm/alloc/
H A DDdmHeap.c191 flush_hpsg_chunk(HeapChunkContext *ctx) argument
195 assert(ctx->buf <= ctx->pieceLenField &&
196 ctx->pieceLenField <= ctx->p);
197 set4BE(ctx->pieceLenField, ctx->totalAllocationUnits);
201 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx
215 HeapChunkContext *ctx = (HeapChunkContext *)arg; local
355 HeapChunkContext ctx; local
[all...]
H A DHeapDebug.c344 dump_context(const HeapDumpContext *ctx)
346 fprintf(ctx->fp, "0x%08x %12.12zd %s\n", (uintptr_t)ctx->chunkStart,
347 ctx->chunkLen, ctx->chunkFree ? "FREE" : "USED");
354 HeapDumpContext *ctx = (HeapDumpContext *)arg;
357 if (chunkFree != ctx->chunkFree ||
358 ((char *)ctx->chunkStart + ctx->chunkLen) != chunkptr)
364 if (ctx
[all...]
H A DMarkSweep.c83 static inline long isMarked(const DvmHeapChunk *hc, const GcMarkContext *ctx)
85 static inline long isMarked(const DvmHeapChunk *hc, const GcMarkContext *ctx) argument
87 return dvmHeapBitmapIsObjectBitSetInList(ctx->bitmaps, ctx->numBitmaps, hc);
175 static long setAndReturnMarkBit(GcMarkContext *ctx, const DvmHeapChunk *hc)
178 setAndReturnMarkBit(GcMarkContext *ctx, const DvmHeapChunk *hc) argument
180 return dvmHeapBitmapSetAndReturnObjectBitInList(ctx->bitmaps,
181 ctx->numBitmaps, hc);
184 static void _markObjectNonNullCommon(const Object *obj, GcMarkContext *ctx,
188 _markObjectNonNullCommon(const Object *obj, GcMarkContext *ctx, argument
259 markObjectNonNull(const Object *obj, GcMarkContext *ctx) argument
392 markInterfaces(const ClassObject *clazz, GcMarkContext *ctx) argument
410 scanStaticFields(const ClassObject *clazz, GcMarkContext *ctx) argument
430 scanInstanceFields(const DataObject *obj, ClassObject *clazz, GcMarkContext *ctx) argument
450 markObject(dvmGetFieldObject((Object*)obj, f->byteOffset), ctx); local
462 scanObjectArray(const ArrayObject *array, GcMarkContext *ctx) argument
479 scanClassObject(const ClassObject *clazz, GcMarkContext *ctx) argument
510 scanObject(const Object *obj, GcMarkContext *ctx) argument
711 processMarkStack(GcMarkContext *ctx) argument
732 GcMarkContext *ctx = (GcMarkContext *)arg; local
757 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local
[all...]
/dalvik/libcore/openssl/src/main/java/org/openssl/
H A DNativeBN.java138 public static native boolean BN_gcd(int r, int a, int b, int ctx); argument
139 // int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
141 public static native boolean BN_mul(int r, int a, int b, int ctx); argument
142 // int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
144 public static native boolean BN_exp(int r, int a, int p, int ctx); argument
145 // int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
148 // public static native int BN_sqr(BigInteger r, BigInteger a, BN_CTX ctx);
149 // int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx);
151 public static native boolean BN_div(int dv, int rem, int m, int d, int ctx); argument
152 // int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
154 BN_nnmod(int r, int a, int m, int ctx) argument
157 BN_mod_exp(int r, int a, int p, int m, int ctx) argument
165 BN_mod_inverse(int ret, int a, int n, int ctx) argument
175 BN_is_prime_ex(int p, int nchecks, int ctx, int cb) argument
[all...]
/dalvik/libcore/x-net/src/main/native/
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp242 static void NativeCrypto_EVP_free(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) { argument
245 if (ctx != NULL) {
246 EVP_MD_CTX_destroy(ctx);
253 static jint NativeCrypto_EVP_DigestFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray hash, jint offset) { argument
254 // LOGI("NativeCrypto_EVP_DigestFinal%x, %x, %d, %d", ctx, hash, offset);
256 if (ctx == NULL || hash == NULL) {
264 EVP_DigestFinal(ctx, (unsigned char*) (hashBytes + offset), (unsigned int*)&result);
275 static void NativeCrypto_EVP_DigestInit(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jstring algorithm) { argument
278 if (ctx == NULL || algorithm == NULL) {
293 EVP_DigestInit(ctx, diges
301 NativeCrypto_EVP_DigestSize(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) argument
319 NativeCrypto_EVP_DigestBlockSize(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) argument
337 NativeCrypto_EVP_DigestUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) argument
355 NativeCrypto_EVP_VerifyInit(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jstring algorithm) argument
381 NativeCrypto_EVP_VerifyUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) argument
399 NativeCrypto_EVP_VerifyFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length, EVP_PKEY* pkey) argument
[all...]
H A Dorg_apache_harmony_xnet_provider_jsse_OpenSSLServerSocketImpl.cpp158 SSL_CTX* ctx = (SSL_CTX*)env->GetIntField(object, field_ssl_ctx); local
159 SSL_CTX_set_options((SSL_CTX*)ctx, SSL_OP_ALL|SSL_OP_NO_SSLv2|(long)protocol);
170 SSL_CTX* ctx; local
177 ctx = SSL_CTX_new(SSLv23_server_method());
178 ssl = SSL_new(ctx);
211 SSL_CTX* ctx; local
217 ctx = (SSL_CTX*)env->GetIntField(object, field_ssl_ctx);
218 ssl = SSL_new(ctx);
245 SSL_CTX* ctx; local
249 ctx
274 SSL_CTX *ctx = (SSL_CTX *)env->GetIntField(object, field_ssl_ctx); local
[all...]
H A Dorg_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl.cpp488 SSL_CTX *ctx = (SSL_CTX *)env->GetIntField(object, field_ssl_ctx); local
490 if (ctx != NULL) {
491 SSL_CTX_free(ctx);
939 EVP_MD_CTX ctx; local
941 EVP_MD_CTX_init(&ctx);
942 if (EVP_VerifyInit_ex(&ctx, type, NULL) == 0) {
946 EVP_VerifyUpdate(&ctx, msg, msgLen);
947 result = EVP_VerifyFinal(&ctx, sig, sigLen, key);
948 EVP_MD_CTX_cleanup(&ctx);
1077 jint ctx, jobjec
1076 org_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl_connect(JNIEnv* env, jobject object, jint ctx, jobject socketObject, jboolean client_mode, jint session) argument
1391 SSL_CTX* ctx = (SSL_CTX*)env->GetIntField(object, field_ssl_ctx); local
1491 SSL_CTX* ctx; local
[all...]
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/
H A DMockSecurityManager.java51 public void checkPermission(Permission perm, Object ctx) { argument
56 dflt.checkPermission(perm, ctx);
H A DFilePreferencesImplTest.java314 public void checkPermission(Permission perm, Object ctx) { argument
319 dflt.checkPermission(perm, ctx);
/dalvik/dx/src/com/android/dx/util/
H A DExceptionWithContext.java83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
/dalvik/libcore/openssl/src/main/native/
H A DBNInterface.c738 static jboolean NativeBN_BN_gcd(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* b, BN_CTX* ctx) { argument
740 return BN_gcd(r, a, b, ctx);
746 static jboolean NativeBN_BN_mul(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* b, BN_CTX* ctx) { argument
748 return BN_mul(r, a, b, ctx);
754 static jboolean NativeBN_BN_exp(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* p, BN_CTX* ctx) { argument
756 return BN_exp(r, a, p, ctx);
762 static jboolean NativeBN_BN_div(JNIEnv* env, jclass cls, BIGNUM* dv, BIGNUM* rem, BIGNUM* m, BIGNUM* d, BN_CTX* ctx) { argument
764 return BN_div(dv, rem, m, d, ctx);
770 static jboolean NativeBN_BN_nnmod(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* m, BN_CTX* ctx) { argument
772 return BN_nnmod(r, a, m, ctx);
778 NativeBN_BN_mod_exp(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* p, BIGNUM* m, BN_CTX* ctx) argument
787 NativeBN_BN_mod_inverse(JNIEnv* env, jclass cls, BIGNUM* ret, BIGNUM* a, BIGNUM* n, BN_CTX* ctx) argument
805 NativeBN_BN_is_prime_ex(JNIEnv* env, jclass cls, BIGNUM* p, int nchecks, BN_CTX* ctx, jint cb) argument
[all...]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java172 SSLContext ctx = getContext();
173 ServerSocket ss = ctx.getServerSocketFactory()
232 SSLContext ctx = getContext();
233 ServerSocket ss = ctx.getServerSocketFactory()
277 SSLContext ctx = getContext();
278 SSLServerSocket ss = (SSLServerSocket) ctx.getServerSocketFactory()
281 SSLSocketFactory socketFactory = (SSLSocketFactory) ctx
334 SSLContext ctx = getContext();
335 SSLServerSocket ss = (SSLServerSocket) ctx.getServerSocketFactory()
347 SSLSocketFactory socketFactory = (SSLSocketFactory) ctx
[all...]

Completed in 424 milliseconds

12