/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | NativeCrypto.java | 45 public static native void EVP_free(int ctx); argument 49 public static native void EVP_DigestInit(int ctx, String algorithm); argument 51 public static native void EVP_DigestUpdate(int ctx, byte[] buffer, int offset, int length); argument 53 public static native int EVP_DigestFinal(int ctx, byte[] hash, int offset); argument 55 public static native int EVP_DigestSize(int ctx); argument 57 public static native int EVP_DigestBlockSize(int ctx); argument 61 public static native void EVP_VerifyInit(int ctx, String algorithm); argument 63 public static native void EVP_VerifyUpdate(int ctx, byte[] buffer, int offset, int length); argument 65 public static native int EVP_VerifyFinal(int ctx, byte[] signature, int offset, int length, int key); argument
|
H A D | OpenSSLMessageDigest.java | 36 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 D | OpenSSLMessageDigestJDK.java | 14 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 D | OpenSSLSignature.java | 38 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);
|
H A D | OpenSSLSocketImpl.java | 249 private native boolean nativeconnect(int ctx, Socket sock, boolean client_mode, int sslsession) throws IOException; argument
|
/dalvik/vm/alloc/ |
H A D | DdmHeap.c | 191 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 368 HeapChunkContext ctx; local [all...] |
H A D | HeapDebug.c | 344 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 D | MarkSweep.c | 77 static inline long isMarked(const DvmHeapChunk *hc, const GcMarkContext *ctx) 79 static inline long isMarked(const DvmHeapChunk *hc, const GcMarkContext *ctx) argument 81 return dvmHeapBitmapIsObjectBitSetInList(ctx->bitmaps, ctx->numBitmaps, hc); 168 static long setAndReturnMarkBit(GcMarkContext *ctx, const DvmHeapChunk *hc) 171 setAndReturnMarkBit(GcMarkContext *ctx, const DvmHeapChunk *hc) argument 173 return dvmHeapBitmapSetAndReturnObjectBitInList(ctx->bitmaps, 174 ctx->numBitmaps, hc); 177 static void _markObjectNonNullCommon(const Object *obj, GcMarkContext *ctx, 181 _markObjectNonNullCommon(const Object *obj, GcMarkContext *ctx, argument 230 markObjectNonNull(const Object *obj, GcMarkContext *ctx) argument 365 markInterfaces(const ClassObject *clazz, GcMarkContext *ctx) argument 383 scanStaticFields(const ClassObject *clazz, GcMarkContext *ctx) argument 403 scanInstanceFields(const DataObject *obj, ClassObject *clazz, GcMarkContext *ctx) argument 412 CLASS_OFFSET_FROM_CLZ(rshift)), ctx); local 431 markObject(dvmGetFieldObject((Object*)obj, f->byteOffset), ctx); local 444 scanObjectArray(const ArrayObject *array, GcMarkContext *ctx) argument 461 scanClassObject(const ClassObject *clazz, GcMarkContext *ctx) argument 492 scanObject(const Object *obj, GcMarkContext *ctx) argument 678 processMarkStack(GcMarkContext *ctx) argument 699 GcMarkContext *ctx = (GcMarkContext *)arg; local 724 GcMarkContext *ctx = &gDvm.gcHeap->markContext; local [all...] |
/dalvik/vm/hprof/ |
H A D | HprofStack.h | 33 int hprofDumpStacks(hprof_context_t *ctx); 40 int hprofDumpStackFrames(hprof_context_t *ctx);
|
H A D | Hprof.c | 72 hprof_context_t *ctx = malloc(sizeof(*ctx)); local 73 if (ctx == NULL) { 81 hprofContextInit(ctx, strdup(outputFileName), fp, false, directToDdms); 83 assert(ctx->fp != NULL); 85 return ctx; 213 * Free any heap-allocated items in "ctx", and then free "ctx" itself. 216 hprofFreeContext(hprof_context_t *ctx) argument 218 assert(ctx ! [all...] |
H A D | Hprof.h | 154 int hprofDumpStrings(hprof_context_t *ctx); 166 int hprofDumpClasses(hprof_context_t *ctx); 176 int hprofStartHeapDump(hprof_context_t *ctx); 177 int hprofFinishHeapDump(hprof_context_t *ctx); 179 int hprofSetGcScanState(hprof_context_t *ctx, 181 int hprofMarkRootObject(hprof_context_t *ctx, 184 int hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj); 190 void hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp, 194 int hprofFlushCurrentRecord(hprof_context_t *ctx); 195 int hprofStartNewRecord(hprof_context_t *ctx, u [all...] |
H A D | HprofOutput.c | 65 hprofContextInit(hprof_context_t *ctx, char *fileName, FILE *fp, argument 68 memset(ctx, 0, sizeof (*ctx)); 77 fp = open_memstream(&ctx->fileDataPtr, &ctx->fileDataSize); 85 ctx->directToDdms = directToDdms; 86 ctx->fileName = fileName; 87 ctx->fp = fp; 89 ctx->curRec.allocLen = 128; 90 ctx 159 hprofFlushCurrentRecord(hprof_context_t *ctx) argument 165 hprofStartNewRecord(hprof_context_t *ctx, u1 tag, u4 time) argument [all...] |
H A D | HprofHeap.c | 34 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 D | HprofString.c | 81 hprofDumpStrings(hprof_context_t *ctx) argument 84 hprof_record_t *rec = &ctx->curRec; 93 err = hprofStartNewRecord(ctx, HPROF_TAG_STRING, HPROF_TIME);
|
H A D | HprofClass.c | 183 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 D | HprofStack.c | 158 hprofDumpStacks(hprof_context_t *ctx) argument 161 hprof_record_t *rec = &ctx->curRec; 173 hprofStartNewRecord(ctx, HPROF_TAG_STACK_TRACE, HPROF_TIME);
|
H A D | HprofStackFrame.c | 178 hprofDumpStackFrames(hprof_context_t *ctx) argument 181 hprof_record_t *rec = &ctx->curRec; 196 hprofStartNewRecord(ctx, HPROF_TAG_STACK_FRAME, HPROF_TIME);
|
/dalvik/libcore/openssl/src/main/java/org/openssl/ |
H A D | NativeBN.java | 132 public static native boolean BN_gcd(int r, int a, int b, int ctx); argument 133 // int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 135 public static native boolean BN_mul(int r, int a, int b, int ctx); argument 136 // int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 138 public static native boolean BN_exp(int r, int a, int p, int ctx); argument 139 // int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); 142 // public static native int BN_sqr(BigInteger r, BigInteger a, BN_CTX ctx); 143 // int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx); 145 public static native boolean BN_div(int dv, int rem, int m, int d, int ctx); argument 146 // int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx); 148 BN_nnmod(int r, int a, int m, int ctx) argument 151 BN_mod_exp(int r, int a, int p, int m, int ctx) argument 159 BN_mod_inverse(int ret, int a, int n, int ctx) argument 169 BN_is_prime_ex(int p, int nchecks, int ctx, int cb) argument [all...] |
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
H A D | MockSecurityManager.java | 53 public void checkPermission(Permission perm, Object ctx) { argument 58 dflt.checkPermission(perm, ctx);
|
H A D | FilePreferencesImplTest.java | 316 public void checkPermission(Permission perm, Object ctx) { argument 321 dflt.checkPermission(perm, ctx);
|
/dalvik/dx/src/com/android/dx/util/ |
H A D | ExceptionWithContext.java | 83 String ctx = ((ExceptionWithContext) cause).context.toString(); 84 context = new StringBuffer(ctx.length() + 200); 85 context.append(ctx);
|
/dalvik/libcore/x-net/src/main/native/ |
H A D | org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp | 186 static void NativeCrypto_EVP_free(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) { argument 189 if (ctx != NULL) { 190 EVP_MD_CTX_destroy(ctx); 197 static jint NativeCrypto_EVP_DigestFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray hash, jint offset) { argument 198 // LOGI("NativeCrypto_EVP_DigestFinal%x, %x, %d, %d", ctx, hash, offset); 200 if (ctx == NULL || hash == NULL) { 208 EVP_DigestFinal(ctx, (unsigned char*) (hashBytes + offset), (unsigned int*)&result); 219 static void NativeCrypto_EVP_DigestInit(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jstring algorithm) { argument 222 if (ctx == NULL || algorithm == NULL) { 237 EVP_DigestInit(ctx, diges 245 NativeCrypto_EVP_DigestSize(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) argument 263 NativeCrypto_EVP_DigestBlockSize(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx) argument 281 NativeCrypto_EVP_DigestUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) argument 299 NativeCrypto_EVP_VerifyInit(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jstring algorithm) argument 325 NativeCrypto_EVP_VerifyUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) argument 343 NativeCrypto_EVP_VerifyFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length, EVP_PKEY* pkey) argument 794 SSL_CTX *ctx = (SSL_CTX *)env->GetIntField(object, field_Socket_ssl_ctx); local 1249 EVP_MD_CTX ctx; local 1409 org_apache_harmony_xnet_provider_jsse_OpenSSLSocketImpl_connect(JNIEnv* env, jobject object, jint ctx, jobject socketObject, jboolean client_mode, jint session) argument 1713 SSL_CTX* ctx = (SSL_CTX*)env->GetIntField(object, field_Socket_ssl_ctx); local 2258 SSL_CTX* ctx = (SSL_CTX*)env->GetIntField(object, field_ServerSocket_ssl_ctx); local 2380 SSL_CTX *ctx = (SSL_CTX *)env->GetIntField(object, field_ServerSocket_ssl_ctx); local [all...] |
/dalvik/libcore/openssl/src/main/native/ |
H A D | BNInterface.c | 640 static jboolean NativeBN_BN_gcd(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* b, BN_CTX* ctx) { argument 642 return BN_gcd(r, a, b, ctx); 648 static jboolean NativeBN_BN_mul(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* b, BN_CTX* ctx) { argument 650 return BN_mul(r, a, b, ctx); 656 static jboolean NativeBN_BN_exp(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* p, BN_CTX* ctx) { argument 658 return BN_exp(r, a, p, ctx); 664 static jboolean NativeBN_BN_div(JNIEnv* env, jclass cls, BIGNUM* dv, BIGNUM* rem, BIGNUM* m, BIGNUM* d, BN_CTX* ctx) { argument 666 return BN_div(dv, rem, m, d, ctx); 672 static jboolean NativeBN_BN_nnmod(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* m, BN_CTX* ctx) { argument 674 return BN_nnmod(r, a, m, ctx); 680 NativeBN_BN_mod_exp(JNIEnv* env, jclass cls, BIGNUM* r, BIGNUM* a, BIGNUM* p, BIGNUM* m, BN_CTX* ctx) argument 689 NativeBN_BN_mod_inverse(JNIEnv* env, jclass cls, BIGNUM* ret, BIGNUM* a, BIGNUM* n, BN_CTX* ctx) argument 707 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 D | HttpsURLConnectionTest.java | 158 SSLContext ctx = getContext(); 159 ServerSocket ss = ctx.getServerSocketFactory() 213 SSLContext ctx = getContext(); 214 ServerSocket ss = ctx.getServerSocketFactory() 254 SSLContext ctx = getContext(); 255 SSLServerSocket ss = (SSLServerSocket) ctx.getServerSocketFactory() 258 SSLSocketFactory socketFactory = (SSLSocketFactory) ctx 311 SSLContext ctx = getContext(); 312 SSLServerSocket ss = (SSLServerSocket) ctx.getServerSocketFactory() 324 SSLSocketFactory socketFactory = (SSLSocketFactory) ctx [all...] |
/dalvik/libcore/icu/src/main/native/ |
H A D | NativeConverter.cpp | 998 EncoderCallbackContext* ctx = (EncoderCallbackContext*)context; local 1000 if(ctx) { 1004 realCB = ctx->onUnmappableInput; 1008 realCB = ctx->onMalformedInput; 1153 DecoderCallbackContext* ctx = (DecoderCallbackContext*)context; local 1155 if(ctx) { 1159 realCB = ctx->onUnmappableInput; 1163 realCB = ctx->onMalformedInput;
|