/frameworks/base/core/java/android/app/ |
H A D | Fragment.java | 164 * in particular during state restore, and needs to be able to find this 166 * a runtime exception will occur in some cases during state restore. 201 * up to resumed state (interacting with the user) are: 211 * state of its view hierarchy has been restored. 230 * <li> {@link #onDestroy} called to do final cleanup of the fragment's state. 341 * pressing back will pop it to return the user to whatever previous state 348 static final int INVALID_STATE = -1; // Invalid state used as a null value. 363 // If mAnimatingAway != null, this is the state we should move to once the 367 // When instantiated from saved state, this is the saved state 488 SavedState(Bundle state) argument 712 setInitialSavedState(SavedState state) argument [all...] |
H A D | FragmentManager.java | 129 * to an activity saving its state. If you try to commit a transaction 134 * in the state, and if changes are made after the state is saved then they 190 * Pop the top state off the back stack. This function is asynchronous -- it 211 * @param name If non-null, this is the name of a previous back state 212 * to look for; if found, all states up to that state will be popped. The 214 * the named state itself is popped. If null, only the top state is popped. 238 * the named state itself is popped. 275 * persisted as saved state, an 1466 addBackStackState(BackStackRecord state) argument 1710 restoreAllState(Parcelable state, ArrayList<Fragment> nonConfig) argument [all...] |
H A D | IActivityManager.java | 96 public void activityStopped(IBinder token, Bundle state, argument
|
H A D | IApplicationThread.java | 57 Bundle state, List<ResultInfo> pendingResults, 55 scheduleLaunchActivity(Intent intent, IBinder token, int ident, ActivityInfo info, Configuration curConfig, CompatibilityInfo compatInfo, Bundle state, List<ResultInfo> pendingResults, List<Intent> pendingNewIntents, boolean notResumed, boolean isForward, String profileName, ParcelFileDescriptor profileFd, boolean autoStopProfiler) argument
|
H A D | ListActivity.java | 152 * // requerying or closing it as the activity changes state. 217 protected void onRestoreInstanceState(Bundle state) { argument 219 super.onRestoreInstanceState(state); 232 * Updates the screen state (current list and other views) when the
|
H A D | LocalActivityManager.java | 58 Bundle instanceState; // Last retrieved freeze state. 59 int curState = RESTORED; // Current state the activity is in. 89 /** Current state the owner (ActivityGroup) is in */ 152 // the launching of the activity gets its state a little ahead 155 // group's state catches up. 247 * include an explicit component, we can restore the state for a different 248 * activity class than was previously running when the state was saved (if 380 * all state are removed from the group. 438 * Restore a state that was previously returned by {@link #saveInstanceState}. This 441 * user later navigates to them the correct state wil 451 dispatchCreate(Bundle state) argument [all...] |
H A D | TabActivity.java | 83 protected void onRestoreInstanceState(Bundle state) { argument 84 super.onRestoreInstanceState(state); 86 String cur = state.getString("currentTab"); 120 * Updates the screen state (current list and other views) when the
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothA2dp.java | 51 * Intent used to broadcast the change in connection state of the A2DP 56 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 57 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile.</li> 73 * Intent used to broadcast the change in the Playing state of the A2DP 78 * <li> {@link #EXTRA_STATE} - The current state of the profile. </li> 79 * <li> {@link #EXTRA_PREVIOUS_STATE}- The previous state of the profile. </li> 94 * A2DP sink device is streaming music. This state can be one of 101 * A2DP sink device is NOT streaming music. This state can be one of 201 * connection state intent for the profile will be broadcasted with 202 * the state 430 stateToString(int state) argument [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageParser.java | 253 PackageUserState state = new PackageUserState(); 255 grantedPermissions, state, UserHandle.getCallingUserId()); 267 HashSet<String> grantedPermissions, PackageUserState state) { 270 grantedPermissions, state, UserHandle.getCallingUserId()); 273 private static boolean checkUseInstalled(int flags, PackageUserState state) { argument 274 return state.installed || ((flags & PackageManager.GET_UNINSTALLED_PACKAGES) != 0); 279 HashSet<String> grantedPermissions, PackageUserState state, int userId) { 281 if (!checkUseInstalled(flags, state)) { 290 pi.applicationInfo = generateApplicationInfo(p, flags, state, userId); 326 state, userI 265 generatePackageInfo(PackageParser.Package p, int gids[], int flags, long firstInstallTime, long lastUpdateTime, HashSet<String> grantedPermissions, PackageUserState state) argument 277 generatePackageInfo(PackageParser.Package p, int gids[], int flags, long firstInstallTime, long lastUpdateTime, HashSet<String> grantedPermissions, PackageUserState state, int userId) argument 3495 copyNeeded(int flags, Package p, PackageUserState state, Bundle metaData, int userId) argument 3525 generateApplicationInfo(Package p, int flags, PackageUserState state) argument 3530 generateApplicationInfo(Package p, int flags, PackageUserState state, int userId) argument 3634 generateActivityInfo(Activity a, int flags, PackageUserState state, int userId) argument 3671 generateServiceInfo(Service s, int flags, PackageUserState state, int userId) argument 3716 generateProviderInfo(Provider p, int flags, PackageUserState state, int userId) argument [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 | DummyDataStateTracker.java | 25 * A dummy data state tracker for use when we don't have a real radio 127 * Record the detailed state of a network, and if it is a 128 * change from the previous state, send a notification to 130 * @param state the new {@code DetailedState} 131 * @param reason a {@code String} indicating a reason for the state change, 133 * @param extraInfo optional {@code String} providing extra information about the state change 135 private void setDetailedState(NetworkInfo.DetailedState state, String reason, argument 137 if (DBG) log("setDetailed state, old =" 138 + mNetworkInfo.getDetailedState() + " and new state=" + state); [all...] |
H A D | MobileDataStateTracker.java | 45 * Track the state of mobile data connectivity. This is done by 47 * the state of data connectivity changes. 198 PhoneConstants.DataState state = Enum.valueOf(PhoneConstants.DataState.class, 212 log("Received state=" + state + ", old=" + mMobileDataState + 215 if (mMobileDataState != state) { 216 mMobileDataState = state; 217 switch (state) { 254 // There was no state change. Check if LinkProperties has been updated. 390 * Record the detailed state o 398 setDetailedState(NetworkInfo.DetailedState state, String reason, String extraInfo) argument [all...] |
H A D | NetworkIdentity.java | 139 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state) { argument 140 final int type = state.networkInfo.getType(); 141 final int subType = state.networkInfo.getSubtype(); 154 if (state.subscriberId != null) { 155 subscriberId = state.subscriberId; 161 if (state.networkId != null) { 162 networkId = state.networkId;
|
/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.
|
H A D | SystemService.java | 44 State(String state) { argument 45 sStates.put(state, this); 78 * Return current state of given service. 82 final State state = sStates.get(rawState); 83 if (state != null) { 84 return state; 105 * Wait until given service has entered specific state. 107 public static void waitForState(String service, State state, long timeoutMillis) argument 113 if (state.equals(currentState)) { 119 + "; waited " + timeoutMillis + "ms for " + state); [all...] |
/frameworks/base/core/java/android/os/storage/ |
H A D | OnObbStateChangeListener.java | 80 * @param path path to the OBB file the state change has happened on 81 * @param state the current state of the OBB 83 public void onObbStateChange(String path, int state) { argument
|
H A D | StorageManager.java | 166 changeListener.onObbStateChange(ev.path, ev.state); 181 void sendObbStateChanged(String path, int state) { argument 182 ObbStateChangedStorageEvent e = new ObbStateChangedStorageEvent(path, state); 193 public final int state; field in class:StorageManager.ObbStateChangedStorageEvent 195 public ObbStateChangedStorageEvent(String path, int state) { argument 198 this.state = state; 237 * Message sent on volume state change. 415 Log.e(TAG, "Failed to get UMS connection state", ex); 430 Log.e(TAG, "Failed to get UMS enable state", re [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | DialogPreference.java | 274 * @param state Optional instance state to restore on the dialog 276 protected void showDialog(Bundle state) { argument 301 if (state != null) { 302 dialog.onRestoreInstanceState(state); 431 protected void onRestoreInstanceState(Parcelable state) { argument 432 if (state == null || !state.getClass().equals(SavedState.class)) { 433 // Didn't save state for us in onSaveInstanceState 434 super.onRestoreInstanceState(state); [all...] |
H A D | EditTextPreference.java | 65 * We reset the enabled state. 182 // No need to save instance state since it's persistent 192 protected void onRestoreInstanceState(Parcelable state) { argument 193 if (state == null || !state.getClass().equals(SavedState.class)) { 194 // Didn't save state for us in onSaveInstanceState 195 super.onRestoreInstanceState(state); 199 SavedState myState = (SavedState) state;
|
H A D | ListPreference.java | 285 // No need to save instance state since it's persistent 295 protected void onRestoreInstanceState(Parcelable state) { argument 296 if (state == null || !state.getClass().equals(SavedState.class)) { 297 // Didn't save state for us in onSaveInstanceState 298 super.onRestoreInstanceState(state); 302 SavedState myState = (SavedState) state;
|
H A D | MultiCheckPreference.java | 144 * Get the boolean state of a given value. 151 * Set the boolean state of a given value. 153 public void setValue(int index, boolean state) { argument 154 mSetValues[index] = state; 275 // No need to save instance state since it's persistent 285 protected void onRestoreInstanceState(Parcelable state) { argument 286 if (state == null || !state.getClass().equals(SavedState.class)) { 287 // Didn't save state for us in onSaveInstanceState 288 super.onRestoreInstanceState(state); [all...] |
H A D | Preference.java | 143 * called before the state of the Preference is about to be updated and 144 * before the state is persisted. 148 * @return True to update the state of the Preference with the new value. 550 * Makes sure the view (and any children) get the enabled state changed. 723 // Enabled state can change dependent preferences' states, so notify 766 * clickable 2) should not have the view set to the disabled state. 799 * update the preference's state with the new value. 888 * internal state is set. This allows the client to ignore the user value. 900 * user (but before the internal state has been updated). 910 * user (but before the internal state ha 1776 onRestoreInstanceState(Parcelable state) argument [all...] |
H A D | PreferenceActivity.java | 127 // Constants for state save/restore 206 // --- Common state 522 // We are restarting from a previous saved state; used that to 930 protected void onRestoreInstanceState(Bundle state) { argument 932 Bundle container = state.getBundle(PREFERENCES_TAG); 937 mSavedInstanceState = state; 943 // Only call this if we didn't save the instance state for later. 945 super.onRestoreInstanceState(state); 1166 // to pop the stack up to its root state.
|
H A D | PreferenceScreen.java | 159 private void showDialog(Bundle state) { argument 182 if (state != null) { 183 dialog.onRestoreInstanceState(state); 238 protected void onRestoreInstanceState(Parcelable state) { argument 239 if (state == null || !state.getClass().equals(SavedState.class)) { 240 // Didn't save state for us in onSaveInstanceState 241 super.onRestoreInstanceState(state); 245 SavedState myState = (SavedState) state;
|
H A D | SeekBarPreference.java | 171 * must save the instance state so it is able to, for example, survive 177 // No need to save instance state since it's persistent 181 // Save the instance state 189 protected void onRestoreInstanceState(Parcelable state) { argument 190 if (!state.getClass().equals(SavedState.class)) { 191 // Didn't save state for us in onSaveInstanceState 192 super.onRestoreInstanceState(state); 196 // Restore the instance state 197 SavedState myState = (SavedState) state; 205 * SavedState, a subclass of {@link BaseSavedState}, will store the state [all...] |