Home
last modified time | relevance | path

Searched refs:NewObject (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/core/jni/
Dandroid_media_MicrophoneInfo.cpp66 jGeometricLocation = env->NewObject(gMicrophoneInfoCoordinateClass, in convertMicrophoneInfoFromNative()
71 jOrientation = env->NewObject(gMicrophoneInfoCoordinateClass, in convertMicrophoneInfoFromNative()
83 jFrequencyResponses = env->NewObject(gArrayListClass, gArrayListCstor); in convertMicrophoneInfoFromNative()
85 jobject jFrequency = env->NewObject(gFloatClass, gFloatCstor, in convertMicrophoneInfoFromNative()
87 jobject jResponse = env->NewObject(gFloatClass, gFloatCstor, in convertMicrophoneInfoFromNative()
89 jobject jFrequencyResponse = env->NewObject(gPairClass, gPairCstor, jFrequency, jResponse); in convertMicrophoneInfoFromNative()
100 jChannelMappings = env->NewObject(gArrayListClass, gArrayListCstor); in convertMicrophoneInfoFromNative()
104 jobject jChannelIndex = env->NewObject(gIntegerClass, gIntegerCstor, i); in convertMicrophoneInfoFromNative()
105 jobject jChannelMappingType = env->NewObject(gIntegerClass, gIntegerCstor, in convertMicrophoneInfoFromNative()
107 jobject jChannelMapping = env->NewObject(gPairClass, gPairCstor, in convertMicrophoneInfoFromNative()
[all …]
Dandroid_os_HwBlob.h37 static jobject NewObject(JNIEnv *env, const void *ptr, size_t handle);
38 static jobject NewObject(JNIEnv *env, size_t size);
Dandroid_os_HwBinder.cpp158 ScopedLocalRef<jobject> requestObj(env, JHwParcel::NewObject(env)); in onTransact()
164 replyObj.reset(JHwParcel::NewObject(env)); in onTransact()
334 return JHwRemoteBinder::NewObject(env, service); in JHwBinder_native_getService()
Dandroid_os_HwBlob.cpp221 jobject JHwBlob::NewObject(JNIEnv *env, const void *ptr, size_t handle) { in NewObject() function in android::JHwBlob
222 jobject obj = JHwBlob::NewObject(env, 0 /* size */); in NewObject()
229 jobject JHwBlob::NewObject(JNIEnv *env, size_t size) { in NewObject() function in android::JHwBlob
238 return env->NewObject(clazz.get(), constructID, size); in NewObject()
444 ScopedLocalRef<jobject> subBlobObj(env, JHwBlob::NewObject(env, size)); in JHwBlob_native_putString()
Dandroid_hardware_SoundTrigger.cpp224 jAudioFormat = env->NewObject(gAudioFormatClass, in onRecognitionEvent()
250 jobject jConfidenceLevel = env->NewObject(gConfidenceLevelClass, in onRecognitionEvent()
258 jobject jNewExtra = env->NewObject(gKeyphraseRecognitionExtraClass, in onRecognitionEvent()
272 jEvent = env->NewObject(gKeyphraseRecognitionEventClass, gKeyphraseRecognitionEventCstor, in onRecognitionEvent()
279 jEvent = env->NewObject(gGenericRecognitionEventClass, gGenericRecognitionEventCstor, in onRecognitionEvent()
285 jEvent = env->NewObject(gRecognitionEventClass, gRecognitionEventCstor, in onRecognitionEvent()
322 jEvent = env->NewObject(gSoundModelEventClass, gSoundModelEventCstor, in onSoundModelEvent()
431 jobject newModuleDesc = env->NewObject(gModulePropertiesClass, gModulePropertiesCstor, in android_hardware_SoundTrigger_listModules()
Dandroid_os_HwParcel.h38 static jobject NewObject(JNIEnv *env);
Dandroid_media_AudioSystem.cpp759 jobject jHandle = env->NewObject(gAudioHandleClass, gAudioHandleCstor, in convertAudioPortConfigFromNative()
772 jAudioPort = env->NewObject(gAudioPortClass, gAudioPortCstor, in convertAudioPortConfigFromNative()
802 jAudioGain = env->NewObject(gAudioGainClass, gAudioGainCstor, in convertAudioPortConfigFromNative()
858 jAudioGainConfig = env->NewObject(gAudioGainConfigClass, in convertAudioPortConfigFromNative()
902 *jAudioPortConfig = env->NewObject(clazz, methodID, in convertAudioPortConfigFromNative()
1079 jobject jGain = env->NewObject(gAudioGainClass, gAudioGainCstor, in convertAudioPortFromNative()
1097 jHandle = env->NewObject(gAudioHandleClass, gAudioHandleCstor, in convertAudioPortFromNative()
1109 *jAudioPort = env->NewObject(gAudioDevicePortClass, gAudioDevicePortCstor, in convertAudioPortFromNative()
1117 *jAudioPort = env->NewObject(gAudioMixPortClass, gAudioMixPortCstor, in convertAudioPortFromNative()
1342 jPatchHandle = env->NewObject(gAudioHandleClass, gAudioHandleCstor, in android_media_AudioSystem_createAudioPatch()
[all …]
Dandroid_os_HwRemoteBinder.h58 static jobject NewObject(JNIEnv *env, const sp<hardware::IBinder> &binder);
Dandroid_media_MediaMetricsJNI.cpp39 mybundle = env->NewObject(clazzBundle, constructID); in writeMetricsToBundle()
Dandroid_os_SharedMemory.cpp45 jobject exception = env->NewObject(JniConstants::errnoExceptionClass, ctor, in throwErrnoException()
Dandroid_os_HwParcel.cpp197 jobject JHwParcel::NewObject(JNIEnv *env) { in NewObject() function in android::JHwParcel
203 return env->NewObject(clazz.get(), constructID, false /* allocate */); in NewObject()
802 return JHwRemoteBinder::NewObject(env, binder); in JHwParcel_native_readStrongBinder()
825 return JHwBlob::NewObject(env, ptr, handle); in JHwParcel_native_readBuffer()
854 return JHwBlob::NewObject(env, ptr, childHandle); in JHwParcel_native_readEmbeddedBuffer()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGL14cHeader.cpp86 …jobject localeglNoContextObject = _env->NewObject(eglcontextClass, eglcontextConstructor, reinterp… in nativeClassInit()
88 …jobject localeglNoDisplayObject = _env->NewObject(egldisplayClass, egldisplayConstructor, reinterp… in nativeClassInit()
90 …jobject localeglNoSurfaceObject = _env->NewObject(eglsurfaceClass, eglsurfaceConstructor, reinterp… in nativeClassInit()
133 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle)); in toEGLHandle()
/frameworks/base/media/jni/
Dandroid_media_AudioPresentation.h97 jobject hashMap = env->NewObject(hashMapClazz.get(), hashMapConstructID); in ConvertMessageToMap()
131 jobject list = env->NewObject(fields.listclazz, fields.listConstructId); in asJobject()
147 jobject jValueObj = env->NewObject(fields.clazz, fields.constructID, in asJobject()
Dandroid_media_MediaProfiles.cpp109 jobject cap = env->NewObject(videoEncoderCapClazz, in android_media_MediaProfiles_native_get_video_encoder_cap()
157 jobject cap = env->NewObject(audioEncoderCapClazz, in android_media_MediaProfiles_native_get_audio_encoder_cap()
210 return env->NewObject(camcorderProfileClazz, in android_media_MediaProfiles_native_get_camcorder_profile()
Dandroid_media_BufferingParams.h68 jobject params = env->NewObject(fields.clazz, fields.constructID); in asJobject()
/frameworks/base/services/core/jni/BroadcastRadio/
Dconvert.cpp230 auto runtimeExc = make_javaref(env, env->NewObject(gjni.RuntimeException.clazz, in ThrowParcelableRuntimeException()
232 auto parcelableExc = make_javaref(env, env->NewObject(gjni.ParcelableException.clazz, in ThrowParcelableRuntimeException()
301 auto jInfo = make_javaref(env, env->NewObject(gjni.HashMap.clazz, gjni.HashMap.cstor)); in VendorInfoFromHal()
395 return make_javaref(env, env->NewObject(gjni.ModuleProperties.clazz, in ModulePropertiesFromHal()
426 return make_javaref(env, env->NewObject( in BandDescriptorFromHal()
432 return make_javaref(env, env->NewObject( in BandDescriptorFromHal()
448 return make_javaref(env, env->NewObject( in BandConfigFromHal()
451 return make_javaref(env, env->NewObject( in BandConfigFromHal()
505 auto jMetadata = make_javaref(env, env->NewObject( in MetadataFromHal()
552 return make_javaref(env, env->NewObject(gjni.ProgramSelector.Identifier.clazz, in ProgramIdentifierFromHal()
[all …]
/frameworks/av/media/libstagefright/http/
DHTTPHelper.cpp49 env, env->NewObject(clazz.get(), constructID)); in CreateHTTPServiceInCurrentJavaContext()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp265 constraints = env->NewObject(localRef, ContentValues_constructor); in android_drm_DrmManagerClient_getConstraintsFromContent()
315 metadata = env->NewObject(localRef, constructorId); in android_drm_DrmManagerClient_getMetadataFromContent()
351 jobject drmSupportInfo = env->NewObject(clazz, env->GetMethodID(clazz, "<init>", "()V")); in android_drm_DrmManagerClient_getAllSupportInfo()
490 jobject processedData = env->NewObject(clazz, constructorId, dataArray, in android_drm_DrmManagerClient_processDrmInfo()
498 drmInfoStatus = env->NewObject(localRef, constructorId, statusCode, infoType, in android_drm_DrmManagerClient_processDrmInfo()
555 = env->NewObject(localRef, in android_drm_DrmManagerClient_acquireDrmInfo()
663 = env->NewObject(localRef, constructorId, in GetConvertedStatus()
/frameworks/av/media/libmedia/include/media/
DJAudioFormat.h35 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in createAudioFormatObj()
DJAudioAttributes.h34 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in createAudioAttributesObj()
/frameworks/base/services/core/jni/
Dcom_android_server_SerialService.cpp53 return env->NewObject(gParcelFileDescriptorOffsets.mClass, in android_server_SerialService_open()
/frameworks/base/media/mca/filterfw/jni/
Djni_util.cpp167 result = env->NewObject(clazz, constructorID, GetIntValue(value)); in ToJObject()
171 result = env->NewObject(clazz, constructorID, GetFloatValue(value)); in ToJObject()
/frameworks/av/media/libmediaplayer2/
DJAudioTrack.cpp65 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in JAudioTrack()
196 jobject jPlaybackParamsObj = env->NewObject(jPlaybackParamsCls, jPlaybackParamsCtor); in setPlaybackRate()
575 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in createVolumeShaperConfigurationObj()
602 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in createVolumeShaperOperationObj()
653 jobject jCallbackObj = env->NewObject(jCallbackCls, jCallbackCtor, this, cbf, user); in createStreamEventCallback()
/frameworks/base/core/jni/android/graphics/
DImageDecoder.cpp71 jthrowable exception = (jthrowable) env->NewObject(gDecodeException_class, in throw_exception()
120 return env->NewObject(gImageDecoder_class, gImageDecoder_constructorMethodID, in native_create()
187 jobject jcanvas = env->NewObject(gCanvas_class, gCanvas_constructorMethodID, in postProcessAndRelease()
480 return env->NewObject(gSize_class, gSize_constructorMethodID, size.width(), size.height()); in ImageDecoder_nGetSampledSize()
/frameworks/wilhelm/src/itf/
DIAndroidConfiguration.cpp162 j_env->NewObject(clsAudioTrackRoutingProxy, in AllocPlayerRoutingProxy()
237 j_env->NewObject(clsAudioRecordRoutingProxy, in AllocRecorderRoutingProxy()

123