Searched defs:state (Results 101 - 125 of 340) sorted by relevance

1234567891011>>

/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 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 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/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)
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp63 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
64 int32_t nResult = AMREncodeInit(&state->mEncState, &state->mSidState, false);
79 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
80 int32_t length = AMREncode(state->mEncState, state->mSidState,
84 (Frame_Type_3GPP*) &state->mLastModeUsed,
109 GsmAmrEncoderState *state = (GsmAmrEncoderState *)gae; local
110 AMREncodeExit(&state->mEncState, &state
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaRecorderStateUnitTestTemplate.java65 * Calls method under test in the given state of the MediaRecorder object.
67 * @param state the MediaRecorder state in which the method under test is called.
69 private void callMediaRecorderMethodUnderTestInState(MediaRecorderStateErrors.MediaRecorderState state) { argument
70 Log.v(TAG, "call " + mMethodUnderTest + ": started in state " + state);
71 setMediaRecorderToState(state);
77 Log.v(TAG, "call " + mMethodUnderTest + ": ended in state " + state);
82 * object to the corresponding state, give
215 setMediaRecorderToState(MediaRecorderStateErrors.MediaRecorderState state) argument
251 setStateError(MediaRecorderStateErrors.MediaRecorderState state, boolean error) argument
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp311 CodecState *state = local
315 state->mNumFramesWritten = 0;
316 state->mCodec = MediaCodec::CreateByType(
319 CHECK(state->mCodec != NULL);
321 err = state->mCodec->configure(
332 state->mCSD.push_back(buffer);
339 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
341 status_t err = state->mCodec->start();
344 err = state->mCodec->getInputBuffers(&state
400 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
419 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
474 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local
515 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
567 onOutputFormatChanged( size_t trackIndex, CodecState *state) argument
598 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
[all...]
H A Dcodec.cpp110 CodecState *state = local
113 state->mNumBytesDecoded = 0;
114 state->mNumBuffersDecoded = 0;
115 state->mIsAudio = isAudio;
117 state->mCodec = MediaCodec::CreateByType(
120 CHECK(state->mCodec != NULL);
122 err = state->mCodec->configure(
129 state->mSignalledInputEOS = false;
130 state->mSawOutputEOS = false;
138 CodecState *state local
162 CodecState *state = &stateByTrack.editValueFor(trackIndex); local
197 CodecState *state = &stateByTrack.editValueAt(i); local
226 CodecState *state = &stateByTrack.editValueAt(i); local
238 CodecState *state = &stateByTrack.editValueAt(i); local
288 CodecState *state = &stateByTrack.editValueAt(i); local
[all...]
/frameworks/av/media/common_time/
H A DICommonClock.cpp180 virtual status_t getState(State* state) { argument
187 *state = static_cast<State>(reply.readInt32());
347 State state; local
348 status_t status = getState(&state);
351 reply->writeInt32(static_cast<int32_t>(state));
/frameworks/av/media/libeffects/testlibs/
H A DAudioBiquadFilter.cpp88 void AudioBiquadFilter::setState(state_t state) { argument
89 switch (state) {
117 mState = state;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Ddec_amr.cpp117 state = pointer to a pointer to structures of type Decoder_amrState
120 structure pointed to by the pointer which is pointed to by state is
123 state pointer points to the address of the memory allocated by
138 This function allocates and initializes state memory used by the Decoder_amr
139 function. It stores the pointer to the filter status structure in state. This
156 int Decoder_amr_init (Decoder_amrState **state)
161 if (state == (Decoder_amrState **) NULL){
165 *state = NULL;
169 fprintf(stderr, "Decoder_amr_init: can not malloc state structure\n");
200 *state
395 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dcod_amr.cpp157 state = pointer to a pointer to a structure of type cod_amrState
160 Structure pointed to by the pointer pointed to by state is
162 state points to the allocated memory
177 This function allocates memory and initializes state variables.
192 int cod_amr_init (cod_amrState **state, Flag dtx)
196 if (state == (cod_amrState **) NULL){
200 *state = NULL;
204 fprintf(stderr, "cod_amr_init: can not malloc state structure\n");
237 *state = s;
265 Word16 cod_amr_init(cod_amrState **state, Fla argument
631 cod_amr_exit(cod_amrState **state) argument
[all...]
H A Dp_ol_wgh.cpp110 state = pointer to a pointer of structure type pitchOLWghtState
128 This function allocates state memory and initializes state memory
143 int p_ol_wgh_init (pitchOLWghtState **state)
147 if (state == (pitchOLWghtState **) NULL){
151 *state = NULL;
155 // fprintf(stderr, "p_ol_wgh_init: can not malloc state structure\n");
161 *state = s;
189 Word16 p_ol_wgh_init(pitchOLWghtState **state) argument
193 if (state
391 p_ol_wgh_exit(pitchOLWghtState **state) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_gain2_amr_wb.cpp55 int16 state, (i) : State of BFH
178 int16 state, /* (i) : State of BFH */
230 *gain_pit = mult_int16(pdown_unusable[state], *past_gain_pit);
234 *gain_pit = mult_int16(pdown_usable[state], *past_gain_pit);
247 *past_gain_code = mult_int16(cdown_unusable[state], tmp);
251 *past_gain_code = mult_int16(cdown_usable[state], tmp);
169 dec_gain2_amr_wb( int16 index, int16 nbits, int16 code[], int16 L_subfr, int16 * gain_pit, int32 * gain_cod, int16 bfi, int16 prev_bfi, int16 state, int16 unusable_frame, int16 vad_hist, int16 * mem ) argument
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dwb_vad.c622 * Purpose: Allocates state memory and initializes state memory
627 VadVars ** state, /* i/o : State structure */
633 if (state == (VadVars **) NULL)
638 *state = NULL;
643 fprintf(stderr, "vad_init: can not malloc state structure\n");
648 *state = s;
656 * Purpose: Initializes state memory
661 VadVars * state /* i/o : State structure */
666 if (state
626 wb_vad_init( VadVars ** state, VO_MEM_OPERATOR *pMemOP ) argument
715 wb_vad_exit( VadVars ** state, VO_MEM_OPERATOR *pMemOP ) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXComponent.cpp249 OMX_STATETYPE *state) {
254 return me->getState(state);
322 OMX_ERRORTYPE SoftOMXComponent::getState(OMX_STATETYPE *state) { argument
247 GetStateWrapper( OMX_HANDLETYPE component, OMX_STATETYPE *state) argument
/frameworks/base/core/java/android/app/
H A DLocalActivityManager.java58 Bundle instanceState; // Last retrieved freeze state.
59 int curState = RESTORED; // Current state the activity is in.
89 /** Current state the owner (ActivityGroup) is in */
152 // the launching of the activity gets its state a little ahead
155 // group's state catches up.
247 * include an explicit component, we can restore the state for a different
248 * activity class than was previously running when the state was saved (if
380 * all state are removed from the group.
438 * Restore a state that was previously returned by {@link #saveInstanceState}. This
441 * user later navigates to them the correct state wil
451 dispatchCreate(Bundle state) argument
[all...]
/frameworks/base/core/java/android/net/
H A DDummyDataStateTracker.java25 * A dummy data state tracker for use when we don't have a real radio
127 * Record the detailed state of a network, and if it is a
128 * change from the previous state, send a notification to
130 * @param state the new {@code DetailedState}
131 * @param reason a {@code String} indicating a reason for the state change,
133 * @param extraInfo optional {@code String} providing extra information about the state change
135 private void setDetailedState(NetworkInfo.DetailedState state, String reason, argument
137 if (DBG) log("setDetailed state, old ="
138 + mNetworkInfo.getDetailedState() + " and new state=" + state);
[all...]
/frameworks/base/core/java/android/preference/
H A DListPreference.java285 // No need to save instance state since it's persistent
295 protected void onRestoreInstanceState(Parcelable state) { argument
296 if (state == null || !state.getClass().equals(SavedState.class)) {
297 // Didn't save state for us in onSaveInstanceState
298 super.onRestoreInstanceState(state);
302 SavedState myState = (SavedState) state;
H A DMultiCheckPreference.java144 * Get the boolean state of a given value.
151 * Set the boolean state of a given value.
153 public void setValue(int index, boolean state) { argument
154 mSetValues[index] = state;
275 // No need to save instance state since it's persistent
285 protected void onRestoreInstanceState(Parcelable state) { argument
286 if (state == null || !state.getClass().equals(SavedState.class)) {
287 // Didn't save state for us in onSaveInstanceState
288 super.onRestoreInstanceState(state);
[all...]
H A DSeekBarPreference.java171 * must save the instance state so it is able to, for example, survive
177 // No need to save instance state since it's persistent
181 // Save the instance state
189 protected void onRestoreInstanceState(Parcelable state) { argument
190 if (!state.getClass().equals(SavedState.class)) {
191 // Didn't save state for us in onSaveInstanceState
192 super.onRestoreInstanceState(state);
196 // Restore the instance state
197 SavedState myState = (SavedState) state;
205 * SavedState, a subclass of {@link BaseSavedState}, will store the state
[all...]

Completed in 227 milliseconds

1234567891011>>