Lines Matching refs:thiz
42 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_SetEnabled() local
43 interface_lock_exclusive(thiz); in IBassBoost_SetEnabled()
44 thiz->mEnabled = (SLboolean) enabled; in IBassBoost_SetEnabled()
48 if (NO_BASSBOOST(thiz)) { in IBassBoost_SetEnabled()
51 android::status_t status = thiz->mBassBoostEffect->setEnabled((bool) thiz->mEnabled); in IBassBoost_SetEnabled()
55 interface_unlock_exclusive(thiz); in IBassBoost_SetEnabled()
68 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_IsEnabled() local
69 interface_lock_exclusive(thiz); in IBassBoost_IsEnabled()
70 SLboolean enabled = thiz->mEnabled; in IBassBoost_IsEnabled()
75 if (NO_BASSBOOST(thiz)) { in IBassBoost_IsEnabled()
78 *pEnabled = (SLboolean) thiz->mBassBoostEffect->getEnabled(); in IBassBoost_IsEnabled()
82 interface_unlock_exclusive(thiz); in IBassBoost_IsEnabled()
96 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_SetStrength() local
97 interface_lock_exclusive(thiz); in IBassBoost_SetStrength()
99 thiz->mStrength = strength; in IBassBoost_SetStrength()
102 if (NO_BASSBOOST(thiz)) { in IBassBoost_SetStrength()
106 android_bb_setParam(thiz->mBassBoostEffect, BASSBOOST_PARAM_STRENGTH, &strength); in IBassBoost_SetStrength()
110 interface_unlock_exclusive(thiz); in IBassBoost_SetStrength()
124 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_GetRoundedStrength() local
125 interface_lock_exclusive(thiz); in IBassBoost_GetRoundedStrength()
126 SLpermille strength = thiz->mStrength;; in IBassBoost_GetRoundedStrength()
130 if (NO_BASSBOOST(thiz)) { in IBassBoost_GetRoundedStrength()
134 android_bb_getParam(thiz->mBassBoostEffect, BASSBOOST_PARAM_STRENGTH, &strength); in IBassBoost_GetRoundedStrength()
138 interface_unlock_exclusive(thiz); in IBassBoost_GetRoundedStrength()
157 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_IsStrengthSupported()
159 interface_lock_exclusive(thiz); in IBassBoost_IsStrengthSupported()
160 if (NO_BASSBOOST(thiz)) { in IBassBoost_IsStrengthSupported()
164 android_bb_getParam(thiz->mBassBoostEffect, BASSBOOST_PARAM_STRENGTH_SUPPORTED, in IBassBoost_IsStrengthSupported()
168 interface_unlock_exclusive(thiz); in IBassBoost_IsStrengthSupported()
187 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_init() local
188 thiz->mItf = &IBassBoost_Itf; in IBassBoost_init()
189 thiz->mEnabled = SL_BOOLEAN_FALSE; in IBassBoost_init()
190 thiz->mStrength = 0; in IBassBoost_init()
192 memset(&thiz->mBassBoostDescriptor, 0, sizeof(effect_descriptor_t)); in IBassBoost_init()
194 (void) new (&thiz->mBassBoostEffect) android::sp<android::AudioEffect>(); in IBassBoost_init()
201 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_deinit() local
203 thiz->mBassBoostEffect.~sp(); in IBassBoost_deinit()
210 IBassBoost *thiz = (IBassBoost *) self; in IBassBoost_Expose() local
211 if (!android_fx_initEffectDescriptor(SL_IID_BASSBOOST, &thiz->mBassBoostDescriptor)) { in IBassBoost_Expose()