Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 98) sorted by relevance

1234

/cts/tests/tests/view/src/android/view/cts/
DGravityTest.java56 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection); in applyGravity()
62 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect); in testApply()
67 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect); in testApply()
83 Gravity.apply(Gravity.BOTTOM, 2, 3, mInRect, mOutRect); in testApply()
88 Gravity.apply(Gravity.BOTTOM, 2, 3, mInRect, 5, 5, mOutRect); in testApply()
104 Gravity.apply(Gravity.LEFT, 2, 10, mInRect, mOutRect); in testApply()
109 Gravity.apply(Gravity.LEFT, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
125 Gravity.apply(Gravity.START, 2, 10, mInRect, mOutRect); in testApply()
130 Gravity.apply(Gravity.START, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
146 Gravity.apply(Gravity.RIGHT, 2, 10, mInRect, mOutRect); in testApply()
[all …]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java70 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass()
77 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails()
85 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper()
96 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails()
109 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper()
124 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails()
142 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails_withDumper()
158 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrownAsCallable()
175 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown()
191 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown_withDumper()
[all …]
DRetryRuleTest.java76 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException()
86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
98 () -> rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException()
108 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass()
120 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException()
133 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
DStateChangerRuleTest.java62 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess()
77 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess()
89 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
103 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
119 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure()
136 () -> rule.apply(mStatement, mDescription).evaluate()); in testDontSetIfSameValueOnFailure()
150 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetButDontRestoreIfSameValueOnFailure()
166 () -> rule.apply(mStatement, mDescription).evaluate()); in testDontSetButRestoreIfValueChangedOnFailure()
DStateKeeperRuleTest.java60 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess()
75 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure()
88 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged()
101 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java70 rule.apply(mGoodGuyStatement, mDescription).evaluate(); in testEmptyRule_testPass()
77 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails()
85 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testEmptyRule_testFails_withDumper()
96 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails()
109 () -> rule.apply(new FailureStatement(mRuntimeException), mDescription).evaluate()); in testOnlyTestFails_withDumper()
124 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails()
142 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneRunnerFails_withDumper()
158 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrownAsCallable()
175 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown()
191 () -> rule.apply(mGoodGuyStatement, mDescription).evaluate()); in testTestPass_oneExtraExceptionThrown_withDumper()
[all …]
DRetryRuleTest.java76 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException()
86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
98 () -> rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException()
108 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass()
120 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException()
133 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
DStateChangerRuleTest.java62 rule.apply(mStatement, mDescription).evaluate(); in testSetAndRestoreOnSuccess()
77 rule.apply(mStatement, mDescription).evaluate(); in testDontSetIfSameValueOnSuccess()
89 rule.apply(mStatement, mDescription).evaluate(); in testSetButDontRestoreIfSameValueOnSuccess()
103 rule.apply(mStatement, mDescription).evaluate(); in testDontSetButRestoreIfValueChangedOnSuccess()
119 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetAndRestoreOnFailure()
136 () -> rule.apply(mStatement, mDescription).evaluate()); in testDontSetIfSameValueOnFailure()
150 () -> rule.apply(mStatement, mDescription).evaluate()); in testSetButDontRestoreIfSameValueOnFailure()
166 () -> rule.apply(mStatement, mDescription).evaluate()); in testDontSetButRestoreIfValueChangedOnFailure()
DStateKeeperRuleTest.java60 rule.apply(mStatement, mDescription).evaluate(); in testRestoreOnSuccess()
75 () -> rule.apply(mStatement, mDescription).evaluate()); in testRestoreOnFailure()
88 rule.apply(mStatement, mDescription).evaluate(); in testDoNotRestoreWhenNotChanged()
101 () -> rule.apply(mStatement, mDescription).evaluate()); in testDoNotRestoreOnFailure()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java238 Uri uri = f.apply(resId); in testUris()
268 ImageDecoder.Source src = f.apply(record.resId); in testInfo()
288 ImageDecoder.Source src = f.apply(record.resId); in testDecodeDrawable()
307 ImageDecoder.Source src = f.apply(record.resId); in testDecodeBitmap()
327 ImageDecoder.Source src = mCreators[0].apply(RECORDS[0].resId); in testSetBogusAllocator()
345 ImageDecoder.Source src = mCreators[0].apply(resId); in testGetAllocator()
389 ImageDecoder.Source src = f.apply(record.resId); in testSetAllocatorDecodeBitmap()
432 ImageDecoder.Source src = mCreators[0].apply(resId); in testGetUnpremul()
455 ImageDecoder.Source src = f.apply(resIds[i]); in testUnpremul()
465 src = f.apply(resIds[i]); in testUnpremul()
[all …]
DLinearGradientTest.java97 convert.apply(blue), b.getColor(0, 0), 0.09f);
100 convert.apply(green), b.getColor(0, 20), 0.09f);
103 convert.apply(red), b.getColor(0, 39), 0.08f);
122 convert.apply(red), b.getColor(0, 0), .03f);
125 convert.apply(blue), b.getColor(0, 39), 0.016f);
/cts/tests/autofillservice/src/android/autofillservice/cts/
DImageTransformationTest.java86 trans.apply(finder, template, 0); in fieldCannotBeFound()
105 trans.apply(finder, template, 0); in theOneOptionsMatches()
122 trans.apply(finder, template, 0); in theOneOptionsMatchesWithContentDescription()
141 trans.apply(finder, template, 0); in noOptionsMatches()
160 trans.apply(finder, template, 0); in multipleOptionsOneMatches()
178 trans.apply(finder, template, 0); in multipleOptionsOneMatchesWithContentDescription()
198 trans.apply(finder, template, 0); in twoOptionsMatch()
217 trans.apply(finder, template, 0); in twoOptionsMatchWithContentDescription()
DCharSequenceTransformationTest.java98 assertThrows(IndexOutOfBoundsException.class, () -> trans.apply(finder, template, 0)); in testBadSubst()
127 trans.apply(finder, template, 0); in testUnknownField()
147 trans.apply(finder, template, 0); in testCreditCardObfuscator()
164 trans.apply(finder, template, 0); in testReplaceAllByOne()
181 trans.apply(finder, template, 0); in testPartialMatchIsIgnored()
201 trans.apply(finder, template, 0); in userNameObfuscator()
220 trans.apply(finder, template, 0); in testMismatch()
244 trans.apply(finder, template, 0); in testFieldsAreAppliedInOrder()
DDateTransformationTest.java65 trans.apply(mValueFinder, mTemplate, 0); in testFieldNotFound()
76 trans.apply(mValueFinder, mTemplate, 0); in testInvalidAutofillValueType()
94 trans.apply(mValueFinder, mTemplate, 0); in testValidAutofillValue()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlTest.java138 new SurfaceControl.Transaction().setVisibility(sc, true).apply(); in testShow()
157 new SurfaceControl.Transaction().setVisibility(sc, false).apply(); in testHide()
176 new SurfaceControl.Transaction().reparent(sc, null).apply(); in testReparentOff()
197 .apply(); in testReparentOn()
221 .apply(); in testSetLayer()
241 .apply(); in testSetGeometry_dstBoundsOffScreen()
265 .apply(); in testSetGeometry_dstBoundsOnScreen()
290 .apply(); in testSetGeometry_dstBoundsScaled()
/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java741 volumeShaper.apply(VolumeShaper.Operation.PLAY); in testPlayerJoin()
786 volumeShaper.apply(VolumeShaper.Operation.PLAY); in testPlayerCubicMonotonic()
907 volumeShaper.apply(VolumeShaper.Operation.PLAY); in testPlayerStepRamp()
998 volumeShaper.apply(VolumeShaper.Operation.REVERSE); in testPlayerStepRamp()
1067 volumeShaperRamp.apply(VolumeShaper.Operation.PLAY); in testPlayerTwoShapers()
1068 volumeShaperDuck.apply(VolumeShaper.Operation.PLAY); in testPlayerTwoShapers()
1128 volumeShaper.apply(VolumeShaper.Operation.PLAY); in testPlayerRunDuringPauseStop()
1165 volumeShaper.apply(VolumeShaper.Operation.REVERSE); in runRampTest()
1174 volumeShaper.apply(VolumeShaper.Operation.PLAY); in runRampTest()
1183 volumeShaper.apply(VolumeShaper.Operation.REVERSE); in runRampTest()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DDevicePolicyEventLogVerifier.java33 void apply() throws Exception; in apply() method
51 action.apply(); in assertMetricsLogged()
/cts/tests/signature/lib/common/src/android/signature/cts/
DBufferedReaderLineSpliterator.java72 action.accept(mConverter.apply(nextLine)); in tryAdvance()
74 action.accept(mLineNumConverter.apply(nextLine, mLineNum)); in tryAdvance()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsActivityTest.java66 View result = r.apply(mActivity, parent); in testGood()
96 result = r.apply(mActivity, parent); in testDerivedClass()
125 result = r.apply(mActivity, parent); in testWebView()
/cts/tests/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java56 public Statement apply(Statement base, Description description) { in apply() method in ScreenshotTestRule
60 return super.apply(base, description); in apply()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DTestPropertyReader.java40 return mPropertyMapper.getIntEnumMapping(name).apply((Integer) get(name)); in getIntEnum()
44 return mPropertyMapper.getIntFlagMapping(name).apply((Integer) get(name)); in getIntFlag()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java63 Spliterator<T> spliterator = createFn.apply(getRepetitions(10)); in doTestConverter()
65 assertTrue(spliterator.tryAdvance(verifierFn.apply(i))); in doTestConverter()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java272 editor.apply(); in testTorture()
301 editor.apply(); in testTorture2()
382 prefs.edit().putString("test-key", "test-value").apply(); in testSharedPrefsChangeListenerIsCalledOnApply()
387 prefs.edit().remove("test-key").apply(); in testSharedPrefsChangeListenerIsCalledOnApply()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DBroadcastIntentReceiver.java36 editor.apply(); in onReceive()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DTracer.java29 public Statement apply(Statement base, Description description) { in apply() method in Tracer

1234