/frameworks/wilhelm/src/android/ |
H A D | AudioRecorder_to_android.cpp | 289 // data has been copied to the buffer, and the buffer queue state has been updated 537 void android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state) { argument 538 SL_LOGV("android_audioRecorder_setRecordState(%p, %u) entering", ar, state); 544 switch (state) {
|
/frameworks/wilhelm/src/desktop/ |
H A D | SndFile.c | 22 /** \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 D | IAndroidBufferQueue.c | 26 * 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 D | IBufferQueue.c | 22 /** 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; 70 // set enqueue attribute if state is PLAYING and the first buffer is enqueued 132 SLBufferQueueState state; local 135 state.count = thiz->mState.count; 136 state [all...] |
H A D | IDynamicInterfaceManagement.c | 41 // 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 D | IEffectSend.c | 70 SLuint32 state = outputMix->mObject.mInterfaceStates[index]; local 73 switch (state) { 86 SL_LOGE("EffectSend invalid interface state %u", state);
|
H A D | IObject.c | 35 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 D | IPlay.c | 22 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 D | IRecord.c | 22 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 D | sles.c | 70 * realized state. If so, then acquire a strong reference to it and return true. 543 SLuint8 state; local 562 state = (exposedMask & 1) && ((NULL == (expose = mi->mExpose)) || (*expose)(self)) ? 567 state = INTERFACE_UNINITIALIZED; 569 *interfaceStateP++ = state;
|
/frameworks/wilhelm/tests/automated/ |
H A D | BufferQueue_test.cpp | 238 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 D | slesTestSawtoothBufferQueue.cpp | 121 SLBufferQueueState state; local 251 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state); 254 // while (state.playIndex < 100) { 255 while (state.count) { 257 (*bufferQueueItf)->GetState(bufferQueueItf, &state);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | configbq.c | 194 // set the player's state to playing 200 SLBufferQueueState state; local 201 result = (*playerBufferQueue)->GetState(playerBufferQueue, &state); 203 if (state.count == 0)
|
H A D | intbufq.c | 143 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 D | multiplay.c | 26 // 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 D | reverb.c | 607 // 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 D | slesTestPlayStream.cpp | 89 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/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrowseFragment.java | 350 public void setEntranceTransitionState(boolean state) { argument 661 * @param headersState The initial state of the headers of the 1548 * works when the headers state is {@link #HEADERS_ENABLED} or 1579 * Sets the state for the headers column in the browse fragment. Must be one 1583 * @param headersState The state of the headers for the browse fragment. 1587 throw new IllegalArgumentException("Invalid headers state: " + headersState); 1607 Log.w(TAG, "Unknown headers state: " + headersState); 1617 * Returns the state of the headers column in the browse fragment.
|
H A D | BrowseSupportFragment.java | 352 public void setEntranceTransitionState(boolean state) { argument 663 * @param headersState The initial state of the headers of the 1550 * works when the headers state is {@link #HEADERS_ENABLED} or 1581 * Sets the state for the headers column in the browse fragment. Must be one 1585 * @param headersState The state of the headers for the browse fragment. 1589 throw new IllegalArgumentException("Invalid headers state: " + headersState); 1609 Log.w(TAG, "Unknown headers state: " + headersState); 1619 * Returns the state of the headers column in the browse fragment.
|
H A D | RowsFragment.java | 344 // selected state is initialized to false, then driven by grid view onChildSelected 566 public void setEntranceTransitionState(boolean state) { argument 567 getFragment().setEntranceTransitionState(state);
|
H A D | RowsSupportFragment.java | 346 // selected state is initialized to false, then driven by grid view onChildSelected 568 public void setEntranceTransitionState(boolean state) { argument 569 getFragment().setEntranceTransitionState(state);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/ |
H A D | StateMachine.java | 37 * Somebody wants to run the state but not yet executed because either the condition is 80 void addPriorState(State state) { argument 84 if (!mPriorStates.contains(state)) { 85 mPriorStates.add(state); 119 * @param state The state to add. 121 public void addState(State state) { argument 122 if (!mSortedList.contains(state)) { 123 state.updateStatus(STATUS_ZERO); 124 mSortedList.add(state); 148 runState(State state) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | FullWidthDetailsOverviewRowPresenter.java | 81 * This is the default state corresponding to layout file. The view takes full width 86 * This is the state when the view covers full width and height of screen. 90 * This is the state where the view shrinks to a small banner. 376 * Returns current state of the ViewHolder set by 487 * Change the initial state used to create ViewHolder. 489 public final void setInitialState(int state) { argument 490 mInitialState = state; 494 * Returns the initial state used to create ViewHolder. 651 * Layout logo position based on current state. Subclass may override. 652 * The method is called when a logo is bound to view or state change 766 setState(ViewHolder viewHolder, int state) argument [all...] |
H A D | GridLayoutManager.java | 234 RecyclerView.State state, Action action) { 1056 private void saveContext(Recycler recycler, State state) { argument 1061 mState = state; 1324 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) { argument 1325 saveContext(recycler, state); 1815 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { argument 1819 + " inPreLayout " + state.isPreLayout() 1820 + " didStructureChange " + state.didStructureChange() 1829 final int itemCount = state.getItemCount(); 1841 if (state 233 onTargetFound(View targetView, RecyclerView.State state, Action action) argument 1990 scrollHorizontallyBy(int dx, Recycler recycler, RecyclerView.State state) argument 2009 scrollVerticallyBy(int dy, Recycler recycler, RecyclerView.State state) argument 3218 onRestoreInstanceState(Parcelable state) argument 3232 getRowCountForAccessibility(RecyclerView.Recycler recycler, RecyclerView.State state) argument 3241 getColumnCountForAccessibility(RecyclerView.Recycler recycler, RecyclerView.State state) argument 3250 onInitializeAccessibilityNodeInfoForItem(RecyclerView.Recycler recycler, RecyclerView.State state, View host, AccessibilityNodeInfoCompat info) argument 3275 performAccessibilityAction(Recycler recycler, State state, int action, Bundle args) argument 3346 onInitializeAccessibilityNodeInfo(Recycler recycler, State state, AccessibilityNodeInfoCompat info) argument [all...] |
H A D | PersistentFocusWrapper.java | 169 protected void onRestoreInstanceState(Parcelable state) { argument 170 if (!(state instanceof SavedState)) { 171 super.onRestoreInstanceState(state); 174 SavedState savedState = (SavedState) state; 175 mSelectedPosition = ((SavedState) state).mSelectedPosition;
|