Searched refs:state (Results 76 - 100 of 1016) sorted by relevance

1234567891011>>

/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraStateHolder.java30 * Construct a new instance of @{link CameraStateHolder} with an initial state.
32 * @param state The initial state.
34 public CameraStateHolder(int state) { argument
35 setState(state);
40 * Change to a new state.
42 * @param state The new state.
44 public synchronized void setState(int state) { argument
45 if (mState != state) {
[all...]
/frameworks/rs/driver/
H A DrsdMeshObj.cpp55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType;
63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx];
77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) {
100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
102 uint32_t stride = elem->mHal.state.elementSizeBytes;
103 for (uint32_t fieldI=0; fieldI < elem->mHal.state
[all...]
H A DrsdShader.cpp50 StateBasedKey *state = mStateBasedShaders.itemAt(i); local
51 if (state->mShaderID) {
52 glDeleteShader(state->mShaderID);
54 delete state;
81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
84 Allocation *a = mRSProgram->mHal.state.textures[ct];
85 if (a && a->mHal.state.surfaceTextureID) {
103 StateBasedKey *state = getExistingState(); local
104 if (state !
[all...]
/frameworks/rs/
H A DrsType.h58 State state; member in struct:android::renderscript::Type::Hal
71 uint32_t getDimX() const {return mHal.state.dimX;}
72 uint32_t getDimY() const {return mHal.state.dimY;}
73 uint32_t getDimZ() const {return mHal.state.dimZ;}
75 bool getDimFaces() const {return mHal.state.faces;}
76 uint32_t getDimYuv() const {return mHal.state.dimYuv;}
78 if (idx < mHal.state.arrayCount) {
79 return mHal.state.arrays[idx];
85 rsAssert(lod < mHal.state.lodCount);
86 return mHal.state
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DTwilightManager.java56 final TwilightState state = sTwilightState;
58 if (isStateValid(state)) {
59 // If the current twilight state is still valid, use it
60 return state.isNight;
67 return state.isNight;
119 private boolean isStateValid(TwilightState state) { argument
120 return state != null && state.nextUpdate > System.currentTimeMillis();
124 final TwilightState state = sTwilightState;
135 final boolean isNight = (calculator.state
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp312 CodecState *state = local
316 state->mNumFramesWritten = 0;
317 state->mCodec = MediaCodec::CreateByType(
320 CHECK(state->mCodec != NULL);
322 err = state->mCodec->configure(
333 state->mCSD.push_back(buffer);
340 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
342 status_t err = state->mCodec->start();
345 err = state->mCodec->getInputBuffers(&state
401 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
420 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
475 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local
516 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
568 onOutputFormatChanged( size_t trackIndex __unused, CodecState *state) argument
599 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java84 final RotateState state = mState;
85 if (state == null) {
89 if (state.mThemeAttrs != null) {
90 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.RotateDrawable);
113 final RotateState state = mState;
114 if (state == null) {
119 state.mChangingConfigurations |= a.getChangingConfigurations();
122 state.mThemeAttrs = a.extractThemeAttrs();
126 state.mPivotXRel = tv.type == TypedValue.TYPE_FRACTION;
127 state
358 RotateDrawable(RotateState state, Resources res) argument
[all...]
H A DAnimatedRotateDrawable.java144 final AnimatedRotateState state = mState;
145 if (state == null) {
149 if (state.mThemeAttrs != null) {
151 state.mThemeAttrs, R.styleable.AnimatedRotateDrawable);
176 final AnimatedRotateState state = mState;
177 if (state == null) {
182 state.mChangingConfigurations |= a.getChangingConfigurations();
185 state.mThemeAttrs = a.extractThemeAttrs();
189 state.mPivotXRel = tv.type == TypedValue.TYPE_FRACTION;
190 state
249 AnimatedRotateDrawable(AnimatedRotateState state, Resources res) argument
[all...]
H A DScaleDrawable.java117 final ScaleState state = mState;
118 if (state == null) {
122 if (state.mThemeAttrs != null) {
123 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ScaleDrawable);
148 final ScaleState state = mState;
149 if (state == null) {
154 state.mChangingConfigurations |= a.getChangingConfigurations();
157 state.mThemeAttrs = a.extractThemeAttrs();
159 state.mScaleWidth = getPercent(a,
160 R.styleable.ScaleDrawable_scaleWidth, state
290 ScaleDrawable(ScaleState state, Resources res) argument
[all...]
H A DStateListDrawable.java40 * Each state Drawable is defined in a nested <code>&lt;item></code> element. For more
83 // in case the new state matches our current state...
122 * Updates the constant state from the values in the typed array.
125 final StateListState state = mStateListState;
128 state.mChangingConfigurations |= a.getChangingConfigurations();
131 state.mThemeAttrs = a.extractThemeAttrs();
133 state.mVariablePadding = a.getBoolean(
134 R.styleable.StateListDrawable_variablePadding, state.mVariablePadding);
135 state
376 setConstantState(@onNull DrawableContainerState state) argument
384 StateListDrawable(StateListState state, Resources res) argument
395 StateListDrawable(@ullable StateListState state) argument
[all...]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A DRsBrickedBitMask.java47 public RsBrickedBitMask(VrState state) { argument
49 mVolume = state.mVolume;
59 Type.Builder b = new Type.Builder(state.mRs, android.renderscript.Element.U32(state.mRs));
61 mBrick_allocation = Allocation.createTyped(state.mRs, b.create(), Allocation.USAGE_SCRIPT);
63 scriptC_bricked = new ScriptC_bricked(state.mRs);
69 scriptC_bricked.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs));
70 state.mRs.finish();
74 Allocation tmp = Allocation.createTyped(state
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dgain_q.cpp135 Allocates state memory and initializes state memory
174 Word16 gainQuant_init(gainQuantState **state) argument
178 if (state == (gainQuantState **) NULL)
183 *state = NULL;
188 /* fprintf(stderr, "gainQuant_init: can not malloc state structure\n"); */
206 *state = s;
236 Initializes state memory to zero
274 Word16 gainQuant_reset(gainQuantState *state) argument
277 if (state
361 gainQuant_exit(gainQuantState **state) argument
[all...]
H A Dton_stab.cpp104 state = pointer to pointer to structure type tonStabState.
122 Purpose: Allocates state memory and initializes state memory
137 int ton_stab_init (tonStabState **state)
141 if (state == (tonStabState **) NULL){
145 *state = NULL;
149 // fprintf(stderr, "ton_stab_init: can not malloc state structure\n");
155 *state = s;
184 Word16 ton_stab_init(tonStabState **state) argument
188 if (state
381 ton_stab_exit(tonStabState **state) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DCondition.java75 * if the state of the condition is {@link #STATE_TRUE}.
85 * The state of this condition. {@link #STATE_TRUE} will enable Do Not Disturb mode.
87 * might still be enabled globally if other conditions are in a {@link #STATE_TRUE} state.
90 public final int state; field in class:Condition
98 * An object representing the current state of a {@link android.app.AutomaticZenRule}.
100 * @param summary a user visible description of the rule state.
102 public Condition(Uri id, String summary, int state) { argument
103 this(id, summary, "", "", -1, state, FLAG_RELEVANT_ALWAYS);
108 int state, int flags) {
111 if (!isValidState(state)) thro
107 Condition(Uri id, String summary, String line1, String line2, int icon, int state, int flags) argument
131 isValidState(int state) argument
160 stateToString(int state) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollState.java33 * A state of a {@link com.android.systemui.statusbar.stack.NotificationStackScrollLayout} which
106 StackViewState state = mStateMap.get(child);
107 if (!applyState(child, state)) {
112 boolean visible = state.clipTopAmount < mClearAllTopPadding;
116 boolean visible = state.clipTopAmount <= 0;
126 * @return whether the state was applied correctly
128 public boolean applyState(ExpandableView view, StackViewState state) { argument
129 if (state == null) {
130 Log.wtf(CHILD_NOT_FOUND_TAG, "No child state was found when applying this state "
186 applyViewState(View view, ViewState state) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DFlashlightTile.java102 protected void handleUpdateState(BooleanState state, Object arg) { argument
103 state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label);
109 state.icon = new DrawableIcon(icon);
110 state.label = new SpannableStringBuilder().append(state.label,
113 state.contentDescription = mContext.getString(
119 if (value == state.value) {
122 state.value = value;
124 state.value = mFlashlightController.isEnabled();
126 final AnimationIcon icon = state
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DState.java123 /** Instance state for every shown directory */
218 final State state = new State();
219 state.action = in.readInt();
220 state.acceptMimes = in.readStringArray();
221 state.userSortOrder = in.readInt();
222 state.allowMultiple = in.readInt() != 0;
223 state.forceSize = in.readInt() != 0;
224 state.showSize = in.readInt() != 0;
225 state.localOnly = in.readInt() != 0;
226 state
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileQueryHelper.java78 final QSTile.State state = tile.newTileState();
79 tile.getState().copyTo(state);
80 // Ignore the current state and get the generic label instead.
81 state.label = tile.getTileLabel();
85 addTile(spec, null, state, true);
109 private void addTile(String spec, CharSequence appLabel, State state, boolean isSystem) { argument
114 info.state = state;
115 info.state.minimalAccessibilityClassName = info.state
136 public QSTile.State state; field in class:TileQueryHelper.TileInfo
[all...]
/frameworks/base/libs/hwui/
H A DDeferredDisplayList.cpp72 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { argument
74 mBounds.unionWith(state->mBounds);
76 mOps.push_back(OpStatePair(op, state));
83 if (rect.intersects(mOps[i].state->mBounds)) {
86 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top,
87 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom);
102 const DeferredDisplayState* state = mOps[i].state; variable
182 canMergeWith(const DrawOp* op, const DeferredDisplayState* state) argument
293 StateOpBatch(const StateOp* op, const DeferredDisplayState* state) argument
313 RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) argument
477 DeferredDisplayState* const state = createState(); local
610 DeferredDisplayState* state = createState(); local
623 DeferredDisplayState* state = createState(); local
[all...]
/frameworks/base/core/java/android/util/
H A DBase64.java82 * this object. Will finalize the coder state and
233 * State 6 is the error state; an error has been detected
236 private int state; // state number (0 to 6) field in class:Base64.Decoder
245 state = 0;
260 * @return true if the state machine is still healthy. false if
264 if (this.state == 6) return false;
274 int state = this.state;
295 if (state
[all...]
/frameworks/base/media/java/android/media/
H A DMediaActionSound.java105 public int state; field in class:MediaActionSound.SoundState
110 state = STATE_NOT_LOADED;
137 sound.state = STATE_LOADING;
161 switch (sound.state) {
168 Log.e(TAG, "load() called in wrong state: " + sound + " for sound: "+ soundName);
211 switch (sound.state) {
221 sound.state = STATE_LOADING_PLAY_REQUESTED;
227 Log.e(TAG, "play() called in wrong state: " + sound.state + " for sound: "+ soundName);
244 sound.state
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DHardwareConfig.java53 * hardware state of the resource.
78 * state - see DEV_HARDWARE_STATE_
82 public int state; field in class:HardwareConfig
130 Integer.parseInt(split[2]), /* state */
142 Integer.parseInt(split[2]), /* state */
150 public void assignModem(String id, int state, int model, int ratBits, argument
155 state = state;
167 public void assignSim(String id, int state, String link) { argument
171 state
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument
32 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
41 ? Math.max(0, state.getItemCount() - maxPosition - 1)
60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument
63 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument
82 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
87 return state.getItemCount();
96 return (int) ((float) laidOutArea / laidOutRange * state.getItemCount());
/frameworks/rs/driver/runtime/
H A Drs_sampler.c13 return prog->mHal.state.minFilter;
22 return prog->mHal.state.magFilter;
31 return prog->mHal.state.wrapS;
40 return prog->mHal.state.wrapT;
49 return prog->mHal.state.aniso;
/frameworks/base/core/java/android/content/
H A DUndoManager.java28 * Top-level class for managing and interacting with the global undo state for
34 * a stack of undo states; each state can have one or more undo operations
74 * Never merge with the last undo state.
79 * Allow merge with the last undo state only if it contains
85 * Always allow merge with the last undo state, if possible.
122 * Flatten the current undo state into a Parcel object, which can later be restored
127 throw new IllegalStateException("Can't save state while updating");
168 * Restore an undo state previously created with {@link #saveInstanceState(Parcel)}. This
169 * will restore the UndoManager's state to almost exactly what it was at the point it had
176 throw new IllegalStateException("Can't save state whil
678 matchOwners(UndoState state, UndoOwner[] owners) argument
802 setCanMerge(boolean state) argument
[all...]

Completed in 5919 milliseconds

1234567891011>>