Searched defs:state (Results 26 - 50 of 533) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.cpp266 // data has been copied to the buffer, and the buffer queue state has been updated
476 void android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state) { argument
477 SL_LOGV("android_audioRecorder_setRecordState(%p, %u) entering", ar, state);
483 switch (state) {
/frameworks/wilhelm/src/desktop/
H A DSndFile.c22 /** \brief Called by SndFile.c:audioPlayerTransportUpdate after a play state change or seek,
30 SLuint32 state = thisAP->mPlay.mState; local
32 if (SL_PLAYSTATE_PLAYING != state) {
186 /** \brief Called with mutex unlocked for marker and position updates, and play state change */
195 // FIXME a made-up number that should depend on player state and prefetch status
227 // FIXME only on seek or play state change (STOPPED, PAUSED) -> PLAYING
/frameworks/wilhelm/src/itf/
H A DIAndroidBufferQueue.c26 * Determine the state of the audio player or media player associated with a buffer queue.
32 SLuint32 state; local
35 state = ((CMediaPlayer *) thiz->mThis)->mPlay.mState;
38 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState;
43 state = SL_PLAYSTATE_STOPPED;
46 return state;
244 // verify pre-condition that media object is in the SL_PLAYSTATE_STOPPED state
272 // reset the queue state
383 // set enqueue attribute if state is PLAYING and the first buffer is enqueued
H A DIBufferQueue.c22 /** Determine the state of the audio player or audio recorder associated with a buffer queue.
28 SLuint32 state; local
31 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState;
34 state = ((CAudioRecorder *) thiz->mThis)->mRecord.mState;
39 state = SL_PLAYSTATE_STOPPED;
42 return state;
71 // set enqueue attribute if state is PLAYING and the first buffer is enqueued
129 SLBufferQueueState state; local
132 state.count = thiz->mState.count;
133 state
[all...]
H A DIDynamicInterfaceManagement.c41 // check interface state
43 SLuint8 state = *interfaceStateP; local
44 switch (state) {
48 // change state to indicate we are now adding the interface
64 // re-lock mutex to update state
69 state = INTERFACE_ADDED;
71 state = INTERFACE_INITIALIZED;
78 state = INTERFACE_INITIALIZED;
88 // mutex is locked, update state
89 *interfaceStateP = state;
299 SLuint8 state = *interfaceStateP; local
[all...]
H A DIEffectSend.c70 SLuint32 state = outputMix->mObject.mInterfaceStates[index]; local
73 switch (state) {
86 SL_LOGE("EffectSend invalid interface state %u", state);
H A DIObject.c35 SLuint8 state; local
37 // check object state
39 state = thiz->mState;
40 switch (state) {
49 state = SL_RESULT_SUCCESS == result ? SL_OBJECT_STATE_REALIZED :
53 state = SL_OBJECT_STATE_REALIZED;
59 state = SL_OBJECT_STATE_UNREALIZED;
69 // mutex is locked, update state
70 thiz->mState = state;
79 (*callback)(&thiz->mItf, context, SL_OBJECT_EVENT_ASYNC_TERMINATION, result, state, NUL
89 SLuint8 state; local
178 SLuint8 state; local
233 SLuint8 state; local
293 SLuint8 state = thiz->mState; local
589 SLuint32 state = *--interfaceStateP; local
[all...]
H A DIPlay.c22 static SLresult IPlay_SetPlayState(SLPlayItf self, SLuint32 state) argument
26 switch (state) {
40 if (state != oldState) {
44 // We are comparing the old state (left) vs. new state (right).
45 // Note that the old state is 3 bits wide, but new state is only 2 bits wide.
46 // That is why the old state is on the left and new state is on the right.
47 switch ((oldState << 2) | state) {
126 SLuint32 state = thiz->mState; local
[all...]
H A DIRecord.c22 static SLresult IRecord_SetRecordState(SLRecordItf self, SLuint32 state) argument
26 switch (state) {
33 thiz->mState = state;
35 android_audioRecorder_setRecordState(InterfaceToCAudioRecorder(thiz), state); local
59 SLuint32 state = thiz->mState; local
61 *pState = state;
/frameworks/wilhelm/src/
H A Dsles.c70 * realized state. If so, then acquire a strong reference to it and return true.
540 SLuint8 state; local
559 state = (exposedMask & 1) && ((NULL == (expose = mi->mExpose)) || (*expose)(self)) ?
564 state = INTERFACE_UNINITIALIZED;
566 *interfaceStateP++ = state;
/frameworks/wilhelm/tests/automated/
H A DBufferQueue_test.cpp238 void SetPlayerState(SLuint32 state) { argument
239 res = (*playerPlay)->SetPlayState(playerPlay, state);
241 //verify the state can set correctly
242 GetPlayerState(state);
245 void GetPlayerState(SLuint32 state) { argument
248 ASSERT_EQ(state, playerState);
263 // changing the play state should not affect the buffer count
275 // set play state to playing
278 // state should be playing immediately after enqueue
291 // state shoul
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestSawtoothBufferQueue.cpp124 SLBufferQueueState state; local
254 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state);
257 // while (state.playIndex < 100) {
258 while (state.count) {
260 (*bufferQueueItf)->GetState(bufferQueueItf, &state);
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c194 // set the player's state to playing
200 SLBufferQueueState state; local
201 result = (*playerBufferQueue)->GetState(playerBufferQueue, &state);
203 if (state.count == 0)
H A Dintbufq.c143 SLuint32 state; local
144 state = SL_PLAYSTATE_PLAYING;
145 result = (*playerPlay)->SetPlayState(playerPlay, state);
242 state = SL_PLAYSTATE_PAUSED;
245 state = SL_PLAYSTATE_STOPPED;
248 state = SL_PLAYSTATE_PLAYING;
250 result = (*playerPlay)->SetPlayState(playerPlay, state);
255 if (newstate != state)
256 printf("\rSetPlayState(%u) -> GetPlayState(%u)\r\n", (unsigned) state,
H A Dmultiplay.c26 // Describes the state of one player
236 SLuint32 state; local
237 result = (*p->mPlayerPlay)->GetPlayState(p->mPlayerPlay, &state);
239 printf("state = ");
240 switch (state) {
251 printf("%u", (unsigned) state);
255 if (state == SL_PLAYSTATE_STOPPED || state == SL_PLAYSTATE_PAUSED) {
266 if (state != SL_PLAYSTATE_STOPPED) {
H A Dreverb.c607 // set play state to paused to enable pre-fetch so we can get a more reliable duration
647 SLuint32 state; local
649 result = (*playerPlay)->GetPlayState(playerPlay, &state);
651 if (SL_PLAYSTATE_PLAYING != state)
655 assert(SL_PLAYSTATE_PAUSED == state);
/frameworks/wilhelm/tests/sandbox/streamSource/
H A DslesTestPlayStream.cpp89 SLAndroidBufferQueueState state; local
90 (*caller)->GetState(caller, &state);
91 //fprintf(stdout, "ABQ state count=%lu, index=%lu\n", state.count, state.index);
94 if (state.index == 500) {
/frameworks/rs/driver/
H A DrsdAllocation.cpp99 ptr += xoff * alloc->mHal.state.elementSizeBytes;
114 if (alloc->mHal.state.hasFaces) {
130 if (alloc->mHal.state.hasFaces) {
136 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) {
140 if (alloc->mHal.state.hasFaces) {
146 alloc->mHal.state.type->getLODDimX(lod),
147 alloc->mHal.state.type->getLODDimY(lod),
151 alloc->mHal.state.type->getLODDimX(lod),
152 alloc->mHal.state.type->getLODDimY(lod),
158 if (alloc->mHal.state
255 DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) argument
[all...]
H A DrsdShader.cpp50 StateBasedKey *state = mStateBasedShaders.itemAt(i); local
51 if (state->mShaderID) {
52 glDeleteShader(state->mShaderID);
54 delete state;
81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
84 Allocation *a = mRSProgram->mHal.state.textures[ct];
85 if (a && a->mHal.state.surfaceTextureID) {
103 StateBasedKey *state = getExistingState(); local
104 if (state !
[all...]
H A DrsdVertexArray.cpp85 RsdVertexArrayState *state = dc->gl.vertexArrayState; local
89 uint32_t maxAttrs = state->mAttrsEnabledSize;
92 if(state->mAttrsEnabled[ct]) {
94 state->mAttrsEnabled[ct] = false;
108 state->mAttrsEnabled[slot] = true;
/frameworks/rs/driver/runtime/
H A Drs_structs.h48 } state; member in struct:Allocation::__anon1498
101 } state; member in struct:ProgramStore::__anon1500
129 } state; member in struct:ProgramRaster::__anon1502
166 } state; member in struct:Sampler::__anon1504
208 } state; member in struct:Element::__anon1506
248 } state; member in struct:Type::__anon1508
283 } state; member in struct:Mesh::__anon1510
/frameworks/rs/
H A DrsAllocation.h73 State state; member in struct:android::renderscript::Allocation::Hal
107 const Type * getType() const {return mHal.state.type;}
142 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) != 0;
145 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) != 0;
148 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET) != 0;
151 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) != 0;
161 return mHal.state.mipmapControl != RS_ALLOCATION_MIPMAP_NONE;
179 mHal.state.type = t;
H A DrsElement.h56 State state; member in struct:android::renderscript::Element::Hal
H A DrsFBOCache.h51 State state; member in struct:android::renderscript::FBOCache::Hal
H A DrsFont.cpp94 FontState *state = &mRSC->mStateFont; local
107 state->appendMeshQuad(nPenX, nPenY, 0, u1, v2,
121 FontState *state = &mRSC->mStateFont; local
122 uint32_t cacheWidth = state->getCacheTextureType()->getDimX();
123 const uint8_t* cacheBuffer = state->mCacheBuffer;
258 // Let the font state figure out where to put the bitmap
259 FontState *state = &mRSC->mStateFont; local
260 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY);
274 uint32_t cacheWidth = state->getCacheTextureType()->getDimX();
275 uint32_t cacheHeight = state
[all...]

Completed in 554 milliseconds

1234567891011>>