/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | BackspaceTest.java | 61 private void backspace(final EditorState state, int modifiers) { in backspace() argument 62 mTextView.setText(state.mText, BufferType.EDITABLE); in backspace() 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 70 state.mText = mTextView.getText(); in backspace() 71 state.mSelectionStart = mTextView.getSelectionStart(); in backspace() 72 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace() 77 EditorState state = new EditorState(); in testCombiningEnclosingKeycaps() local 79 state.setByString("'1' U+E0101 U+20E3 |"); in testCombiningEnclosingKeycaps() 80 backspace(state, 0); in testCombiningEnclosingKeycaps() 81 state.assertEquals("|"); in testCombiningEnclosingKeycaps() [all …]
|
D | ForwardDeleteTest.java | 59 private void forwardDelete(final EditorState state, int modifiers) { in forwardDelete() argument 60 mTextView.setText(state.mText, BufferType.EDITABLE); in forwardDelete() 62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 68 state.mText = mTextView.getText(); in forwardDelete() 69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete() 70 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete() 75 EditorState state = new EditorState(); in testCombiningEnclosingKeycaps() local 78 state.setByString("| '1' U+20E3 U+20E3"); in testCombiningEnclosingKeycaps() 79 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 80 state.assertEquals("|"); in testCombiningEnclosingKeycaps() [all …]
|
/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/cmds/incident_helper/tests/ |
D | CpuFreqParser_test.cpp | 60 CpuFreqProto::Stats::TimeInState* state; in TEST_F() local 64 state = cpu0->add_times(); in TEST_F() 65 state->set_state_khz(307200); in TEST_F() 66 state->set_time_jiffy(23860761); in TEST_F() 67 state = cpu0->add_times(); in TEST_F() 68 state->set_state_khz(384000); in TEST_F() 69 state->set_time_jiffy(83124); in TEST_F() 70 state = cpu0->add_times(); in TEST_F() 71 state->set_state_khz(768000); in TEST_F() 72 state->set_time_jiffy(22652); in TEST_F() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | SimSlotStateTest.java | 75 SimSlotState state = SimSlotState.getCurrentState(); in testEmptySlots() local 77 assertEquals(0, state.numActiveSlots); in testEmptySlots() 78 assertEquals(0, state.numActiveSims); in testEmptySlots() 79 assertEquals(0, state.numActiveEsims); in testEmptySlots() 87 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_nullSlot() local 89 assertEquals(0, state.numActiveSlots); in testSingleSim_nullSlot() 90 assertEquals(0, state.numActiveSims); in testSingleSim_nullSlot() 91 assertEquals(0, state.numActiveEsims); in testSingleSim_nullSlot() 99 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_inactiveSlot() local 101 assertEquals(0, state.numActiveSlots); in testSingleSim_inactiveSlot() [all …]
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 127 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites() 128 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites() 129 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites() 130 update.state.surfaceDrawn = false; in doUpdateSprites() 131 update.state.surfaceVisible = false; in doUpdateSprites() 132 update.state.surfaceControl = obtainSurface( in doUpdateSprites() 133 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites() 134 if (update.state.surfaceControl != NULL) { in doUpdateSprites() 145 if (update.state.surfaceControl == nullptr) { in doUpdateSprites() 149 if (update.state.wantSurfaceVisible()) { in doUpdateSprites() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | MetaKeyKeyListener.java | 347 int state = content.getSpanFlags(what); in press() local 349 if (state == PRESSED) in press() 351 else if (state == RELEASED) in press() 353 else if (state == USED) in press() 355 else if (state == LOCKED) in press() 435 public static long resetLockedMeta(long state) { in resetLockedMeta() argument 436 if ((state & META_CAP_LOCKED) != 0) { in resetLockedMeta() 437 state &= ~META_SHIFT_MASK; in resetLockedMeta() 439 if ((state & META_ALT_LOCKED) != 0) { in resetLockedMeta() 440 state &= ~META_ALT_MASK; in resetLockedMeta() [all …]
|
/frameworks/rs/ |
D | rsType.cpp | 55 if (mHal.state.lodCount) { in clear() 56 delete [] mHal.state.lodDimX; in clear() 57 delete [] mHal.state.lodDimY; in clear() 58 delete [] mHal.state.lodDimZ; in clear() 60 if (mHal.state.arrayCount > 0) { in clear() 61 delete [] mHal.state.arrays; in clear() 75 uint32_t oldLODCount = mHal.state.lodCount; in compute() 77 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1; in compute() 78 uint32_t l2y = rsFindHighBit(mHal.state.dimY) + 1; in compute() 79 uint32_t l2z = rsFindHighBit(mHal.state.dimZ) + 1; in compute() [all …]
|
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 | rsMesh.cpp | 26 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 …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 328 BatteryStateSnapshotWrapper state = new BatteryStateSnapshotWrapper(); in testMaybeShowHybridWarning() local 329 BatteryStateSnapshot lastState = state.get(); in testMaybeShowHybridWarning() 330 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testMaybeShowHybridWarning() 331 state.mBatteryLevel = 15; in testMaybeShowHybridWarning() 333 mPowerUI.maybeShowHybridWarning(state.get(), lastState); in testMaybeShowHybridWarning() 339 lastState = state.get(); in testMaybeShowHybridWarning() 340 state.mBatteryLevel = 1; in testMaybeShowHybridWarning() 341 state.mTimeRemainingMillis = Duration.ofMinutes(10).toMillis(); in testMaybeShowHybridWarning() 343 mPowerUI.maybeShowHybridWarning(state.get(), lastState); in testMaybeShowHybridWarning() 349 lastState = state.get(); in testMaybeShowHybridWarning() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | VrPipline1.java | 36 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 …]
|
D | BasicPipeline.java | 40 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/native/services/surfaceflinger/CompositionEngine/src/ |
D | LayerCompositionState.cpp | 32 void dumpFrontEnd(std::string& out, const LayerFECompositionState& state) { in dumpFrontEnd() argument 34 dumpVal(out, "isSecure", state.isSecure); in dumpFrontEnd() 35 dumpVal(out, "geomUsesSourceCrop", state.geomUsesSourceCrop); in dumpFrontEnd() 37 state.geomBufferUsesDisplayInverseTransform); in dumpFrontEnd() 38 dumpVal(out, "geomLayerTransform", state.geomLayerTransform); in dumpFrontEnd() 41 dumpVal(out, "geomBufferSize", state.geomBufferSize); in dumpFrontEnd() 42 dumpVal(out, "geomContentCrop", state.geomContentCrop); in dumpFrontEnd() 43 dumpVal(out, "geomCrop", state.geomCrop); in dumpFrontEnd() 44 dumpVal(out, "geomBufferTransform", state.geomBufferTransform); in dumpFrontEnd() 47 dumpVal(out, "geomActiveTransparentRegion", state.geomActiveTransparentRegion); in dumpFrontEnd() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | StaticLayoutPerfTest.java | 70 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_FixedText_NoStyle_Greedy_NoHyphenation() local 72 while (state.keepRunning()) { in testCreate_FixedText_NoStyle_Greedy_NoHyphenation() 82 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() local 83 while (state.keepRunning()) { in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 84 state.pauseTiming(); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 86 state.resumeTiming(); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 97 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() local 98 while (state.keepRunning()) { in testCreate_RandomText_NoStyled_Greedy_Hyphenation() 99 state.pauseTiming(); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() 101 state.resumeTiming(); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() [all …]
|
D | PrecomputedTextPerfTest.java | 55 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_NoStyled_Hyphenation() local 61 while (state.keepRunning()) { in testCreate_NoStyled_Hyphenation() 62 state.pauseTiming(); in testCreate_NoStyled_Hyphenation() 64 state.resumeTiming(); in testCreate_NoStyled_Hyphenation() 72 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_NoStyled_NoHyphenation() local 78 while (state.keepRunning()) { in testCreate_NoStyled_NoHyphenation() 79 state.pauseTiming(); in testCreate_NoStyled_NoHyphenation() 81 state.resumeTiming(); in testCreate_NoStyled_NoHyphenation() 89 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in testCreate_NoStyled_Hyphenation_WidthOnly() local 95 while (state.keepRunning()) { in testCreate_NoStyled_Hyphenation_WidthOnly() [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 | 54 StateBasedKey *state = mStateBasedShaders.at(i); in ~RsdShader() local 55 if (state->mShaderID) { in ~RsdShader() 56 glDeleteShader(state->mShaderID); in ~RsdShader() 58 delete state; in ~RsdShader() 85 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in getExistingState() 87 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState() 88 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState() 89 if (a && a->mHal.state.surfaceTextureID) { in getExistingState() 107 StateBasedKey *state = getExistingState(); in getStateBasedShaderID() local 108 if (state != nullptr) { in getStateBasedShaderID() [all …]
|
/frameworks/rs/tests/lldb/tests/ |
D | run_test.py | 46 def _test_pre_run(state): argument 62 assert state.test 63 assert state.bundle 66 log.info('running: {0}'.format(state.name)) 69 state.bundle.delete_ndk_cache() 74 target_name = state.test.get_bundle_target() 79 target_name = state.test.bundle_target[state.bundle_type] 88 state.pid = state.bundle.launch(target_name) 89 if not state.pid: 92 state.android.kill_servers() [all …]
|
/frameworks/rs/tests/lldb/ |
D | run_tests.py | 380 def _launch_emulator(state): argument 392 android = state.android 393 if state.user_specified_device: 394 if android.device_with_substring_exists(state.user_specified_device): 397 state.user_specified_device) 402 assert state.emu_cmd 403 EMU_PROC = subprocess.Popen(state.emu_cmd.split(), 408 log.info('Launching emulator with command line {0}'.format(state.emu_cmd)) 443 output = android.adb('push {0} {1}'.format(state.lldb_server_path_host, 444 state.lldb_server_path_device)) [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowController.java | 217 private void applyKeyguardFlags(State state) { in applyKeyguardFlags() argument 218 if (state.keyguardShowing) { in applyKeyguardFlags() 225 state.scrimsVisibility == ScrimController.VISIBILITY_FULLY_OPAQUE; in applyKeyguardFlags() 226 final boolean keyguardOrAod = state.keyguardShowing in applyKeyguardFlags() 227 || (state.dozing && mDozeParameters.getAlwaysOn()); in applyKeyguardFlags() 228 if (keyguardOrAod && !state.backdropShowing && !scrimsOccludingWallpaper) { in applyKeyguardFlags() 234 if (state.dozing) { in applyKeyguardFlags() 242 && state.statusBarState == StatusBarState.KEYGUARD && !state.keyguardFadingAway in applyKeyguardFlags() 243 && !state.keyguardGoingAway; in applyKeyguardFlags() 244 if (state.dozing || bypassOnKeyguard) { in applyKeyguardFlags() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | PendingIntentPerfTest.java | 59 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in create() local 60 while (state.keepRunning()) { in create() 61 state.pauseTiming(); in create() 62 state.resumeTiming(); in create() 67 state.pauseTiming(); in create() 69 state.resumeTiming(); in create() 79 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in createWithCancelFlag() local 80 while (state.keepRunning()) { in createWithCancelFlag() 81 state.pauseTiming(); in createWithCancelFlag() 84 state.resumeTiming(); in createWithCancelFlag() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | ParcelPerfTest.java | 58 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in timeSetDataPosition() local 59 while (state.keepRunning()) { in timeSetDataPosition() 66 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in timeGetDataPosition() local 67 while (state.keepRunning()) { in timeGetDataPosition() 74 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in timeSetDataSize() local 75 while (state.keepRunning()) { in timeSetDataSize() 82 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in timeGetDataSize() local 83 while (state.keepRunning()) { in timeGetDataSize() 90 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); in timeSetDataCapacity() local 91 while (state.keepRunning()) { in timeSetDataCapacity() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 38 static void BM_AssetManagerLoadAssets(benchmark::State& state) { in BM_AssetManagerLoadAssets() argument 40 while (state.KeepRunning()) { in BM_AssetManagerLoadAssets() 48 static void BM_AssetManagerLoadAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadAssetsOld() argument 50 while (state.KeepRunning()) { in BM_AssetManagerLoadAssetsOld() 61 static void BM_AssetManagerLoadFrameworkAssets(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssets() argument 63 while (state.KeepRunning()) { in BM_AssetManagerLoadFrameworkAssets() 71 static void BM_AssetManagerLoadFrameworkAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssetsOld() argument 73 while (state.KeepRunning()) { in BM_AssetManagerLoadFrameworkAssetsOld() 84 static void BM_AssetManagerGetResource(benchmark::State& state, uint32_t resid) { in BM_AssetManagerGetResource() argument 85 GetResourceBenchmark({GetTestDataPath() + "/basic/basic.apk"}, nullptr /*config*/, resid, state); in BM_AssetManagerGetResource() [all …]
|