/frameworks/base/core/java/com/android/internal/graphics/drawable/ |
H A D | AnimationScaleListDrawable.java | 56 private AnimationScaleListDrawable(@Nullable AnimationScaleListState state, argument 58 // Every scale list drawable has its own constant state. 59 final AnimationScaleListState newState = new AnimationScaleListState(state, this, res); 96 final AnimationScaleListState state = mAnimationScaleListState; 130 state.addDrawable(dr); 246 protected void setConstantState(@NonNull DrawableContainerState state) { argument 247 super.setConstantState(state); 249 if (state instanceof AnimationScaleListState) { 250 mAnimationScaleListState = (AnimationScaleListState) state;
|
/frameworks/base/core/java/com/android/internal/preference/ |
H A D | YesNoPreference.java | 103 // No need to save instance state since it's persistent 113 protected void onRestoreInstanceState(Parcelable state) { argument 114 if (!state.getClass().equals(SavedState.class)) { 115 // Didn't save state for us in onSaveInstanceState 116 super.onRestoreInstanceState(state); 120 SavedState myState = (SavedState) state;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuPresenter.java | 165 Bundle state = new Bundle(); 166 saveHierarchyState(state); 168 state.putInt(OPEN_SUBMENU_KEY, mOpenSubMenuId); 170 return state; 174 public void onRestoreInstanceState(Parcelable state) { argument 175 restoreHierarchyState((Bundle) state);
|
H A D | MenuPresenter.java | 43 * of menu state so that it does not attempt to hide the action bar 136 * Returns an ID for determining how to save/restore instance state. 142 * Returns a Parcelable describing the current state of the presenter. 145 * @return The saved instance state 150 * Supplies the previously saved instance state to be restored. 151 * @param state The previously saved instance state 153 public void onRestoreInstanceState(Parcelable state); argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PagerAdapter.java | 233 * Save any instance state associated with this adapter and its pages that should be 234 * restored if the current UI state needs to be reconstructed. 236 * @return Saved state for this adapter 243 * Restore any instance state associated with this adapter and its pages 246 * @param state State previously saved by a call to {@link #saveState()} 249 public void restoreState(Parcelable state, ClassLoader loader) { argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 103 final ClipState state = mState; 104 if (state == null) { 108 if (state.mThemeAttrs != null) { 109 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ClipDrawable); 132 final ClipState state = mState; 133 if (state == null) { 138 state.mChangingConfigurations |= a.getChangingConfigurations(); 141 state.mThemeAttrs = a.extractThemeAttrs(); 143 state.mOrientation = a.getInt( 144 R.styleable.ClipDrawable_clipOrientation, state 234 ClipDrawable(ClipState state, Resources res) argument [all...] |
H A D | LevelListDrawable.java | 71 // in case the new state matches our current state... 238 protected void setConstantState(@NonNull DrawableContainerState state) { argument 239 super.setConstantState(state); 241 if (state instanceof LevelListState) { 242 mLevelListState = (LevelListState) state; 246 private LevelListDrawable(LevelListState state, Resources res) { argument 247 final LevelListState as = new LevelListState(state, this, res);
|
H A D | TransitionDrawable.java | 60 * The current state of the transition. One of {@link #TRANSITION_STARTING}, 92 private TransitionDrawable(TransitionState state, Resources res) { argument 93 super(state, res); 96 private TransitionDrawable(TransitionState state, Drawable[] layers) { argument 97 super(layers, state); 101 LayerState createConstantState(LayerState state, Resources res) { argument 102 return new TransitionState((TransitionState) state, this, res);
|
/frameworks/base/libs/androidfw/tests/ |
H A D | AssetManager2_bench.cpp | 39 static void BM_AssetManagerLoadAssets(benchmark::State& state) { argument 41 while (state.KeepRunning()) { 49 static void BM_AssetManagerLoadAssetsOld(benchmark::State& state) { argument 51 while (state.KeepRunning()) { 62 static void BM_AssetManagerLoadFrameworkAssets(benchmark::State& state) { argument 64 while (state.KeepRunning()) { 72 static void BM_AssetManagerLoadFrameworkAssetsOld(benchmark::State& state) { argument 74 while (state.KeepRunning()) { 87 benchmark::State& state) { 93 state 85 GetResourceBenchmark(const std::vector<std::string>& paths, const ResTable_config* config, uint32_t resid, benchmark::State& state) argument 116 BM_AssetManagerGetResource(benchmark::State& state) argument 122 BM_AssetManagerGetResourceOld(benchmark::State& state) argument 128 BM_AssetManagerGetLibraryResource(benchmark::State& state) argument 136 BM_AssetManagerGetLibraryResourceOld(benchmark::State& state) argument 146 BM_AssetManagerGetResourceFrameworkLocale(benchmark::State& state) argument 154 BM_AssetManagerGetResourceFrameworkLocaleOld(benchmark::State& state) argument 162 BM_AssetManagerGetBag(benchmark::State& state) argument 185 BM_AssetManagerGetBagOld(benchmark::State& state) argument 210 BM_AssetManagerGetResourceLocales(benchmark::State& state) argument 228 BM_AssetManagerGetResourceLocalesOld(benchmark::State& state) argument [all...] |
/frameworks/base/libs/common_time/ |
H A D | common_clock_service.cpp | 85 status_t CommonClockService::getState(State* state) { argument 86 *state = mTimeServer.getState();
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.cpp | 128 RoundRectClipState* state = new (allocator) RoundRectClipState; local 130 state->highPriority = highPriority; 135 state->matrix.loadInverse(roundRectDrawingMatrix); 139 state->dangerRects[i] = bounds; 141 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius; 142 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius; 143 state->dangerRects[1].left = state [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaRecorderStateUnitTestTemplate.java | 65 * Calls method under test in the given state of the MediaRecorder object. 67 * @param state the MediaRecorder state in which the method under test is called. 69 private void callMediaRecorderMethodUnderTestInState(MediaRecorderStateErrors.MediaRecorderState state) { argument 70 Log.v(TAG, "call " + mMethodUnderTest + ": started in state " + state); 71 setMediaRecorderToState(state); 77 Log.v(TAG, "call " + mMethodUnderTest + ": ended in state " + state); 82 * object to the corresponding state, give 215 setMediaRecorderToState(MediaRecorderStateErrors.MediaRecorderState state) argument 251 setStateError(MediaRecorderStateErrors.MediaRecorderState state, boolean error) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeUi.java | 101 private boolean shouldAnimateWakeup(DozeMachine.State state) { argument 102 switch (state) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | SignalTileView.java | 111 public void setIcon(QSTile.State state) { argument 112 final SignalState s = (SignalState) state;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | TileQueryHelper.java | 94 final QSTile.State state = tile.getState().copy(); 95 // Ignore the current state and get the generic label instead. 96 state.label = tile.getTileLabel(); 101 addTile(spec, null, state, true); 129 State state = getState(params, spec); 130 if (state != null) { 131 addTile(spec, appLabel, state, false); 162 private void addTile(String spec, CharSequence appLabel, State state, boolean isSystem) { argument 167 info.state = state; 190 public QSTile.State state; field in class:TileQueryHelper.TileInfo [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | FlashlightTile.java | 106 protected void handleUpdateState(BooleanState state, Object arg) { argument 107 state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label); 111 state.icon = new DrawableIcon(icon); 112 state.contentDescription = mContext.getString( 114 state.state = Tile.STATE_UNAVAILABLE; 119 if (value == state.value) { 122 state.value = value; 124 state.value = mFlashlightController.isEnabled(); 126 final AnimationIcon icon = state [all...] |
H A D | HotspotTile.java | 118 protected void handleUpdateState(AirplaneBooleanState state, Object arg) { argument 119 state.label = mContext.getString(R.string.quick_settings_hotspot_label); 121 checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_CONFIG_TETHERING); 123 state.value = (boolean) arg; 125 state.value = mController.isHotspotEnabled(); 127 state.icon = !state.value ? mDisable 128 : state.isTransient ? mEnabledStatic 130 boolean wasAirplane = state.isAirplaneMode; 131 state [all...] |
H A D | RotationLockTile.java | 93 protected void handleUpdateState(BooleanState state, Object arg) { argument 98 state.value = !rotationLocked; 103 state.label = mContext.getString(label); 104 state.icon = portrait ? mAutoToPortrait : mAutoToLandscape; 106 state.label = mContext.getString(R.string.quick_settings_rotation_unlocked_label); 107 state.icon = portrait ? mPortraitToAuto : mLandscapeToAuto; 109 state.contentDescription = getAccessibilityString(rotationLocked); 110 state.expandedAccessibilityClassName = Switch.class.getName(); 111 state.state [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | AccessPointControllerImpl.java | 148 public void onWifiStateChanged(int state) { argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileImplTest.java | 152 protected void handleUpdateState(BooleanState state, Object arg) { argument
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | NewDeviceAction.java | 191 public void handleTimerEvent(int state) { argument 192 if (mState == STATE_NONE || mState != state) { 195 if (state == STATE_WAITING_FOR_SET_OSD_NAME) { 202 } else if (state == STATE_WAITING_FOR_DEVICE_VENDOR_ID) {
|
H A D | SystemAudioAction.java | 34 // Transient state to differentiate with STATE_NONE where the on-finished callback 187 final void handleTimerEvent(int state) { argument 188 if (mState != state) {
|
H A D | VolumeControlAction.java | 198 void handleTimerEvent(int state) { argument 199 if (state != STATE_WAIT_FOR_NEXT_VOLUME_PRESS) {
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | CountdownConditionProvider.java | 157 private static final Condition newCondition(long time, int state) { argument 159 "", "", "", 0, state,Condition.FLAG_RELEVANT_NOW);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | IntentFilterVerificationState.java | 53 public void setState(int state) { argument 54 if (state > STATE_VERIFICATION_FAILURE || state < STATE_UNDEFINED) { 57 mState = state; 111 int state = STATE_UNDEFINED; 113 state = STATE_VERIFICATION_SUCCESS; 115 state = STATE_VERIFICATION_FAILURE; 118 setState(state);
|