/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);
|
/frameworks/rs/driver/runtime/ |
H A D | rs_mesh.c | 16 return mesh->mHal.state.vertexBuffersCount; 25 return mesh->mHal.state.primitivesCount; 31 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { 35 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]}; 44 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 48 rs_allocation returnAlloc = {mesh->mHal.state.indexBuffers[index]}; 57 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 60 return mesh->mHal.state.primitives[index];
|
H A D | rs_sampler.c | 13 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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | CameraStateHolder.java | 30 * 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 D | rsdMeshObj.cpp | 55 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 D | rsdShader.cpp | 50 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 D | rsType.h | 58 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/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 312 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 D | RotateDrawable.java | 84 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 D | AnimatedRotateDrawable.java | 144 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 D | ScaleDrawable.java | 117 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...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | RsBrickedBitMask.java | 47 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 D | gain_q.cpp | 135 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 D | ton_stab.cpp | 104 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 D | Condition.java | 75 * 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 D | StackScrollState.java | 33 * 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 D | FlashlightTile.java | 102 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 D | State.java | 123 /** 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 D | TileQueryHelper.java | 77 final QSTile.State state = tile.newTileState(); 78 tile.getState().copyTo(state); 79 // Ignore the current state and get the generic label instead. 80 state.label = tile.getTileLabel(); 84 addTile(spec, null, state, true); 108 private void addTile(String spec, CharSequence appLabel, State state, boolean isSystem) { argument 113 info.state = state; 114 info.state.minimalAccessibilityClassName = info.state 135 public QSTile.State state; field in class:TileQueryHelper.TileInfo [all...] |
/frameworks/base/libs/hwui/ |
H A D | DeferredDisplayList.cpp | 72 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 D | Base64.java | 82 * 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 D | MediaActionSound.java | 105 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 D | HardwareConfig.java | 53 * 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 D | ScrollbarHelper.java | 29 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/base/core/java/android/content/ |
H A D | UndoManager.java | 28 * 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...] |