Lines Matching refs:thiz
89 T get(JNIEnv *env, jobject thiz) { in get() argument
92 auto ptr = reinterpret_cast<T*>(env->GetLongField(thiz, mFieldId)); in get()
108 T set(JNIEnv *env, jobject thiz, const T& newObject) { in set() argument
111 auto ptr = reinterpret_cast<T*>(env->GetLongField(thiz, mFieldId)); in set()
115 env->SetLongField(thiz, mFieldId, (jlong)0); in set()
124 env->SetLongField(thiz, mFieldId, (jlong)new T(newObject)); in set()
174 inline auto getSoundPool(JNIEnv *env, jobject thiz) { in getSoundPool() argument
175 return getSoundPoolManager().get(env, thiz); in getSoundPool()
181 JNIEnv *env, jobject thiz, const std::shared_ptr<SoundPool>& soundPool) { in setSoundPool() argument
182 return getSoundPoolManager().set(env, thiz, soundPool); in setSoundPool()
346 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, in android_media_SoundPool_load_FD() argument
350 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_load_FD()
357 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) { in android_media_SoundPool_unload() argument
359 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_unload()
365 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, in android_media_SoundPool_play() argument
370 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_play()
383 android_media_SoundPool_pause(JNIEnv *env, jobject thiz, jint channelID) in android_media_SoundPool_pause() argument
386 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_pause()
392 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) in android_media_SoundPool_resume() argument
395 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_resume()
401 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) in android_media_SoundPool_autoPause() argument
404 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_autoPause()
410 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) in android_media_SoundPool_autoResume() argument
413 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_autoResume()
419 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) in android_media_SoundPool_stop() argument
422 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_stop()
428 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, in android_media_SoundPool_setVolume() argument
432 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_setVolume()
438 android_media_SoundPool_mute(JNIEnv *env, jobject thiz, jboolean muting) in android_media_SoundPool_mute() argument
441 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_mute()
447 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, in android_media_SoundPool_setPriority() argument
451 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_setPriority()
457 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, in android_media_SoundPool_setLoop() argument
461 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_setLoop()
467 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, in android_media_SoundPool_setRate() argument
471 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_setRate()
503 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, in android_media_SoundPool_native_setup() argument
534 auto oldSoundPool = setSoundPool(env, thiz, soundPool); in android_media_SoundPool_native_setup()
537 soundPool.get(), make_shared_weakglobalref_from_localref(env, thiz)); in android_media_SoundPool_native_setup()
545 android_media_SoundPool_release(JNIEnv *env, jobject thiz) in android_media_SoundPool_release() argument
551 auto oldSoundPool = setSoundPool(env, thiz, nullptr); in android_media_SoundPool_release()