/aosp14/frameworks/base/core/tests/coretests/src/android/text/method/ |
H A D | BackspaceTest.java | 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 80 backspace(state, 0); in testCombiningEnclosingKeycaps() 85 backspace(state, 0); in testCombiningEnclosingKeycaps() 87 backspace(state, 0); in testCombiningEnclosingKeycaps() 92 backspace(state, 0); in testCombiningEnclosingKeycaps() 97 backspace(state, 0); in testCombiningEnclosingKeycaps() 99 backspace(state, 0); in testCombiningEnclosingKeycaps() 109 backspace(state, 0); in testVariationSelector() 113 backspace(state, 0); in testVariationSelector() 118 backspace(state, 0); in testVariationSelector() [all …]
|
H A D | ForwardDeleteTest.java | 62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 79 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 80 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 84 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 85 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 89 forwardDelete(state, 0); in testCombiningEnclosingKeycaps() 90 state.assertEquals("|"); in testCombiningEnclosingKeycaps() 99 forwardDelete(state, 0); in testVariationSelector() 100 state.assertEquals("|"); in testVariationSelector() 103 forwardDelete(state, 0); in testVariationSelector() [all …]
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | PackageVerificationStateTest.java | 47 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 63 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() 85 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_AllowedInstall() 102 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_DeniedInstall() 111 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_DeniedInstall() 128 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_FirstDeniedInstall() 137 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_FirstDeniedInstall() 159 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_SecondDeniedInstall() 222 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_FirstTimesOut_DefaultAllow() 242 state.isInstallAllowed()); in testPackageVerificationState_TwoRequiredVerifiers_FirstTimesOut_DefaultReject() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
H A D | StrictMathPerfTest.java | 78 while (state.keepRunning()) { in timeAbsD() 86 while (state.keepRunning()) { in timeAbsF() 94 while (state.keepRunning()) { in timeAbsI() 102 while (state.keepRunning()) { in timeAbsL() 110 while (state.keepRunning()) { in timeAcos() 118 while (state.keepRunning()) { in timeAsin() 126 while (state.keepRunning()) { in timeAtan() 134 while (state.keepRunning()) { in timeAtan2() 142 while (state.keepRunning()) { in timeCbrt() 150 while (state.keepRunning()) { in timeCeilOverInterestingValues() [all …]
|
H A D | MathPerfTest.java | 52 while (state.keepRunning()) { in timeAbsD() 61 while (state.keepRunning()) { in timeAbsF() 70 while (state.keepRunning()) { in timeAbsI() 79 while (state.keepRunning()) { in timeAbsL() 88 while (state.keepRunning()) { in timeAcos() 97 while (state.keepRunning()) { in timeAsin() 106 while (state.keepRunning()) { in timeAtan() 115 while (state.keepRunning()) { in timeAtan2() 124 while (state.keepRunning()) { in timeCbrt() 133 while (state.keepRunning()) { in timeCeil() [all …]
|
H A D | IntegralToStringPerfTest.java | 41 while (state.keepRunning()) { in time_IntegerToString_small() 49 while (state.keepRunning()) { in time_IntegerToString_medium() 57 while (state.keepRunning()) { in time_IntegerToString_large() 65 while (state.keepRunning()) { in time_IntegerToString2_small() 73 while (state.keepRunning()) { in time_IntegerToString2_medium() 81 while (state.keepRunning()) { in time_IntegerToString2_large() 89 while (state.keepRunning()) { in time_IntegerToString10_small() 97 while (state.keepRunning()) { in time_IntegerToString10_medium() 105 while (state.keepRunning()) { in time_IntegerToString10_large() 113 while (state.keepRunning()) { in time_IntegerToString16_small() [all …]
|
H A D | AnnotatedElementPerfTest.java | 56 while (state.keepRunning()) { in timeGetTypeAnnotations() 64 while (state.keepRunning()) { in timeGetFieldAnnotations() 72 while (state.keepRunning()) { in timeGetMethodAnnotations() 80 while (state.keepRunning()) { in timeGetParameterAnnotations() 88 while (state.keepRunning()) { in timeGetTypeAnnotation() 96 while (state.keepRunning()) { in timeGetFieldAnnotation() 104 while (state.keepRunning()) { in timeGetMethodAnnotation() 112 while (state.keepRunning()) { in timeIsTypeAnnotationPresent() 120 while (state.keepRunning()) { in timeIsFieldAnnotationPresent() 128 while (state.keepRunning()) { in timeIsMethodAnnotationPresent() [all …]
|
H A D | RealToStringPerfTest.java | 41 while (state.keepRunning()) { in timeFloat_toString_NaN() 49 while (state.keepRunning()) { in timeFloat_toString_NEGATIVE_INFINITY() 57 while (state.keepRunning()) { in timeFloat_toString_POSITIVE_INFINITY() 65 while (state.keepRunning()) { in timeFloat_toString_zero() 73 while (state.keepRunning()) { in timeFloat_toString_minusZero() 81 while (state.keepRunning()) { in timeFloat_toString_small() 89 while (state.keepRunning()) { in timeFloat_toString_medium() 97 while (state.keepRunning()) { in timeFloat_toString_large() 105 while (state.keepRunning()) { in timeStringBuilder_small() 113 while (state.keepRunning()) { in timeStringBuilder_medium() [all …]
|
H A D | ReflectionPerfTest.java | 42 while (state.keepRunning()) { in timeObject_getClass() 51 while (state.keepRunning()) { in timeClass_getField() 60 while (state.keepRunning()) { in timeClass_getDeclaredField() 69 while (state.keepRunning()) { in timeClass_getConstructor() 79 while (state.keepRunning()) { in timeClass_newInstance() 88 while (state.keepRunning()) { in timeClass_getMethod() 97 while (state.keepRunning()) { in timeClass_getDeclaredMethod() 108 while (state.keepRunning()) { in timeField_setInt() 119 while (state.keepRunning()) { in timeField_getInt() 130 while (state.keepRunning()) { in timeMethod_invokeV() [all …]
|
H A D | ExpensiveObjectsPerfTest.java | 49 while (state.keepRunning()) { in timeNewDateFormatTimeInstance() 59 while (state.keepRunning()) { in timeClonedDateFormatTimeInstance() 68 while (state.keepRunning()) { in timeReusedDateFormatTimeInstance() 78 while (state.keepRunning()) { in timeNewCollator() 87 while (state.keepRunning()) { in timeClonedCollator() 95 while (state.keepRunning()) { in timeNewDateFormatSymbols() 104 while (state.keepRunning()) { in timeClonedDateFormatSymbols() 112 while (state.keepRunning()) { in timeNewDecimalFormatSymbols() 121 while (state.keepRunning()) { in timeClonedDecimalFormatSymbols() 129 while (state.keepRunning()) { in timeNewNumberFormat() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
H A D | MobileStateTest.kt | 38 state.userSetup = true 45 state.userSetup = true 52 state.userSetup = true 60 state.activityIn = false 68 state.activityIn = true 76 state.activityIn = true 84 state.activityIn = true 92 state.activityOut = false 100 state.activityOut = true 108 state.activityOut = true [all …]
|
/aosp14/frameworks/base/cmds/incident_helper/tests/ |
H A D | CpuFreqParser_test.cpp | 64 state = cpu0->add_times(); in TEST_F() 67 state = cpu0->add_times(); in TEST_F() 70 state = cpu0->add_times(); in TEST_F() 76 state = cpu1->add_times(); in TEST_F() 79 state = cpu1->add_times(); in TEST_F() 82 state = cpu1->add_times(); in TEST_F() 88 state = cpu2->add_times(); in TEST_F() 91 state = cpu2->add_times(); in TEST_F() 94 state = cpu2->add_times(); in TEST_F() 97 state = cpu2->add_times(); in TEST_F() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileViewImplTest.kt | 69 state.state = Tile.STATE_UNAVAILABLE 81 state.state = Tile.STATE_INACTIVE 93 state.state = Tile.STATE_ACTIVE 104 state.state = Tile.STATE_INACTIVE 115 state.state = Tile.STATE_ACTIVE 126 state.state = Tile.STATE_UNAVAILABLE 139 state.state = Tile.STATE_INACTIVE 152 state.state = Tile.STATE_ACTIVE 251 state.state = Tile.STATE_INACTIVE 257 state.state = Tile.STATE_ACTIVE [all …]
|
/aosp14/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 129 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites() 130 update.state.surfaceWidth = update.state.icon.width(); in doUpdateSprites() 131 update.state.surfaceHeight = update.state.icon.height(); in doUpdateSprites() 135 obtainSurface(update.state.surfaceWidth, update.state.surfaceHeight, in doUpdateSprites() 186 if ((update.state.dirty & DIRTY_BITMAP) && update.state.surfaceDrawn) { in doUpdateSprites() 191 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn in doUpdateSprites() 227 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites() 228 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites() 292 update.state.surfaceWidth, update.state.surfaceHeight, in doUpdateSprites() 293 update.state.surfaceDrawn, update.state.surfaceVisible); in doUpdateSprites() [all …]
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | MetaKeyKeyListener.java | 445 return state; in resetLockedMeta() 522 state = (state & ~META_SHIFT_MASK) | META_SHIFT_ON | META_CAP_USED; in adjustMetaAfterKeypress() 528 state = (state & ~META_ALT_MASK) | META_ALT_ON | META_ALT_USED; in adjustMetaAfterKeypress() 534 state = (state & ~META_SYM_MASK) | META_SYM_ON | META_SYM_USED; in adjustMetaAfterKeypress() 538 return state; in adjustMetaAfterKeypress() 560 return state; in handleKeyDown() 568 state = (state &~ mask) | what | locked; in press() 576 return state; in press() 598 return state; in handleKeyUp() 616 return state; in release() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/content/res/ |
H A D | XmlBlockBenchmark.java | 98 while (state.keepRunning()) { in throwNpeCausedByNullDocument() 111 while (state.keepRunning()) { in getNext() 113 state.pauseTiming(); in getNext() 117 state.resumeTiming(); in getNext() 125 state.pauseTiming(); in benchmarkTagFunction() 132 state.pauseTiming(); in benchmarkTagFunction() 136 state.resumeTiming(); in benchmarkTagFunction() 178 state.pauseTiming(); in benchmarkAttributeFunction() 208 state.resumeTiming(); in benchmarkAttributeFunction() 279 state.pauseTiming(); in parseOneXmlDocument() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/text/ |
H A D | StaticLayoutPerfTest.java | 112 state.pauseTiming(); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 114 state.resumeTiming(); in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 127 state.pauseTiming(); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() 129 state.resumeTiming(); in testCreate_RandomText_NoStyled_Greedy_Hyphenation() 142 state.pauseTiming(); in testCreate_RandomText_NoStyled_Balanced_NoHyphenation() 157 state.pauseTiming(); in testCreate_RandomText_NoStyled_Balanced_Hyphenation() 172 state.pauseTiming(); in testCreate_RandomText_NoStyled_Balanced_Hyphenation_Fast() 187 state.pauseTiming(); in testCreate_RandomText_Styled_Greedy_NoHyphenation() 202 state.pauseTiming(); in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation() 219 state.pauseTiming(); in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
H A D | PowerUITest.java | 571 state.mBucket = -1; in testShouldShowStandardWarning() 597 state.mBucket = -1; in testShouldShowStandardWarning() 606 state.mBucket = 0; in testShouldShowStandardWarning() 609 state.mBucket = 0; in testShouldShowStandardWarning() 615 state.mBucket = 0; in testShouldShowStandardWarning() 627 state.mBucket = 1; in testShouldShowStandardWarning() 652 state.mBucket = 0; in testShouldDismissStandardWarning() 654 state.mBucket = 1; in testShouldDismissStandardWarning() 661 state.mBucket = 0; in testShouldDismissStandardWarning() 667 state.mBucket = 0; in testShouldDismissStandardWarning() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/opengl/perftests/ |
H A D | MatrixPerfTest.java | 50 while (state.keepRunning()) { in testMultiplyMM() 63 while (state.keepRunning()) { in testMultiplyMMLeftOverlapResult() 76 while (state.keepRunning()) { in testMultiplyMMRightOverlapResult() 89 while (state.keepRunning()) { in testMultiplyMMAllOverlap() 102 while (state.keepRunning()) { in testMultiplyMMOutputBigArray() 115 while (state.keepRunning()) { in testMultiplyMMAllBigArray() 128 while (state.keepRunning()) { in testMultiplyMV() 141 while (state.keepRunning()) { in testMultiplyMVLeftOverlapResult() 154 while (state.keepRunning()) { in testMultiplyMVRightOverlapResult() 167 while (state.keepRunning()) { in testMultiplyMVAllOverlap() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileViewImpl.kt | 460 if (state.disabledByPolicy && state.state != Tile.STATE_UNAVAILABLE) { 504 if (state.state != lastState || state.disabledByPolicy != lastDisabledByPolicy) { 508 state.state, 510 getBackgroundColorForState(state.state, state.disabledByPolicy)) 521 getLabelColorForState(state.state, state.disabledByPolicy) 531 getChevronColorForState(state.state, state.disabledByPolicy) 537 getBackgroundColorForState(state.state, state.disabledByPolicy), 538 getLabelColorForState(state.state, state.disabledByPolicy), 539 getSecondaryLabelColorForState(state.state, state.disabledByPolicy), 540 getChevronColorForState(state.state, state.disabledByPolicy) [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/app/ |
H A D | ResourcesPerfTest.java | 62 while (state.keepRunning()) { in getValue() 71 while (state.keepRunning()) { in getFrameworkValue() 81 while (state.keepRunning()) { in getValueString() 90 while (state.keepRunning()) { in getFrameworkStringValue() 99 while (state.keepRunning()) { in getValueManyConfigurations() 108 while (state.keepRunning()) { in getText() 117 while (state.keepRunning()) { in getFont() 221 state.pauseTiming(); in getLayoutAndTraverseInvalidateCaches() 223 state.resumeTiming(); in getLayoutAndTraverseInvalidateCaches() 234 state.pauseTiming(); in getIdentifier() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
H A D | NotificationShadeWindowControllerImpl.java | 322 if (state.dozing) { in applyKeyguardFlags() 330 && !state.keyguardFadingAway && !state.keyguardGoingAway; in applyKeyguardFlags() 345 && !state.keyguardFadingAway && !state.keyguardGoingAway; in applyKeyguardFlags() 367 if (state.bouncerShowing || state.isKeyguardShowingAndNotOccluded() || state.dozing) { in adjustScreenOrientation() 380 if (state.bouncerShowing && (state.keyguardOccluded || state.keyguardNeedsInput) in applyFocusableFlag() 403 if (state.panelExpanded || state.bouncerShowing in applyForceShowNavigationFlag() 432 || state.panelVisible || state.keyguardFadingAway || state.bouncerShowing in isExpanded() 438 state.isKeyguardShowingAndNotOccluded(), state.panelVisible, in isExpanded() 439 state.keyguardFadingAway, state.bouncerShowing, state.headsUpNotificationShowing, in isExpanded() 468 && !state.qsExpanded && !state.forceUserActivity) { in applyInputFeatures() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
H A D | MethodInvocationPerfTest.java | 48 while (state.keepRunning()) { in timeInternalGetter() 55 while (state.keepRunning()) { in timeInternalFieldAccess() 82 while (state.keepRunning()) { in timeStringLength() 91 while (state.keepRunning()) { in timeEmptyStatic() 100 while (state.keepRunning()) { in timeEmptyVirtual() 109 while (state.keepRunning()) { in timeEmptyInterface() 142 while (state.keepRunning()) { in timePrivateInnerPublicMethod() 151 while (state.keepRunning()) { in timePrivateInnerProtectedMethod() 160 while (state.keepRunning()) { in timePrivateInnerPrivateMethod() 169 while (state.keepRunning()) { in timePrivateInnerPackageMethod() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/perftests/ |
H A D | SystemPerfTest.java | 49 while (state.keepRunning()) { in testNanoTimePerf() 57 while (state.keepRunning()) {} in testBenchmarkOverhead() 68 while (state.keepRunning()) { in testBenchmarkPauseResumeOverhead() 69 state.pauseTiming(); in testBenchmarkPauseResumeOverhead() 71 state.resumeTiming(); in testBenchmarkPauseResumeOverhead() 79 while (state.keepRunning()) { in testJniArrayNoop() 88 while (state.keepRunning()) { in testJniArrayGetLength() 97 while (state.keepRunning()) { in testJniArrayCriticalAccess() 106 while (state.keepRunning()) { in testJniArrayBasicAccess() 115 while (state.keepRunning()) { in testJniFastNativeAccess() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | OomAdjuster.java | 1746 state.setCompletedAdjSeq(state.getAdjSeq()); in computeOomAdjLSP() 1780 state.setCurRawAdj(state.getMaxAdj()); in computeOomAdjLSP() 1813 state.setCurAdj(state.getMaxAdj()); in computeOomAdjLSP() 1814 state.setCompletedAdjSeq(state.getAdjSeq()); in computeOomAdjLSP() 2826 state.setCompletedAdjSeq(state.getAdjSeq()); in computeOomAdjLSP() 2990 if (state.getCurRawAdj() != state.getSetRawAdj()) { in applyOomAdjLSP() 2991 state.setSetRawAdj(state.getCurRawAdj()); in applyOomAdjLSP() 2996 if (state.getCurAdj() != state.getSetAdj()) { in applyOomAdjLSP() 3000 if (state.getCurAdj() != state.getSetAdj()) { in applyOomAdjLSP() 3007 state.setSetAdj(state.getCurAdj()); in applyOomAdjLSP() [all …]
|