Home
last modified time | relevance | path

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

1234567891011

/cts/tests/tests/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DCompanionDeviceTestAppActivity.kt59 val nameFilter by lazy { EditText(this).apply { in <lambda>()
63 val singleCheckbox by lazy { CheckBox(this).apply { text = "Single Device" } } in <lambda>()
64 val watchCheckbox by lazy { CheckBox(this).apply { text = "Watch" } } in <lambda>()
65 val glassesCheckbox by lazy { CheckBox(this).apply { text = "Glasses" } } in <lambda>()
79 setContentView(LinearLayout(this).apply { in <lambda>()
87 addView(Button(ctx).apply { in <lambda>()
107 addDeviceFilter(BluetoothDeviceFilter.Builder().apply { in <lambda>()
114 addView(Button(ctx).apply { in <lambda>()
121 addView(Button(ctx).apply { in <lambda>()
131 addView(Button(ctx).apply { in <lambda>()
[all …]
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateInternalTest.java96 .apply(List.of(ensureHasWorkProfile()), () -> { in ensureHasWorkProfile_reusesUser()
101 .apply(List.of(ensureHasWorkProfile()), () -> { in ensureHasWorkProfile_reusesUser()
118 .apply(List.of(requirePackageRespondsToIntent(INTENT_ACTION)) in requirePackageRespondsToIntentAnnotation_packageRespondsToIntent()
130 .apply(List.of(ensureHasWorkProfile()) in requirePackageRespondsToIntentAnnotation_workProfile_packageRespondsToIntent()
139 ….apply(List.of(requirePackageRespondsToIntent(INTENT_ACTION, UserType.WORK_PROFILE), ensureHasPerm… in requirePackageRespondsToIntentAnnotation_workProfile_packageRespondsToIntent()
154 .apply(List.of(requirePackageRespondsToIntent("INTENT_ACTION")) in requirePackageRespondsToIntentAnnotation_noPackageRespondsToIntent()
162 .apply(List.of(requireNoPackageRespondsToIntent("INTENT_ACTION")) in requireNoPackageRespondsToIntentAnnotation_noPackageRespondsToIntent()
186 .apply(List.of(requireNoPackageRespondsToIntent(INTENT_ACTION)) in requireNoPackageRespondsToIntentAnnotation_packageRespondsToIntent()
194 .apply(List.of(ensurePackageRespondsToIntent(INTENT_ACTION)) in ensurePackageRespondsToIntentAnnotation()
204 .apply(List.of(ensurePackageRespondsToIntent("INTENT_ACTION")) in ensurePackageRespondsToIntentAnnotation_throwsException()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DPoll.java167 softErrorOnFail((vn, v) -> errorSupplier.apply(v)); in errorOnFail()
216 if (mChecker.apply(value)) { in await()
219 if (mTerminalValueChecker != null && mTerminalValueChecker.apply(value)) { in await()
225 if (mTerminalExceptionChecker != null && mTerminalExceptionChecker.apply(e)) { in await()
246 throw new PollValueFailedException(mErrorSupplier.apply(mValueName, value) in await()
252 if (mChecker.apply(value)) { in await()
258 mErrorSupplier.apply(mValueName, value) + " (checked " + tries + " times in " in await()
263 mErrorSupplier.apply(mValueName, value) + " (checked " + tries + " times in " in await()
322 boolean apply(E e) throws Throwable; in apply() method
327 G apply(E e, F f); in apply() method
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DRetryRuleTest.java96 rule.apply(new RetryableStatement<RetryableException>(1, sRetryableException), mDescription) in testPassOnRetryableException()
105 rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException, cleaner), in testDoCleanOnRetryableException()
117 () -> rule.apply( in testKeepLastStatusWhenFailOnRetryableException()
130 rule.apply(mMockStatement, mDescription).evaluate(); in testNeverCleanWhenStatementPass()
144 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException()
157 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
169 () -> rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException), in testFailOnRetryableException()
179 rule.apply(mMockStatement, mDescription).evaluate(); in testPassWhenDisabledAndStatementPass()
191 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsRetryableException()
204 () -> rule.apply(mMockStatement, mDescription).evaluate()); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
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 …]
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/view/src/android/view/cts/
DGravityTest.java58 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection); in applyGravity()
64 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect); in testApply()
69 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect); in testApply()
85 Gravity.apply(Gravity.BOTTOM, 2, 3, mInRect, mOutRect); in testApply()
90 Gravity.apply(Gravity.BOTTOM, 2, 3, mInRect, 5, 5, mOutRect); in testApply()
106 Gravity.apply(Gravity.LEFT, 2, 10, mInRect, mOutRect); in testApply()
111 Gravity.apply(Gravity.LEFT, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
127 Gravity.apply(Gravity.START, 2, 10, mInRect, mOutRect); in testApply()
132 Gravity.apply(Gravity.START, 2, 10, mInRect, 5, 5, mOutRect); in testApply()
148 Gravity.apply(Gravity.RIGHT, 2, 10, mInRect, mOutRect); in testApply()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintFontMetricsForLocaleTest.kt43 val PAINT = Paint().apply { in <lambda>()
54 val paint = Paint(PAINT).apply { in testExtentForLocale()
66 val paint = Paint(PAINT).apply { in testExtentIntForLocale()
78 val paint = Paint(PAINT).apply { in testExtentForRoboto()
95 val paint = Paint(PAINT).apply { in testExtentIntForRoboto()
DImageDecoderTest.java371 Uri uri = f.apply(resId); in testUris()
402 ImageDecoder.Source src = f.apply(record.resId); in testInfo()
421 ImageDecoder.Source src = f.apply(record.resId); in testDecodeDrawable()
439 ImageDecoder.Source src = f.apply(record.resId); in testDecodeBitmap()
463 ImageDecoder.Source src = mCreators[0].apply(getRecord().resId); in testSetBogusAllocator()
481 ImageDecoder.Source src = mCreators[0].apply(resId); in testGetAllocator()
577 ImageDecoder.Source src = mCreators[0].apply(resId); in testGetUnpremul()
600 ImageDecoder.Source src = f.apply(resIds[i]); in testUnpremul()
610 src = f.apply(resIds[i]); in testUnpremul()
633 ImageDecoder.Source src = mCreators[0].apply(resId); in testGetPostProcessor()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
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()
145 trans.apply(finder, template, 0); in testCreditCardObfuscator()
162 trans.apply(finder, template, 0); in testReplaceAllByOne()
179 trans.apply(finder, template, 0); in testPartialMatchIsIgnored()
199 trans.apply(finder, template, 0); in userNameObfuscator()
218 trans.apply(finder, template, 0); in testMismatch()
242 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/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlTest.java159 transaction.apply(); in surfaceDestroyed()
194 tx.apply(); in setSolidBuffer()
213 .apply(); in setSolidBuffer()
223 .apply(); in setSolidBuffer()
235 .apply(); in setQuadrantBuffer()
247 .apply(); in setSourceToDefaultDest()
428 .apply(); in testSurfaceTransaction_setVisibility_show()
451 .apply(); in testSurfaceTransaction_setVisibility_hide()
474 .apply(); in testSurfaceTransaction_setBufferOpaque_opaque()
497 .apply(); in testSurfaceTransaction_setBufferOpaque_translucent()
[all …]
DTrustedPresentationCallbackTest.java106 }).apply(); in registerTrustedPresentationCallback()
124 .apply(); in setBuffer()
143 new SurfaceControl.Transaction().setVisibility(sc, false).apply(); in testTrustedPresentationListener()
186 new SurfaceControl.Transaction().setAlpha(sc, .5f).apply(); in testTrustedPresentationListener_alphaBelow()
208 mActivity.mSvSize.getHeight())).apply(); in testTrustedPresentationListener_minFractionDueToCrop()
254 mActivity.mSvSize.getHeight())).apply(); in testTrustedPresentationListener_enteredExitEntered()
260 new SurfaceControl.Transaction().setCrop(sc, null).apply(); in testTrustedPresentationListener_enteredExitEntered()
311 .setVisibility(sc, false).apply(); in testTrustedPresentationListener_clearCallback()
333 inTrustedPresentationState -> latch1.countDown()).apply(); in testTrustedPresentationListener_multipleSetCallbacks()
340 }).apply(); in testTrustedPresentationListener_multipleSetCallbacks()
[all …]
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java158 return getWithContext((inContext) -> runnable.apply(inContext, arg1)); in getWithContext()
169 return getWithContext((inContext) -> runnable.apply(inContext, arg1), blocking); in getWithContext()
201 return getWithContext((inContext) -> runnable.apply(inContext, arg1, arg2)); in getWithContext()
212 return getWithContext((inContext) -> runnable.apply(inContext, arg1, arg2), blocking); in getWithContext()
218 return getWithContext((inContext) -> runnable.apply(inContext, arg1, arg2, arg3)); in getWithContext()
229 return getWithContext((inContext) -> runnable.apply(inContext, arg1, arg2, arg3), blocking); in getWithContext()
311 sReturnValue = sRunnable.apply(this); in onResume()
327 R apply(T t, U u, V v); in apply() method
332 R apply(T t, U u, V v, W w); in apply() method
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DRequiredPropertyRule.java42 public Statement apply(final Statement base, Description description) { in apply() method in RequiredPropertyRule
64 public Statement apply(final Statement base, final Description description) {
84 public Statement apply(final Statement base, final Description description) {
108 public Statement apply(final Statement base, final Description description) {
DRequiredDeviceTypeRule.java40 public Statement apply(final Statement base, Description description) { in apply() method in RequiredDeviceTypeRule
53 public Statement apply(final Statement base, final Description description) {
86 public Statement apply(final Statement base, final Description description) {
123 public Statement apply(final Statement base, final Description description) {
/cts/tests/tests/text/src/android/text/cts/
DLayoutMinimumLineHeightTest.kt44 private val paint = TextPaint().apply { in <lambda>()
107 val requestMetrics = Paint.FontMetrics().apply { in Layout_expandToReserveMinimumFontMetrics()
127 val requestMetrics = Paint.FontMetrics().apply { in StaticLayout_expandToReserveMinimumFontMetrics()
147 val requestMetrics = Paint.FontMetrics().apply { in DynamicLayout_expandToReserveMinimumFontMetrics()
167 val requestMetrics = Paint.FontMetrics().apply { in Layout_useActualFont()
187 val requestMetrics = Paint.FontMetrics().apply { in StaticLayout_useActualFont()
207 val requestMetrics = Paint.FontMetrics().apply { in DynamicLayout_useActualFont()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceStateTester.java47 public void apply(List<Annotation> annotations, Runnable runnable) { in apply() method in DeviceStateTester
50 apply(annotations); in apply()
61 public void apply(List<Annotation> annotations) { in apply() method in DeviceStateTester
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DUserRestrictionsContext.java53 apply(); in set()
62 apply(); in unset()
66 private void apply() { in apply() method in UserRestrictionsContext
/cts/tests/tests/hibernation/AutoRevokeRApp/src/android/hibernation/cts/autorevokerapp/
DMainActivity.kt35 setContentView(LinearLayout(this).apply { in onCreate()
39 addView(Button(this@MainActivity).apply { in onCreate()
/cts/tests/tests/hibernation/AutoRevokeSApp/src/android/hibernation/cts/autorevokesapp/
DMainActivity.kt35 setContentView(LinearLayout(this).apply { in onCreate()
39 addView(Button(this@MainActivity).apply { in onCreate()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/metrics/
DDevicePolicyEventLogVerifier.java34 void apply() throws Exception; in apply() method
49 action.apply(); in assertMetricsLogged()
72 action.apply(); in assertMetricsNotLogged()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DCannedFieldClassificationResponse.java76 AssistStructure.ViewNode node = nodeResolver.apply(id); in asResponse()
128 AssistStructure.ViewNode node = nodeResolver.apply(id); in asFieldClassificationtWithNodeResolver()
139 final AutofillId autofillId = autofillIdResolver.apply(mId); in asFieldClassification()

1234567891011