/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 | 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)
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 312 CodecState *state = local 316 state->mNumFramesWritten = 0; 317 state->mCodec = MediaCodec::CreateByType( 320 CHECK(state->mCodec != NULL); 322 err = state->mCodec->configure( 333 state->mCSD.push_back(buffer); 340 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 342 status_t err = state->mCodec->start(); 345 err = state->mCodec->getInputBuffers(&state 401 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 420 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 475 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local 516 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 568 onOutputFormatChanged( size_t trackIndex __unused, CodecState *state) argument 599 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument [all...] |
H A D | codec.cpp | 116 CodecState *state = local 119 state->mNumBytesDecoded = 0; 120 state->mNumBuffersDecoded = 0; 121 state->mIsAudio = isAudio; 123 state->mCodec = MediaCodec::CreateByType( 126 CHECK(state->mCodec != NULL); 128 err = state->mCodec->configure( 135 state->mSignalledInputEOS = false; 136 state->mSawOutputEOS = false; 145 CodecState *state local 169 CodecState *state = &stateByTrack.editValueFor(trackIndex); local 204 CodecState *state = &stateByTrack.editValueAt(i); local 233 CodecState *state = &stateByTrack.editValueAt(i); local 245 CodecState *state = &stateByTrack.editValueAt(i); local 311 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/ |
H A D | MidiExtractor.cpp | 227 EAS_STATE state; local 228 EAS_State(mEasData, mEasHandle, &state); 229 if ((state == EAS_STATE_STOPPED) || (state == EAS_STATE_ERROR)) {
|
/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 */) { 247 GetStateWrapper( OMX_HANDLETYPE component, OMX_STATETYPE *state) argument
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.h | 87 audio_policy_dev_state_t state) 89 return mPolicyEngine->setDeviceConnectionState(devDesc, state); 165 audio_policy_dev_state_t state); 86 setDeviceConnectionState(const sp<DeviceDescriptor> devDesc, audio_policy_dev_state_t state) argument
|
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyClientImpl.cpp | 217 String8 regId, int32_t state) 219 mAudioPolicyService->onDynamicPolicyMixStateUpdate(regId, state); 216 onDynamicPolicyMixStateUpdate( String8 regId, int32_t state) argument
|
/frameworks/base/core/java/android/app/ |
H A D | FragmentController.java | 102 * Marks the fragment state as unsaved. This allows for "state loss" detection. 109 * Saves the state for all Fragments. 116 * Restores the saved state for all Fragments. The given Fragment list are Fragment 123 public void restoreAllState(Parcelable state, List<Fragment> nonConfigList) { argument 124 mHost.mFragmentManager.restoreAllState(state, 129 * Restores the saved state for all Fragments. The given FragmentManagerNonConfig are Fragment 134 public void restoreAllState(Parcelable state, FragmentManagerNonConfig nonConfig) { argument 135 mHost.mFragmentManager.restoreAllState(state, nonConfig); 159 * into the create state [all...] |
H A D | LocalActivityManager.java | 59 Bundle instanceState; // Last retrieved freeze state. 60 int curState = RESTORED; // Current state the activity is in. 90 /** Current state the owner (ActivityGroup) is in */ 153 // the launching of the activity gets its state a little ahead 156 // group's state catches up. 248 * include an explicit component, we can restore the state for a different 249 * activity class than was previously running when the state was saved (if 381 * all state are removed from the group. 439 * Restore a state that was previously returned by {@link #saveInstanceState}. This 442 * user later navigates to them the correct state wil 452 dispatchCreate(Bundle state) argument [all...] |
H A D | StatusBarManager.java | 231 public static String windowStateToString(int state) { argument 232 if (state == WINDOW_STATE_HIDING) return "WINDOW_STATE_HIDING"; 233 if (state == WINDOW_STATE_HIDDEN) return "WINDOW_STATE_HIDDEN"; 234 if (state == WINDOW_STATE_SHOWING) return "WINDOW_STATE_SHOWING";
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothA2dp.java | 54 * Intent used to broadcast the change in connection state of the A2DP 59 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 60 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile.</li> 76 * Intent used to broadcast the change in the Playing state of the A2DP 81 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 82 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile. </li> 102 * A2DP sink device is streaming music. This state can be one of 109 * A2DP sink device is NOT streaming music. This state can be one of 218 * connection state intent for the profile will be broadcasted with 219 * the state 515 stateToString(int state) argument [all...] |
H A D | BluetoothA2dpSink.java | 46 * Intent used to broadcast the change in connection state of the A2DP Sink 51 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 52 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile.</li> 67 * Intent used to broadcast the change in the Playing state of the A2DP Sink 72 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 73 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile. </li> 87 * A2DP sink device is streaming music. This state can be one of 94 * A2DP sink device is NOT streaming music. This state can be one of 101 * Intent used to broadcast the change in the Playing state of the A2DP Sink 227 * connection state inten 462 stateToString(int state) argument [all...] |