Searched defs:env (Results 226 - 250 of 282) sorted by relevance

1234567891011>>

/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp89 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
92 env->DeleteGlobalRef(waveform_data);
97 env->DeleteGlobalRef(fft_data);
141 static void ensureArraySize(JNIEnv *env, jbyteArray *array, uint32_t size) { argument
143 uint32_t len = env->GetArrayLength(*array);
147 env->DeleteGlobalRef(*array);
151 jbyteArray localRef = env->NewByteArray(size);
154 *array = (jbyteArray)env->NewGlobalRef(localRef);
157 env->DeleteLocalRef(localRef);
169 JNIEnv *env local
233 getVisualizer(JNIEnv* env, jobject thiz) argument
241 setVisualizer(JNIEnv* env, jobject thiz, const sp<Visualizer>& v) argument
262 android_media_visualizer_native_init(JNIEnv *env) argument
339 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
351 android_media_visualizer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint sessionId, jintArray jId, jstring opPackageName) argument
437 android_media_visualizer_native_release(JNIEnv *env, jobject thiz) argument
459 android_media_visualizer_native_finalize(JNIEnv *env, jobject thiz) argument
466 android_media_visualizer_native_setEnabled(JNIEnv *env, jobject thiz, jboolean enabled) argument
487 android_media_visualizer_native_getEnabled(JNIEnv *env, jobject thiz) argument
502 android_media_visualizer_native_getCaptureSizeRange(JNIEnv *env, jobject ) argument
520 android_media_visualizer_native_setCaptureSize(JNIEnv *env, jobject thiz, jint size) argument
531 android_media_visualizer_native_getCaptureSize(JNIEnv *env, jobject thiz) argument
541 android_media_visualizer_native_setScalingMode(JNIEnv *env, jobject thiz, jint mode) argument
552 android_media_visualizer_native_getScalingMode(JNIEnv *env, jobject thiz) argument
562 android_media_visualizer_native_setMeasurementMode(JNIEnv *env, jobject thiz, jint mode) argument
572 android_media_visualizer_native_getMeasurementMode(JNIEnv *env, jobject thiz) argument
582 android_media_visualizer_native_getSamplingRate(JNIEnv *env, jobject thiz) argument
592 android_media_visualizer_native_getWaveForm(JNIEnv *env, jobject thiz, jbyteArray jWaveform) argument
610 android_media_visualizer_native_getFft(JNIEnv *env, jobject thiz, jbyteArray jFft) argument
629 android_media_visualizer_native_getPeakRms(JNIEnv *env, jobject thiz, jobject jPeakRmsObj) argument
648 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument
706 register_android_media_visualizer(JNIEnv *env) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java364 private native boolean nativeAllocate(GLEnvironment env, int width, int height); argument
366 private native boolean nativeAllocateWithTexture(GLEnvironment env, argument
371 private native boolean nativeAllocateWithFbo(GLEnvironment env, argument
376 private native boolean nativeAllocateExternal(GLEnvironment env); argument
/frameworks/base/packages/MtpDocumentsProvider/jni/
H A Dcom_android_mtp_AppFuse.cpp120 AppFuse(JNIEnv* env, jobject self) : argument
121 env_(env), self_(self), handle_counter_(0) {}
449 void com_android_mtp_AppFuse_start_app_fuse_loop(JNIEnv* env, jobject self, jint jfd) { argument
451 AppFuse appfuse(env, self);
495 JNIEnv* env = nullptr; local
496 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
501 assert(env != nullptr);
503 jclass clazz = env->FindClass("com/android/mtp/AppFuse");
509 app_fuse_class = static_cast<jclass>(env->NewGlobalRef(clazz));
515 app_fuse_get_file_size = env
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_hdmi_HdmiCecController.cpp149 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
150 jbyteArray body = env->NewByteArray(message.length);
152 env->SetByteArrayRegion(body, 0, message.length, bodyPtr);
154 env->CallVoidMethod(mController->getCallbacksObj(),
157 env->DeleteLocalRef(body);
159 checkAndClearExceptionFromCallback(env, __FUNCTION__);
164 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
167 env->CallVoidMethod(mController->getCallbacksObj(),
170 checkAndClearExceptionFromCallback(env, __FUNCTION__);
174 static void checkAndClearExceptionFromCallback(JNIEnv* env, cons argument
231 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
289 nativeInit(JNIEnv* env, jclass clazz, jobject callbacksObj, jobject messageQueueObj) argument
324 nativeSendCecCommand(JNIEnv* env, jclass clazz, jlong controllerPtr, jint srcAddr, jint dstAddr, jbyteArray body) argument
340 nativeAddLogicalAddress(JNIEnv* env, jclass clazz, jlong controllerPtr, jint logicalAddress) argument
346 nativeClearLogicalAddress(JNIEnv* env, jclass clazz, jlong controllerPtr) argument
351 nativeGetPhysicalAddress(JNIEnv* env, jclass clazz, jlong controllerPtr) argument
356 nativeGetVersion(JNIEnv* env, jclass clazz, jlong controllerPtr) argument
361 nativeGetVendorId(JNIEnv* env, jclass clazz, jlong controllerPtr) argument
366 nativeGetPortInfos(JNIEnv* env, jclass clazz, jlong controllerPtr) argument
371 nativeSetOption(JNIEnv* env, jclass clazz, jlong controllerPtr, jint flag, jint value) argument
376 nativeSetAudioReturnChannel(JNIEnv* env, jclass clazz, jlong controllerPtr, jint port, jboolean enabled) argument
382 nativeIsConnected(JNIEnv* env, jclass clazz, jlong controllerPtr, jint port) argument
408 register_android_server_hdmi_HdmiCecController(JNIEnv* env) argument
[all...]
H A Dcom_android_server_tv_TvInputHal.cpp238 static JTvInputHal* createInstance(JNIEnv* env, jobject thiz, const sp<Looper>& looper);
276 JTvInputHal(JNIEnv* env, jobject thiz, tv_input_device_t* dev, const sp<Looper>& looper);
293 JTvInputHal::JTvInputHal(JNIEnv* env, jobject thiz, tv_input_device_t* device, argument
295 mThiz = env->NewWeakGlobalRef(thiz);
306 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
307 env->DeleteWeakGlobalRef(mThiz);
311 JTvInputHal* JTvInputHal::createInstance(JNIEnv* env, jobject thiz, const sp<Looper>& looper) { argument
332 return new JTvInputHal(env, thiz, device, looper);
470 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
472 jobject builder = env
513 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
529 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
550 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
603 nativeOpen(JNIEnv* env, jobject thiz, jobject messageQueueObj) argument
609 nativeAddOrUpdateStream(JNIEnv* env, jclass clazz, jlong ptr, jint deviceId, jint streamId, jobject jsurface) argument
622 nativeRemoveStream(JNIEnv* env, jclass clazz, jlong ptr, jint deviceId, jint streamId) argument
628 nativeGetStreamConfigs(JNIEnv* env, jclass clazz, jlong ptr, jint deviceId, jint generation) argument
660 nativeClose(JNIEnv* env, jclass clazz, jlong ptr) argument
687 register_android_server_tv_TvInputHal(JNIEnv* env) argument
[all...]
H A Dcom_android_server_location_FlpHardwareProvider.cpp54 static inline void CheckExceptions(JNIEnv* env, const char* methodName) { argument
55 if(!env->ExceptionCheck()) {
60 LOGE_EX(env);
61 env->ExceptionClear();
65 JNIEnv* env,
77 jclass exceptionClass = env->FindClass("java/lang/RuntimeException");
78 env->ThrowNew(exceptionClass, methodName);
82 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
84 if(sCallbackEnv == NULL || sCallbackEnv != env) {
85 ALOGE("CallbackThread check fail: env
64 ThrowOnError( JNIEnv* env, int resultCode, const char* methodName) argument
198 ClassInit(JNIEnv* env, jclass clazz) argument
278 TranslateFromObject( JNIEnv* env, jobject locationObject, FlpLocation& location) argument
335 TranslateFromObject( JNIEnv* env, jobject batchOptionsObject, FlpBatchOptions& batchOptions) argument
385 TranslateGeofenceFromGeofenceHardwareRequestParcelable( JNIEnv* env, jobject geofenceRequestObject, Geofence& geofence) argument
772 Init(JNIEnv* env, jobject obj) argument
800 GetBatchSize(JNIEnv* env, jobject ) argument
808 StartBatching( JNIEnv* env, jobject , jint id, jobject optionsObject) argument
823 UpdateBatchingOptions( JNIEnv* env, jobject , jint id, jobject optionsObject) argument
838 StopBatching(JNIEnv* env, jobject , jint id) argument
846 Cleanup(JNIEnv* env, jobject ) argument
859 GetBatchedLocation(JNIEnv* env, jobject , jint lastNLocations) argument
867 FlushBatchedLocations(JNIEnv* env, jobject ) argument
875 InjectLocation(JNIEnv* env, jobject , jobject locationObject) argument
899 InjectDiagnosticData(JNIEnv* env, jobject , jstring stringData) argument
923 InjectDeviceContext(JNIEnv* env, jobject , jint enabledMask) argument
936 AddGeofences( JNIEnv* env, jobject , jobjectArray geofenceRequestsArray) argument
978 PauseGeofence(JNIEnv* env, jobject , jint geofenceId) argument
986 ResumeGeofence( JNIEnv* env, jobject , jint geofenceId, jint monitorTransitions) argument
998 ModifyGeofenceOption( JNIEnv* env, jobject , jint geofenceId, jint lastTransition, jint monitorTransitions, jint notificationResponsiveness, jint unknownTimer, jint sourcesToUse) argument
1022 RemoveGeofences( JNIEnv* env, jobject , jintArray geofenceIdsArray) argument
1092 register_android_server_location_FlpHardwareProvider(JNIEnv* env) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp52 jstring encodedFormatToString(JNIEnv* env, SkEncodedFormat format) { argument
86 // NOTE: Caller should env->ExceptionCheck() for OOM
88 jstr = env->NewStringUTF(mimeType);
227 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) { argument
245 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
252 if (env->GetBooleanField(options, gOptions_justBoundsFieldID)) {
257 env->SetIntField(options, gOptions_widthFieldID, -1);
258 env->SetIntField(options, gOptions_heightFieldID, -1);
259 env->SetObjectField(options, gOptions_mimeFieldID, 0);
261 jobject jconfig = env
543 nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options) argument
558 nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, jobject padding, jobject bitmapFactoryOptions) argument
608 nativeDecodeAsset(JNIEnv* env, jobject clazz, jlong native_asset, jobject padding, jobject options) argument
618 nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, jint offset, jint length, jobject options) argument
626 nativeIsSeekable(JNIEnv* env, jobject, jobject fileDescriptor) argument
631 decodeBitmap(JNIEnv* env, void* data, size_t size) argument
665 register_android_graphics_BitmapFactory(JNIEnv* env) argument
[all...]
H A DPath.cpp39 static void finalizer(JNIEnv* env, jobject clazz, jlong objHandle) { argument
48 static jlong init1(JNIEnv* env, jobject clazz) { argument
52 static jlong init2(JNIEnv* env, jobject clazz, jlong valHandle) { argument
57 static void reset(JNIEnv* env, jobject clazz, jlong objHandle) { argument
62 static void rewind(JNIEnv* env, jobject clazz, jlong objHandle) { argument
67 static void assign(JNIEnv* env, jobject clazz, jlong dstHandle, jlong srcHandle) { argument
73 static jboolean isConvex(JNIEnv* env, jobject clazz, jlong objHandle) { argument
78 static jint getFillType(JNIEnv* env, jobject clazz, jlong objHandle) { argument
83 static void setFillType(JNIEnv* env, jobject clazz, jlong pathHandle, jint ftHandle) { argument
89 static jboolean isEmpty(JNIEnv* env, jobjec argument
94 isRect(JNIEnv* env, jobject clazz, jlong objHandle, jobject jrect) argument
102 computeBounds(JNIEnv* env, jobject clazz, jlong objHandle, jobject jbounds) argument
108 incReserve(JNIEnv* env, jobject clazz, jlong objHandle, jint extraPtCount) argument
113 moveTo__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x, jfloat y) argument
118 rMoveTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) argument
123 lineTo__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x, jfloat y) argument
128 rLineTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) argument
133 quadTo__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x1, jfloat y1, jfloat x2, jfloat y2) argument
138 rQuadTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx1, jfloat dy1, jfloat dx2, jfloat dy2) argument
143 cubicTo__FFFFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
148 rCubicTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
153 arcTo(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat startAngle, jfloat sweepAngle, jboolean forceMoveTo) argument
161 close(JNIEnv* env, jobject clazz, jlong objHandle) argument
166 addRect(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
173 addOval(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument
181 addCircle(JNIEnv* env, jobject clazz, jlong objHandle, jfloat x, jfloat y, jfloat radius, jint dirHandle) argument
187 addArc(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat startAngle, jfloat sweepAngle) argument
194 addRoundRectXY(JNIEnv* env, jobject clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat rx, jfloat ry, jint dirHandle) argument
202 addRoundRect8(JNIEnv* env, jobject, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloatArray array, jint dirHandle) argument
216 addPath__PathFF(JNIEnv* env, jobject clazz, jlong objHandle, jlong srcHandle, jfloat dx, jfloat dy) argument
222 addPath__Path(JNIEnv* env, jobject clazz, jlong objHandle, jlong srcHandle) argument
228 addPath__PathMatrix(JNIEnv* env, jobject clazz, jlong objHandle, jlong srcHandle, jlong matrixHandle) argument
235 offset__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) argument
240 setLastPoint(JNIEnv* env, jobject clazz, jlong objHandle, jfloat dx, jfloat dy) argument
245 transform__MatrixPath(JNIEnv* env, jobject clazz, jlong objHandle, jlong matrixHandle, jlong dstHandle) argument
252 transform__Matrix(JNIEnv* env, jobject clazz, jlong objHandle, jlong matrixHandle) argument
258 op(JNIEnv* env, jobject clazz, jlong p1Handle, jlong p2Handle, jint opHandle, jlong rHandle) argument
419 approximate(JNIEnv* env, jclass, jlong pathHandle, float acceptableError) argument
513 register_android_graphics_Path(JNIEnv* env) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp130 if (env != NULL && clazz != NULL) {
131 env->DeleteGlobalRef(clazz);
149 nativeWindow = android_view_Surface_getNativeWindow(env, _surface);
225 code->env->CallVoidMethod(code->clazz, gNativeActivityClassInfo.finish);
226 code->messageQueue->raiseAndClearException(code->env, "finish");
229 code->env->CallVoidMethod(code->clazz,
231 code->messageQueue->raiseAndClearException(code->env, "setWindowFormat");
234 code->env->CallVoidMethod(code->clazz,
236 code->messageQueue->raiseAndClearException(code->env, "setWindowFlags");
239 code->env
259 loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName, jobject messageQueue, jstring internalDataDir, jstring obbDir, jstring externalDataDir, jint sdkVersion, jobject jAssetMgr, jbyteArray savedState, jobject classLoader, jstring libraryPath) argument
367 getDlError_native(JNIEnv* env, jobject clazz) argument
372 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) argument
384 onStart_native(JNIEnv* env, jobject clazz, jlong handle) argument
398 onResume_native(JNIEnv* env, jobject clazz, jlong handle) argument
412 onSaveInstanceState_native(JNIEnv* env, jobject clazz, jlong handle) argument
441 onPause_native(JNIEnv* env, jobject clazz, jlong handle) argument
455 onStop_native(JNIEnv* env, jobject clazz, jlong handle) argument
469 onConfigurationChanged_native(JNIEnv* env, jobject clazz, jlong handle) argument
483 onLowMemory_native(JNIEnv* env, jobject clazz, jlong handle) argument
497 onWindowFocusChanged_native(JNIEnv* env, jobject clazz, jlong handle, jboolean focused) argument
511 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
533 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface, jint format, jint width, jint height) argument
576 onSurfaceRedrawNeeded_native(JNIEnv* env, jobject clazz, jlong handle) argument
590 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
606 onInputQueueCreated_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
621 onInputQueueDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
636 onContentRectChanged_native(JNIEnv* env, jobject clazz, jlong handle, jint x, jint y, jint w, jint h) argument
682 register_android_app_NativeActivity(JNIEnv* env) argument
[all...]
H A Dandroid_database_SQLiteConnection.cpp114 static jlong nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, argument
125 const char* pathChars = env->GetStringUTFChars(pathStr, NULL);
127 env->ReleaseStringUTFChars(pathStr, pathChars);
129 const char* labelChars = env->GetStringUTFChars(labelStr, NULL);
131 env->ReleaseStringUTFChars(labelStr, labelChars);
136 throw_sqlite3_exception_errcode(env, err, "Could not open database");
142 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode.");
150 throw_sqlite3_exception(env, db, "Could not set busy timeout");
158 throw_sqlite3_exception(env, db, "Could not register Android SQL functions.");
178 static void nativeClose(JNIEnv* env, jclas argument
198 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
244 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
248 nativeRegisterCustomFunction(JNIEnv* env, jclass clazz, jlong connectionPtr, jobject functionObj) argument
272 nativeRegisterLocalizedCollators(JNIEnv* env, jclass clazz, jlong connectionPtr, jstring localeStr) argument
285 nativePrepareStatement(JNIEnv* env, jclass clazz, jlong connectionPtr, jstring sqlString) argument
316 nativeFinalizeStatement(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
328 nativeGetParameterCount(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
335 nativeIsReadOnly(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
342 nativeGetColumnCount(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
349 nativeGetColumnName(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index) argument
364 nativeBindNull(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index) argument
375 nativeBindLong(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index, jlong value) argument
386 nativeBindDouble(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index, jdouble value) argument
397 nativeBindString(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index, jstring valueString) argument
412 nativeBindBlob(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jint index, jbyteArray valueArray) argument
426 nativeResetStatementAndClearBindings(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
440 executeNonQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument
451 nativeExecute(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
459 nativeExecuteForChangedRowCount(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
468 nativeExecuteForLastInsertedRowId(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
478 executeOneRowQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument
486 nativeExecuteForLong(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
498 nativeExecuteForString(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
514 createAshmemRegionWithData(JNIEnv* env, const void* data, size_t length) argument
548 nativeExecuteForBlobFileDescriptor(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr) argument
572 copyRow(JNIEnv* env, CursorWindow* window, sqlite3_stmt* statement, int numColumns, int startPos, int addedRows) argument
665 nativeExecuteForCursorWindow(JNIEnv* env, jclass clazz, jlong connectionPtr, jlong statementPtr, jlong windowPtr, jint startPos, jint requiredPos, jboolean countAllRows) argument
761 nativeGetDbLookaside(JNIEnv* env, jobject clazz, jlong connectionPtr) argument
770 nativeCancel(JNIEnv* env, jobject clazz, jlong connectionPtr) argument
775 nativeResetCancel(JNIEnv* env, jobject clazz, jlong connectionPtr, jboolean cancelable) argument
846 register_android_database_SQLiteConnection(JNIEnv *env) argument
[all...]
H A Dandroid_graphics_drawable_VectorDrawable.cpp81 static void setNodeName(JNIEnv* env, jobject, jlong nodePtr, jstring nameStr) { argument
83 const char* nodeName = env->GetStringUTFChars(nameStr, NULL);
85 env->ReleaseStringUTFChars(nameStr, nodeName);
102 static int draw(JNIEnv* env, jobject, jlong treePtr, jlong canvasPtr, argument
107 GraphicsJNI::jrect_to_rect(env, jrect, &rect);
153 static jboolean getFullPathProperties(JNIEnv* env, jobject, jlong fullPathPtr, argument
158 env->SetByteArrayRegion(outProperties, 0, length, reinterpret_cast<int8_t*>(&pathProperties));
162 static jboolean getGroupProperties(JNIEnv* env, jobject, jlong groupPtr, argument
167 env->SetFloatArrayRegion(outProperties, 0, length, reinterpret_cast<float*>(&groupProperties));
178 static void setPathString(JNIEnv* env, jobjec argument
413 register_android_graphics_drawable_VectorDrawable(JNIEnv* env) argument
[all...]
H A Dandroid_hardware_Camera.cpp74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
81 void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata);
82 void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType);
83 void setCallbackMode(JNIEnv *env, bool installed, bool manualMode);
89 void copyAndPost(JNIEnv* env, const sp<IMemory>& dataPtr, int msgType);
90 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers);
91 void clearCallbackBuffers_l(JNIEnv *env);
92 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize);
127 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) argument
131 JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env
145 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument
168 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
204 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
219 getCallbackBuffer( JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) argument
247 copyAndPost(JNIEnv* env, const sp<IMemory>& dataPtr, int msgType) argument
305 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
358 postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata) argument
416 setCallbackMode(JNIEnv *env, bool installed, bool manualMode) argument
443 addCallbackBuffer( JNIEnv *env, jbyteArray cbb, int msgType) argument
483 clearCallbackBuffers_l(JNIEnv *env) argument
489 clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers) argument
497 android_hardware_Camera_getNumberOfCameras(JNIEnv *env, jobject thiz) argument
502 android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, jint cameraId, jobject info_obj) argument
528 android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint cameraId, jint halVersion, jstring clientPackageName) argument
622 android_hardware_Camera_release(JNIEnv *env, jobject thiz) argument
652 android_hardware_Camera_setPreviewSurface(JNIEnv *env, jobject thiz, jobject jSurface) argument
672 android_hardware_Camera_setPreviewTexture(JNIEnv *env, jobject thiz, jobject jSurfaceTexture) argument
696 android_hardware_Camera_setPreviewCallbackSurface(JNIEnv *env, jobject thiz, jobject jSurface) argument
720 android_hardware_Camera_startPreview(JNIEnv *env, jobject thiz) argument
732 android_hardware_Camera_stopPreview(JNIEnv *env, jobject thiz) argument
741 android_hardware_Camera_previewEnabled(JNIEnv *env, jobject thiz) argument
750 android_hardware_Camera_setHasPreviewCallback(JNIEnv *env, jobject thiz, jboolean installed, jboolean manualBuffer) argument
765 android_hardware_Camera_addCallbackBuffer(JNIEnv *env, jobject thiz, jbyteArray bytes, jint msgType) argument
775 android_hardware_Camera_autoFocus(JNIEnv *env, jobject thiz) argument
787 android_hardware_Camera_cancelAutoFocus(JNIEnv *env, jobject thiz) argument
799 android_hardware_Camera_takePicture(JNIEnv *env, jobject thiz, jint msgType) argument
830 android_hardware_Camera_setParameters(JNIEnv *env, jobject thiz, jstring params) argument
849 android_hardware_Camera_getParameters(JNIEnv *env, jobject thiz) argument
863 android_hardware_Camera_reconnect(JNIEnv *env, jobject thiz) argument
875 android_hardware_Camera_lock(JNIEnv *env, jobject thiz) argument
886 android_hardware_Camera_unlock(JNIEnv *env, jobject thiz) argument
897 android_hardware_Camera_startSmoothZoom(JNIEnv *env, jobject thiz, jint value) argument
913 android_hardware_Camera_stopSmoothZoom(JNIEnv *env, jobject thiz) argument
924 android_hardware_Camera_setDisplayOrientation(JNIEnv *env, jobject thiz, jint value) argument
936 android_hardware_Camera_enableShutterSound(JNIEnv *env, jobject thiz, jboolean enabled) argument
955 android_hardware_Camera_startFaceDetection(JNIEnv *env, jobject thiz, jint type) argument
973 android_hardware_Camera_stopFaceDetection(JNIEnv *env, jobject thiz) argument
984 android_hardware_Camera_enableFocusMoveCallback(JNIEnv *env, jobject thiz, jint enable) argument
1088 find_fields(JNIEnv *env, field *fields, int count) argument
1099 register_android_hardware_Camera(JNIEnv *env) argument
[all...]
H A Dandroid_hardware_camera2_CameraMetadata.cpp82 status_t CameraMetadata_getNativeMetadata(JNIEnv* env, jobject thiz, argument
93 CameraMetadata* nativePtr = reinterpret_cast<CameraMetadata*>(env->GetLongField(thiz,
166 static void CameraMetadata_classInit(JNIEnv *env, jobject thiz);
167 static jobject CameraMetadata_getAllVendorKeys(JNIEnv* env, jobject thiz, jclass keyType);
168 static jint CameraMetadata_getTagFromKey(JNIEnv *env, jobject thiz, jstring keyName);
169 static jint CameraMetadata_getTypeFromTag(JNIEnv *env, jobject thiz, jint tag);
170 static jint CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jobject thiz);
173 static CameraMetadata* CameraMetadata_getPointerNoThrow(JNIEnv *env, jobject thiz) { argument
179 return reinterpret_cast<CameraMetadata*>(env->GetLongField(thiz, fields.metadata_ptr));
183 static CameraMetadata* CameraMetadata_getPointerThrow(JNIEnv *env, jobjec argument
205 CameraMetadata_allocate(JNIEnv *env, jobject thiz) argument
211 CameraMetadata_allocateCopy(JNIEnv *env, jobject thiz, jobject other) argument
226 CameraMetadata_isEmpty(JNIEnv *env, jobject thiz) argument
245 CameraMetadata_getEntryCount(JNIEnv *env, jobject thiz) argument
256 CameraMetadata_close(JNIEnv *env, jobject thiz) argument
270 CameraMetadata_swap(JNIEnv *env, jobject thiz, jobject other) argument
286 CameraMetadata_readValues(JNIEnv *env, jobject thiz, jint tag) argument
323 CameraMetadata_writeValues(JNIEnv *env, jobject thiz, jint tag, jbyteArray src) argument
394 CameraMetadata_dump(JNIEnv *env, jobject thiz) argument
486 CameraMetadata_readFromParcel(JNIEnv *env, jobject thiz, jobject parcel) argument
507 CameraMetadata_writeToParcel(JNIEnv *env, jobject thiz, jobject parcel) argument
593 find_fields(JNIEnv *env, field *fields, int count) argument
616 register_android_hardware_camera2_CameraMetadata(JNIEnv *env) argument
665 CameraMetadata_classInit(JNIEnv *env, jobject thiz) argument
681 CameraMetadata_getAllVendorKeys(JNIEnv* env, jobject thiz, jclass keyType) argument
782 CameraMetadata_getTagFromKey(JNIEnv *env, jobject thiz, jstring keyName) argument
896 CameraMetadata_getTypeFromTag(JNIEnv *env, jobject thiz, jint tag) argument
907 CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jobject thiz) argument
[all...]
H A Dandroid_hardware_location_ContextHubService.cpp221 int add_app_instance(const hub_app_info *appInfo, uint32_t hubHandle, JNIEnv *env) { argument
241 env->CallIntMethod(db.jniInfo.jContextHubService,
315 JNIEnv *env; local
317 if ((db.jniInfo.vm)->AttachCurrentThread(&env, nullptr) != JNI_OK) {
321 jbyteArray jmsg = env->NewByteArray(msgLen);
326 jintArray jheader = env->NewIntArray(headerLen);
328 env->DeleteLocalRef(jmsg);
333 env->SetByteArrayRegion(jmsg, 0, msgLen, (jbyte *)msg);
334 env->SetIntArrayRegion(jheader, 0, headerLen, (jint *)header);
336 int ret = (env
346 JNIEnv *env; local
453 init_jni(JNIEnv *env, jobject instance) argument
532 constructJContextHubInfo(JNIEnv *env, const struct context_hub_t *hub) argument
586 nativeInitialize(JNIEnv *env, jobject instance) argument
612 nativeSendMessage(JNIEnv *env, jobject instance, jintArray header_, jbyteArray data_) argument
671 register_android_hardware_location_ContextHubService(JNIEnv *env) argument
[all...]
H A Dandroid_media_AudioRecord.cpp94 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
95 if (user != NULL && env != NULL) {
96 env->CallStaticVoidMethod(
100 if (env->ExceptionCheck()) {
101 env->ExceptionDescribe();
102 env->ExceptionClear();
108 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
109 if (user != NULL && env != NULL) {
110 env->CallStaticVoidMethod(
114 if (env
129 getJniDeviceCallback(JNIEnv* env, jobject thiz) argument
138 setJniDeviceCallback(JNIEnv* env, jobject thiz, const sp<JNIDeviceCallback>& cb) argument
157 getAudioRecord(JNIEnv* env, jobject thiz) argument
165 setAudioRecord(JNIEnv* env, jobject thiz, const sp<AudioRecord>& ar) argument
182 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, jobject jaa, jintArray jSampleRate, jint channelMask, jint channelIndexMask, jint audioFormat, jint buffSizeInBytes, jintArray jSession, jstring opPackageName, jlong nativeRecordInJavaObj) argument
379 android_media_AudioRecord_start(JNIEnv *env, jobject thiz, jint event, jint triggerSession) argument
394 android_media_AudioRecord_stop(JNIEnv *env, jobject thiz) argument
410 android_media_AudioRecord_release(JNIEnv *env, jobject thiz) argument
445 android_media_AudioRecord_finalize(JNIEnv *env, jobject thiz) argument
451 envGetArrayElements(JNIEnv *env, jbyteArray array, jboolean *isCopy) argument
456 envReleaseArrayElements(JNIEnv *env, jbyteArray array, jbyte *elems, jint mode) argument
461 envGetArrayElements(JNIEnv *env, jshortArray array, jboolean *isCopy) argument
466 envReleaseArrayElements(JNIEnv *env, jshortArray array, jshort *elems, jint mode) argument
471 envGetArrayElements(JNIEnv *env, jfloatArray array, jboolean *isCopy) argument
476 envReleaseArrayElements(JNIEnv *env, jfloatArray array, jfloat *elems, jint mode) argument
493 android_media_AudioRecord_readInArray(JNIEnv *env, jobject thiz, T javaAudioData, jint offsetInSamples, jint sizeInSamples, jboolean isReadBlocking) argument
535 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes, jboolean isReadBlocking) argument
568 android_media_AudioRecord_get_buffer_size_in_frames(JNIEnv *env, jobject thiz) argument
579 android_media_AudioRecord_set_marker_pos(JNIEnv *env, jobject thiz, jint markerPos) argument
593 android_media_AudioRecord_get_marker_pos(JNIEnv *env, jobject thiz) argument
609 android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument
624 android_media_AudioRecord_get_pos_update_period(JNIEnv *env, jobject thiz) argument
643 android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint channelCount, jint audioFormat) argument
665 android_media_AudioRecord_setInputDevice( JNIEnv *env, jobject thiz, jint device_id) argument
675 android_media_AudioRecord_getRoutedDeviceId( JNIEnv *env, jobject thiz) argument
685 android_media_AudioRecord_enableDeviceCallback( JNIEnv *env, jobject thiz) argument
711 android_media_AudioRecord_disableDeviceCallback( JNIEnv *env, jobject thiz) argument
725 android_media_AudioRecord_get_timestamp(JNIEnv *env, jobject thiz, jobject timestamp, jint timebase) argument
800 register_android_media_AudioRecord(JNIEnv *env) argument
[all...]
H A Dandroid_view_MotionEvent.cpp68 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { argument
73 env->GetLongField(eventObj, gMotionEventClassInfo.mNativePtr));
76 static void android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, argument
78 env->SetLongField(eventObj, gMotionEventClassInfo.mNativePtr,
82 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument
83 jobject eventObj = env->CallStaticObjectMethod(gMotionEventClassInfo.clazz,
85 if (env->ExceptionCheck() || !eventObj) {
87 LOGE_EX(env);
88 env->ExceptionClear();
92 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventOb
102 android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj) argument
117 validatePointerCount(JNIEnv* env, jint pointerCount) argument
126 validatePointerPropertiesArray(JNIEnv* env, jobjectArray pointerPropertiesObjArray, size_t pointerCount) argument
142 validatePointerCoordsObjArray(JNIEnv* env, jobjectArray pointerCoordsObjArray, size_t pointerCount) argument
158 validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) argument
167 validateHistoryPos(JNIEnv* env, jint historyPos, size_t historySize) argument
176 validatePointerCoords(JNIEnv* env, jobject pointerCoordsObj) argument
185 validatePointerProperties(JNIEnv* env, jobject pointerPropertiesObj) argument
194 pointerCoordsToNative(JNIEnv* env, jobject pointerCoordsObj, float xOffset, float yOffset, PointerCoords* outRawPointerCoords) argument
237 obtainPackedAxisValuesArray(JNIEnv* env, uint32_t minSize, jobject outPointerCoordsObj) argument
258 pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, float xOffset, float yOffset, jobject outPointerCoordsObj) argument
314 pointerPropertiesToNative(JNIEnv* env, jobject pointerPropertiesObj, PointerProperties* outPointerProperties) argument
323 pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, jobject outPointerPropertiesObj) argument
334 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jlong nativePtr, jint deviceId, jint source, jint action, jint flags, jint edgeFlags, jint metaState, jint buttonState, jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, jobjectArray pointerPropertiesObjArray, jobjectArray pointerCoordsObjArray) argument
386 android_view_MotionEvent_nativeCopy(JNIEnv* env, jclass clazz, jlong destNativePtr, jlong sourceNativePtr, jboolean keepHistory) argument
397 android_view_MotionEvent_nativeDispose(JNIEnv* env, jclass clazz, jlong nativePtr) argument
403 android_view_MotionEvent_nativeAddBatch(JNIEnv* env, jclass clazz, jlong nativePtr, jlong eventTimeNanos, jobjectArray pointerCoordsObjArray, jint metaState) argument
429 android_view_MotionEvent_nativeGetDeviceId(JNIEnv* env, jclass clazz, jlong nativePtr) argument
435 android_view_MotionEvent_nativeGetSource(JNIEnv* env, jclass clazz, jlong nativePtr) argument
441 android_view_MotionEvent_nativeSetSource(JNIEnv* env, jclass clazz, jlong nativePtr, jint source) argument
447 android_view_MotionEvent_nativeGetAction(JNIEnv* env, jclass clazz, jlong nativePtr) argument
453 android_view_MotionEvent_nativeSetAction(JNIEnv* env, jclass clazz, jlong nativePtr, jint action) argument
459 android_view_MotionEvent_nativeGetActionButton(JNIEnv* env, jclass clazz, jlong nativePtr) argument
465 android_view_MotionEvent_nativeSetActionButton(JNIEnv* env, jclass clazz, jlong nativePtr, jint button) argument
471 android_view_MotionEvent_nativeIsTouchEvent(JNIEnv* env, jclass clazz, jlong nativePtr) argument
477 android_view_MotionEvent_nativeGetFlags(JNIEnv* env, jclass clazz, jlong nativePtr) argument
483 android_view_MotionEvent_nativeSetFlags(JNIEnv* env, jclass clazz, jlong nativePtr, jint flags) argument
489 android_view_MotionEvent_nativeGetEdgeFlags(JNIEnv* env, jclass clazz, jlong nativePtr) argument
495 android_view_MotionEvent_nativeSetEdgeFlags(JNIEnv* env, jclass clazz, jlong nativePtr, jint edgeFlags) argument
501 android_view_MotionEvent_nativeGetMetaState(JNIEnv* env, jclass clazz, jlong nativePtr) argument
507 android_view_MotionEvent_nativeGetButtonState(JNIEnv* env, jclass clazz, jlong nativePtr) argument
513 android_view_MotionEvent_nativeSetButtonState(JNIEnv* env, jclass clazz, jlong nativePtr, jint buttonState) argument
519 android_view_MotionEvent_nativeOffsetLocation(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat deltaX, jfloat deltaY) argument
525 android_view_MotionEvent_nativeGetXOffset(JNIEnv* env, jclass clazz, jlong nativePtr) argument
531 android_view_MotionEvent_nativeGetYOffset(JNIEnv* env, jclass clazz, jlong nativePtr) argument
537 android_view_MotionEvent_nativeGetXPrecision(JNIEnv* env, jclass clazz, jlong nativePtr) argument
543 android_view_MotionEvent_nativeGetYPrecision(JNIEnv* env, jclass clazz, jlong nativePtr) argument
549 android_view_MotionEvent_nativeGetDownTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr) argument
555 android_view_MotionEvent_nativeSetDownTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr, jlong downTimeNanos) argument
561 android_view_MotionEvent_nativeGetPointerCount(JNIEnv* env, jclass clazz, jlong nativePtr) argument
567 android_view_MotionEvent_nativeGetPointerId(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex) argument
577 android_view_MotionEvent_nativeGetToolType(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex) argument
587 android_view_MotionEvent_nativeFindPointerIndex(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerId) argument
593 android_view_MotionEvent_nativeGetHistorySize(JNIEnv* env, jclass clazz, jlong nativePtr) argument
599 android_view_MotionEvent_nativeGetEventTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr, jint historyPos) argument
613 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
632 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
651 android_view_MotionEvent_nativeGetPointerCoords(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) argument
674 android_view_MotionEvent_nativeGetPointerProperties(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex, jobject outPointerPropertiesObj) argument
687 android_view_MotionEvent_nativeScale(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat scale) argument
693 android_view_MotionEvent_nativeTransform(JNIEnv* env, jclass clazz, jlong nativePtr, jobject matrixObj) argument
711 android_view_MotionEvent_nativeReadFromParcel(JNIEnv* env, jclass clazz, jlong nativePtr, jobject parcelObj) argument
731 android_view_MotionEvent_nativeWriteToParcel(JNIEnv* env, jclass clazz, jlong nativePtr, jobject parcelObj) argument
742 android_view_MotionEvent_nativeAxisToString(JNIEnv* env, jclass clazz, jint axis) argument
747 android_view_MotionEvent_nativeAxisFromString(JNIEnv* env, jclass clazz, jstring label) argument
884 register_android_view_MotionEvent(JNIEnv* env) argument
[all...]
H A Dandroid_view_RenderNode.cpp47 JNIEnv* env; local
48 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
51 return env;
58 RenderNodeContext(JNIEnv* env, jobject jobjRef) { argument
59 env->GetJavaVM(&mVm);
63 mWeakRef = env->NewWeakGlobalRef(jobjRef);
67 JNIEnv* env = getenv(mVm); local
68 env->DeleteWeakGlobalRef(mWeakRef);
71 jobject acquireLocalRef(JNIEnv* env) { argument
72 return env
81 onRenderNodeRemoved(JNIEnv* env, RenderNode* node) argument
98 android_view_RenderNode_output(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
104 android_view_RenderNode_getDebugSize(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
110 android_view_RenderNode_create(JNIEnv* env, jobject thiz, jstring name) argument
123 android_view_RenderNode_destroyRenderNode(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
129 android_view_RenderNode_setDisplayList(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong displayListPtr) argument
153 android_view_RenderNode_setLayerType(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint jlayerType) argument
159 android_view_RenderNode_setLayerPaint(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong paintPtr) argument
165 android_view_RenderNode_setStaticMatrix(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong matrixPtr) argument
171 android_view_RenderNode_setAnimationMatrix(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong matrixPtr) argument
177 android_view_RenderNode_setClipToBounds(JNIEnv* env, jobject clazz, jlong renderNodePtr, jboolean clipToBounds) argument
182 android_view_RenderNode_setClipBounds(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint left, jint top, jint right, jint bottom) argument
188 android_view_RenderNode_setClipBoundsEmpty(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
193 android_view_RenderNode_setProjectBackwards(JNIEnv* env, jobject clazz, jlong renderNodePtr, jboolean shouldProject) argument
198 android_view_RenderNode_setProjectionReceiver(JNIEnv* env, jobject clazz, jlong renderNodePtr, jboolean shouldRecieve) argument
203 android_view_RenderNode_setOutlineRoundRect(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) argument
213 android_view_RenderNode_setOutlineConvexPath(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong outlinePathPtr, jfloat alpha) argument
222 android_view_RenderNode_setOutlineEmpty(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
230 android_view_RenderNode_setOutlineNone(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
238 android_view_RenderNode_hasShadow(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
244 android_view_RenderNode_setClipToOutline(JNIEnv* env, jobject clazz, jlong renderNodePtr, jboolean clipToOutline) argument
252 android_view_RenderNode_setRevealClip(JNIEnv* env, jobject clazz, jlong renderNodePtr, jboolean shouldClip, jfloat x, jfloat y, jfloat radius) argument
262 android_view_RenderNode_setAlpha(JNIEnv* env, jobject clazz, jlong renderNodePtr, float alpha) argument
267 android_view_RenderNode_setHasOverlappingRendering(JNIEnv* env, jobject clazz, jlong renderNodePtr, bool hasOverlappingRendering) argument
273 android_view_RenderNode_setElevation(JNIEnv* env, jobject clazz, jlong renderNodePtr, float elevation) argument
278 android_view_RenderNode_setTranslationX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float tx) argument
283 android_view_RenderNode_setTranslationY(JNIEnv* env, jobject clazz, jlong renderNodePtr, float ty) argument
288 android_view_RenderNode_setTranslationZ(JNIEnv* env, jobject clazz, jlong renderNodePtr, float tz) argument
293 android_view_RenderNode_setRotation(JNIEnv* env, jobject clazz, jlong renderNodePtr, float rotation) argument
298 android_view_RenderNode_setRotationX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float rx) argument
303 android_view_RenderNode_setRotationY(JNIEnv* env, jobject clazz, jlong renderNodePtr, float ry) argument
308 android_view_RenderNode_setScaleX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float sx) argument
313 android_view_RenderNode_setScaleY(JNIEnv* env, jobject clazz, jlong renderNodePtr, float sy) argument
318 android_view_RenderNode_setPivotX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float px) argument
323 android_view_RenderNode_setPivotY(JNIEnv* env, jobject clazz, jlong renderNodePtr, float py) argument
328 android_view_RenderNode_setCameraDistance(JNIEnv* env, jobject clazz, jlong renderNodePtr, float distance) argument
333 android_view_RenderNode_setLeft(JNIEnv* env, jobject clazz, jlong renderNodePtr, int left) argument
338 android_view_RenderNode_setTop(JNIEnv* env, jobject clazz, jlong renderNodePtr, int top) argument
343 android_view_RenderNode_setRight(JNIEnv* env, jobject clazz, jlong renderNodePtr, int right) argument
348 android_view_RenderNode_setBottom(JNIEnv* env, jobject clazz, jlong renderNodePtr, int bottom) argument
353 android_view_RenderNode_setLeftTopRightBottom(JNIEnv* env, jobject clazz, jlong renderNodePtr, int left, int top, int right, int bottom) argument
364 android_view_RenderNode_offsetLeftAndRight(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint offset) argument
369 android_view_RenderNode_offsetTopAndBottom(JNIEnv* env, jobject clazz, jlong renderNodePtr, jint offset) argument
378 android_view_RenderNode_hasOverlappingRendering(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
384 android_view_RenderNode_getClipToOutline(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
390 android_view_RenderNode_getAlpha(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
396 android_view_RenderNode_getCameraDistance(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
402 android_view_RenderNode_getScaleX(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
408 android_view_RenderNode_getScaleY(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
414 android_view_RenderNode_getElevation(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
420 android_view_RenderNode_getTranslationX(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
426 android_view_RenderNode_getTranslationY(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
432 android_view_RenderNode_getTranslationZ(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
438 android_view_RenderNode_getRotation(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
444 android_view_RenderNode_getRotationX(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
450 android_view_RenderNode_getRotationY(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
456 android_view_RenderNode_isPivotExplicitlySet(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
462 android_view_RenderNode_hasIdentityMatrix(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
473 android_view_RenderNode_getTransformMatrix(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong outMatrixPtr) argument
488 android_view_RenderNode_getInverseTransformMatrix(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong outMatrixPtr) argument
501 android_view_RenderNode_getPivotX(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
508 android_view_RenderNode_getPivotY(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
519 android_view_RenderNode_addAnimator(JNIEnv* env, jobject clazz, jlong renderNodePtr, jlong animatorPtr) argument
526 android_view_RenderNode_endAllAnimators(JNIEnv* env, jobject clazz, jlong renderNodePtr) argument
539 android_view_RenderNode_requestPositionUpdates(JNIEnv* env, jobject, jlong renderNodePtr, jobject surfaceview) argument
543 SurfaceViewPositionUpdater(JNIEnv* env, jobject surfaceview) argument
601 JNIEnv* env; local
612 JNIEnv* env = jnienv(); local
628 JNIEnv* env = jnienv(); local
730 register_android_view_RenderNode(JNIEnv* env) argument
[all...]
H A Dandroid_view_SurfaceControl.cpp94 static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj, argument
96 ScopedUtfChars name(env, nameStr);
97 sp<SurfaceComposerClient> client(android_view_SurfaceSession_getClient(env, sessionObj));
101 jniThrowException(env, OutOfResourcesException, NULL);
108 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { argument
113 static void nativeDestroy(JNIEnv* env, jclass clazz, jlong nativeObject) { argument
119 static void nativeDisconnect(JNIEnv* env, jclass clazz, jlong nativeObject) { argument
126 static jobject nativeScreenshotBitmap(JNIEnv* env, jclass clazz, argument
130 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj);
135 int left = env
197 nativeScreenshot(JNIEnv* env, jclass clazz, jobject displayTokenObj, jobject surfaceObj, jobject sourceCropObj, jint width, jint height, jint minLayer, jint maxLayer, bool allLayers, bool useIdentityTransform) argument
222 nativeOpenTransaction(JNIEnv* env, jclass clazz) argument
227 nativeCloseTransaction(JNIEnv* env, jclass clazz, jboolean sync) argument
231 nativeSetAnimationTransaction(JNIEnv* env, jclass clazz) argument
235 nativeSetLayer(JNIEnv* env, jclass clazz, jlong nativeObject, jint zorder) argument
243 nativeSetPosition(JNIEnv* env, jclass clazz, jlong nativeObject, jfloat x, jfloat y) argument
251 nativeSetPositionAppliesWithResize(JNIEnv* env, jclass clazz, jlong nativeObject) argument
260 nativeSetSize(JNIEnv* env, jclass clazz, jlong nativeObject, jint w, jint h) argument
268 nativeSetFlags(JNIEnv* env, jclass clazz, jlong nativeObject, jint flags, jint mask) argument
276 nativeSetTransparentRegionHint(JNIEnv* env, jclass clazz, jlong nativeObject, jobject regionObj) argument
301 nativeSetAlpha(JNIEnv* env, jclass clazz, jlong nativeObject, jfloat alpha) argument
309 nativeSetMatrix(JNIEnv* env, jclass clazz, jlong nativeObject, jfloat dsdx, jfloat dtdx, jfloat dsdy, jfloat dtdy) argument
318 nativeSetWindowCrop(JNIEnv* env, jclass clazz, jlong nativeObject, jint l, jint t, jint r, jint b) argument
328 nativeSetFinalCrop(JNIEnv* env, jclass clazz, jlong nativeObject, jint l, jint t, jint r, jint b) argument
338 nativeSetLayerStack(JNIEnv* env, jclass clazz, jlong nativeObject, jint layerStack) argument
346 nativeGetBuiltInDisplay(JNIEnv* env, jclass clazz, jint id) argument
351 nativeCreateDisplay(JNIEnv* env, jclass clazz, jstring nameObj, jboolean secure) argument
359 nativeDestroyDisplay(JNIEnv* env, jclass clazz, jobject tokenObj) argument
365 nativeSetDisplaySurface(JNIEnv* env, jclass clazz, jobject tokenObj, jlong nativeSurfaceObject) argument
377 nativeSetDisplayLayerStack(JNIEnv* env, jclass clazz, jobject tokenObj, jint layerStack) argument
385 nativeSetDisplayProjection(JNIEnv* env, jclass clazz, jobject tokenObj, jint orientation, jint layerStackRect_left, jint layerStackRect_top, jint layerStackRect_right, jint layerStackRect_bottom, jint displayRect_left, jint displayRect_top, jint displayRect_right, jint displayRect_bottom) argument
396 nativeSetDisplaySize(JNIEnv* env, jclass clazz, jobject tokenObj, jint width, jint height) argument
403 nativeGetDisplayConfigs(JNIEnv* env, jclass clazz, jobject tokenObj) argument
441 nativeGetActiveConfig(JNIEnv* env, jclass clazz, jobject tokenObj) argument
447 nativeSetActiveConfig(JNIEnv* env, jclass clazz, jobject tokenObj, jint id) argument
454 nativeSetDisplayPowerMode(JNIEnv* env, jclass clazz, jobject tokenObj, jint mode) argument
462 nativeClearContentFrameStats(JNIEnv* env, jclass clazz, jlong nativeObject) argument
478 nativeGetContentFrameStats(JNIEnv* env, jclass clazz, jlong nativeObject, jobject outStats) argument
549 nativeClearAnimationFrameStats(JNIEnv* env, jclass clazz) argument
564 nativeGetAnimationFrameStats(JNIEnv* env, jclass clazz, jobject outStats) argument
608 nativeDeferTransactionUntil(JNIEnv* env, jclass clazz, jlong nativeObject, jobject handleObject, jlong frameNumber) argument
616 nativeSetOverrideScalingMode(JNIEnv* env, jclass clazz, jlong nativeObject, jint scalingMode) argument
623 nativeGetHandle(JNIEnv* env, jclass clazz, jlong nativeObject) argument
629 nativeGetHdrCapabilities(JNIEnv* env, jclass clazz, jobject tokenObject) argument
728 register_android_view_SurfaceControl(JNIEnv* env) argument
[all...]
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp47 static String8 getStringValue(JNIEnv* env, jobject object, const char* fieldName);
50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
55 static String8 getStringValue(JNIEnv* env, jstring string);
57 static int getIntValue(JNIEnv* env, jobject object, const char* fieldName);
60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { argument
63 = env->GetFieldID(env->GetObjectClass(object), fieldName , "Ljava/lang/String;");
66 jstring valueString = (jstring) env->GetObjectField(object, fieldID);
67 return Utility::getStringValue(env, valueStrin
74 getStringValue(JNIEnv* env, jstring string) argument
91 getByteArrayValue( JNIEnv* env, jobject object, const char* fieldName, int* dataLength) argument
105 getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) argument
119 getIntValue(JNIEnv* env, jobject object, const char* fieldName) argument
148 JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
161 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
169 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
181 setDrmManagerClientImpl( JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) argument
199 getDrmManagerClientImpl(JNIEnv* env, jobject thiz) argument
209 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz) argument
222 android_drm_DrmManagerClient_setListeners( JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) argument
233 android_drm_DrmManagerClient_release( JNIEnv* env, jobject thiz, jint uniqueId) argument
247 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
296 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument
336 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument
392 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument
415 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
426 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument
509 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument
581 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
592 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument
608 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument
618 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument
625 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument
632 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
642 GetConvertedStatus(JNIEnv* env, DrmConvertedStatus* pDrmConvertedStatus) argument
673 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument
692 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId) argument
765 registerNativeMethods(JNIEnv* env) argument
781 JNIEnv* env = NULL; local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp82 JNIImageReaderContext(JNIEnv* env, jobject weakThiz, jclass clazz, int maxImages);
125 JNIImageReaderContext::JNIImageReaderContext(JNIEnv* env, argument
127 mWeakThiz(env->NewGlobalRef(weakThiz)),
128 mClazz((jclass)env->NewGlobalRef(clazz)),
142 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
143 if (env == NULL) {
146 int result = vm->AttachCurrentThread(&env, (void*) &args);
153 return env;
181 JNIEnv* env = getJNIEnv(&needsDetach); local
182 if (env !
207 JNIEnv* env = getJNIEnv(&needsDetach); local
222 ImageReader_getContext(JNIEnv* env, jobject thiz) argument
230 ImageReader_getProducer(JNIEnv* env, jobject thiz) argument
242 ImageReader_setNativeContext(JNIEnv* env, jobject thiz, sp<JNIImageReaderContext> ctx) argument
257 ImageReader_getBufferConsumer(JNIEnv* env, jobject thiz) argument
269 Image_setBufferItem(JNIEnv* env, jobject thiz, const BufferItem* buffer) argument
275 Image_getBufferItem(JNIEnv* env, jobject image) argument
284 ImageReader_classInit(JNIEnv* env, jclass clazz) argument
329 ImageReader_init(JNIEnv* env, jobject thiz, jobject weakThiz, jint width, jint height, jint format, jint maxImages) argument
404 ImageReader_close(JNIEnv* env, jobject thiz) argument
424 Image_unlockIfLocked(JNIEnv* env, jobject image) argument
457 ImageReader_imageRelease(JNIEnv* env, jobject thiz, jobject image) argument
480 ImageReader_imageSetup(JNIEnv* env, jobject thiz, jobject image) argument
584 ImageReader_detachImage(JNIEnv* env, jobject thiz, jobject image) argument
614 ImageReader_getSurface(JNIEnv* env, jobject thiz) argument
628 Image_getLockedImage(JNIEnv* env, jobject thiz, LockedImage *image) argument
659 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
671 Image_createSurfacePlanes(JNIEnv* env, jobject thiz, int numPlanes, int readerFormat) argument
727 Image_getWidth(JNIEnv* env, jobject thiz) argument
733 Image_getHeight(JNIEnv* env, jobject thiz) argument
739 Image_getFormat(JNIEnv* env, jobject thiz, jint readerFormat) argument
786 register_android_media_ImageReader(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaPlayer.cpp82 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
91 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
96 jclass clazz = env->GetObjectClass(thiz);
99 jniThrowException(env, "java/lang/Exception", NULL);
102 mClass = (jclass)env->NewGlobalRef(clazz);
106 mObject = env->NewGlobalRef(weak_thiz);
112 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
113 env->DeleteGlobalRef(mObject);
114 env->DeleteGlobalRef(mClass);
119 JNIEnv *env local
142 getMediaPlayer(JNIEnv* env, jobject thiz) argument
149 setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument
167 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument
196 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jobject httpServiceBinderObj, jstring path, jobjectArray keys, jobjectArray values) argument
246 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
264 android_media_MediaPlayer_setDataSourceCallback(JNIEnv *env, jobject thiz, jobject dataSource) argument
281 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument
287 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument
301 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument
341 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument
347 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument
364 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument
381 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument
393 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument
405 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument
417 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument
431 android_media_MediaPlayer_setPlaybackParams(JNIEnv *env, jobject thiz, jobject params) argument
477 android_media_MediaPlayer_getPlaybackParams(JNIEnv *env, jobject thiz) argument
502 android_media_MediaPlayer_setSyncParams(JNIEnv *env, jobject thiz, jobject params) argument
545 android_media_MediaPlayer_getSyncParams(JNIEnv *env, jobject thiz) argument
580 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jint msec) argument
592 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument
609 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument
627 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument
641 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument
655 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument
667 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, jint streamtype) argument
679 android_media_MediaPlayer_getAudioStreamType(JNIEnv *env, jobject thiz) argument
693 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument
712 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument
724 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument
736 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume) argument
750 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument
769 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument
788 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument
820 android_media_MediaPlayer_native_init(JNIEnv *env) argument
868 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
886 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument
899 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument
909 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument
921 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument
933 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument
944 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument
955 android_media_MediaPlayer_pullBatteryData( JNIEnv *env, jobject , jobject java_reply) argument
971 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz, jstring addrString, jint port) argument
1010 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player) argument
1088 register_android_media_MediaPlayer(JNIEnv *env) argument
1116 JNIEnv* env = NULL; local
[all...]
H A Dandroid_media_Utils.cpp168 JNIEnv *env, jobjectArray keys, jobjectArray values,
174 nKeyValuePairs = env->GetArrayLength(keys);
175 failed = (nKeyValuePairs != env->GetArrayLength(values));
185 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
192 jstring key = (jstring) env->GetObjectArrayElement(keys, i);
193 jstring value = (jstring) env->GetObjectArrayElement(values, i);
195 const char* keyStr = env->GetStringUTFChars(key, NULL);
200 const char* valueStr = env->GetStringUTFChars(value, NULL);
202 env->ReleaseStringUTFChars(key, keyStr);
208 env
167 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument
216 makeIntegerObject(JNIEnv *env, int32_t value) argument
227 makeLongObject(JNIEnv *env, int64_t value) argument
237 makeFloatObject(JNIEnv *env, float value) argument
248 makeByteBufferObject( JNIEnv *env, const void *data, size_t size) argument
269 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument
281 ConvertMessageToMap( JNIEnv *env, const sp<AMessage> &msg, jobject *map) argument
421 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument
[all...]
H A Dandroid_mtp_MtpDatabase.cpp90 MtpDatabase* getMtpDatabase(JNIEnv *env, jobject database) { argument
91 return (MtpDatabase *)env->GetLongField(database, field_context);
104 MyMtpDatabase(JNIEnv *env, jobject client);
106 void cleanup(JNIEnv *env);
187 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
188 if (env->ExceptionCheck()) {
190 LOGE_EX(env);
191 env->ExceptionClear();
197 MyMtpDatabase::MyMtpDatabase(JNIEnv *env, jobject client) argument
198 : mDatabase(env
223 cleanup(JNIEnv *env) argument
239 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
253 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
266 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
286 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
295 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
313 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
331 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
349 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
373 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
577 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
688 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
819 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
965 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
988 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1060 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1079 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1180 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1219 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1225 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1233 android_mtp_MtpDatabase_setup(JNIEnv *env, jobject thiz) argument
1241 android_mtp_MtpDatabase_finalize(JNIEnv *env, jobject thiz) argument
1251 android_mtp_MtpPropertyGroup_format_date_time(JNIEnv *env, jobject , jlong seconds) argument
1270 register_android_mtp_MtpDatabase(JNIEnv *env) argument
[all...]
H A Dandroid_mtp_MtpDevice.cpp112 JavaArrayWriter(JNIEnv* env, jbyteArray array) : argument
113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {}
133 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) argument
135 return (MtpDevice*)env->GetLongField(javaDevice, field_context);
138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) { argument
140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle);
142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID);
144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat);
146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus);
148 env
190 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument
206 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument
217 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument
284 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument
303 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jint storageID) argument
337 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument
357 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument
377 check_uint32_arg(JNIEnv *env, const char* name, jlong value, uint32_t* out) argument
390 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jlong objectSizeLong) argument
417 android_mtp_MtpDevice_get_partial_object(JNIEnv *env, jobject thiz, jint objectID, jlong offsetLong, jlong sizeLong, jbyteArray array) argument
454 android_mtp_MtpDevice_get_partial_object_64(JNIEnv *env, jobject thiz, jint objectID, jlong offset, jlong size, jbyteArray array) argument
508 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument
526 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument
537 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument
547 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument
557 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument
575 android_mtp_MtpDevice_import_file_to_fd(JNIEnv *env, jobject thiz, jint object_id, jint fd) argument
585 android_mtp_MtpDevice_send_object( JNIEnv *env, jobject thiz, jint object_id, jlong sizeLong, jint fd) argument
600 android_mtp_MtpDevice_send_object_info(JNIEnv *env, jobject thiz, jobject info) argument
666 android_mtp_MtpDevice_submit_event_request(JNIEnv *env, jobject thiz) argument
676 android_mtp_MtpDevice_reap_event_request(JNIEnv *env, jobject thiz, jint seq) argument
697 android_mtp_MtpDevice_discard_event_request(JNIEnv *env, jobject thiz, jint seq) argument
708 android_mtp_MtpDevice_get_object_size_long( JNIEnv *env, jobject thiz, jint handle, jint format) argument
779 register_android_mtp_MtpDevice(JNIEnv *env) argument
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp56 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
943 jlong add(JNIEnv *env, jobject thiz, jint mode, argument
953 if (parse(env, jRemoteAddress, remotePort, &remote) < 0) {
958 jniThrowNullPointerException(env, "codecSpec");
961 const char *codecSpec = env->GetStringUTFChars(jCodecSpec, NULL);
968 jniThrowException(env, "java/lang/IllegalStateException",
973 ScopedUtfChars opPackageName(env, opPackageNameStr);
982 env->ReleaseStringUTFChars(jCodecSpec, codecSpec);
984 jniThrowException(env, "java/lang/IllegalStateException",
993 jniThrowException(env, "jav
1032 remove(JNIEnv *env, jobject thiz, jlong stream) argument
1043 setMode(JNIEnv *env, jobject thiz, jint mode) argument
1051 sendDtmf(JNIEnv *env, jobject thiz, jint event) argument
1068 registerAudioGroup(JNIEnv *env) argument
[all...]

Completed in 1643 milliseconds

1234567891011>>