Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 1244) sorted by relevance

12345678910>>...50

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageVerificationStateTest.java32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() local
35 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
40 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
43 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() local
50 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
55 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
58 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
[all …]
/frameworks/base/libs/input/
DSpriteController.cpp139 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
140 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
141 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
142 update.state.surfaceDrawn = false; in doUpdateSprites()
143 update.state.surfaceVisible = false; in doUpdateSprites()
144 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
145 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites()
146 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
157 if (update.state.surfaceControl != NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
158 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
[all …]
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java346 int state = content.getSpanFlags(what); in press() local
348 if (state == PRESSED) in press()
350 else if (state == RELEASED) in press()
352 else if (state == USED) in press()
354 else if (state == LOCKED) in press()
432 public static long resetLockedMeta(long state) { in resetLockedMeta() argument
433 if ((state & META_CAP_LOCKED) != 0) { in resetLockedMeta()
434 state &= ~META_SHIFT_MASK; in resetLockedMeta()
436 if ((state & META_ALT_LOCKED) != 0) { in resetLockedMeta()
437 state &= ~META_ALT_MASK; in resetLockedMeta()
[all …]
/frameworks/rs/
DrsProgram.cpp32 mHal.state.inputElementsCount++; in Program()
35 mHal.state.constantsCount++; in Program()
38 mHal.state.texturesCount++; in Program()
42 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; in Program()
43 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
44 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; in Program()
45 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; in Program()
46 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
48 mHal.state.textures = new Allocation*[mHal.state.texturesCount]; in Program()
49 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program()
[all …]
DrsType.cpp56 if (mHal.state.lodCount) { in clear()
57 delete [] mHal.state.lodDimX; in clear()
58 delete [] mHal.state.lodDimY; in clear()
59 delete [] mHal.state.lodDimZ; in clear()
61 if (mHal.state.arrayCount > 0) { in clear()
62 delete [] mHal.state.arrays; in clear()
76 uint32_t oldLODCount = mHal.state.lodCount; in compute()
78 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1; in compute()
79 uint32_t l2y = rsFindHighBit(mHal.state.dimY) + 1; in compute()
80 uint32_t l2z = rsFindHighBit(mHal.state.dimZ) + 1; in compute()
[all …]
DrsMesh.cpp26 mHal.state.primitives = nullptr; in Mesh()
27 mHal.state.primitivesCount = 0; in Mesh()
28 mHal.state.indexBuffers = nullptr; in Mesh()
29 mHal.state.indexBuffersCount = 0; in Mesh()
30 mHal.state.vertexBuffers = nullptr; in Mesh()
31 mHal.state.vertexBuffersCount = 0; in Mesh()
42 mHal.state.primitivesCount = primitivesCount; in Mesh()
43 mHal.state.indexBuffersCount = primitivesCount; in Mesh()
44 mHal.state.primitives = new RsPrimitive[mHal.state.primitivesCount]; in Mesh()
45 mHal.state.indexBuffers = new Allocation *[mHal.state.indexBuffersCount]; in Mesh()
[all …]
DrsProgramStore.cpp31 mHal.state.ditherEnable = ditherEnable; in ProgramStore()
33 mHal.state.colorRWriteEnable = colorMaskR; in ProgramStore()
34 mHal.state.colorGWriteEnable = colorMaskG; in ProgramStore()
35 mHal.state.colorBWriteEnable = colorMaskB; in ProgramStore()
36 mHal.state.colorAWriteEnable = colorMaskA; in ProgramStore()
37 mHal.state.blendSrc = srcFunc; in ProgramStore()
38 mHal.state.blendDst = destFunc; in ProgramStore()
40 mHal.state.depthWriteEnable = depthMask; in ProgramStore()
41 mHal.state.depthFunc = depthFunc; in ProgramStore()
57 void ProgramStore::setup(const Context *rsc, ProgramStoreState *state) { in setup() argument
[all …]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
DVrPipline1.java36 public void initBuffers(VrState state) { in initBuffers() argument
37 super.initBuffers(state); in initBuffers()
55 private void creatOpacityAllocation(VrState state) { in creatOpacityAllocation() argument
56 scriptC_vr.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs)); in creatOpacityAllocation()
59 private void creatColorMapAllocation(VrState state) { in creatColorMapAllocation() argument
60 scriptC_vr.set_color_map(state.mMaterial.getColorMapAllocation(state.mRs)); in creatColorMapAllocation()
64 public void setupTriangles(VrState state) { in setupTriangles() argument
65 super.setupTriangles(state); in setupTriangles()
69 Matrix m = state.mTransform.getMatrix(Transform.SCREEN_SPACE, Transform.VOLUME_SPACE); in setupTriangles()
73 scriptC_vr = new ScriptC_vr(state.mRs); in setupTriangles()
[all …]
DBasicPipeline.java40 public void initBuffers(VrState state) { in initBuffers() argument
45 public void setupTriangles(VrState state) { in setupTriangles() argument
46 Matrix m = state.mTransform.getMatrix(Transform.VOLUME_SPACE, Transform.SCREEN_SPACE); in setupTriangles()
47 state.mCubeVolume.transform(m, state.mCubeScreen); in setupTriangles()
51 public void rasterizeTriangles(VrState state) { in rasterizeTriangles() argument
53 scriptC_rasterize = new ScriptC_rasterize(state.mRs); in rasterizeTriangles()
55 scriptC_rasterize.set_index(state.mCubeScreen.mIndex); in rasterizeTriangles()
56 scriptC_rasterize.set_vert(state.mCubeScreen.mVert); in rasterizeTriangles()
58 scriptC_rasterize.invoke_setup_triangles(state.mImgWidth, state.mImgHeight); in rasterizeTriangles()
60 scriptC_rasterize.forEach_render_z(state.mzRangeFullAllocation); in rasterizeTriangles()
[all …]
/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java163 for (NfcActivityState state : mActivities) { in findActivityState()
164 if (state.activity == activity) { in findActivityState()
165 return state; in findActivityState()
173 NfcActivityState state = findActivityState(activity); in getActivityState() local
174 if (state == null) { in getActivityState()
175 state = new NfcActivityState(activity); in getActivityState()
176 mActivities.add(state); in getActivityState()
178 return state; in getActivityState()
182 for (NfcActivityState state : mActivities) { in findResumedActivityState()
183 if (state.resumed) { in findResumedActivityState()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dph_disp.cpp208 Word16 ph_disp_reset(ph_dispState *state) in ph_disp_reset() argument
212 if (state == (ph_dispState *) NULL) in ph_disp_reset()
219 state->gainMem[i] = 0; in ph_disp_reset()
221 state->prevState = 0; in ph_disp_reset()
222 state->prevCbGain = 0; in ph_disp_reset()
223 state->lockFull = 0; in ph_disp_reset()
224 state->onset = 0; /* assume no onset in start */ in ph_disp_reset()
299 void ph_disp_lock(ph_dispState *state) in ph_disp_lock() argument
301 state->lockFull = 1; in ph_disp_lock()
376 void ph_disp_release(ph_dispState *state) in ph_disp_release() argument
[all …]
/frameworks/rs/driver/
DrsdShader.cpp50 StateBasedKey *state = mStateBasedShaders.itemAt(i); in ~RsdShader() local
51 if (state->mShaderID) { in ~RsdShader()
52 glDeleteShader(state->mShaderID); in ~RsdShader()
54 delete state; in ~RsdShader()
81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in getExistingState()
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState()
84 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState()
85 if (a && a->mHal.state.surfaceTextureID) { in getExistingState()
103 StateBasedKey *state = getExistingState(); in getStateBasedShaderID() local
104 if (state != nullptr) { in getStateBasedShaderID()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowManager.java98 private void applyKeyguardFlags(State state) { in applyKeyguardFlags() argument
99 if (state.keyguardShowing) { in applyKeyguardFlags()
108 private void adjustScreenOrientation(State state) { in adjustScreenOrientation() argument
109 if (state.isKeyguardShowingAndNotOccluded()) { in adjustScreenOrientation()
120 private void applyFocusableFlag(State state) { in applyFocusableFlag() argument
121 boolean panelFocusable = state.statusBarFocusable && state.panelExpanded; in applyFocusableFlag()
122 if (state.keyguardShowing && state.keyguardNeedsInput && state.bouncerShowing) { in applyFocusableFlag()
125 } else if (state.isKeyguardShowingAndNotOccluded() || panelFocusable) { in applyFocusableFlag()
134 private void applyHeight(State state) { in applyHeight() argument
135 boolean expanded = isExpanded(state); in applyHeight()
[all …]
/frameworks/av/cmds/stagefright/
Dcodec.cpp116 CodecState *state = in decode() local
119 state->mNumBytesDecoded = 0; in decode()
120 state->mNumBuffersDecoded = 0; in decode()
121 state->mIsAudio = isAudio; in decode()
123 state->mCodec = MediaCodec::CreateByType( in decode()
126 CHECK(state->mCodec != NULL); in decode()
128 err = state->mCodec->configure( in decode()
135 state->mSignalledInputEOS = false; in decode()
136 state->mSawOutputEOS = false; in decode()
145 CodecState *state = &stateByTrack.editValueAt(i); in decode() local
[all …]
DSimplePlayer.cpp312 CodecState *state = in onPrepare() local
316 state->mNumFramesWritten = 0; in onPrepare()
317 state->mCodec = MediaCodec::CreateByType( in onPrepare()
320 CHECK(state->mCodec != NULL); in onPrepare()
322 err = state->mCodec->configure( in onPrepare()
333 state->mCSD.push_back(buffer); in onPrepare()
340 CodecState *state = &mStateByTrackIndex.editValueAt(i); in onPrepare() local
342 status_t err = state->mCodec->start(); in onPrepare()
345 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare()
348 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java245 PackageUserState state = userState.get(userId); in modifyUserState() local
246 if (state == null) { in modifyUserState()
247 state = new PackageUserState(); in modifyUserState()
248 userState.put(userId, state); in modifyUserState()
250 return state; in modifyUserState()
254 PackageUserState state = userState.get(userId); in readUserState() local
255 if (state != null) { in readUserState()
256 return state; in readUserState()
261 void setEnabled(int state, int userId, String callingPackage) { in setEnabled() argument
263 st.enabled = state; in setEnabled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dpre_proc.cpp212 Word16 Pre_Process_init(Pre_ProcessState **state) in Pre_Process_init() argument
216 if (state == (Pre_ProcessState **) NULL) in Pre_Process_init()
221 *state = NULL; in Pre_Process_init()
232 *state = s; in Pre_Process_init()
320 Word16 Pre_Process_reset(Pre_ProcessState *state) in Pre_Process_reset() argument
322 if (state == (Pre_ProcessState *) NULL) in Pre_Process_reset()
328 state->y2_hi = 0; in Pre_Process_reset()
329 state->y2_lo = 0; in Pre_Process_reset()
330 state->y1_hi = 0; in Pre_Process_reset()
331 state->y1_lo = 0; in Pre_Process_reset()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dq_plsf.cpp78 Word16 Q_plsf_init(Q_plsfState **state) in Q_plsf_init() argument
82 if (state == (Q_plsfState **) NULL) in Q_plsf_init()
87 *state = NULL; in Q_plsf_init()
97 *state = s; in Q_plsf_init()
110 Word16 Q_plsf_reset(Q_plsfState *state) in Q_plsf_reset() argument
114 if (state == (Q_plsfState *) NULL) in Q_plsf_reset()
121 state->past_rq[i] = 0; in Q_plsf_reset()
134 void Q_plsf_exit(Q_plsfState **state) in Q_plsf_exit() argument
136 if (state == NULL || *state == NULL) in Q_plsf_exit()
140 free(*state); in Q_plsf_exit()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java196 final ColorState state = mColorState; in onStateChange() local
197 if (state.mTint != null && state.mTintMode != null) { in onStateChange()
198 mTintFilter = updateTintFilter(mTintFilter, state.mTint, state.mTintMode); in onStateChange()
246 final ColorState state = mColorState; in updateStateFromTypedArray() local
249 state.mChangingConfigurations |= a.getChangingConfigurations(); in updateStateFromTypedArray()
252 state.mThemeAttrs = a.extractThemeAttrs(); in updateStateFromTypedArray()
254 state.mBaseColor = a.getColor(R.styleable.ColorDrawable_color, state.mBaseColor); in updateStateFromTypedArray()
255 state.mUseColor = state.mBaseColor; in updateStateFromTypedArray()
267 final ColorState state = mColorState; in applyTheme() local
268 if (state == null) { in applyTheme()
[all …]
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c69 FILE *state = fopen(DIR ".tmp", "wb"); in main() local
70 if (!state) { in main()
77 fprintf(state, "%s\n", argv[1]); in main()
78 fprintf(state, "%s/32\n", argv[4]); in main()
79 fprintf(state, "0.0.0.0/0\n"); in main()
80 fprintf(state, "%s %s\n", env("DNS1"), env("DNS2")); in main()
81 fprintf(state, "\n"); in main()
82 fprintf(state, "\n"); in main()
118 fprintf(state, "%s\n", interface); in main()
119 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4")); in main()
[all …]
/frameworks/base/libs/hwui/
DDeferredDisplayList.cpp71 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { in add() argument
73 mBounds.unionWith(state->mBounds); in add()
75 mOps.add(OpStatePair(op, state)); in add()
82 if (rect.intersects(mOps[i].state->mBounds)) { in intersects()
85 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, in intersects()
86 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom); in intersects()
101 const DeferredDisplayState* state = mOps[i].state; in replay() local
102 renderer.restoreDisplayState(*state); in replay()
110 const Rect& bounds = state->mBounds; in replay()
128 const Rect &r = mOps[i].state->mBounds; in coversBounds()
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DStateWaiter.java72 public void onStateChanged(int state) { in StateWaiter()
73 queueStateTransition(checkStateInRange(state)); in StateWaiter()
97 public void waitForState(int state, long timeoutMs) { in waitForState() argument
98 Integer[] stateArray = { checkStateInRange(state) }; in waitForState()
173 public String getStateName(int state) { in getStateName() argument
174 return mStateNames[checkStateInRange(state)]; in getStateName()
184 for (Integer state : states) { in appendStateNames()
189 s.append(getStateName(state)); in appendStateNames()
194 private void queueStateTransition(int state) { in queueStateTransition() argument
195 if (VERBOSE) Log.v(TAG, "setCurrentState - state now " + getStateName(state)); in queueStateTransition()
[all …]
/frameworks/base/core/java/android/service/notification/
DCondition.java50 public final int state; field in Condition
54 int state, int flags) { in Condition() argument
59 if (!isValidState(state)) throw new IllegalArgumentException("state is invalid: " + state); in Condition()
65 this.state = state; in Condition()
79 private static boolean isValidState(int state) { in isValidState() argument
80 return state >= STATE_FALSE && state <= STATE_ERROR; in isValidState()
90 dest.writeInt(state); in writeToParcel()
102 .append(",state=").append(stateToString(state)) in toString()
107 public static String stateToString(int state) { in stateToString() argument
108 if (state == STATE_FALSE) return "STATE_FALSE"; in stateToString()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dphase_dispersion.cpp160 int16 i, j, state; in phase_dispersion() local
173 state = 0; in phase_dispersion()
177 state = 1; in phase_dispersion()
181 state = 2; in phase_dispersion()
193 if (state < 2) in phase_dispersion()
195 state++; in phase_dispersion()
211 state = 0; in phase_dispersion()
213 if (state > *prev_state + 1) in phase_dispersion()
215 state--; in phase_dispersion()
220 *prev_state = state; in phase_dispersion()
[all …]
/frameworks/base/core/java/android/content/
DUndoManager.java250 UndoState state = mUndos.remove(i); in undo() local
251 state.undo(); in undo()
252 mRedos.add(state); in undo()
282 UndoState state = mRedos.remove(i); in redo() local
283 state.redo(); in redo()
284 mUndos.add(state); in redo()
311 UndoState state = mUndos.get(i); in forgetUndos() local
312 if (count > 0 && matchOwners(state, owners)) { in forgetUndos()
313 state.destroy(); in forgetUndos()
332 UndoState state = mRedos.get(i); in forgetRedos() local
[all …]

12345678910>>...50