/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageVerificationStateTest.java | 32 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/ |
D | SpriteController.cpp | 135 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites() 136 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites() 137 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites() 138 update.state.surfaceDrawn = false; in doUpdateSprites() 139 update.state.surfaceVisible = false; in doUpdateSprites() 140 update.state.surfaceControl = obtainSurface( in doUpdateSprites() 141 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites() 142 if (update.state.surfaceControl != NULL) { in doUpdateSprites() 153 if (update.state.surfaceControl != NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites() 154 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | MetaKeyKeyListener.java | 346 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/ |
D | rsProgram.cpp | 32 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 …]
|
D | rsType.cpp | 56 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() 73 uint32_t oldLODCount = mHal.state.lodCount; in compute() 75 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1; in compute() 76 uint32_t l2y = rsFindHighBit(mHal.state.dimY) + 1; in compute() 77 uint32_t l2z = rsFindHighBit(mHal.state.dimZ) + 1; in compute() 79 mHal.state.lodCount = rsMax(l2x, l2y); in compute() 80 mHal.state.lodCount = rsMax(mHal.state.lodCount, l2z); in compute() [all …]
|
D | rsMesh.cpp | 26 mHal.state.primitives = NULL; in Mesh() 27 mHal.state.primitivesCount = 0; in Mesh() 28 mHal.state.indexBuffers = NULL; in Mesh() 29 mHal.state.indexBuffersCount = 0; in Mesh() 30 mHal.state.vertexBuffers = NULL; 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 …]
|
D | rsProgramStore.cpp | 31 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/base/core/java/android/nfc/ |
D | NfcActivityManager.java | 164 for (NfcActivityState state : mActivities) { in findActivityState() 165 if (state.activity == activity) { in findActivityState() 166 return state; in findActivityState() 174 NfcActivityState state = findActivityState(activity); in getActivityState() local 175 if (state == null) { in getActivityState() 176 state = new NfcActivityState(activity); in getActivityState() 177 mActivities.add(state); in getActivityState() 179 return state; in getActivityState() 183 for (NfcActivityState state : mActivities) { in findResumedActivityState() 184 if (state.resumed) { in findResumedActivityState() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | ph_disp.cpp | 208 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/ |
D | rsdShader.cpp | 50 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 != NULL) { in getStateBasedShaderID() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowManager.java | 93 private void applyKeyguardFlags(State state) { in applyKeyguardFlags() argument 94 if (state.keyguardShowing) { in applyKeyguardFlags() 103 private void adjustScreenOrientation(State state) { in adjustScreenOrientation() argument 104 if (state.isKeyguardShowingAndNotOccluded()) { in adjustScreenOrientation() 115 private void applyFocusableFlag(State state) { in applyFocusableFlag() argument 116 if (state.isKeyguardShowingAndNotOccluded() && state.keyguardNeedsInput in applyFocusableFlag() 117 && state.bouncerShowing) { in applyFocusableFlag() 120 } else if (state.isKeyguardShowingAndNotOccluded() || state.statusBarFocusable) { in applyFocusableFlag() 129 private void applyHeight(State state) { in applyHeight() argument 130 boolean expanded = state.isKeyguardShowingAndNotOccluded() || state.statusBarExpanded in applyHeight() [all …]
|
/frameworks/av/cmds/stagefright/ |
D | codec.cpp | 113 CodecState *state = in decode() local 116 state->mNumBytesDecoded = 0; in decode() 117 state->mNumBuffersDecoded = 0; in decode() 118 state->mIsAudio = isAudio; in decode() 120 state->mCodec = MediaCodec::CreateByType( in decode() 123 CHECK(state->mCodec != NULL); in decode() 125 err = state->mCodec->configure( in decode() 132 state->mSignalledInputEOS = false; in decode() 133 state->mSawOutputEOS = false; in decode() 141 CodecState *state = &stateByTrack.editValueAt(i); in decode() local [all …]
|
D | SimplePlayer.cpp | 315 CodecState *state = in onPrepare() local 319 state->mNumFramesWritten = 0; in onPrepare() 320 state->mCodec = MediaCodec::CreateByType( in onPrepare() 323 CHECK(state->mCodec != NULL); in onPrepare() 325 err = state->mCodec->configure( in onPrepare() 336 state->mCSD.push_back(buffer); in onPrepare() 343 CodecState *state = &mStateByTrackIndex.editValueAt(i); in onPrepare() local 345 status_t err = state->mCodec->start(); in onPrepare() 348 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare() 351 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | pre_proc.cpp | 212 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 …]
|
D | sid_sync.cpp | 166 Word16 sid_sync_init(void **state) in sid_sync_init() argument 170 if (state == NULL) in sid_sync_init() 176 *state = NULL; in sid_sync_init() 189 *state = (void *)s; in sid_sync_init() 260 sid_syncState *state = (sid_syncState *) st; in sid_sync_reset() local 262 state->sid_update_counter = 3; in sid_sync_reset() 263 state->sid_handover_debt = 0; in sid_sync_reset() 264 state->prev_ft = TX_SPEECH_GOOD; in sid_sync_reset() 335 void sid_sync_exit(void **state) in sid_sync_exit() argument 337 sid_syncState **st = (sid_syncState **) state; in sid_sync_exit() [all …]
|
D | gain_q.cpp | 174 Word16 gainQuant_init(gainQuantState **state) in gainQuant_init() argument 178 if (state == (gainQuantState **) NULL) in gainQuant_init() 183 *state = NULL; in gainQuant_init() 206 *state = s; in gainQuant_init() 274 Word16 gainQuant_reset(gainQuantState *state) in gainQuant_reset() argument 277 if (state == (gainQuantState *) NULL) in gainQuant_reset() 283 state->sf0_exp_gcode0 = 0; in gainQuant_reset() 284 state->sf0_frac_gcode0 = 0; in gainQuant_reset() 285 state->sf0_exp_target_en = 0; in gainQuant_reset() 286 state->sf0_frac_target_en = 0; in gainQuant_reset() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | q_plsf.cpp | 78 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/services/core/java/com/android/server/pm/ |
D | PackageSettingBase.java | 225 PackageUserState state = userState.get(userId); in modifyUserState() local 226 if (state == null) { in modifyUserState() 227 state = new PackageUserState(); in modifyUserState() 228 userState.put(userId, state); in modifyUserState() 230 return state; in modifyUserState() 234 PackageUserState state = userState.get(userId); in readUserState() local 235 if (state != null) { in readUserState() 236 return state; in readUserState() 241 void setEnabled(int state, int userId, String callingPackage) { in setEnabled() argument 243 st.enabled = state; in setEnabled() [all …]
|
/frameworks/native/cmds/ip-up-vpn/ |
D | ip-up-vpn.c | 69 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/graphics/java/android/graphics/drawable/ |
D | ColorDrawable.java | 194 final ColorState state = mColorState; in onStateChange() local 195 if (state.mTint != null && state.mTintMode != null) { in onStateChange() 196 mTintFilter = updateTintFilter(mTintFilter, state.mTint, state.mTintMode); in onStateChange() 242 final ColorState state = mColorState; in updateStateFromTypedArray() local 245 state.mChangingConfigurations |= a.getChangingConfigurations(); in updateStateFromTypedArray() 248 state.mThemeAttrs = a.extractThemeAttrs(); in updateStateFromTypedArray() 250 state.mBaseColor = a.getColor(R.styleable.ColorDrawable_color, state.mBaseColor); in updateStateFromTypedArray() 251 state.mUseColor = state.mBaseColor; in updateStateFromTypedArray() 263 final ColorState state = mColorState; in applyTheme() local 264 if (state == null || state.mThemeAttrs == null) { in applyTheme() [all …]
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/ |
D | StateWaiter.java | 72 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/ |
D | Condition.java | 50 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/ |
D | phase_dispersion.cpp | 160 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/libs/hwui/ |
D | DeferredDisplayList.cpp | 70 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { in add() argument 72 mBounds.unionWith(state->mBounds); in add() 74 mOps.add(OpStatePair(op, state)); in add() 81 if (rect.intersects(mOps[i].state->mBounds)) { in intersects() 84 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, in intersects() 85 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom); in intersects() 102 const DeferredDisplayState* state = mOps[i].state; in replay() local 103 renderer.restoreDisplayState(*state); in replay() 112 const Rect& bounds = state->mBounds; in replay() 131 const Rect &r = mOps[i].state->mBounds; in coversBounds() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BluetoothTile.java | 88 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState() argument 93 state.visible = supported; in handleUpdateState() 94 state.value = enabled; in handleUpdateState() 95 state.autoMirrorDrawable = false; in handleUpdateState() 97 state.label = null; in handleUpdateState() 99 state.icon = ResourceIcon.get(R.drawable.ic_qs_bluetooth_connected); in handleUpdateState() 100 state.contentDescription = mContext.getString( in handleUpdateState() 102 state.label = mController.getLastDeviceName(); in handleUpdateState() 104 state.icon = ResourceIcon.get(R.drawable.ic_qs_bluetooth_connecting); in handleUpdateState() 105 state.contentDescription = mContext.getString( in handleUpdateState() [all …]
|