/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | preemph.cpp | 118 Initializes state memory to zero 156 Word16 preemphasis_reset(preemphasisState *state) argument 158 if (state == (preemphasisState *) NULL) 164 state->mem_pre = 0; 176 st -- Pointer to preemphasisState -- preemphasis filter state 182 st -- Pointer to preemphasisState -- preemphasis filter state 237 preemphasisState *st, /* (i/o) : preemphasis filter state */
|
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/base/core/java/android/util/ |
H A D | StateSet.java | 23 * represents the state of a {@link android.view.View} (e.g. focused, 27 * A state spec is an array of signed ints where each element 29 * {@link android.view.View} state. 31 * Utils dealing with state sets. 33 * In theory we could encapsulate the state set and state spec arrays 47 * @param stateSetOrSpec a state set or state spec. 82 final int state = stateSet[j]; 83 if (state 120 stateSetMatches(int[] stateSpec, int state) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | ConditionVariable.java | 37 * Create the ConditionVariable in the default closed state. 45 * Create the ConditionVariable with the given state. 50 public ConditionVariable(boolean state) argument 52 mCondition = state; 74 * Reset the condition to the closed state.
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | IInputMethodClient.aidl | 23 * itself and receive information about changes to the global manager state. 26 void setUsingInputMethod(boolean state);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_LightsService.cpp | 110 light_state_t state; local 116 memset(&state, 0, sizeof(light_state_t)); 117 state.color = colorARGB; 118 state.flashMode = flashMode; 119 state.flashOnMS = onMS; 120 state.flashOffMS = offMS; 121 state.brightnessMode = brightnessMode; 123 devices->lights[light]->set_light(devices->lights[light], &state);
|
/frameworks/base/libs/rs/driver/ |
H A D | rsdAllocation.cpp | 85 if (alloc->mHal.state.hasFaces) { 99 if (alloc->mHal.state.hasFaces) { 105 for (uint32_t lod = 0; lod < alloc->mHal.state.type->getLODCount(); lod++) { 107 p += alloc->mHal.state.type->getLODFaceOffset(lod, (RsAllocationCubemapFace)face, 0, 0); 110 if (alloc->mHal.state.hasFaces) { 116 alloc->mHal.state.type->getLODDimX(lod), 117 alloc->mHal.state.type->getLODDimY(lod), 121 alloc->mHal.state.type->getLODDimX(lod), 122 alloc->mHal.state.type->getLODDimY(lod), 128 if (alloc->mHal.state [all...] |
H A D | rsdShader.cpp | 71 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { 72 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames, NULL, &attribCount, RS_SHADER_ATTR); 74 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { 75 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), mUniformNames, mUniformArraySizes, &uniformCount, RS_SHADER_UNI); 80 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { 91 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { 92 const Element *e = mRSProgram->mHal.state.inputElements[ct]; 115 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { 116 const Element *e = mRSProgram->mHal.state.inputElements[ct]; 144 for (uint32_t ct=0; ct < mRSProgram->mHal.state [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | DefaultPhoneNotifier.java | 104 Phone.DataState state) { 105 doNotifyDataConnection(sender, reason, apnType, state); 109 Phone.DataState state) { 118 if (state == Phone.DataState.CONNECTED) { 127 convertDataState(state), 175 public static int convertCallState(Phone.State state) { argument 176 switch (state) { 190 public static Phone.State convertCallState(int state) { argument 191 switch (state) { 205 public static int convertDataState(Phone.DataState state) { argument 103 notifyDataConnection(Phone sender, String reason, String apnType, Phone.DataState state) argument 108 doNotifyDataConnection(Phone sender, String reason, String apnType, Phone.DataState state) argument 222 convertDataState(int state) argument 239 convertDataActivityState(Phone.DataActivityState state) argument 258 convertDataActivityState(int state) argument [all...] |
H A D | IPhoneStateListener.aidl | 31 void onCallStateChanged(int state, String incomingNumber); 32 void onDataConnectionStateChanged(int state, int networkType);
|
H A D | DriverCall.java | 36 // If you add a state, make sure to look for the switch() 42 public State state; // May be null if unavail field in class:DriverCall 60 // index,isMT,state,mode,isMpty(,number,TOA)? 66 ret.state = stateFromCLCC(p.nextInt()); 107 + state + "," 119 stateFromCLCC(int state) throws ATParseEx { argument 120 switch(state) { 128 throw new ATParseEx("illegal call state " + state);
|
H A D | IccCardStatus.java | 74 public void setCardState(int state) { argument 75 switch(state) { 86 throw new RuntimeException("Unrecognized RIL_CardState: " + state); 94 public void setUniversalPinState(int state) { argument 95 switch(state) { 115 throw new RuntimeException("Unrecognized RIL_PinState: " + state);
|
/frameworks/base/libs/rs/ |
H A D | rsMesh.h | 56 State state; member in struct:android::renderscript::Mesh::Hal 62 mHal.state.vertexBuffers[index] = vb; 67 mHal.state.indexBuffers[index] = idx; 68 mHal.state.primitives[index] = prim;
|
H A D | rsProgramRaster.cpp | 28 mHal.state.pointSprite = pointSprite; 29 mHal.state.cull = cull; 46 void ProgramRaster::setup(const Context *rsc, ProgramRasterState *state) { argument 47 if (state->mLast.get() == this && !mDirty) { 50 state->mLast.set(this); 85 if (existing->mHal.state.pointSprite != pointSprite) continue; 86 if (existing->mHal.state.cull != cull) continue;
|
H A D | rsProgramVertex.cpp | 35 void ProgramVertex::setup(Context *rsc, ProgramVertexState *state) { argument 36 if ((state->mLast.get() == this) && !mDirty) { 41 if (mHal.state.constants[0] == NULL) { 46 float *f = static_cast<float *>(mHal.state.constants[0]->getPtr()); 57 state->mLast.set(this); 68 if (mHal.state.constants[0] == NULL) { 73 float *f = static_cast<float *>(mHal.state.constants[0]->getPtr()); 84 if (mHal.state.constants[0] == NULL) { 89 float *f = static_cast<float *>(mHal.state.constants[0]->getPtr()); 100 if (mHal.state [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | WiredAccessoryObserver.java | 44 "/sys/class/switch/h2w/state", 47 "/sys/class/switch/usb_audio/state", 50 "/sys/class/switch/hdmi/state", 100 int state = Integer.parseInt(event.get("SWITCH_STATE")); 101 updateState(name, state); 103 Slog.e(TAG, "Could not parse switch state from event " + event); 107 private synchronized final void updateState(String name, int state) argument 111 ((state == 1) ? BIT_USB_HEADSET_ANLG : 112 ((state == 2) ? BIT_USB_HEADSET_DGTL : 0))); 116 ((state [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | SupplicantStateTracker.java | 31 * Tracks the state changes in supplicant and provides functionality 32 * that is based on these state changes: 81 //start the state machine 96 SupplicantState supState = (SupplicantState) stateChangeResult.state; 98 if (DBG) Log.d(TAG, "Supplicant state: " + supState.toString() + "\n"); 131 Log.e(TAG, "Unknown supplicant state " + supState); 136 private void sendSupplicantStateChangedBroadcast(SupplicantState state, boolean failedAuth) { argument 140 intent.putExtra(WifiManager.EXTRA_NEW_STATE, (Parcelable) state); 168 SupplicantState state = stateChangeResult.state; [all...] |
/frameworks/compile/libbcc/helper/ |
H A D | sha1.h | 8 unsigned long state[5]; member in struct:__anon1265
|
/frameworks/base/telephony/mockril/src/com/android/internal/telephony/mockril/ |
H A D | MockRilController.java | 87 * @return the radio state if it is valid, otherwise return -1 101 int state = resp.getState(); 102 if ((state >= RilCmds.RADIOSTATE_OFF) && (state <= RilCmds.RADIOSTATE_NV_READY)) 103 return state; 109 * Set the radio state of mock ril to the given state 110 * @param state for given radio state 111 * @return true if the state i 113 setRadioState(int state) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 144 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 145 delete state; 149 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 150 state->clear(); 161 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 162 state->addMovement(event); 167 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 168 state->computeCurrentVelocity(units, maxVelocity); 173 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 175 state 181 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 189 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local [all...] |
/frameworks/base/services/audioflinger/ |
H A D | AudioMixer.cpp | 366 void AudioMixer::process__validate(state_t* state) argument 368 LOGW_IF(!state->needsChanged, 371 uint32_t changed = state->needsChanged; 372 state->needsChanged = 0; // clear the validation flag 381 track_t& t = state->tracks[i]; 384 state->enabledTracks &= ~disabled; 385 state->enabledTracks |= enabled; 392 uint32_t en = state->enabledTracks; 398 track_t& t = state->tracks[i]; 437 state 879 process__nop(state_t* state) argument 919 process__genericNoResampling(state_t* state) argument 1014 process__genericResampling(state_t* state) argument 1080 process__OneTrack16BitsStereoNoResampling(state_t* state) argument 1138 process__TwoTracks16BitsStereoNoResampling(state_t* state) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ColorDrawable.java | 57 private ColorDrawable(ColorState state) { argument 58 mState = new ColorState(state); 164 ColorState(ColorState state) { argument 165 if (state != null) { 166 mBaseColor = state.mBaseColor; 167 mUseColor = state.mUseColor;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | StateMachine.java | 32 * <p>The state machine defined here is a hierarchical state machine which processes messages 35 * <p>A state is a <code>State</code> object and must implement 39 * cleanup of the state respectively. The <code>getName</code> method returns the 40 * name of the state the default implementation returns the class name it may be 41 * desirable to have this return the name of the state instance name instead. 42 * In particular if a particular state class has multiple instances.</p> 44 * <p>When a state machine is created <code>addState</code> is used to build the 46 * is the initial state. After construction the programmer calls <code>start</code> 47 * which initializes the state machin 444 private State state; field in class:StateMachine.ProcessedMessageInfo 454 ProcessedMessageInfo(Message message, State state, State orgState) argument 464 update(Message message, State state, State orgState) argument 603 add(Message message, State state, State orgState) argument 663 State state; field in class:StateMachine.SmHandler.StateInfo 1059 addState(State state, State parent) argument 1211 addState(State state, State parent) argument 1233 addState(State state) argument [all...] |
/frameworks/base/libs/utils/ |
H A D | CallStack.cpp | 52 stack_crawl_state_t* state = (stack_crawl_state_t*)arg; local 53 if (state->count) { 56 if (state->ignore) { 57 state->ignore--; 59 state->addrs[0] = ip; 60 state->addrs++; 61 state->count--; 71 stack_crawl_state_t state; local 72 state.count = size; 73 state [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | levinson.cpp | 91 state = pointer to an array of pointers to structures of type 95 pointer pointed to by state points to the newly allocated memory to 110 This function allocates and initializes the state memory used by the 126 int Levinson_init (LevinsonState **state) 130 if (state == (LevinsonState **) NULL){ 134 *state = NULL; 138 //fprint(stderr, "Levinson_init: can not malloc state structure\n"); 143 *state = s; 171 Word16 Levinson_init(LevinsonState **state) argument 175 if (state 279 Levinson_reset(LevinsonState *state) argument 375 Levinson_exit(LevinsonState **state) argument [all...] |