/frameworks/base/core/java/android/preference/ |
H A D | PreferenceScreen.java | 151 private void showDialog(Bundle state) { argument 169 if (state != null) { 170 dialog.onRestoreInstanceState(state); 225 protected void onRestoreInstanceState(Parcelable state) { argument 226 if (state == null || !state.getClass().equals(SavedState.class)) { 227 // Didn't save state for us in onSaveInstanceState 228 super.onRestoreInstanceState(state); 232 SavedState myState = (SavedState) state;
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | TestedActivity.java | 37 protected void onRestoreInstanceState(Bundle state) argument 39 super.onRestoreInstanceState(state);
|
/frameworks/base/libs/rs/ |
H A D | rsAllocation.h | 59 State state; member in struct:android::renderscript::Allocation::Hal 74 const Type * getType() const {return mHal.state.type;} 105 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) != 0; 108 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) != 0; 111 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET) != 0; 114 return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) != 0; 123 return mHal.state.mipmapControl != RS_ALLOCATION_MIPMAP_NONE; 132 mHal.state.type = t;
|
H A D | rsProgramFragment.cpp | 45 if (mHal.state.constants[0] == NULL) { 54 memcpy(mHal.state.constants[0]->getPtr(), mConstantColor, 4*sizeof(float)); 58 void ProgramFragment::setup(Context *rsc, ProgramFragmentState *state) { argument 59 if ((state->mLast.get() == this) && !mDirty) { 62 state->mLast.set(this); 64 for (uint32_t ct=0; ct < mHal.state.texturesCount; ct++) { 65 if (!mHal.state.textures[ct]) {
|
/frameworks/base/tools/layoutlib/bridge/src/com/google/android/maps/ |
H A D | MapView.java | 112 public void onSaveInstanceState(Bundle state) { argument 115 public void onRestoreInstanceState(Bundle state) { argument
|
/frameworks/base/core/java/android/server/ |
H A D | BluetoothBondState.java | 49 * Local cache of bonding state. 50 * We keep our own state to track the intermediate state BONDING, which 130 public synchronized void setBondState(String address, int state) { argument 131 setBondState(address, state, 0); 134 /** reason is ignored unless state == BOND_NOT_BONDED */ 135 public synchronized void setBondState(String address, int state, int reason) { argument 136 if (DBG) Log.d(TAG, "setBondState " + "address" + " " + state + "reason: " + reason); 139 if (oldState == state) { 144 // If yes, reset the state 242 listInState(int state) argument 451 setProfilePriorities(String address, int state) argument [all...] |
H A D | BluetoothPanProfileHandler.java | 168 int state = panDevice.mState; 169 if (state == BluetoothPan.STATE_CONNECTED && 181 // Restore prev state 182 handlePanDeviceStateChange(device, panDevice.mIface, state, 208 for (int state : states) { 209 if (state == panDeviceState) { 222 int state = getPanDeviceConnectionState(device); 223 if (state != BluetoothPan.STATE_CONNECTED) { 240 // Restore prev state, this shouldn't happen 241 handlePanDeviceStateChange(device, panDevice.mIface, state, panDevic 254 handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, int role) argument 317 BluetoothPanDevice(int state, String ifaceAddr, String iface, int localRole) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 345 final BitmapState state = mBitmapState; 346 if (state.mTileModeX != xmode || state.mTileModeY != ymode) { 347 state.mTileModeX = xmode; 348 state.mTileModeY = ymode; 349 state.mRebuildShader = true; 369 final BitmapState state = mBitmapState; 370 if (state.mRebuildShader) { 371 Shader.TileMode tmx = state.mTileModeX; 372 Shader.TileMode tmy = state 548 BitmapDrawable(BitmapState state, Resources res) argument [all...] |
H A D | NinePatchDrawable.java | 101 private void setNinePatchState(NinePatchState state, Resources res) { argument 102 mNinePatchState = state; 103 mNinePatch = state.mNinePatch; 104 mPadding = state.mPadding; 106 : state.mTargetDensity; 108 if (state.mDither != DEFAULT_DITHER) { 111 setDither(state.mDither); 373 NinePatchState(NinePatchState state) { argument 374 mNinePatch = new NinePatch(state.mNinePatch); 376 mPadding = state 398 NinePatchDrawable(NinePatchState state, Resources res) argument [all...] |
H A D | GradientDrawable.java | 126 private boolean mRectIsDirty; // internal state 925 public GradientState(GradientState state) { argument 926 mChangingConfigurations = state.mChangingConfigurations; 927 mShape = state.mShape; 928 mGradient = state.mGradient; 929 mOrientation = state.mOrientation; 930 if (state.mColors != null) { 931 mColors = state.mColors.clone(); 933 if (state.mPositions != null) { 934 mPositions = state 1033 GradientDrawable(GradientState state) argument 1039 initializeWithState(GradientState state) argument [all...] |
/frameworks/base/media/libstagefright/foundation/ |
H A D | AHierarchicalStateMachine.cpp | 66 LOGW("Warning message %s unhandled in root state.", 70 void AHierarchicalStateMachine::changeState(const sp<AState> &state) { argument 71 if (state == mState) { 87 cur = state; 102 mState = state;
|
/frameworks/base/services/audioflinger/ |
H A D | AudioResamplerCubic.h | 44 } state; typedef in class:android::AudioResamplerCubic 50 static inline int32_t interp(state* p, int32_t x) { 53 static inline void advance(state* p, int16_t in) { 62 state left, right;
|
/frameworks/media/libvideoeditor/osal/inc/ |
H A D | M4OSA_Thread_priv.h | 43 M4OSA_ThreadState state; /* thread automaton state */ member in struct:M4OSA_ThreadContext 44 M4OSA_Context stateMutex; /* mutex for thread state management */
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityGroup.java | 67 Bundle state = mLocalActivityManager.saveInstanceState(); 68 if (state != null) { 69 outState.putBundle(STATES_KEY, state);
|
H A D | DatePickerDialog.java | 143 Bundle state = super.onSaveInstanceState(); 144 state.putInt(YEAR, mDatePicker.getYear()); 145 state.putInt(MONTH, mDatePicker.getMonth()); 146 state.putInt(DAY, mDatePicker.getDayOfMonth()); 147 return state;
|
H A D | TimePickerDialog.java | 109 // initialize state 135 Bundle state = super.onSaveInstanceState(); 136 state.putInt(HOUR, mTimePicker.getCurrentHour()); 137 state.putInt(MINUTE, mTimePicker.getCurrentMinute()); 138 state.putBoolean(IS_24_HOUR, mTimePicker.is24HourView()); 139 return state;
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 66 bool state = false; local 67 AudioSystem::isMicrophoneMuted(&state); 68 return state; 74 bool state = false; local 75 AudioSystem::isStreamActive(stream, &state, inPastMs); 76 return state; 132 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 136 static_cast <audio_policy_dev_state_t>(state), 146 int state = static_cast <int>(AudioSystem::getDeviceConnectionState(static_cast <audio_devices_t>(device), local 149 return state; 153 android_media_AudioSystem_setPhoneState(JNIEnv *env, jobject thiz, jint state) argument [all...] |
/frameworks/base/libs/rs/driver/ |
H A D | rsdMeshObj.cpp | 82 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { 83 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); 105 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { 106 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); 135 if (len < 1 || primIndex >= mRSMesh->mHal.state.primitivesCount || mAttribCount == 0) { 140 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { 141 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; 148 // update attributes with either buffer information or data ptr based on their current state 151 Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[allocIndex]; 166 const Allocation *idxAlloc = mRSMesh->mHal.state [all...] |
H A D | rsdVertexArray.cpp | 85 RsdVertexArrayState *state = dc->gl.vertexArrayState; local 89 uint32_t maxAttrs = state->mAttrsEnabledSize; 92 if(state->mAttrsEnabled[ct]) { 94 state->mAttrsEnabled[ct] = false; 108 state->mAttrsEnabled[slot] = true;
|
/frameworks/base/services/input/ |
H A D | SpriteController.h | 174 /* Describes the state of a sprite. 208 * Requests acquire a lock on the controller, update local state and request the 212 * the sprite state before the work and update the sprite surface control afterwards. 229 return mLocked.state; 233 mLocked.state.dirty = 0; 238 mLocked.state.surfaceControl = surfaceControl; 239 mLocked.state.surfaceWidth = width; 240 mLocked.state.surfaceHeight = height; 241 mLocked.state.surfaceDrawn = drawn; 242 mLocked.state 249 SpriteState state; member in struct:android::SpriteController::SpriteImpl::Locked 258 SpriteUpdate(const sp<SpriteImpl> sprite, const SpriteState& state) argument 263 SpriteState state; member in struct:android::SpriteController::SpriteUpdate [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | XmlBlock.java | 84 public void setFeature(String name, boolean state) throws XmlPullParserException { argument 85 if (FEATURE_PROCESS_NAMESPACES.equals(name) && state) { 88 if (FEATURE_REPORT_NAMESPACE_ATTRIBUTES.equals(name) && state) { 497 /*package*/ static final native int nativeNext(int state); argument 498 private static final native int nativeGetNamespace(int state); argument 499 /*package*/ static final native int nativeGetName(int state); argument 500 private static final native int nativeGetText(int state); argument 501 private static final native int nativeGetLineNumber(int state); argument 502 private static final native int nativeGetAttributeCount(int state); argument 503 private static final native int nativeGetAttributeNamespace(int state, in argument 504 nativeGetAttributeName(int state, int idx) argument 505 nativeGetAttributeResource(int state, int idx) argument 506 nativeGetAttributeDataType(int state, int idx) argument 507 nativeGetAttributeData(int state, int idx) argument 508 nativeGetAttributeStringValue(int state, int idx) argument 509 nativeGetIdAttribute(int state) argument 510 nativeGetClassAttribute(int state) argument 511 nativeGetStyleAttribute(int state) argument 512 nativeGetAttributeIndex(int state, String namespace, String name) argument 513 nativeDestroyParseState(int state) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkIdentity.java | 109 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state) { argument 110 final int type = state.networkInfo.getType(); 111 final int subType = state.networkInfo.getSubtype(); 122 if (state.subscriberId != null) { 123 subscriberId = state.subscriberId;
|
/frameworks/media/libvideoeditor/osal/src/ |
H A D | M4OSA_Thread.c | 59 threadContext->state = M4OSA_kThreadRunning; 63 while(threadContext->state == M4OSA_kThreadRunning) 71 if(threadContext->state == M4OSA_kThreadRunning) 74 //PR 2354 - ACO : Suppress stopping state and don't 76 threadContext->state = M4OSA_kThreadOpened; 112 * @note Once the thread is created, the state is M4OSA_kThreadOpened. 154 threadContext->state = M4OSA_kThreadOpened; 191 * Before calling this method, the state is M4OSA_kThreadOpened. 192 * Once the method is called, the state is M4OSA_kThreadStarting. 193 * Once the thread is running, the state i 467 M4OSA_threadSyncGetState(M4OSA_Context context, M4OSA_ThreadState* state) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 124 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); 125 assertNotSame(-1, state); 126 switch (state) { 186 int state = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, -1); 187 assertNotSame(-1, state); 188 switch (state) { 244 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); 245 assertNotSame(-1, state); 246 switch (state) { 294 int state [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | pstfilt.cpp | 166 state = pointer to structure of type Post_FilterState 169 fields of the structure pointed to by state is initialized to zero 183 This function initializes the state memory used by the Post_Filter function 199 int Post_Filter_reset (Post_FilterState *state) 201 if (state == (Post_FilterState *) NULL){ 206 Set_zero (state->mem_syn_pst, M); 207 Set_zero (state->res2, L_SUBFR); 208 Set_zero (state->synth_buf, L_FRAME + M); 209 agc_reset(state->agc_state); 210 preemphasis_reset(state 238 Post_Filter_reset(Post_FilterState *state) argument [all...] |