Lines Matching refs:thiz

26     IPlaybackRate *thiz = (IPlaybackRate *) self;  in IPlaybackRate_SetRate()  local
28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_SetRate()
31 interface_lock_exclusive(thiz); in IPlaybackRate_SetRate()
33 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IPlaybackRate_SetRate()
34 (CAudioPlayer *) thiz->mThis : NULL; in IPlaybackRate_SetRate()
36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); in IPlaybackRate_SetRate()
44 thiz->mRate = rate; in IPlaybackRate_SetRate()
46 interface_unlock_exclusive(thiz); in IPlaybackRate_SetRate()
60 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_GetRate() local
61 interface_lock_shared(thiz); in IPlaybackRate_GetRate()
62 SLpermille rate = thiz->mRate; in IPlaybackRate_GetRate()
63 interface_unlock_shared(thiz); in IPlaybackRate_GetRate()
76 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_SetPropertyConstraints() local
81 } else if (!(thiz->mCapabilities & constraints)) { in IPlaybackRate_SetPropertyConstraints()
84 interface_lock_exclusive(thiz); in IPlaybackRate_SetPropertyConstraints()
87 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? in IPlaybackRate_SetPropertyConstraints()
88 (CAudioPlayer *) thiz->mThis : NULL; in IPlaybackRate_SetPropertyConstraints()
90 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, thiz->mRate, in IPlaybackRate_SetPropertyConstraints()
99 thiz->mProperties = constraints; in IPlaybackRate_SetPropertyConstraints()
101 interface_unlock_exclusive(thiz); in IPlaybackRate_SetPropertyConstraints()
115 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_GetProperties() local
116 interface_lock_shared(thiz); in IPlaybackRate_GetProperties()
117 SLuint32 properties = thiz->mProperties; in IPlaybackRate_GetProperties()
118 interface_unlock_shared(thiz); in IPlaybackRate_GetProperties()
135 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_GetCapabilitiesOfRate() local
138 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_GetCapabilitiesOfRate()
142 capabilities = thiz->mCapabilities; in IPlaybackRate_GetCapabilitiesOfRate()
162 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_GetRateRange() local
164 SLpermille minRate = thiz->mMinRate; in IPlaybackRate_GetRateRange()
165 SLpermille maxRate = thiz->mMaxRate; in IPlaybackRate_GetRateRange()
166 SLpermille stepSize = thiz->mStepSize; in IPlaybackRate_GetRateRange()
167 SLuint32 capabilities = thiz->mCapabilities; in IPlaybackRate_GetRateRange()
190 IPlaybackRate *thiz = (IPlaybackRate *) self; in IPlaybackRate_init() local
191 thiz->mItf = &IPlaybackRate_Itf; in IPlaybackRate_init()
192 thiz->mProperties = SL_RATEPROP_NOPITCHCORAUDIO; in IPlaybackRate_init()
193 thiz->mRate = 1000; in IPlaybackRate_init()
197 thiz->mMinRate = 1000; in IPlaybackRate_init()
198 thiz->mMaxRate = 1000; in IPlaybackRate_init()
199 thiz->mStepSize = 0; in IPlaybackRate_init()
200 thiz->mCapabilities = SL_RATEPROP_NOPITCHCORAUDIO; in IPlaybackRate_init()