Lines Matching refs:thiz

42     IVirtualizer *thiz = (IVirtualizer *) self;  in IVirtualizer_SetEnabled()  local
43 interface_lock_exclusive(thiz); in IVirtualizer_SetEnabled()
44 thiz->mEnabled = (SLboolean) enabled; in IVirtualizer_SetEnabled()
48 if (NO_VIRTUALIZER(thiz)) { in IVirtualizer_SetEnabled()
52 thiz->mVirtualizerEffect->setEnabled((bool) thiz->mEnabled); in IVirtualizer_SetEnabled()
56 interface_unlock_exclusive(thiz); in IVirtualizer_SetEnabled()
70 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_IsEnabled() local
71 interface_lock_exclusive(thiz); in IVirtualizer_IsEnabled()
73 SLboolean enabled = thiz->mEnabled; in IVirtualizer_IsEnabled()
77 if (NO_VIRTUALIZER(thiz)) { in IVirtualizer_IsEnabled()
80 *pEnabled = (SLboolean) thiz->mVirtualizerEffect->getEnabled(); in IVirtualizer_IsEnabled()
84 interface_unlock_exclusive(thiz); in IVirtualizer_IsEnabled()
98 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_SetStrength() local
99 interface_lock_exclusive(thiz); in IVirtualizer_SetStrength()
101 thiz->mStrength = strength; in IVirtualizer_SetStrength()
104 if (NO_VIRTUALIZER(thiz)) { in IVirtualizer_SetStrength()
107 android::status_t status = android_virt_setParam(thiz->mVirtualizerEffect, in IVirtualizer_SetStrength()
112 interface_unlock_exclusive(thiz); in IVirtualizer_SetStrength()
126 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_GetRoundedStrength() local
127 interface_lock_exclusive(thiz); in IVirtualizer_GetRoundedStrength()
128 SLpermille strength = thiz->mStrength;; in IVirtualizer_GetRoundedStrength()
132 if (NO_VIRTUALIZER(thiz)) { in IVirtualizer_GetRoundedStrength()
135 android::status_t status = android_virt_getParam(thiz->mVirtualizerEffect, in IVirtualizer_GetRoundedStrength()
140 interface_unlock_exclusive(thiz); in IVirtualizer_GetRoundedStrength()
159 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_IsStrengthSupported()
161 interface_lock_exclusive(thiz); in IVirtualizer_IsStrengthSupported()
162 if (NO_VIRTUALIZER(thiz)) { in IVirtualizer_IsStrengthSupported()
166 android_virt_getParam(thiz->mVirtualizerEffect, in IVirtualizer_IsStrengthSupported()
170 interface_unlock_exclusive(thiz); in IVirtualizer_IsStrengthSupported()
189 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_init() local
190 thiz->mItf = &IVirtualizer_Itf; in IVirtualizer_init()
191 thiz->mEnabled = SL_BOOLEAN_FALSE; in IVirtualizer_init()
192 thiz->mStrength = 0; in IVirtualizer_init()
194 memset(&thiz->mVirtualizerDescriptor, 0, sizeof(effect_descriptor_t)); in IVirtualizer_init()
196 (void) new (&thiz->mVirtualizerEffect) android::sp<android::AudioEffect>(); in IVirtualizer_init()
203 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_deinit() local
205 thiz->mVirtualizerEffect.~sp(); in IVirtualizer_deinit()
212 IVirtualizer *thiz = (IVirtualizer *) self; in IVirtualizer_Expose() local
213 if (!android_fx_initEffectDescriptor(SL_IID_VIRTUALIZER, &thiz->mVirtualizerDescriptor)) { in IVirtualizer_Expose()