/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument 42 ALOGV("android_media_ToneGenerator_startTone: %x", (int)thiz); 44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument 55 ALOGV("android_media_ToneGenerator_stopTone: %x", (int)thiz); 57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 68 static jint android_media_ToneGenerator_getAudioSessionId(JNIEnv *env, jobject thiz) { argument 69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 78 static void android_media_ToneGenerator_release(JNIEnv *env, jobject thiz) { argument 79 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument 115 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_hardware_SerialPort.cpp | 36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) argument 142 env->SetIntField(thiz, field_context, fd); 161 android_hardware_SerialPort_close(JNIEnv *env, jobject thiz) argument 163 int fd = env->GetIntField(thiz, field_context); 165 env->SetIntField(thiz, field_context, -1); 169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 171 int fd = env->GetIntField(thiz, field_context); 191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 193 int fd = env->GetIntField(thiz, field_context); 208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArra argument 225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 240 android_hardware_SerialPort_send_break(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_hardware_UsbRequest.cpp | 42 android_hardware_UsbRequest_init(JNIEnv *env, jobject thiz, jobject java_device, argument 64 env->SetIntField(thiz, field_context, (int)request); 69 android_hardware_UsbRequest_close(JNIEnv *env, jobject thiz) argument 72 struct usb_request* request = get_request_from_object(env, thiz); 75 env->SetIntField(thiz, field_context, 0); 80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, argument 83 struct usb_request* request = get_request_from_object(env, thiz); 112 request->client_data = (void *)env->NewGlobalRef(thiz); 118 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, argument 121 struct usb_request* request = get_request_from_object(env, thiz); 137 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument 168 android_hardware_UsbRequest_dequeue_direct(JNIEnv *env, jobject thiz) argument 181 android_hardware_UsbRequest_cancel(JNIEnv *env, jobject thiz) argument [all...] |
/frameworks/wilhelm/src/ |
H A D | handler_bodies.c | 25 unsigned handler_AudioPlayer_gain(IObject *thiz) argument 27 CAudioPlayer *ap = (CAudioPlayer *) thiz; 34 unsigned handler_OutputMix_gain(IObject *thiz) argument 43 unsigned handler_MidiPlayer_gain(IObject *thiz) argument 51 unsigned handler_MediaPlayer_gain(IObject *thiz) argument 53 CMediaPlayer *mp = (CMediaPlayer *) thiz; 60 unsigned handler_AudioPlayer_position(IObject *thiz) argument 63 ap = (CAudioPlayer *) thiz; 71 unsigned handler_MidiPlayer_position(IObject *thiz) argument 79 unsigned handler_AudioPlayer_transport(IObject *thiz) argument 88 handler_AudioPlayer_play_state(IObject *thiz) argument 97 handler_AudioRecorder_transport(IObject *thiz) argument 106 handler_MediaPlayer_transport(IObject *thiz) argument 115 handler_MediaPlayer_play_state(IObject *thiz) argument 127 handler_AudioPlayer_bq_enqueue(IObject *thiz) argument 138 handler_AudioPlayer_abq_enqueue(IObject *thiz) argument 149 handler_MediaPlayer_abq_enqueue(IObject *thiz) argument 159 handler_MediaPlayer_position(IObject *thiz) argument 170 handler_AudioPlayer_gain(IObject *thiz) argument [all...] |
H A D | entry.c | 90 CEngine *thiz = theOneTrueEngine; local 91 if (NULL != thiz) { 101 object_lock_exclusive(&thiz->mObject); 105 SLuint8 *interfaceStateP = thiz->mObject.mInterfaceStates; 116 if ((NULL == expose) || (*expose)((char *) thiz + x->mOffset)) { 129 object_unlock_exclusive(&thiz->mObject); 131 *pEngine = &thiz->mObject.mItf; 143 thiz = (CEngine *) construct(pCEngine_class, exposedMask, NULL); 144 if (NULL == thiz) { 151 memset(&thiz [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | I3DDoppler.c | 29 I3DDoppler *thiz = (I3DDoppler *) self; local 31 interface_lock_exclusive(thiz); 32 thiz->mVelocityCartesian = velocityCartesian; 33 thiz->mVelocityActive = CARTESIAN_SET_SPHERICAL_UNKNOWN; 34 interface_unlock_exclusive(thiz); 47 I3DDoppler *thiz = (I3DDoppler *) self; local 48 interface_lock_exclusive(thiz); 49 thiz->mVelocitySpherical.mAzimuth = azimuth; 50 thiz->mVelocitySpherical.mElevation = elevation; 51 thiz 67 I3DDoppler *thiz = (I3DDoppler *) self; local 114 I3DDoppler *thiz = (I3DDoppler *) self; local 131 I3DDoppler *thiz = (I3DDoppler *) self; local 153 I3DDoppler *thiz = (I3DDoppler *) self; local [all...] |
H A D | I3DGrouping.c | 37 I3DGrouping *thiz = (I3DGrouping *) self; local 38 IObject *thisObject = InterfaceToIObject(thiz); 44 interface_lock_exclusive(thiz); 45 C3DGroup *oldGroup = thiz->mGroup; 66 thiz->mGroup = newGroup; 68 interface_unlock_exclusive(thiz); 82 I3DGrouping *thiz = (I3DGrouping *) self; local 83 interface_lock_shared(thiz); 84 C3DGroup *group = thiz->mGroup; 86 interface_unlock_shared(thiz); 101 I3DGrouping *thiz = (I3DGrouping *) self; local 108 I3DGrouping *thiz = (I3DGrouping *) self; local [all...] |
H A D | IAndroidEffect.cpp | 28 IAndroidEffect *thiz = (IAndroidEffect *) self; local 29 if (SL_OBJECTID_AUDIOPLAYER == IObjectToObjectID(thiz->mThis)) { 30 CAudioPlayer *ap = (CAudioPlayer *)thiz->mThis; 32 result = android_genericFx_createEffect(thiz, effectImplementationId, ap->mSessionId); 36 } else if (SL_OBJECTID_OUTPUTMIX == IObjectToObjectID(thiz->mThis)) { 37 result = android_genericFx_createEffect(thiz, effectImplementationId, 54 IAndroidEffect *thiz = (IAndroidEffect *) self; local 55 result = android_genericFx_releaseEffect(thiz, effectImplementationId); 66 IAndroidEffect *thiz = (IAndroidEffect *) self; local 67 result = android_genericFx_setEnabled(thiz, effectImplementationI 78 IAndroidEffect *thiz = (IAndroidEffect *) self; local 91 IAndroidEffect *thiz = (IAndroidEffect *) self; local 109 IAndroidEffect *thiz = (IAndroidEffect *) self; local 116 IAndroidEffect *thiz = (IAndroidEffect *) self; local [all...] |
H A D | IAndroidEffectCapabilities.c | 30 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 31 interface_lock_shared(thiz); 33 *pNumSupportedAudioEffects = thiz->mNumFx; 36 interface_unlock_shared(thiz); 49 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 50 if (index > thiz->mNumFx) { 53 interface_lock_shared(thiz); 55 *pEffectType = (SLInterfaceID) &thiz->mFxDescriptors[index].type; 58 *pEffectImplementation = (SLInterfaceID) &thiz->mFxDescriptors[index].uuid; 61 int len = strlen(thiz 81 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 91 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 133 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local [all...] |
H A D | IMIDITime.c | 29 IMIDITime *thiz = (IMIDITime *) self; local 30 SLuint32 duration = thiz->mDuration; 43 IMIDITime *thiz = (IMIDITime *) self; local 45 if (!(position < thiz->mDuration)) { 48 interface_lock_poke(thiz); 49 thiz->mPosition = position; 50 interface_unlock_poke(thiz); 65 IMIDITime *thiz = (IMIDITime *) self; local 66 interface_lock_peek(thiz); 67 SLuint32 position = thiz 81 IMIDITime *thiz = (IMIDITime *) self; local 106 IMIDITime *thiz = (IMIDITime *) self; local 130 IMIDITime *thiz = (IMIDITime *) self; local [all...] |
H A D | IMetadataTraversal.c | 30 IMetadataTraversal *thiz = (IMetadataTraversal *) self; local 31 interface_lock_poke(thiz); 32 thiz->mMode = mode; 33 interface_unlock_poke(thiz); 53 IMetadataTraversal *thiz = (IMetadataTraversal *) self; local 54 interface_lock_peek(thiz); 55 SLuint32 count = thiz->mCount; 56 interface_unlock_peek(thiz); 73 IMetadataTraversal *thiz = (IMetadataTraversal *) self; local 74 interface_lock_peek(thiz); 104 IMetadataTraversal *thiz = (IMetadataTraversal *) self; local 122 IMetadataTraversal *thiz = (IMetadataTraversal *) self; local [all...] |
H A D | ISeek.c | 34 ISeek *thiz = (ISeek *) self; local 35 interface_lock_exclusive(thiz); 36 thiz->mPos = pos; 38 interface_unlock_exclusive_attributes(thiz, ATTR_POSITION); 59 ISeek *thiz = (ISeek *) self; local 60 interface_lock_exclusive(thiz); 65 switch (IObjectToObjectID((thiz)->mThis)) { 67 CAudioPlayer *ap = InterfaceToCAudioPlayer(thiz); 76 CMediaPlayer *mp = InterfaceToCMediaPlayer(thiz); 89 thiz 116 ISeek *thiz = (ISeek *) self; local 140 ISeek *thiz = (ISeek *) self; local [all...] |
H A D | IVibra.c | 26 IVibra *thiz = (IVibra *) self; local 27 interface_lock_poke(thiz); 28 thiz->mVibrate = SL_BOOLEAN_FALSE != vibrate; // normalize 29 interface_unlock_poke(thiz); 43 IVibra *thiz = (IVibra *) self; local 44 interface_lock_peek(thiz); 45 SLboolean vibrate = thiz->mVibrate; 46 interface_unlock_peek(thiz); 65 IVibra *thiz = (IVibra *) self; local 66 interface_lock_poke(thiz); 83 IVibra *thiz = (IVibra *) self; local 105 IVibra *thiz = (IVibra *) self; local 127 IVibra *thiz = (IVibra *) self; local 151 IVibra *thiz = (IVibra *) self; local [all...] |
H A D | IAndroidEffectSend.c | 32 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 33 interface_lock_exclusive(thiz); 35 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? 36 (CAudioPlayer *) thiz->mThis : NULL; 49 thiz->mSendLevel = initialLevel; 50 thiz->mEnabled = enable; 53 interface_unlock_exclusive(thiz); 68 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 69 interface_lock_shared(thiz); 71 SLboolean enable = thiz 91 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 124 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 152 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 191 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 232 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local [all...] |
H A D | IBassBoost.c | 42 IBassBoost *thiz = (IBassBoost *) self; local 43 interface_lock_exclusive(thiz); 44 thiz->mEnabled = (SLboolean) enabled; 48 if (NO_BASSBOOST(thiz)) { 51 android::status_t status = thiz->mBassBoostEffect->setEnabled((bool) thiz->mEnabled); 55 interface_unlock_exclusive(thiz); 68 IBassBoost *thiz = (IBassBoost *) self; local 69 interface_lock_exclusive(thiz); 70 SLboolean enabled = thiz 96 IBassBoost *thiz = (IBassBoost *) self; local 124 IBassBoost *thiz = (IBassBoost *) self; local 187 IBassBoost *thiz = (IBassBoost *) self; local 201 IBassBoost *thiz = (IBassBoost *) self; local 210 IBassBoost *thiz = (IBassBoost *) self; local [all...] |
H A D | IBufferQueue.c | 26 static SLuint32 getAssociatedState(IBufferQueue *thiz) argument 29 switch (InterfaceToObjectID(thiz)) { 31 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState; 34 state = ((CAudioRecorder *) thiz->mThis)->mRecord.mState; 56 IBufferQueue *thiz = (IBufferQueue *) self; local 57 interface_lock_exclusive(thiz); 58 BufferHeader *oldRear = thiz->mRear, *newRear; 59 if ((newRear = oldRear + 1) == &thiz->mArray[thiz->mNumBuffers + 1]) { 60 newRear = thiz 85 IBufferQueue *thiz = (IBufferQueue *) self; local 127 IBufferQueue *thiz = (IBufferQueue *) self; local 150 IBufferQueue *thiz = (IBufferQueue *) self; local 175 IBufferQueue *thiz = (IBufferQueue *) self; local 204 IBufferQueue *thiz = (IBufferQueue *) self; local [all...] |
H A D | IMIDIMuteSolo.c | 30 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 32 interface_lock_exclusive(thiz); 34 thiz->mChannelMuteMask |= mask; 36 thiz->mChannelMuteMask &= ~mask; 37 interface_unlock_exclusive(thiz); 53 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 54 interface_lock_peek(thiz); 55 SLuint16 mask = thiz->mChannelMuteMask; 56 interface_unlock_peek(thiz); 73 IMIDIMuteSolo *thiz local 96 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 115 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 130 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 153 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 173 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 195 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 225 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local [all...] |
H A D | IMetadataExtraction.c | 29 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 30 if (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) { 32 result = android_audioPlayer_metadata_getItemCount((CAudioPlayer *)thiz->mThis, 54 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 55 if (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) { 57 result = android_audioPlayer_metadata_getKeySize((CAudioPlayer *)thiz->mThis, 79 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 80 if (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) { 82 result = android_audioPlayer_metadata_getKey((CAudioPlayer *)thiz->mThis, 104 IMetadataExtraction *thiz local 129 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 156 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 176 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local 196 IMetadataExtraction *thiz = (IMetadataExtraction *) self; local [all...] |
H A D | IMuteSolo.c | 26 IMuteSolo *thiz = (IMuteSolo *) self; local 27 IObject *thisObject = thiz->mThis; 32 interface_lock_exclusive(thiz); 35 interface_unlock_exclusive(thiz); 38 interface_unlock_exclusive(thiz); 48 interface_unlock_exclusive_attributes(thiz, oldMuteMask != ap->mMuteMask ? ATTR_GAIN : 65 IMuteSolo *thiz = (IMuteSolo *) self; local 66 IObject *thisObject = thiz->mThis; 72 interface_lock_shared(thiz); 85 interface_unlock_shared(thiz); 98 IMuteSolo *thiz = (IMuteSolo *) self; local 137 IMuteSolo *thiz = (IMuteSolo *) self; local 173 IMuteSolo *thiz = (IMuteSolo *) self; local 202 IMuteSolo *thiz = (IMuteSolo *) self; local [all...] |
H A D | IPlaybackRate.c | 26 IPlaybackRate *thiz = (IPlaybackRate *) self; local 28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { 31 interface_lock_exclusive(thiz); 33 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? 34 (CAudioPlayer *) thiz->mThis : NULL; 36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); 44 thiz->mRate = rate; 46 interface_unlock_exclusive(thiz); 60 IPlaybackRate *thiz local 76 IPlaybackRate *thiz = (IPlaybackRate *) self; local 115 IPlaybackRate *thiz = (IPlaybackRate *) self; local 135 IPlaybackRate *thiz = (IPlaybackRate *) self; local 162 IPlaybackRate *thiz = (IPlaybackRate *) self; local 190 IPlaybackRate *thiz = (IPlaybackRate *) self; local [all...] |
H A D | IPrefetchStatus.c | 29 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 30 interface_lock_shared(thiz); 31 SLuint32 status = thiz->mStatus; 32 interface_unlock_shared(thiz); 48 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 49 interface_lock_shared(thiz); 50 SLpermille level = thiz->mLevel; 51 interface_unlock_shared(thiz); 65 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 66 interface_lock_exclusive(thiz); 84 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 104 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 123 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 147 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local 171 IPrefetchStatus *thiz = (IPrefetchStatus *) self; local [all...] |
H A D | IVirtualizer.c | 42 IVirtualizer *thiz = (IVirtualizer *) self; local 43 interface_lock_exclusive(thiz); 44 thiz->mEnabled = (SLboolean) enabled; 48 if (NO_VIRTUALIZER(thiz)) { 52 thiz->mVirtualizerEffect->setEnabled((bool) thiz->mEnabled); 56 interface_unlock_exclusive(thiz); 70 IVirtualizer *thiz = (IVirtualizer *) self; local 71 interface_lock_exclusive(thiz); 72 SLboolean enabled = thiz 98 IVirtualizer *thiz = (IVirtualizer *) self; local 126 IVirtualizer *thiz = (IVirtualizer *) self; local 189 IVirtualizer *thiz = (IVirtualizer *) self; local 203 IVirtualizer *thiz = (IVirtualizer *) self; local 212 IVirtualizer *thiz = (IVirtualizer *) self; local [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_buffer.cpp | 53 jboolean Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) { argument 55 return ToJBool(AttachDataToJBuffer(env, thiz, data, size)); 59 jobject thiz, 62 char* data = GetJBufferData(env, thiz, NULL); 69 jobject thiz, 73 char* source_data = GetJBufferData(env, thiz, &size); 58 Java_android_filterfw_core_NativeBuffer_deallocate(JNIEnv* env, jobject thiz, jboolean owns_data) argument 68 Java_android_filterfw_core_NativeBuffer_nativeCopyTo(JNIEnv* env, jobject thiz, jobject new_buffer) argument
|
H A D | jni_vertex_frame.cpp | 25 jobject thiz, 27 return ToJBool(WrapObjectInJava(new VertexFrame(size), env, thiz, true)); 30 jboolean Java_android_filterfw_core_VertexFrame_nativeDeallocate(JNIEnv* env, jobject thiz) { argument 31 return ToJBool(DeleteNativeObject<VertexFrame>(env, thiz)); 35 jobject thiz, 38 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); 53 jobject thiz, 55 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); 70 jobject thiz, 74 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz); 24 Java_android_filterfw_core_VertexFrame_nativeAllocate(JNIEnv* env, jobject thiz, jint size) argument 34 Java_android_filterfw_core_VertexFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument 52 Java_android_filterfw_core_VertexFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument 69 Java_android_filterfw_core_VertexFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument 87 Java_android_filterfw_core_VertexFrame_getNativeVboId(JNIEnv* env, jobject thiz) argument [all...] |
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/ |
H A D | jni_multiclass_pa.cpp | 37 jobject thiz, 49 jobject thiz, 57 jobject thiz, 90 jobject thiz, 36 Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* env, jobject thiz, jint num_classes, jint num_dims, jfloat aggressiveness) argument 48 Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* env, jobject thiz, jint paPtr) argument 56 Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env, jobject thiz, jintArray index_array, jfloatArray value_array, jint target, jint paPtr) argument 89 Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env, jobject thiz, jintArray index_array, jfloatArray value_array, jint paPtr) argument
|