/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 | 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 | 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/tests/examples/ |
H A D | slesTestSawtoothBufferQueue.cpp | 124 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 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)
|
/frameworks/base/media/jni/ |
H A D | android_media_AmrInputStream.cpp | 63 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 D | MediaRecorderStateUnitTestTemplate.java | 65 * 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 D | SimplePlayer.cpp | 311 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 D | codec.cpp | 110 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 D | ICommonClock.cpp | 180 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 D | AudioBiquadFilter.cpp | 88 void AudioBiquadFilter::setState(state_t state) { argument 89 switch (state) { 117 mState = state;
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_amr.cpp | 117 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 D | cod_amr.cpp | 157 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 D | p_ol_wgh.cpp | 110 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 D | dec_gain2_amr_wb.cpp | 55 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 D | wb_vad.c | 622 * 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 D | SoftOMXComponent.cpp | 249 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 D | LocalActivityManager.java | 58 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 D | DummyDataStateTracker.java | 25 * 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 D | ListPreference.java | 285 // 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 D | MultiCheckPreference.java | 144 * 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 D | SeekBarPreference.java | 171 * 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...] |