/frameworks/wilhelm/src/itf/ |
H A D | IRecord.cpp | 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 | 313 CodecState *state = local 317 state->mNumFramesWritten = 0; 318 state->mCodec = MediaCodec::CreateByType( 321 CHECK(state->mCodec != NULL); 323 err = state->mCodec->configure( 334 state->mCSD.push_back(buffer); 341 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 343 status_t err = state->mCodec->start(); 346 err = state->mCodec->getInputBuffers(&state 402 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 421 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 476 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local 519 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 571 onOutputFormatChanged( size_t trackIndex __unused, CodecState *state) argument 602 renderAudio( CodecState *state, BufferInfo *info, const sp<MediaCodecBuffer> &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 206 CodecState *state = &stateByTrack.editValueAt(i); local 235 CodecState *state = &stateByTrack.editValueAt(i); local 247 CodecState *state = &stateByTrack.editValueAt(i); local 313 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/libaaudio/src/legacy/ |
H A D | AudioStreamRecord.cpp | 42 const aaudio_stream_state_t state = getState(); local 43 bool bad = !(state == AAUDIO_STREAM_STATE_UNINITIALIZED || state == AAUDIO_STREAM_STATE_CLOSED); 44 ALOGE_IF(bad, "stream not closed, in state %d", state); 256 // TODO add better state visibility to AudioRecord
|
H A D | AudioStreamTrack.cpp | 47 const aaudio_stream_state_t state = getState(); local 48 bool bad = !(state == AAUDIO_STREAM_STATE_UNINITIALIZED || state == AAUDIO_STREAM_STATE_CLOSED); 49 ALOGE_IF(bad, "stream not closed, in state %d", state); 256 ALOGE("requestPause(), called when state is %s", 304 // TODO add better state visibility to AudioTrack
|
/frameworks/av/media/libaudioclient/ |
H A D | IAudioTrack.cpp | 187 sp<VolumeShaper::State> state = new VolumeShaper::State; local 188 status = state->readFromParcel(reply); 192 return state; 284 sp<VolumeShaper::State> state = getVolumeShaperState(id); local 285 if (state.get() != nullptr) { 286 status = state->writeToParcel(reply);
|
/frameworks/av/media/libaudiohal/ |
H A D | DeviceHalHidl.cpp | 157 status_t DeviceHalHidl::setMicMute(bool state) { argument 159 return processReturn("setMicMute", mDevice->setMicMute(state)); 162 status_t DeviceHalHidl::getMicMute(bool *state) { argument 169 *state = mute; 175 status_t DeviceHalHidl::setMasterMute(bool state) { argument 177 return processReturn("setMasterMute", mDevice->setMasterMute(state)); 180 status_t DeviceHalHidl::getMasterMute(bool *state) { argument 187 *state = mute;
|
H A D | DeviceHalLocal.cpp | 65 status_t DeviceHalLocal::setMicMute(bool state) { argument 66 return mDev->set_mic_mute(mDev, state); 69 status_t DeviceHalLocal::getMicMute(bool *state) { argument 70 return mDev->get_mic_mute(mDev, state); 73 status_t DeviceHalLocal::setMasterMute(bool state) { argument 75 return mDev->set_master_mute(mDev, state); 78 status_t DeviceHalLocal::getMasterMute(bool *state) { argument 80 return mDev->get_master_mute(mDev, 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 124 public void restoreAllState(Parcelable state, List<Fragment> nonConfigList) { argument 125 mHost.mFragmentManager.restoreAllState(state, 130 * Restores the saved state for all Fragments. The given FragmentManagerNonConfig are Fragment 135 public void restoreAllState(Parcelable state, FragmentManagerNonConfig nonConfig) { argument 136 mHost.mFragmentManager.restoreAllState(state, nonConfig); 161 * 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 | 233 public static String windowStateToString(int state) { argument 234 if (state == WINDOW_STATE_HIDING) return "WINDOW_STATE_HIDING"; 235 if (state == WINDOW_STATE_HIDDEN) return "WINDOW_STATE_HIDDEN"; 236 if (state == WINDOW_STATE_SHOWING) return "WINDOW_STATE_SHOWING";
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothA2dp.java | 58 * Intent used to broadcast the change in connection state of the A2DP 63 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 64 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile.</li> 80 * Intent used to broadcast the change in the Playing state of the A2DP 85 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 86 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile. </li> 106 * Intent used to broadcast the change in the Audio Codec state of the 126 * A2DP sink device is streaming music. This state can be one of 133 * A2DP sink device is NOT streaming music. This state can be one of 278 * connection state inten 777 stateToString(int state) argument [all...] |