/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
H A D | q_plsf.cpp | 74 * 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/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageVerificationStateTest.java | 32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); 35 state.isVerificationComplete()); 37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); 40 state.isVerificationComplete()); 43 state.isInstallAllowed()); 47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); 50 state.isVerificationComplete()); 52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); 55 state.isVerificationComplete()); 58 state [all...] |
/frameworks/base/core/java/android/nfc/ |
H A D | NfcActivityManager.java | 45 * NFC state associated with an {@link Activity} 71 NfcActivityState state = mNfcState.get(activity); 72 if (DBG) Log.d(TAG, "onResume() for " + activity + " " + state); 73 if (state != null) { 74 state.resumed = true; 75 updateNfcService(state); 83 NfcActivityState state = mNfcState.get(activity); 84 if (DBG) Log.d(TAG, "onPause() for " + activity + " " + state); 85 if (state != null) { 86 state 162 maybeRemoveState(Activity activity, NfcActivityState state) argument 173 updateNfcService(NfcActivityState state) argument [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | d_plsf.cpp | 114 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 D | ph_disp.cpp | 52 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 D | ec_gains.cpp | 126 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 D | ec_gains.h | 120 * 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 D | ph_disp.h | 129 ; 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 D | sp_dec.cpp | 137 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...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | StateChangeResult.java | 20 * Stores supplicant state change information passed from WifiMonitor to 21 * a state machine. WifiStateMachine, SupplicantStateTracker and WpsStateMachine 22 * are example state machines that handle it. 26 StateChangeResult(int networkId, String BSSID, SupplicantState state) { argument 27 this.state = state; 33 SupplicantState state; field in class:StateChangeResult
|
H A D | SupplicantState.java | 26 * 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 44 * This state is entered if the network interface is disabled. 51 * Inactive state (wpa_supplicant disabled). 53 * This state is entered if there are no enabled networks in the 63 * This state is entered when wpa_supplicant starts scanning for a 71 * This state is entered when wpa_supplicant has found a suitable BSS 80 * This state i 169 isValidState(SupplicantState state) argument 175 isHandshakeState(SupplicantState state) argument 197 isConnecting(SupplicantState state) argument 219 isDriverActive(SupplicantState state) argument [all...] |
/frameworks/base/telephony/tests/telephonymockriltests/src/com/android/telephonymockriltests/functional/ |
H A D | SimpleTestUsingMockRil.java | 42 * Get the current radio state of RIL 45 int state = mMockRilCtrl.getRadioState(); 46 Log.v(TAG, "testGetRadioState: " + state); 47 assertTrue(state >= 0 && state <= 9); 51 * Set the current radio state of RIL 52 * and verify the radio state is set correctly 55 for (int state = 0; state <= 9; state [all...] |
/frameworks/base/libs/rs/ |
H A D | rsProgram.cpp | 30 mHal.state.inputElementsCount++; 33 mHal.state.constantsCount++; 36 mHal.state.texturesCount++; 40 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; 41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; 42 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; 43 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; 44 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; 46 mHal.state.textures = new Allocation*[mHal.state [all...] |
H A D | rsFBOCache.cpp | 28 mHal.state.colorTargetsCount = 1; 29 mHal.state.colorTargets = new Allocation*[mHal.state.colorTargetsCount]; 30 mColorTargets = new ObjectBaseRef<Allocation>[mHal.state.colorTargetsCount]; 35 delete[] mHal.state.colorTargets; 48 if (slot >= mHal.state.colorTargetsCount) { 59 mHal.state.colorTargets[slot] = a; 71 mHal.state.depthTarget = a; 76 for (uint32_t i = 0; i < mHal.state.colorTargetsCount; i ++) { 78 mHal.state [all...] |
H A D | rsMesh.cpp | 24 mHal.state.primitives = NULL; 25 mHal.state.primitivesCount = 0; 26 mHal.state.indexBuffers = NULL; 27 mHal.state.indexBuffersCount = 0; 28 mHal.state.vertexBuffers = NULL; 29 mHal.state.vertexBuffersCount = 0; 40 mHal.state.primitivesCount = primitivesCount; 41 mHal.state.indexBuffersCount = primitivesCount; 42 mHal.state.primitives = new RsPrimitive[mHal.state [all...] |
H A D | rsProgramStore.cpp | 31 mHal.state.ditherEnable = ditherEnable; 33 mHal.state.colorRWriteEnable = colorMaskR; 34 mHal.state.colorGWriteEnable = colorMaskG; 35 mHal.state.colorBWriteEnable = colorMaskB; 36 mHal.state.colorAWriteEnable = colorMaskA; 37 mHal.state.blendSrc = srcFunc; 38 mHal.state.blendDst = destFunc; 40 mHal.state.depthWriteEnable = depthMask; 41 mHal.state.depthFunc = depthFunc; 57 void ProgramStore::setup(const Context *rsc, ProgramStoreState *state) { argument [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | pre_proc.cpp | 131 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 D | sid_sync.cpp | 46 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 D | lpc.cpp | 100 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...] |
/frameworks/base/services/surfaceflinger/ |
H A D | Barrier.h | 29 inline Barrier() : state(CLOSED) { } 33 state = OPENED; 38 state = CLOSED; 42 while (state == CLOSED) { 50 volatile int state; member in class:android::Barrier
|
/frameworks/base/core/java/android/text/method/ |
H A D | MetaKeyKeyListener.java | 28 * This base class encapsulates the behavior for tracking the state of 29 * meta keys such as SHIFT, ALT and SYM as well as the pseudo-meta state of selecting text. 31 * Key listeners that care about meta state should inherit from this class; 34 * This class provides two mechanisms for tracking meta state that can be used 39 * {@link #getMetaState(long)} operate on a meta key state bit mask.</li> 41 * {@link #getMetaState(CharSequence, int)} operate on meta key state flags stored 43 * meta key state of the text editor; they do not carry any positional information.</li> 51 * When key modifiers are toggled into a latched or locked state, the state 53 * meta state intege 373 resetLockedMeta(long state) argument 398 getMetaState(long state) argument 430 getMetaState(long state, int meta) argument 458 adjustMetaAfterKeypress(long state) argument 482 handleKeyDown(long state, int keyCode, KeyEvent event) argument 501 press(long state, int what, long mask, long locked, long pressed, long released, long used) argument 520 handleKeyUp(long state, int keyCode, KeyEvent event) argument 539 release(long state, int what, long mask, long pressed, long released, long used, KeyEvent event) argument 563 clearMetaKeyState(long state, int which) argument [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
H A D | phase_dispersion.cpp | 160 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/services/input/ |
H A D | SpriteController.cpp | 133 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { 134 update.state.surfaceWidth = update.state.icon.bitmap.width(); 135 update.state.surfaceHeight = update.state.icon.bitmap.height(); 136 update.state.surfaceDrawn = false; 137 update.state.surfaceVisible = false; 138 update.state.surfaceControl = obtainSurface( 139 update.state [all...] |
/frameworks/compile/libbcc/tools/ |
H A D | gen-config-from-mk.py | 15 state = STATE_PRE_CONFIG 18 if state == STATE_PRE_CONFIG: 20 state = STATE_FOUND_CONFIG 22 elif state == STATE_FOUND_CONFIG: 26 state = STATE_IN_CONFIG 28 elif state == STATE_IN_CONFIG:
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | GsmCall.java | 49 default: throw new RuntimeException ("illegal call state:" + dcState); 92 return state.toString(); 101 state = stateFromDCState (dc.state); 105 attachFake(Connection conn, State state) { argument 108 this.state = state; 116 if (state != State.DISCONNECTED) { 131 state = State.DISCONNECTED; 142 state [all...] |