Searched refs:state (Results 1 - 25 of 280) sorted by relevance

1234567891011>>

/frameworks/base/media/libstagefright/codecs/amrnb/common/src/
H A Dq_plsf.cpp74 * Purpose : Allocates memory and initializes state variables
78 Word16 Q_plsf_init(Q_plsfState **state) argument
82 if (state == (Q_plsfState **) NULL)
87 *state = NULL;
92 /* fprintf(stderr, "Q_plsf_init: can not malloc state structure\n"); */
97 *state = s;
106 * Purpose : Resets state memory
110 Word16 Q_plsf_reset(Q_plsfState *state) argument
114 if (state == (Q_plsfState *) NULL)
121 state
134 Q_plsf_exit(Q_plsfState **state) argument
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_plsf.cpp114 state = pointer to structure of type D_plsf_reset
117 fields of the structure pointed to by state is initialized to zero
131 Resets state memory
146 int D_plsf_reset (D_plsfState *state)
150 if (state == (D_plsfState *) NULL){
156 state->past_r_q[i] = 0; // Past quantized prediction error
160 Copy(mean_lsf, &state->past_lsf_q[0], M);
187 Word16 D_plsf_reset(D_plsfState *state) argument
191 if (state == (D_plsfState *) NULL)
199 state
[all...]
H A Dph_disp.cpp52 product of state->prevCbGain and ONFACTPLUS1 in the ph_disp
133 state = pointer to a structure of type ph_dispState
136 Structure pointed to by state is initialized to zeros
165 int ph_disp_reset (ph_dispState *state)
169 if (state == (ph_dispState *) NULL){
175 state->gainMem[i] = 0;
177 state->prevState = 0;
178 state->prevCbGain = 0;
179 state->lockFull = 0;
180 state
208 ph_disp_reset(ph_dispState *state) argument
299 ph_disp_lock(ph_dispState *state) argument
376 ph_disp_release(ph_dispState *state) argument
654 ph_disp( ph_dispState *state, enum Mode mode, Word16 x[], Word16 cbGain, Word16 ltpGain, Word16 inno[], Word16 pitch_fac, Word16 tmp_shift, Flag *pOverflow ) argument
[all...]
H A Dec_gains.cpp126 state = pointer to a pointer to a structure containing code state data of
144 This function resets the state data for the ec_gain module.
159 int ec_gain_code_reset (ec_gain_codeState *state)
163 if (state == (ec_gain_codeState *) NULL){
169 state->gbuf[i] = 1;
170 state->past_gain_code = 0;
171 state->prev_gc = 1;
199 Word16 ec_gain_code_reset(ec_gain_codeState *state) argument
203 if (state
315 ec_gain_code( ec_gain_codeState *st, gc_predState *pred_state, Word16 state, Word16 *gain_code, Flag *pOverflow ) argument
577 ec_gain_pitch( ec_gain_pitchState *st, Word16 state, Word16 *gain_pitch, Flag *pOverflow ) argument
686 ec_gain_pitch_reset(ec_gain_pitchState *state) argument
[all...]
H A Dec_gains.h120 * Purpose : Resets state memory
124 ec_gain_codeState *state
136 gc_predState *pred_state, /* i/o : MA predictor state */
137 Word16 state, /* i : state of the state machine */
144 * Purpose : update the codebook gain concealment state;
160 * Purpose: Resets state memory
163 ec_gain_pitchState *state
168 * Purpose : The memory used for state memor
[all...]
H A Dph_disp.h129 ; Purpose: Initializes state memory
132 Word16 ph_disp_reset(ph_dispState *state);
137 ; Purpose: The memory used for state memory is freed
140 void ph_disp_exit(ph_dispState **state);
145 ; Purpose: mark phase dispersion as locked in state struct
148 void ph_disp_lock(ph_dispState *state);
153 ; Purpose: mark phase dispersion as unlocked in state struct
157 void ph_disp_release(ph_dispState *state);
169 ph_dispState *state, /* i/o : State struct */
H A Dsp_dec.cpp137 state = pointer to an array of pointers to structures of type
145 to by state is set to NULL
147 by state is set to NULL
149 by state is set to NULL
151 to by state is set to the input no_hp_post_MR122
166 This function allocates memory for filter structure and initializes state
185 int Speech_Decode_Frame_init (Speech_Decode_FrameState **state,
190 if (state == (Speech_Decode_FrameState **) NULL){
194 *state = NULL;
199 fprintf(stderr, "Speech_Decode_Frame_init: can not malloc state "
376 Speech_Decode_FrameState *state = local
487 Speech_Decode_FrameState **state = local
[all...]
H A Dlsp_avg.h118 lsp_avgState *state
H A Dpost_pro.cpp141 state = pointer to a structure of type Post_ProcessState
144 structure pointed to by state will have all its fields initialized
159 This function initializes state memory to zero.
174 int Post_Process_reset (Post_ProcessState *state)
176 if (state == (Post_ProcessState *) NULL){
181 state->y2_hi = 0;
182 state->y2_lo = 0;
183 state->y1_hi = 0;
184 state->y1_lo = 0;
185 state
213 Post_Process_reset(Post_ProcessState *state) argument
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
H A Dpre_proc.cpp131 state = pointer to an array of pointer to structures of type
135 Structure pointed to by the pointer pointed to by state is
137 state points to the allocated memory
152 Allocates state memory and initializes state memory.
167 int Pre_Process_init (Pre_ProcessState **state)
171 if (state == (Pre_ProcessState **) NULL){
175 *state = NULL;
179 fprintf(stderr, "Pre_Process_init: can not malloc state structure\n");
184 *state
212 Pre_Process_init(Pre_ProcessState **state) argument
320 Pre_Process_reset(Pre_ProcessState *state) argument
416 Pre_Process_exit(Pre_ProcessState **state) argument
[all...]
H A Dsid_sync.cpp46 Description: Changed type definition of state pointer to 'void' for
107 state = pointer containing a pointer to the state structure used for
114 return_value = status of sid_sync_reset function; -1, if state is pointing
127 the pointer to state struct in *st. This pointer has to be passed to sid_sync
166 Word16 sid_sync_init(void **state) argument
170 if (state == NULL)
172 /* fprintf(stderr, "sid_sync_init:invalid state parameter\n"); */
176 *state = NULL;
184 "can not malloc state structur
260 sid_syncState *state = (sid_syncState *) st; local
335 sid_sync_exit(void **state) argument
495 sid_sync(void *state, enum Mode mode, enum TXFrameType *tx_frame_type) argument
[all...]
H A Dlpc.cpp100 state = pointer to pointer of state data of type lpcState
117 This function initializes the state data for the LPC module.
135 if (state == (lpcState **) NULL){
139 *state = NULL;
143 // fprintf(stderr, "lpc_init: can not malloc state structure\n");
157 *state = s;
183 Word16 lpc_init(lpcState **state) argument
187 if (state == (lpcState **) NULL)
192 *state
286 lpc_reset(lpcState *state) argument
374 lpc_exit(lpcState **state) argument
[all...]
H A Dsp_enc.cpp110 state = pointer to an array of pointers to structures of type
117 by state is set to NULL
119 by state is set to NULL
120 dtx field of the structure pointed to by the pointer pointed to by state
136 This function allocates memory for filter structure and initializes state
168 fprintf(stderr, "Speech_Encode_Frame_init: can not malloc state "
233 /* fprintf(stderr, "Speech_Encode_Frame_init: can not malloc state "
264 state = pointer to structures of type Speech_Decode_FrameState
281 This function resets state memory
299 Speech_Encode_FrameState *state
344 Speech_Encode_FrameState *state = local
453 Speech_Encode_FrameState **state = local
[all...]
H A Dcl_ltp.cpp127 state = Pointer to a pointer to a clLtpState structure
130 state points to the newly created clLtpState structure.
144 Allocates state memory and initializes state memory
159 int cl_ltp_init (clLtpState **state)
163 if (state == (clLtpState **) NULL){
167 *state = NULL;
171 fprintf(stderr, "cl_ltp_init: can not malloc state structure\n");
175 // init the sub state
183 *state
212 cl_ltp_init(clLtpState **state) argument
319 cl_ltp_reset(clLtpState *state) argument
414 cl_ltp_exit(clLtpState **state) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DMetaKeyKeyListener.java25 * (shift and alt) and the pseudo-meta state of selecting text.
26 * Key listeners that care about meta state should
80 * Resets all meta state to inactive.
90 * Gets the state of the meta keys.
105 * Gets the state of a particular meta key.
151 * state will be reset to unshifted (if it is not still down)
162 * keep track of any meta state in the specified text.
171 * keep track of the selecting meta state in the specified text.
187 * Call this if you are a method that ignores the locked meta state
229 int state
308 resetLockedMeta(long state) argument
315 resetLock(long state, int what, long mask) argument
334 getMetaState(long state) argument
348 getMetaState(long state, int meta) argument
364 getActive(long state, int meta, int on, int lock) argument
380 adjustMetaAfterKeypress(long state) argument
387 adjust(long state, int what, long mask) argument
398 handleKeyDown(long state, int keyCode, KeyEvent event) argument
415 press(long state, int what, long mask) argument
432 handleKeyUp(long state, int keyCode, KeyEvent event) argument
449 release(long state, int what, long mask) argument
457 clearMetaKeyState(long state, int which) argument
[all...]
/frameworks/base/libs/surfaceflinger/
H A DBarrier.h29 inline Barrier() : state(CLOSED) { }
37 state = OPENED;
42 state = CLOSED;
46 while (state == CLOSED) {
54 volatile int state; member in class:android::Barrier
/frameworks/base/awt/java/awt/im/
H A DInputMethodHighlight.java55 private int state; field in class:InputMethodHighlight
59 public InputMethodHighlight(boolean selected, int state, int variation) { argument
60 this(selected, state, variation, null);
63 public InputMethodHighlight(boolean selected, int state, argument
65 if ((state != RAW_TEXT) && (state != CONVERTED_TEXT)) {
66 // awt.20B=unknown input method highlight state
70 this.state = state;
75 public InputMethodHighlight(boolean selected, int state) { argument
[all...]
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Dphase_dispersion.cpp160 int16 i, j, state; local
173 state = 0;
177 state = 1;
181 state = 2;
193 if (state < 2)
195 state++;
211 state = 0;
213 if (state > *prev_state + 1)
215 state--;
220 *prev_state = state;
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DProcessedMessages.java26 * A list of messages recently processed by the state machine.
45 private HierarchicalState state; field in class:ProcessedMessages.Info
51 * @param state that handled the message
52 * @param orgState is the first state the received the message but
55 Info(Message message, HierarchicalState state, HierarchicalState orgState) { argument
56 update(message, state, orgState);
61 * @param state that handled the message
62 * @param orgState is the first state the received the message but
65 public void update(Message message, HierarchicalState state, HierarchicalState orgState) { argument
67 this.state
185 add(Message message, HierarchicalState state, HierarchicalState orgState) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DGsmCall.java49 default: throw new RuntimeException ("illegal call state:" + dcState);
93 return state.toString();
102 state = stateFromDCState (dc.state);
106 attachFake(Connection conn, State state) { argument
109 this.state = state;
117 if (state != State.DISCONNECTED) {
132 state = State.DISCONNECTED;
143 state
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DSupplicantState.java26 * state. This is more fine-grained than most users will be interested in.
31 * state constants in <code>defs.h</code> in <code>wpa_supplicant</code>.
35 * This state indicates that client is not associated, but is likely to
36 * start looking for an access point. This state is entered when a
42 * Inactive state (wpa_supplicant disabled).
44 * This state is entered if there are no enabled networks in the
54 * This state is entered when wpa_supplicant starts scanning for a
62 * This state is entered when wpa_supplicant has found a suitable BSS
65 * state is entered when the driver is configured to try to associate
73 * This state i
151 isValidState(SupplicantState state) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DStateSetTest.java39 // Add another state to the spec which the stateSet doesn't match
45 // Add an irrelevent state to the stateSpec
63 // Add another matching state to the the stateSet. We still fail
80 // Add another arrelevent state to the stateSet
86 // Add another state to the spec which the stateSet doesn't match
89 // Add an irrelevent state to the stateSet
124 int state;
127 state = 1;
128 assertTrue(StateSet.stateSetMatches(stateSpec, state));
130 state
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DCdmaCall.java36 /*package*/ State state = State.IDLE; field in class:CdmaCall
50 default: throw new RuntimeException ("illegal call state:" + dcState);
73 return state;
97 return state.toString();
106 state = stateFromDCState (dc.state);
110 attachFake(Connection conn, State state) { argument
113 this.state = state;
121 if (state !
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DITelephonyRegistry.aidl28 void notifyCallState(int state, String incomingNumber);
29 void notifyServiceState(in ServiceState state);
33 void notifyDataActivity(int state);
34 void notifyDataConnection(int state, boolean isDataConnectivityPossible,
H A DIccCardStatus.java61 public void setCardState(int state) { argument
62 switch(state) {
73 throw new RuntimeException("Unrecognized RIL_CardState: " + state);
77 public void setUniversalPinState(int state) { argument
78 switch(state) {
98 throw new RuntimeException("Unrecognized RIL_PinState: " + state);

Completed in 379 milliseconds

1234567891011>>